VR-Forces 4.5 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 | Protected Attributes | Friends
makVrv::DtTriangleProxy Class Reference

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

DtTriangleRenderermyParent
unsigned int myIndex
unsigned char myStyle
bool myDirtyBit

Friends

class DtTriangleRenderer

Detailed Description

A flyweight class for controlling a triangle owned by the triangle renderer.

Constructor & Destructor Documentation

makVrv::DtTriangleProxy::~DtTriangleProxy ( )

DTOR.

makVrv::DtTriangleProxy::DtTriangleProxy ( DtTriangleRenderer renderer,
unsigned int  style 
)
protected

CTOR.

Member Function Documentation

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.

Friends And Related Function Documentation

friend class DtTriangleRenderer
friend

Member Data Documentation

DtTriangleRenderer* makVrv::DtTriangleProxy::myParent
protected
unsigned int makVrv::DtTriangleProxy::myIndex
protected
unsigned char makVrv::DtTriangleProxy::myStyle
protected
bool makVrv::DtTriangleProxy::myDirtyBit
protected

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)