In file triangulation/TclTriangulation3D.h:

namespace yav class TclTriangulation3D : public TclSceneObject

Tcl interface class to class Triangulation 3D

Inheritance:


Public Methods

Triangulation3D* getClient (void) const
returns the FileTCL associated with this interface
TclScene3D* getScene (void) const
returns the TclScene3D associated with the TclTriangulation3D object
static int list (TclModule *m, int d, char **a)
raise ambiguity on list() function
static int create (TclModule *m, int argc, char **argv)
Tcl command to create the TclTriangulation3D
static void load (const TclString &filename, Scene3D *scn)
load function
int destroyCmd (int argc, char **argv)
-destroy TCL command
int selectionModeCmd (int argc, char **argv)
-selectionMode TCL command
int saveCmd (int argc, char **argv)
-save TCL command
int saveOptionCmd (int argc, char **argv)
-saveOption TCL command
int loadOptionCmd (int argc, char **argv)
-loadOption TCL command
int nameCmd (int argc, char **argv)
-name TCL command
int colorCmd (int argc, char **argv)
-color TCL command
int materialCmd (int argc, char **argv)
-material TCL command
int selectedMaterialCmd (int argc, char **argv)
-selectedMaterial TCL command
int texture2DCmd (int argc, char **argv)
-texture2D TCL command
int texture1DCmd (int argc, char **argv)
-texture1D TCL command
int highlightTextureCmd (int argc, char **argv)
-highlightTexture TCL command
int texture2DOptionCmd (int argc, char **argv)
-texture2DOption TCL command
int texture1DOptionCmd (int argc, char **argv)
-texture1DOption TCL command
int renderCmd (int argc, char **argv)
-render TCL command
int renderOptionCmd (int argc, char **argv)
-renderOption TCL command
int zonesCmd (int argc, char **argv)
-zones TCL command
int flipNormalsCmd (int argc, char **argv)
-flipNormals TCL command
int sceneCmd (int argc, char **argv)
-scene TCL command
int scaleCmd (int argc, char **argv)
-scale TCL command
int translateCmd (int argc, char **argv)
-translate TCL command
int volumeCmd (int argc, char **argv)
-volume TCL command
int newZoneCmd (int argc, char **argv)
-newZone TCL command
int saveAsGHS3DCmd (int argc, char **argv)
-saveAsGHS3D TCL command
int saveAsTrianCmd (int argc, char **argv)
-saveAsTrian TCL command
int selectedZoneCmd (int argc, char **argv)
-selectedZone TCL command
int selectCmd (int argc, char **argv)
-select TCL command
int copyCmd (int argc, char **argv)
-copy TCL command
int holesCmd (int argc, char **argv)
-holes TCL command
int nbVerticesCmd (int argc, char **argv)
-nbVertices TCL command
void updateSelectionMenu ()
add menu of selected items
virtual void select (TriangulationVertex3D *v)
install the menu associated with a vertex
virtual void select (TriangulationTriangle3D *t)
install the menu associated with a triangle
virtual void select (TriangulationZone3D *z)
install the menu associated with a zone
virtual void select (TriangulationEdge *e)
install the menu associated with an edge
void unselect ()
uninstall the menu associated with a vertex, or an edge, or a triangle or a zone
static int subObject (TclObject *obj, Tcl_Interp *interp, int argc, char **argv)
triangulation global command

Public

Constructors
TclTriangulation3D (TclScene3D *scene, char *filename)
create an interface around a 3D Triangulation
TclTriangulation3D (unsigned int nbVertices, Vec3 *posTable, unsigned int nbTriangles, unsigned int **vertexTriangleTable, TclScene3D *scene)
build triangulation from an array of vertices and triangles and then delete the arrays
TclTriangulation3D (TclScene3D *scene, const std::type_info &info, Triangulation3D *t)
create an interface around a 3D Triangulation
destructor
virtual ~TclTriangulation3D ()
empty

Protected Fields

TclString menuFrame
menu frame name for selected subobjects
TclTriangulationVertex3D* vinterface
triangulation vertex interface
TclTriangulationEdge* einterface
triangulation edge interface
TclTriangulationTriangle3D* tinterface
triangulation triangle interface
TclTriangulationZone3D* zinterface
triangulation zone interface

Protected Methods

virtual void init (void)
constructor common code

Documentation

Tcl interface class to class Triangulation 3D
TclString menuFrame
menu frame name for selected subobjects

TclTriangulationVertex3D* vinterface
triangulation vertex interface

TclTriangulationEdge* einterface
triangulation edge interface

TclTriangulationTriangle3D* tinterface
triangulation triangle interface

TclTriangulationZone3D* zinterface
triangulation zone interface

Constructors

