VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Types | Protected Attributes
makVrv::DtPrimitiveStyle Class Reference

The abstract base class for the various primitive styles. More...

Inheritance diagram for makVrv::DtPrimitiveStyle:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtPrimitiveStyle (unsigned int vertexCountPerPrimitive)
 CTOR.
virtual ~DtPrimitiveStyle ()
 DTOR.
virtual void releaseResources ()
 Release all of the rendering resources.
int numberOfPrimitives () const
 Get the number of primitives.
virtual void add (unsigned int *indexToUpdate)
 Add an index pointer to keep up to date.
virtual void remove (unsigned int index)
 Remove an index.
virtual void render (int mode, unsigned int groupCount, bool geocentric, float geocentricAlpha, const double cameraLocation[3]=0, const double positionMatrix[16]=0, int offset=0)=0
 Render the primitives.
virtual void update (int renderMode)
 Update the style resources.
virtual float * vertexData () const =0
 Get the vertex data.
virtual unsigned int vertexDataSize () const =0
 Get total size of the vertex data in bytes.
unsigned int vertexCount () const
 Get the number of vertices per primitive.
Vertex Attribute Setters and Getters
virtual void set3DVertexPosition (unsigned int index, unsigned int vertIndex, float x, float y, float z, float w)=0
 Sets the 3D position of the vertex.
virtual void get3DVertexPosition (unsigned int index, unsigned int vertex, float &x, float &y, float &z, float &w) const =0
 Gets the 3D position of the vertex.
virtual void set2DVertexPosition (unsigned int index, unsigned int vertIndex, float x, float y)=0
 Sets the 2D position (offset) of the vertex.
virtual void get2DVertexPosition (unsigned int index, unsigned int vertIndex, float &x, float &y) const =0
 Gets the 2D position (offset) of the vertex.
virtual void set2DOffsetRotation (unsigned int index, unsigned int vertIndex, float angle)=0
 Sets the rotation of the vertex's 2D offset.
virtual void get2DOffsetRotation (unsigned int index, unsigned int vertIndex, float &angle) const =0
 Gets the rotation of the vertex's 2D offset.
virtual void setColor (unsigned int index, unsigned int vertIndex, float r, float g, float b, float a)=0
 Sets the color of the vertex.
virtual void getColor (unsigned int index, unsigned int vertIndex, float &r, float &g, float &b, float &a) const =0
 Gets the color of the vertex.
virtual void setUVCoordinates (unsigned int index, unsigned int vertIndex, float u, float v)=0
 Sets the UV coordinate.
virtual void getUVCoordinates (unsigned int index, unsigned int vertIndex, float &u, float &v) const =0
 Gets the UV coordinate.
Primitive Attribute Setters and Getters
virtual void setFillParameters (unsigned int index, void *fill, unsigned int fullStipplePattern[32]=0)=0
 Sets the fill parameters for the primitive.
virtual void getFillParameters (unsigned int index, void *&fill, unsigned int fullStipplePattern[32]=0) const =0
 Gets the fill parameters for the primitive.
virtual void setGroup (unsigned int index, float zFactor)=0
 Sets the group for the primitive.
virtual float group (unsigned int index) const =0
 Gets the group for the primitive.

Protected Types

typedef std::vector< unsigned
int * > 
IndexList

Protected Attributes

DtBufferObjectmyBufferObject
unsigned int myVertexCount
IndexList myProxyIndices

Detailed Description

The abstract base class for the various primitive styles.


Member Typedef Documentation

typedef std::vector<unsigned int*> makVrv::DtPrimitiveStyle::IndexList [protected]

Constructor & Destructor Documentation

makVrv::DtPrimitiveStyle::DtPrimitiveStyle ( unsigned int  vertexCountPerPrimitive)

CTOR.

DTOR.


Member Function Documentation

virtual void makVrv::DtPrimitiveStyle::releaseResources ( ) [virtual]

Release all of the rendering resources.

Get the number of primitives.

virtual void makVrv::DtPrimitiveStyle::add ( unsigned int *  indexToUpdate) [virtual]

Add an index pointer to keep up to date.

Reimplemented in makVrv::DtTexturedPrimitiveStyle, makVrv::DtStippledPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.

