VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends
makVrv::DtQuadProxy Class Reference

A flyweight class for controlling a single quad owned by the DtQuadRenderer. More...

List of all members.

Public Member Functions

 ~DtQuadProxy ()
void setGroup (float order)
 Set the order.
float group () const
 Get the group.
void set3DPosition (float x, float y, float z, float w=0)
 Set the position.
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 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.

Protected Member Functions

 DtQuadProxy (DtQuadRenderer &renderer, unsigned char effect)
 Protected CTOR (DtQuadRenderer manages creation)

Static Protected Member Functions

static void getBoundsFromPoints (float bounds[4], const float points[8])
 Get the bounding values for a quad's points.

Protected Attributes

DtQuadRenderermyParent
unsigned int myIndex
unsigned char myStyle
bool myDirtyBit

Friends

class DtQuadRenderer

Detailed Description

A flyweight class for controlling a single quad owned by the DtQuadRenderer.


Constructor & Destructor Documentation

makVrv::DtQuadProxy::DtQuadProxy ( DtQuadRenderer renderer,
unsigned char  effect 
) [protected]

Protected CTOR (DtQuadRenderer manages creation)


Member Function Documentation

void makVrv::DtQuadProxy::setGroup ( float  order)

Set the order.

float makVrv::DtQuadProxy::group ( ) const

Get the group.

void makVrv::DtQuadProxy::set3DPosition ( float  x,
float  y,
float  z,
float  w = 0 
)

Set the position.

void makVrv::DtQuadProxy::get3DPosition ( float &  x,
float &  y,
float &  z,
float &  w 
) const

Get the position.

void makVrv::DtQuadProxy::set2DRotation ( float  angle)

Set the rotation.

void makVrv::DtQuadProxy::get2DRotation ( float &  angle) const

Get the rotation.

void makVrv::DtQuadProxy::setPoints ( const float  points[8])

Set the 2d vertices.

void makVrv::DtQuadProxy::getPoints ( float  points[8]) const

Get the 2d vertices.

void makVrv::DtQuadProxy::getBounds ( float  bounds[4]) const

Get the size.

void makVrv::DtQuadProxy::setStyle ( int  style)

Set the style.

Get the current style.

void makVrv::DtQuadProxy::setColor ( float  r,
float  g,
float  b,
float  a 
)

Set the color.

void makVrv::DtQuadProxy::getColor ( float &  r,
float &  g,
float &  b,
float &  a 
) const

Get the color.

void makVrv::DtQuadProxy::setStippleParameters ( unsigned int  fill,
unsigned int  fullStipplePattern[32] = 0 
)

Set the fill parameters.

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.

Get the texture handle.

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] 
) [static, protected]

Get the bounding values for a quad's points.

Parameters:
boundsbounding values in order min_x, min_y, max_x, max_y
points2d points in order [x0,y0,x1,y1,...]

Friends And Related Function Documentation

friend class DtQuadRenderer [friend]

Member Data Documentation

unsigned int makVrv::DtQuadProxy::myIndex [protected]
unsigned char makVrv::DtQuadProxy::myStyle [protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)