TclTriangulation3D(TclScene3D *scene, char *filename)
create an interface around a 3D Triangulation
Parameters:
scene - the Tclscene pointing on the scene where the Triangulation3D should be created
filename - the file name

TclTriangulation3D(unsigned int nbVertices, Vec3 *posTable, unsigned int nbTriangles, unsigned int **vertexTriangleTable, TclScene3D *scene)
build triangulation from an array of vertices and triangles and then delete the arrays
Parameters:
nbVertices - the number of vertices
posTable - an array of size nbVertices where we store the position of each vertex
nbTriangles - the number of triangles
vertexTriangleTable - the array of size nbTriangles that gives the each of each vertex (starting from 0 to nbVertices -1 ) of the triangle; vertexTriangleTable[i][j] is the ith (0scene - scene to build object in

TclTriangulation3D(TclScene3D *scene, const std::type_info &info, Triangulation3D *t)
create an interface around a 3D Triangulation
Parameters:
scene - the Tclscene pointing on the scene where the Triangulation3D should be created
info - the type info of Tcl interface that is really created (it must be a derived class from TclTriangulation3D
t - the 3D derived triangulation

destructor

virtual ~TclTriangulation3D()
empty

Triangulation3D* getClient(void) const
returns the FileTCL associated with this interface

TclScene3D* getScene(void) const
returns the TclScene3D associated with the TclTriangulation3D object

static int list(TclModule *m, int d, char **a)
raise ambiguity on list() function

static int create(TclModule *m, int argc, char **argv)
Tcl command to create the TclTriangulation3D

static void load(const TclString &filename, Scene3D *scn)
load function
Parameters:
filename - 3D Triangulation file name
scn - 3D scene where the Tcl interface is created

int destroyCmd(int argc, char **argv)
-destroy TCL command

int selectionModeCmd(int argc, char **argv)
-selectionMode TCL command

int saveCmd(int argc, char **argv)
-save TCL command

int saveOptionCmd(int argc, char **argv)
-saveOption TCL command

int loadOptionCmd(int argc, char **argv)
-loadOption TCL command

int nameCmd(int argc, char **argv)
-name TCL command

int colorCmd(int argc, char **argv)
-color TCL command

int materialCmd(int argc, char **argv)
-material TCL command

int selectedMaterialCmd(int argc, char **argv)
-selectedMaterial TCL command

int texture2DCmd(int argc, char **argv)
-texture2D TCL command

int texture1DCmd(int argc, char **argv)
-texture1D TCL command

int highlightTextureCmd(int argc, char **argv)
-highlightTexture TCL command

int texture2DOptionCmd(int argc, char **argv)
-texture2DOption TCL command

int texture1DOptionCmd(int argc, char **argv)
-texture1DOption TCL command

int renderCmd(int argc, char **argv)
-render TCL command

int renderOptionCmd(int argc, char **argv)
-renderOption TCL command

int zonesCmd(int argc, char **argv)
-zones TCL command

int flipNormalsCmd(int argc, char **argv)
-flipNormals TCL command

int sceneCmd(int argc, char **argv)
-scene TCL command

int scaleCmd(int argc, char **argv)
-scale TCL command

int translateCmd(int argc, char **argv)
-translate TCL command

int volumeCmd(int argc, char **argv)
-volume TCL command

int newZoneCmd(int argc, char **argv)
-newZone TCL command

int saveAsGHS3DCmd(int argc, char **argv)
-saveAsGHS3D TCL command

int saveAsTrianCmd(int argc, char **argv)
-saveAsTrian TCL command

int selectedZoneCmd(int argc, char **argv)
-selectedZone TCL command

int selectCmd(int argc, char **argv)
-select TCL command

int copyCmd(int argc, char **argv)
-copy TCL command

int holesCmd(int argc, char **argv)
-holes TCL command

int nbVerticesCmd(int argc, char **argv)
-nbVertices TCL command

void updateSelectionMenu()
add menu of selected items

virtual void select(TriangulationVertex3D *v)
install the menu associated with a vertex

virtual void select(TriangulationTriangle3D *t)
install the menu associated with a triangle

virtual void select(TriangulationZone3D *z)
install the menu associated with a zone

virtual void select(TriangulationEdge *e)
install the menu associated with an edge

void unselect()
uninstall the menu associated with a vertex, or an edge, or a triangle or a zone

static int subObject(TclObject *obj, Tcl_Interp *interp, int argc, char **argv)
triangulation global command
Parameters:
obj - triangulation interface this command is called on
interp - TCL interpretor to evaluate command
argc - command number of arguments
argv - command arguments list

virtual void init(void)
constructor common code


Direct child classes:
TclPrecomputedTriangulation3D
TclActiveTriangulation3D

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de