![]() |
VR-Forces 4.5 Class Documentation
|
A flyweight class for controlling a triangle owned by the triangle renderer. More...
Public Member Functions | |
| ~DtTriangleProxy () | |
| DTOR. | |
| void | setGroup (float order) |
| Set the order. | |
| float | group () const |
| Get the group. | |
| void | set3DPositions (float x1, float y1, float z1, float w1, float x2, float y2, float z2, float w2, float x3, float y3, float z3, float w3) |
| Sets the 3D position of the triangle. (As packed vec4s). | |
| void | set3DPosition (float x, float y, float z, float w) |
| Sets the 3D position of the triangle (As a packed vec 4), this is equivalent of setting the position of all vertices to the same 3D value. | |
| void | set3DPosition (unsigned int index, float x, float y, float z, float w) |
| Sets the 3D position of a vertex in the triangle. (As a packed vec 4). | |
| void | get3DPosition (unsigned int index, float &x, float &y, float &z, float &w) |
| Gets the 3D position of a vertex in the triangle. | |
| void | set2DPositions (float x1, float y1, float x2, float y2, float x3, float y3) |
| Set the 2D position, encoded as xyz triplets. | |
| void | set2DPosition (unsigned int index, float x, float y) |
| Set a specific 2D position. | |
| void | get2DPosition (unsigned int index, float &x, float &y) const |
| Get the 2D position of the given vertex. | |
| void | setStyle (int style) |
| Set the style. | |
| int | style () const |
| Get the current style. | |
| void | setColor (unsigned int vertIndex, float r, float g, float b, float a) |
| Sets the color of the given vertex. | |
| void | setColor (float r, float g, float b, float a) |
| Set the color of all vertices. | |
| void | getColor (float &r, float &g, float &b, float &a) const |
| Get the color of the central vertex. | |
| void | setFillParameters (unsigned int fill, unsigned int fullStipplePattern[32]=0) |
| Set the fill parameters. | |
| void | setIndex (unsigned int index) |
| Get the internal index of this proxy. | |
| unsigned int | index () const |
| Get the internal index of this proxy. | |
Protected Member Functions | |
| DtTriangleProxy (DtTriangleRenderer &renderer, unsigned int style) | |
| CTOR. | |
Protected Attributes | |
| DtTriangleRenderer * | myParent |
| unsigned int | myIndex |
| unsigned char | myStyle |
| bool | myDirtyBit |
Friends | |
| class | DtTriangleRenderer |
A flyweight class for controlling a triangle owned by the triangle renderer.
| makVrv::DtTriangleProxy::~DtTriangleProxy | ( | ) |
DTOR.
|
protected |
CTOR.
| void makVrv::DtTriangleProxy::setGroup | ( | float | order | ) |
Set the order.
| float makVrv::DtTriangleProxy::group | ( | ) | const |
Get the group.
| void makVrv::DtTriangleProxy::set3DPositions | ( | float | x1, |
| float | y1, | ||
| float | z1, | ||
| float | w1, | ||
| float | x2, | ||
| float | y2, | ||
| float | z2, | ||
| float | w2, | ||
| float | x3, | ||
| float | y3, | ||
| float | z3, | ||
| float | w3 | ||
| ) |
Sets the 3D position of the triangle. (As packed vec4s).
| void makVrv::DtTriangleProxy::set3DPosition | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | w | ||
| ) |
Sets the 3D position of the triangle (As a packed vec 4), this is equivalent of setting the position of all vertices to the same 3D value.
| void makVrv::DtTriangleProxy::set3DPosition | ( | unsigned int | index, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | w | ||
| ) |
Sets the 3D position of a vertex in the triangle. (As a packed vec 4).
| void makVrv::DtTriangleProxy::get3DPosition | ( | unsigned int | index, |
| float & | x, | ||
| float & | y, | ||
| float & | z, | ||
| float & | w | ||
| ) |
Gets the 3D position of a vertex in the triangle.
| void makVrv::DtTriangleProxy::set2DPositions | ( | float | x1, |
| float | y1, | ||
| float | x2, | ||
| float | y2, | ||
| float | x3, | ||
| float | y3 | ||
| ) |
Set the 2D position, encoded as xyz triplets.
| void makVrv::DtTriangleProxy::set2DPosition | ( | unsigned int | index, |
| float | x, | ||
| float | y | ||
| ) |
Set a specific 2D position.
| void makVrv::DtTriangleProxy::get2DPosition | ( | unsigned int | index, |
| float & | x, | ||
| float & | y | ||
| ) | const |
Get the 2D position of the given vertex.
| void makVrv::DtTriangleProxy::setStyle | ( | int | style | ) |
Set the style.
| int makVrv::DtTriangleProxy::style | ( | ) | const |
Get the current style.
| void makVrv::DtTriangleProxy::setColor | ( | unsigned int | vertIndex, |
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
Sets the color of the given vertex.
| void makVrv::DtTriangleProxy::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
Set the color of all vertices.
| void makVrv::DtTriangleProxy::getColor | ( | float & | r, |
| float & | g, | ||
| float & | b, | ||
| float & | a | ||
| ) | const |
Get the color of the central vertex.
| void makVrv::DtTriangleProxy::setFillParameters | ( | unsigned int | fill, |
| unsigned int | fullStipplePattern[32] = 0 |
||
| ) |
Set the fill parameters.
| void makVrv::DtTriangleProxy::setIndex | ( | unsigned int | index | ) |
Get the internal index of this proxy.
| unsigned int makVrv::DtTriangleProxy::index | ( | ) | const |
Get the internal index of this proxy.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |