A flyweight class for controlling a single quad owned by the DtQuadRenderer.
More...
Public Member Functions |
| | ~DtQuadProxy () |
| void | setGroup (float order) |
| | Set the order.
|
| float | group () const |
| | Get the group.
|
| void | set3DPosition (int index, float x, float y, float z, float w) |
| | Set the position at the given index of the quad (points 0 - 3)
|
| void | set3DPosition (float x, float y, float z, float w=0) |
| | Sets the same position at all points in the quad.
|
| void | get3DPosition (float &x, float &y, float &z, float &w) const |
| | Get the position.
|
| void | set2DRotation (float angle) |
| | Set the rotation.
|
| void | get2DRotation (float &angle) const |
| | Get the rotation.
|
| void | setPoints (const float points[8]) |
| | Set the 2d vertices.
|
| void | getPoints (float points[8]) const |
| | Get the 2d vertices.
|
| void | setBounds (const float bounds[4]) |
| | Set the 2d vertices by size.
|
| void | getBounds (float bounds[4]) const |
| | Get the size.
|
| void | setStyle (int style) |
| | Set the style.
|
| int | style () const |
| | Get the current style.
|
| void | setColor (float r, float g, float b, float a) |
| | Set the color.
|
| void | getColor (float &r, float &g, float &b, float &a) const |
| | Get the color.
|
| void | setStippleParameters (unsigned int fill, unsigned int fullStipplePattern[32]=0) |
| | Set the fill parameters.
|
| void | setTextureParameters (void *textureHangle, float left=0.0f, float right=1.0f, float bottom=0.0f, float top=1.0f) |
| | Set the texture parameter.
|
| void * | textureHandle () const |
| | Get the texture handle.
|
| unsigned int | index () const |
| | Get the internal index of this proxy.
|
| void | setIndex (unsigned int index) |
| | Get the internal index of this proxy.
|
Static Protected Member Functions |
| static void | getBoundsFromPoints (float bounds[4], const float points[8]) |
| | Get the bounding values for a quad's points.
|
Detailed Description
A flyweight class for controlling a single quad owned by the DtQuadRenderer.
Constructor & Destructor Documentation
| makVrv::DtQuadProxy::~DtQuadProxy |
( |
| ) |
|
Member Function Documentation
| void makVrv::DtQuadProxy::setGroup |
( |
float |
order | ) |
|
| float makVrv::DtQuadProxy::group |
( |
| ) |
const |
| void makVrv::DtQuadProxy::set3DPosition |
( |
int |
index, |
|
|
float |
x, |
|
|
float |
y, |
|
|
float |
z, |
|
|
float |
w |
|
) |
| |
Set the position at the given index of the quad (points 0 - 3)
| void makVrv::DtQuadProxy::set3DPosition |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z, |
|
|
float |
w = 0 |
|
) |
| |
Sets the same position at all points in the quad.
| void makVrv::DtQuadProxy::get3DPosition |
( |
float & |
x, |
|
|
float & |
y, |
|
|
float & |
z, |
|
|
float & |
w |
|
) |
| const |
| void makVrv::DtQuadProxy::set2DRotation |
( |
float |
angle | ) |
|
| void makVrv::DtQuadProxy::get2DRotation |
( |
float & |
angle | ) |
const |
| void makVrv::DtQuadProxy::setPoints |
( |
const float |
points[8] | ) |
|
| void makVrv::DtQuadProxy::getPoints |
( |
float |
points[8] | ) |
const |
| void makVrv::DtQuadProxy::setBounds |
( |
const float |
bounds[4] | ) |
|
Set the 2d vertices by size.
| void makVrv::DtQuadProxy::getBounds |
( |
float |
bounds[4] | ) |
const |
| void makVrv::DtQuadProxy::setStyle |
( |
int |
style | ) |
|
| int makVrv::DtQuadProxy::style |
( |
| ) |
const |
| void makVrv::DtQuadProxy::setColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
| void makVrv::DtQuadProxy::getColor |
( |
float & |
r, |
|
|
float & |
g, |
|
|
float & |
b, |
|
|
float & |
a |
|
) |
| const |
| void makVrv::DtQuadProxy::setStippleParameters |
( |
unsigned int |
fill, |
|
|
unsigned int |
fullStipplePattern[32] = 0 |
|
) |
| |
| void makVrv::DtQuadProxy::setTextureParameters |
( |
void * |
textureHangle, |
|
|
float |
left = 0.0f, |
|
|
float |
right = 1.0f, |
|
|
float |
bottom = 0.0f, |
|
|
float |
top = 1.0f |
|
) |
| |
Set the texture parameter.
| void* makVrv::DtQuadProxy::textureHandle |
( |
| ) |
const |
| unsigned int makVrv::DtQuadProxy::index |
( |
| ) |
const |
Get the internal index of this proxy.
| void makVrv::DtQuadProxy::setIndex |
( |
unsigned int |
index | ) |
|
Get the internal index of this proxy.
| static void makVrv::DtQuadProxy::getBoundsFromPoints |
( |
float |
bounds[4], |
|
|
const float |
points[8] |
|
) |
| |
|
staticprotected |
Get the bounding values for a quad's points.
- Parameters
-
| bounds | bounding values in order min_x, min_y, max_x, max_y |
| points | 2d points in order [x0,y0,x1,y1,...] |
Friends And Related Function Documentation
Member Data Documentation
| unsigned int makVrv::DtQuadProxy::myIndex |
|
protected |
| unsigned char makVrv::DtQuadProxy::myStyle |
|
protected |
| bool makVrv::DtQuadProxy::myDirtyBit |
|
protected |
| unsigned int makVrv::DtQuadProxy::myVertexGroup |
|
protected |
The documentation for this class was generated from the following file:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.tot/include/vrvGraphics/DtQuadRenderer.h