virtual void makVrv::DtPrimitiveStyle::remove ( unsigned int  index) [virtual]
virtual void makVrv::DtPrimitiveStyle::render ( int  mode,
unsigned int  groupCount,
bool  geocentric,
float  geocentricAlpha,
const double  cameraLocation[3] = 0,
const double  positionMatrix[16] = 0,
int  offset = 0 
) [pure virtual]
virtual void makVrv::DtPrimitiveStyle::update ( int  renderMode) [virtual]

Update the style resources.

Reimplemented in makVrv::DtStippledPrimitiveStyle.

virtual void makVrv::DtPrimitiveStyle::set3DVertexPosition ( unsigned int  index,
unsigned int  vertIndex,
float  x,
float  y,
float  z,
float  w 
) [pure virtual]

Sets the 3D position of the vertex.

Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.

virtual void makVrv::DtPrimitiveStyle::get3DVertexPosition ( unsigned int  index,
unsigned int  vertex,
float &  x,
float &  y,
float &  z,
float &  w 
) const [pure virtual]

Gets the 3D position of the vertex.

Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.

virtual void makVrv::DtPrimitiveStyle::set2DVertexPosition ( unsigned int  index,
unsigned int  vertIndex,
float  x,
float  y 
) [pure virtual]

Sets the 2D position (offset) of the vertex.

Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.

virtual void makVrv::DtPrimitiveStyle::get2DVertexPosition ( unsigned int  index,
unsigned int  vertIndex,
float &  x,
float &  y 
) const [pure virtual]

Gets the 2D position (offset) of the vertex.

Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.

virtual void makVrv::DtPrimitiveStyle::set2DOffsetRotation ( unsigned int  index,
unsigned int  vertIndex,
float  angle 
) [pure virtual]

Sets the rotation of the vertex's 2D offset.

Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.

virtual void makVrv::DtPrimitiveStyle::get2DOffsetRotation ( unsigned int  index,
unsigned int  vertIndex,
float &  angle 
) const [pure virtual]

Gets the rotation of the vertex's 2D offset.

Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.

virtual void makVrv::DtPrimitiveStyle::setColor ( unsigned int  index,
unsigned int  vertIndex,
float  r,
float  g,
float  b,
float  a 
) [pure virtual]
virtual void makVrv::DtPrimitiveStyle::getColor ( unsigned int  index,
unsigned int  vertIndex,
float &  r,
float &  g,
float &  b,
float &  a 
) const [pure virtual]
virtual void makVrv::DtPrimitiveStyle::setUVCoordinates ( unsigned int  index,
unsigned int  vertIndex,
float  u,
float  v 
) [pure virtual]
virtual void makVrv::DtPrimitiveStyle::getUVCoordinates ( unsigned int  index,
unsigned int  vertIndex,
float &  u,
float &  v 
) const [pure virtual]
virtual void makVrv::DtPrimitiveStyle::setFillParameters ( unsigned int  index,
void *  fill,
unsigned int  fullStipplePattern[32] = 0 
) [pure virtual]

Sets the fill parameters for the primitive.

Parameters:
indexthe index of the primitive to set the fill param for.

Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.

virtual void makVrv::DtPrimitiveStyle::getFillParameters ( unsigned int  index,
void *&  fill,
unsigned int  fullStipplePattern[32] = 0 
) const [pure virtual]

Gets the fill parameters for the primitive.

Parameters:
indexthe index of the primitive to get the fill param for.

Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.

virtual void makVrv::DtPrimitiveStyle::setGroup ( unsigned int  index,
float  zFactor 
) [pure virtual]

Sets the group for the primitive.

Parameters:
indexthe index of the primitive to set the group for.

Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.

virtual float makVrv::DtPrimitiveStyle::group ( unsigned int  index) const [pure virtual]

Gets the group for the primitive.

Parameters:
indexthe index of the primitive to get the group for.

Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.

virtual float* makVrv::DtPrimitiveStyle::vertexData ( ) const [pure virtual]
virtual unsigned int makVrv::DtPrimitiveStyle::vertexDataSize ( ) const [pure virtual]

Get total size of the vertex data in bytes.

Implemented in makVrv::DtStippledPrimitiveStyle, makVrv::DtTexturedPrimitiveStyle, and makVrv::DtFlatPrimitiveStyle.

unsigned int makVrv::DtPrimitiveStyle::vertexCount ( ) const

Get the number of vertices per primitive.


Member Data Documentation

unsigned int makVrv::DtPrimitiveStyle::myVertexCount [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)