![]() |
VR-Forces 4.6 Class Documentation
|
The abstract base class for the various primitive styles. More...

Public Member Functions | |
| DtPrimitiveStyle (unsigned int vertexCountPerPrimitive) | |
| CTOR. | |
| virtual | ~DtPrimitiveStyle () |
| DTOR. | |
| virtual void | releaseResources () |
| Release all of the rendering resources. | |
| int | numberOfPrimitives () const |
| Get the number of primitives. | |
| virtual void | add (unsigned int *indexToUpdate) |
| Add an index pointer to keep up to date. | |
| virtual void | remove (unsigned int index) |
| Remove an index. | |
| virtual void | render (int mode, unsigned int groupCount, bool geocentric, float geocentricAlpha, const double cameraLocation[3], const double positionMatrix[16], const double projectionMatrix[16], int offset)=0 |
| Render the primitives. | |
| virtual void | update (int renderMode) |
| Update the style resources. | |
| virtual float * | vertexData () const =0 |
| Get the vertex data. | |
| virtual unsigned int | vertexDataSize () const =0 |
| Get total size of the vertex data in bytes. | |
| unsigned int | vertexCount () const |
| Get the number of vertices per primitive. | |
Vertex Attribute Setters and Getters | |
| virtual void | set3DVertexPosition (unsigned int index, unsigned int vertIndex, float x, float y, float z, float w)=0 |
| Sets the 3D position of the vertex. | |
| virtual void | get3DVertexPosition (unsigned int index, unsigned int vertex, float &x, float &y, float &z, float &w) const =0 |
| Gets the 3D position of the vertex. | |
| virtual void | set2DVertexPosition (unsigned int index, unsigned int vertIndex, float x, float y)=0 |
| Sets the 2D position (offset) of the vertex. | |
| virtual void | get2DVertexPosition (unsigned int index, unsigned int vertIndex, float &x, float &y) const =0 |
| Gets the 2D position (offset) of the vertex. | |
| virtual void | set2DOffsetRotation (unsigned int index, unsigned int vertIndex, float angle)=0 |
| Sets the rotation of the vertex's 2D offset. | |
| virtual void | get2DOffsetRotation (unsigned int index, unsigned int vertIndex, float &angle) const =0 |
| Gets the rotation of the vertex's 2D offset. | |
| virtual void | setColor (unsigned int index, unsigned int vertIndex, float r, float g, float b, float a)=0 |
| Sets the color of the vertex. | |
| virtual void | getColor (unsigned int index, unsigned int vertIndex, float &r, float &g, float &b, float &a) const =0 |
| Gets the color of the vertex. | |
| virtual void | setUVCoordinates (unsigned int index, unsigned int vertIndex, float u, float v)=0 |
| Sets the UV coordinate. | |
| virtual void | getUVCoordinates (unsigned int index, unsigned int vertIndex, float &u, float &v) const =0 |
| Gets the UV coordinate. | |
Primitive Attribute Setters and Getters | |
| virtual void | setFillParameters (unsigned int index, void *fill, unsigned int fullStipplePattern[32]=0)=0 |
| Sets the fill parameters for the primitive. | |
| virtual void | getFillParameters (unsigned int index, void *&fill, unsigned int fullStipplePattern[32]=0) const =0 |
| Gets the fill parameters for the primitive. | |
| virtual void | setGroup (unsigned int index, float zFactor)=0 |
| Sets the group for the primitive. | |
| virtual float | group (unsigned int index) const =0 |
| Gets the group for the primitive. | |
Protected Types | |
| typedef std::vector< unsigned int * > | IndexList |
Protected Attributes | |
| DtBufferObject * | myBufferObject |
| unsigned int | myVertexCount |
| IndexList | myProxyIndices |
The abstract base class for the various primitive styles.
|
protected |
|
virtual |
DTOR.
|
virtual |
Release all of the rendering resources.
| int makVrv::DtPrimitiveStyle::numberOfPrimitives | ( | ) | const |
Get the number of primitives.
Add an index pointer to keep up to date.
Reimplemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
Remove an index.
Reimplemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
|
pure virtual |
Render the primitives.
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
|
virtual |
Update the style resources.
Reimplemented in makVrv::DtStippledPrimitiveStyle.
|
pure virtual |
Sets the 3D position of the vertex.
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
|
pure virtual |
Gets the 3D position of the vertex.
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
|
pure virtual |
Sets the 2D position (offset) of the vertex.
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
|
pure virtual |
Gets the 2D position (offset) of the vertex.
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
|
pure virtual |
Sets the rotation of the vertex's 2D offset.
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
|
pure virtual |
Gets the rotation of the vertex's 2D offset.
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
|
pure virtual |
Sets the color of the vertex.
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
|
pure virtual |
Gets the color of the vertex.
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
|
pure virtual |
Sets the UV coordinate.
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
|
pure virtual |
Gets the UV coordinate.
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
|
pure virtual |
Sets the fill parameters for the primitive.
| index | the index of the primitive to set the fill param for. |
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
|
pure virtual |
Gets the fill parameters for the primitive.
| index | the index of the primitive to get the fill param for. |
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
Sets the group for the primitive.
| index | the index of the primitive to set the group for. |
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
Gets the group for the primitive.
| index | the index of the primitive to get the group for. |
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
|
pure virtual |
Get the vertex data.
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
Get total size of the vertex data in bytes.
Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.
Get the number of vertices per primitive.
|
protected |
|
protected |