![]() |
VR-Forces 4.10 Class Documentation
|
A style for drawing quads with a stipple pattern. More...

Classes | |
| struct | SortPrimitives |
| Sorts primitives by their group, used to make sure the indices are in the correct order. More... | |
| struct | StippledPrimitiveInfo |
| struct | StipplePattern |
Public Member Functions | |
| DtStippledPrimitiveStyle (DtOverlayResourceProvider &provider, unsigned int vertexCount) | |
| CTOR. More... | |
| virtual | ~DtStippledPrimitiveStyle () |
| Virtual DTOR. More... | |
| virtual void | add (unsigned int *) |
| Add an index pointer to keep up to date. More... | |
| virtual void | remove (unsigned int index) |
| Remove an index. More... | |
| 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) |
| Render the primitives. More... | |
| virtual void | update (int renderMode) |
| Update the style resources. More... | |
Vertex Attribute Setters and Getters | |
| virtual void | set3DVertexPosition (unsigned int index, unsigned int vertex, float x, float y, float z, float w=0) |
| Sets the 3D position of the vertex. More... | |
| virtual void | set3DVertexQuadPositions (unsigned int index, float x, float y, float z, float w) |
| Sets the 3D position of the vertex for a quad (sets vertex 0,1,2,3) More... | |
| virtual void | get3DVertexPosition (unsigned int index, unsigned int vertex, float &x, float &y, float &z, float &w) const |
| Gets the 3D position of the vertex. More... | |
| virtual void | set2DVertexPosition (unsigned int index, unsigned int vertex, float x, float y) |
| Sets the 2D position (offset) of the vertex. More... | |
| virtual void | get2DVertexPosition (unsigned int index, unsigned int vertex, float &x, float &y) const |
| Gets the 2D position (offset) of the vertex. More... | |
| virtual void | set2DOffsetRotation (unsigned int index, unsigned int vertIndex, float angle) |
| Sets the rotation of the vertex's 2D offset. More... | |
| virtual void | get2DOffsetRotation (unsigned int index, unsigned int vertIndex, float &angle) const |
| Gets the rotation of the vertex's 2D offset. More... | |
| virtual void | setColor (unsigned int index, unsigned int vertIndex, float r, float g, float b, float a) |
| Sets the color of the vertex. More... | |
| virtual void | getColor (unsigned int index, unsigned int vertIndex, float &r, float &g, float &b, float &a) const |
| Gets the color of the vertex. More... | |
| virtual void | setUVCoordinates (unsigned int index, unsigned int vertIndex, float u, float v) |
| Sets the UV coordinate, does nothing. More... | |
| virtual void | getUVCoordinates (unsigned int index, unsigned int vertIndex, float &u, float &v) const |
| Gets the UV coordinate, returns nothing. More... | |
Primitive Attribute Setters and Getters | |
| virtual void | setFillParameters (unsigned int index, void *fill, unsigned int fullStipplePattern[32]=0) |
| Sets the fill parameters for the primitive (no-op). More... | |
| virtual void | getFillParameters (unsigned int index, void *&fill, unsigned int fullStipplePattern[32]=0) const |
| Gets the fill parameters for the primitive (no-op). More... | |
| virtual void | setGroup (unsigned int index, float zFactor) |
| Sets the group for the primitive. More... | |
| virtual float | group (unsigned int index) const |
| Gets the group for the primitive. More... | |
Public Member Functions inherited from makVrv::DtPrimitiveStyle | |
| DtPrimitiveStyle (unsigned int vertexCountPerPrimitive) | |
| CTOR. More... | |
| virtual | ~DtPrimitiveStyle () |
| DTOR. More... | |
| virtual void | releaseResources () |
| Release all of the rendering resources. More... | |
| int | numberOfPrimitives () const |
| Get the number of primitives. More... | |
| unsigned int | vertexCount () const |
| Get the number of vertices per primitive. More... | |
Protected Types | |
| typedef std::vector < DtOffsetColoredVertex > | VertexList |
| typedef std::vector < StippledPrimitiveInfo > | StippledPrimitiveInfoList |
| typedef std::map < StipplePattern, std::vector < unsigned int > > | StippleIndexMap |
Protected Types inherited from makVrv::DtPrimitiveStyle | |
| typedef std::vector< unsigned int * > | IndexList |
Protected Member Functions | |
| virtual float * | vertexData () const |
| Get the vertex data. More... | |
| virtual unsigned int | vertexDataSize () const |
| Get total size of the vertex data in bytes. More... | |
A style for drawing quads with a stipple pattern.
|
protected |
|
protected |
|
protected |
| makVrv::DtStippledPrimitiveStyle::DtStippledPrimitiveStyle | ( | DtOverlayResourceProvider & | provider, |
| unsigned int | vertexCount | ||
| ) |
CTOR.
|
virtual |
Virtual DTOR.
Add an index pointer to keep up to date.
Reimplemented from makVrv::DtPrimitiveStyle.
Remove an index.
Reimplemented from makVrv::DtPrimitiveStyle.
|
virtual |
Render the primitives.
Implements makVrv::DtPrimitiveStyle.
|
virtual |
Update the style resources.
Reimplemented from makVrv::DtPrimitiveStyle.
|
virtual |
Sets the 3D position of the vertex.
Implements makVrv::DtPrimitiveStyle.
|
virtual |
Sets the 3D position of the vertex for a quad (sets vertex 0,1,2,3)
Implements makVrv::DtPrimitiveStyle.
|
virtual |
Gets the 3D position of the vertex.
Implements makVrv::DtPrimitiveStyle.
|
virtual |
Sets the 2D position (offset) of the vertex.
Implements makVrv::DtPrimitiveStyle.
|
virtual |
Gets the 2D position (offset) of the vertex.
Implements makVrv::DtPrimitiveStyle.
|
virtual |
Sets the rotation of the vertex's 2D offset.
Implements makVrv::DtPrimitiveStyle.
|
virtual |
Gets the rotation of the vertex's 2D offset.
Implements makVrv::DtPrimitiveStyle.
|
virtual |
Sets the color of the vertex.
Implements makVrv::DtPrimitiveStyle.
|
virtual |
Gets the color of the vertex.
Implements makVrv::DtPrimitiveStyle.
|
virtual |
Sets the UV coordinate, does nothing.
Implements makVrv::DtPrimitiveStyle.
|
virtual |
Gets the UV coordinate, returns nothing.
Implements makVrv::DtPrimitiveStyle.
|
virtual |
Sets the fill parameters for the primitive (no-op).
| index | the index of the primitive to set the fill param for. |
Implements makVrv::DtPrimitiveStyle.
|
virtual |
Gets the fill parameters for the primitive (no-op).
| index | the index of the primitive to get the fill param for. |
Implements makVrv::DtPrimitiveStyle.
|
virtual |
Sets the group for the primitive.
| index | the index of the primitive to set the group for. |
Implements makVrv::DtPrimitiveStyle.
Gets the group for the primitive.
| index | the index of the primitive to get the group for. |
Implements makVrv::DtPrimitiveStyle.
|
protectedvirtual |
Get the vertex data.
Implements makVrv::DtPrimitiveStyle.
Get total size of the vertex data in bytes.
Implements makVrv::DtPrimitiveStyle.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |