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

Classes | |
| struct | StippledPrimitiveInfo |
| struct | StipplePattern |
Public Member Functions | |
| DtStippledPrimitiveStyle (DtOverlayResourceProvider &provider, unsigned int vertexCount) | |
| CTOR. | |
| virtual | ~DtStippledPrimitiveStyle () |
| Virtual DTOR. | |
| virtual void | add (unsigned int *) |
| 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]=0, const double positionMatrix[16]=0, int offset=0) |
| Render the primitives. | |
| virtual void | update (int renderMode) |
| Update the style resources. | |
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. | |
| 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. | |
| virtual void | set2DVertexPosition (unsigned int index, unsigned int vertex, float x, float y) |
| Sets the 2D position (offset) of the vertex. | |
| virtual void | get2DVertexPosition (unsigned int index, unsigned int vertex, float &x, float &y) const |
| Gets the 2D position (offset) of the vertex. | |
| virtual void | set2DOffsetRotation (unsigned int index, unsigned int vertIndex, float angle) |
| Sets the rotation of the vertex's 2D offset. | |
| virtual void | get2DOffsetRotation (unsigned int index, unsigned int vertIndex, float &angle) const |
| 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) |
| Sets the color of the vertex. | |
| virtual void | getColor (unsigned int index, unsigned int vertIndex, float &r, float &g, float &b, float &a) const |
| Gets the color of the vertex. | |
| virtual void | setUVCoordinates (unsigned int index, unsigned int vertIndex, float u, float v) |
| Sets the UV coordinate, does nothing. | |
| virtual void | getUVCoordinates (unsigned int index, unsigned int vertIndex, float &u, float &v) const |
| Gets the UV coordinate, returns nothing. | |
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). | |
| virtual void | getFillParameters (unsigned int index, void *&fill, unsigned int fullStipplePattern[32]=0) const |
| Gets the fill parameters for the primitive (no-op). | |
| virtual void | setGroup (unsigned int index, float zFactor) |
| Sets the group for the primitive. | |
| virtual float | group (unsigned int index) const |
| Gets the group for the primitive. | |
Protected Types | |
| typedef std::vector < DtOffsetColoredVertex > | VertexList |
| typedef std::vector < StippledPrimitiveInfo > | StippledPrimitiveInfoList |
| typedef std::map < StipplePattern, std::vector < unsigned int > > | StippleIndexMap |
Protected Member Functions | |
| virtual float * | vertexData () const |
| Get the vertex data. | |
| virtual unsigned int | vertexDataSize () const |
| Get total size of the vertex data in bytes. | |
Protected Attributes | |
| DtOverlayResourceProvider & | myResourceProvider |
| VertexList | myStippleVertices |
| StippledPrimitiveInfoList | myStipplePrimitives |
| StippleIndexMap | myStippleIndexMap |
| DtProjected2DFlatEffect * | myEffect |
A style for drawing quads with a stipple pattern.
typedef std::vector<DtOffsetColoredVertex> makVrv::DtStippledPrimitiveStyle::VertexList [protected] |
typedef std::vector<StippledPrimitiveInfo> makVrv::DtStippledPrimitiveStyle::StippledPrimitiveInfoList [protected] |
typedef std::map< StipplePattern, std::vector<unsigned int> > makVrv::DtStippledPrimitiveStyle::StippleIndexMap [protected] |
| makVrv::DtStippledPrimitiveStyle::DtStippledPrimitiveStyle | ( | DtOverlayResourceProvider & | provider, |
| unsigned int | vertexCount | ||
| ) |
CTOR.
| virtual makVrv::DtStippledPrimitiveStyle::~DtStippledPrimitiveStyle | ( | ) | [virtual] |
Virtual DTOR.
| virtual void makVrv::DtStippledPrimitiveStyle::add | ( | unsigned int * | ) | [virtual] |
Add an index pointer to keep up to date.
Reimplemented from makVrv::DtPrimitiveStyle.
| virtual void makVrv::DtStippledPrimitiveStyle::remove | ( | unsigned int | index | ) | [virtual] |
Remove an index.
Reimplemented from makVrv::DtPrimitiveStyle.
| virtual void makVrv::DtStippledPrimitiveStyle::render | ( | int | mode, |
| unsigned int | groupCount, | ||
| bool | geocentric, | ||
| float | geocentricAlpha, | ||
| const double | cameraLocation[3] = 0, |
||
| const double | positionMatrix[16] = 0, |
||
| int | offset = 0 |
||
| ) | [virtual] |
Render the primitives.
Implements makVrv::DtPrimitiveStyle.
| virtual void makVrv::DtStippledPrimitiveStyle::update | ( | int | renderMode | ) | [virtual] |
Update the style resources.
Reimplemented from makVrv::DtPrimitiveStyle.
| virtual void makVrv::DtStippledPrimitiveStyle::set3DVertexPosition | ( | unsigned int | index, |
| unsigned int | vertex, | ||
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | w = 0 |
||
| ) | [virtual] |
Sets the 3D position of the vertex.
Implements makVrv::DtPrimitiveStyle.
| virtual void makVrv::DtStippledPrimitiveStyle::get3DVertexPosition | ( | unsigned int | index, |
| unsigned int | vertex, | ||
| float & | x, | ||
| float & | y, | ||
| float & | z, | ||
| float & | w | ||
| ) | const [virtual] |
Gets the 3D position of the vertex.
Implements makVrv::DtPrimitiveStyle.
| virtual void makVrv::DtStippledPrimitiveStyle::set2DVertexPosition | ( | unsigned int | index, |
| unsigned int | vertex, | ||
| float | x, | ||
| float | y | ||
| ) | [virtual] |
Sets the 2D position (offset) of the vertex.
Implements makVrv::DtPrimitiveStyle.
| virtual void makVrv::DtStippledPrimitiveStyle::get2DVertexPosition | ( | unsigned int | index, |
| unsigned int | vertex, | ||
| float & | x, | ||
| float & | y | ||
| ) | const [virtual] |
Gets the 2D position (offset) of the vertex.
Implements makVrv::DtPrimitiveStyle.
| virtual void makVrv::DtStippledPrimitiveStyle::set2DOffsetRotation | ( | unsigned int | index, |
| unsigned int | vertIndex, | ||
| float | angle | ||
| ) | [virtual] |
Sets the rotation of the vertex's 2D offset.
Implements makVrv::DtPrimitiveStyle.
| virtual void makVrv::DtStippledPrimitiveStyle::get2DOffsetRotation | ( | unsigned int | index, |
| unsigned int | vertIndex, | ||
| float & | angle | ||
| ) | const [virtual] |
Gets the rotation of the vertex's 2D offset.
Implements makVrv::DtPrimitiveStyle.
| virtual void makVrv::DtStippledPrimitiveStyle::setColor | ( | unsigned int | index, |
| unsigned int | vertIndex, | ||
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Sets the color of the vertex.
Implements makVrv::DtPrimitiveStyle.
| virtual void makVrv::DtStippledPrimitiveStyle::getColor | ( | unsigned int | index, |
| unsigned int | vertIndex, | ||
| float & | r, | ||
| float & | g, | ||
| float & | b, | ||
| float & | a | ||
| ) | const [virtual] |
Gets the color of the vertex.
Implements makVrv::DtPrimitiveStyle.
| virtual void makVrv::DtStippledPrimitiveStyle::setUVCoordinates | ( | unsigned int | index, |
| unsigned int | vertIndex, | ||
| float | u, | ||
| float | v | ||
| ) | [virtual] |
Sets the UV coordinate, does nothing.
Implements makVrv::DtPrimitiveStyle.
| virtual void makVrv::DtStippledPrimitiveStyle::getUVCoordinates | ( | unsigned int | index, |
| unsigned int | vertIndex, | ||
| float & | u, | ||
| float & | v | ||
| ) | const [virtual] |
Gets the UV coordinate, returns nothing.
Implements makVrv::DtPrimitiveStyle.
| virtual void makVrv::DtStippledPrimitiveStyle::setFillParameters | ( | unsigned int | index, |
| void * | fill, | ||
| unsigned int | fullStipplePattern[32] = 0 |
||
| ) | [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 void makVrv::DtStippledPrimitiveStyle::getFillParameters | ( | unsigned int | index, |
| void *& | fill, | ||
| unsigned int | fullStipplePattern[32] = 0 |
||
| ) | const [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 void makVrv::DtStippledPrimitiveStyle::setGroup | ( | unsigned int | index, |
| float | zFactor | ||
| ) | [virtual] |
Sets the group for the primitive.
| index | the index of the primitive to set the group for. |
Implements makVrv::DtPrimitiveStyle.
| virtual float makVrv::DtStippledPrimitiveStyle::group | ( | unsigned int | index | ) | const [virtual] |
Gets the group for the primitive.
| index | the index of the primitive to get the group for. |
Implements makVrv::DtPrimitiveStyle.
| virtual float* makVrv::DtStippledPrimitiveStyle::vertexData | ( | ) | const [protected, virtual] |
Get the vertex data.
Implements makVrv::DtPrimitiveStyle.
| virtual unsigned int makVrv::DtStippledPrimitiveStyle::vertexDataSize | ( | ) | const [protected, virtual] |
Get total size of the vertex data in bytes.
Implements makVrv::DtPrimitiveStyle.