![]() |
VR-Forces 4.10 Class Documentation
|

Public Types | |
| enum | PrimType { Points, LineStrips, LineLoops, Lines, Polygons, TriStrips, TriFans, Triangles, QuadStrips, Quads } |
| enum | { VertexFloat, VertexDouble, NormalFloat, NormalDouble, Color, TextureFloat, TextureDouble, EdgeFlag } |
| These are primitive types used within the trpgGeometry structure. More... | |
| enum | DataType { FloatData, DoubleData } |
| enum | BindType { Overall, PerPrim, PerVertex } |
| enum | ColorType { Ambient, Diffuse, Specular, Emission } |
Public Member Functions | |
| trpgGeometry (void) | |
| ~trpgGeometry (void) | |
| void | SetPrimType (PrimType type) |
| Set the primitive type for the geometry node. More... | |
| void | SetPrimLengths (int, const int *) |
| void | AddPrimLength (int) |
| void | AddPrim (void) |
| void | SetNumPrims (int) |
| void | SetNumMaterial (int) |
| Only when there are no primitive lengths. More... | |
| void | SetMaterial (int which, int matID, bool isLocal=false) |
| void | SetMaterials (int32 numMat, const int32 *matIDs) |
| int | AddMaterial (int matID) |
| void | SetVertices (int num, const float32 *) |
| void | SetVertices (int num, const float64 *) |
| void | AddVertex (DataType type, trpg3dPoint &) |
| void | SetNormals (int num, BindType bind, const float32 *) |
| void | SetNormals (int num, BindType bind, const float64 *) |
| void | AddNormal (DataType type, trpg3dPoint &) |
| void | SetColors (int num, ColorType type, BindType bind, const trpgColor *) |
| void | SetTexCoords (int num, BindType bind, const float32 *) |
| void | SetTexCoords (int num, BindType bind, const float64 *) |
| void | AddTexCoords (BindType bind) |
| void | AddTexCoord (DataType type, trpg2dPoint &, int n=0) |
| void | AddTexCoord (DataType type, std::vector< trpg2dPoint > &pts) |
| void | SetEdgeFlags (int num, const char *) |
| bool | GetPrimType (PrimType &type) const |
| bool | GetNumPrims (int &num) const |
| bool | GetPrimLengths (int *lenArray) const |
| bool | GetNumMaterial (int &num) const |
| bool | GetMaterial (int num, int32 &matID, bool &isLocal) const |
| bool | GetNumVertex (int &num) const |
| bool | GetVertices (float32 *) const |
| bool | GetVertices (float64 *) const |
| bool | GetVertex (int id, trpg3dPoint &) const |
| bool | GetNumNormal (int &num) const |
| bool | GetNormals (float32 *) const |
| bool | GetNormals (float64 *) const |
| bool | GetNumColorSets (int &num) const |
| bool | GetColorSet (int id, trpgColorInfo *) const |
| bool | GetNumTexCoordSets (int &) const |
| bool | GetTexCoordSet (int id, trpgTexData *) const |
| const trpgTexData * | GetTexCoordSet (int id) const |
| bool | GetNumEdgeFlag (int &num) const |
| bool | GetEdgeFlags (char *) const |
| bool | isValid (void) const |
| Returns true if the trpgGeometry structure is valid. More... | |
| void | Reset (void) |
| Resets the contents back to empty. More... | |
| bool | Write (trpgWriteBuffer &) |
| Write self to a buffer. More... | |
| bool | Read (trpgReadBuffer &) |
| Read self from a buffer. Check isValid() afterwards. More... | |
| bool | Print (trpgPrintBuffer &) const |
| Prints this class to a print buffer. More... | |
Public Member Functions inherited from trpgReadWriteable | |
| trpgReadWriteable () | |
| const char * | getErrMess () const |
Public Member Functions inherited from trpgCheckable | |
| trpgCheckable (void) | |
| virtual | ~trpgCheckable (void) |
| bool | isValid (void) const |
| Returns the state of the valid flag, or can be overriden by a subclass to do a more complex check. More... | |
| virtual TeAttrHdl | GetHandle () const |
| virtual void | SetHandle (TeAttrHdl hdl) |
Protected Attributes | |
| int | primType |
| int | numPrim |
| std::vector< int > | primLength |
| std::vector< int > | materials |
| std::vector< float > | vertDataFloat |
| std::vector< double > | vertDataDouble |
| int | normBind |
| std::vector< float > | normDataFloat |
| std::vector< double > | normDataDouble |
| std::vector< trpgColorInfo > | colors |
| std::vector< trpgTexData > | texData |
| std::vector< char > | edgeFlags |
Protected Attributes inherited from trpgReadWriteable | |
| char | errMess [512] |
Protected Attributes inherited from trpgCheckable | |
| bool | valid |
| TeAttrHdl | handle |
| bool | writeHandle |
| anonymous enum |
These are primitive types used within the trpgGeometry structure.
| Enumerator | |
|---|---|
| VertexFloat | |
| VertexDouble | |
| NormalFloat | |
| NormalDouble | |
| Color | |
| TextureFloat | |
| TextureDouble | |
| EdgeFlag | |
| trpgGeometry::trpgGeometry | ( | void | ) |
| trpgGeometry::~trpgGeometry | ( | void | ) |
| void trpgGeometry::SetPrimType | ( | PrimType | type | ) |
Set the primitive type for the geometry node.
| void trpgGeometry::AddPrimLength | ( | int | ) |
| void trpgGeometry::AddPrim | ( | void | ) |
| void trpgGeometry::SetNumPrims | ( | int | ) |
| void trpgGeometry::SetNumMaterial | ( | int | ) |
Only when there are no primitive lengths.
| void trpgGeometry::AddVertex | ( | DataType | type, |
| trpg3dPoint & | |||
| ) |
| void trpgGeometry::AddNormal | ( | DataType | type, |
| trpg3dPoint & | |||
| ) |
| void trpgGeometry::AddTexCoords | ( | BindType | bind | ) |
| void trpgGeometry::AddTexCoord | ( | DataType | type, |
| trpg2dPoint & | , | ||
| int | n = 0 |
||
| ) |
| void trpgGeometry::AddTexCoord | ( | DataType | type, |
| std::vector< trpg2dPoint > & | pts | ||
| ) |
| bool trpgGeometry::GetVertex | ( | int | id, |
| trpg3dPoint & | |||
| ) | const |
| bool trpgGeometry::GetColorSet | ( | int | id, |
| trpgColorInfo * | |||
| ) | const |
| bool trpgGeometry::GetTexCoordSet | ( | int | id, |
| trpgTexData * | |||
| ) | const |
| const trpgTexData* trpgGeometry::GetTexCoordSet | ( | int | id | ) | const |
| bool trpgGeometry::isValid | ( | void | ) | const |
Returns true if the trpgGeometry structure is valid.
|
virtual |
Resets the contents back to empty.
Implements trpgReadWriteable.
|
virtual |
Write self to a buffer.
Implements trpgReadWriteable.
|
virtual |
Read self from a buffer. Check isValid() afterwards.
Reimplemented from trpgReadWriteable.
|
virtual |
Prints this class to a print buffer.
Reimplemented from trpgReadWriteable.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |