ScEng::PolyUVWMesh Class Reference

A Polygonal Mesh to hold the UVW data. More...

#include <polymesh.h>

List of all members.

Public Types

enum  DATA { POLYUVWMESH_UVW = 100, COLOR = 200, USER = 300 }
enum  FLAGS { USER_FLAGS = (1<<16) }

Public Member Functions

 PolyUVWMesh ()
void DeleteThis ()
 Deletes this class.
void SetNumTVerts (int n_tv)
int GetNumTVerts ()
 Returns the number of tverts.
void SetTVert (int i_tv, float x, float y, float z)
void SetTVert (int i_tv, GMT::Point3F tv)
Vert GetTVert (int i_v)
GMT::Point3F GetTVertPosition (int i_v)
void SetNumTFaces (int n_tf)
int GetNumTFaces ()
 Returns the number of tfaces.
int Save (SceneSave *scene_save)
 Saves the info for this class.
int Load (SceneLoad *scene_load)
 Loads the info for this class.

Public Attributes

PolyUVWFacetfaces
 The faces for this mesh.
Verttverts
 The array of verts.
int num_tverts
 The number of verts.
int num_tfaces
 The number of faces.


Detailed Description

A Polygonal Mesh to hold the UVW data.

Please add comments here


Member Enumeration Documentation

enum ScEng::PolyUVWMesh::DATA

Enum Data Please add comments here

Enumerator:
POLYUVWMESH_UVW  Please add comments here
COLOR  Please add comments here
USER  Please add comments here

enum ScEng::PolyUVWMesh::FLAGS

Enum FLAGS Enum all the possible states for PolyUVWMesh

Enumerator:
USER_FLAGS  User flags


Constructor & Destructor Documentation

ScEng::PolyUVWMesh::PolyUVWMesh (  ) 

Constructor Sets the number of tverts and tfaces to 0, and sets the tfaces and tverts arrays to NULL.


Member Function Documentation

void ScEng::PolyUVWMesh::SetNumTVerts ( int  n_tv  ) 

Sets the number of tverts Deletes the current vertex info, sets the number of tverts and allocates the memory for the tverts array.

Parameters:
n_tv the new number of tverts

void ScEng::PolyUVWMesh::SetTVert ( int  i_tv,
float  x,
float  y,
float  z 
)

Sets a tvert

Parameters:
i_tv the index for the tvert
x the x position for the tvert
y the y position for the tvert
z the z position for the tvert
See also:
SetTVert( int i_tv, GMT::Point3F tv )

void ScEng::PolyUVWMesh::SetTVert ( int  i_tv,
GMT::Point3F  tv 
)

Sets a tvert

Parameters:
i_tv the index for the tvert
tv the position of the vert
See also:
SetTVert(int i_tv,float x,float y,float z)

Vert ScEng::PolyUVWMesh::GetTVert ( int  i_v  ) 

Returns the specific tvert

Parameters:
i_v the index for the tvert in the tverts array
Returns:
Returns the specified Vert
See also:
GetTVertPosition(int i_v)

GMT::Point3F ScEng::PolyUVWMesh::GetTVertPosition ( int  i_v  ) 

Retunrs the position for the specific tvert

Parameters:
i_v the index for the tvert in the tverts array
Returns:
The position of the tvert
See also:
GetTVert(int i_v)

void ScEng::PolyUVWMesh::SetNumTFaces ( int  n_tf  ) 

Sets the number of tfaces Deletes the current faces info, sets the number of tfaces and allocates the memory for the tfaces array.

Parameters:
n_tf the new number of tfaces


The documentation for this class was generated from the following files:
Generated on Thu Sep 6 10:49:23 2007 for SceneEngine by  doxygen 1.5.1-p1