VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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...

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.

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 ( )
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 ( 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

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::setBounds ( const float  bounds[4])

Set the 2d vertices by size.

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

Get the size.

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

Set the style.

int makVrv::DtQuadProxy::style ( ) const

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.

void* makVrv::DtQuadProxy::textureHandle ( ) const

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] 
)
staticprotected

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

DtQuadRenderer* makVrv::DtQuadProxy::myParent
protected
unsigned int makVrv::DtQuadProxy::myIndex
protected
unsigned char makVrv::DtQuadProxy::myStyle
protected
bool makVrv::DtQuadProxy::myDirtyBit
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)