VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtTexturedPrimitiveStyle Class Reference

A style for rendering a primitive with a single texture applied.

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

Classes

struct  TexturedQuadInfo
 
struct  TextureInfo
 

Public Member Functions

 DtTexturedPrimitiveStyle (DtOverlayResourceProvider &provider, unsigned int vertexCount, bool repeating=false)
 
virtual ~DtTexturedPrimitiveStyle ()
 
virtual void add (unsigned int *indexPtr)
 
virtual void remove (unsigned int index)
 
virtual void render (int mode, unsigned int groupCount, bool geocentric, float geocentricAlpha, const double cameraLocation[3], const double positionMatrix[16], const double projectionMatrix[16], int offset)
 
virtual void update (int renderMode)
 
Vertex Attribute Setters and Getters
virtual void set3DVertexPosition (unsigned int index, unsigned int vertex, float x, float y, float z, float w)
 
virtual void set3DVertexQuadPositions (unsigned int index, float x, float y, float z, float w)
 
virtual void get3DVertexPosition (unsigned int index, unsigned int vertex, float &x, float &y, float &z, float &w) const
 
virtual void set2DVertexPosition (unsigned int index, unsigned int vertex, float x, float y)
 
virtual void get2DVertexPosition (unsigned int index, unsigned int vertex, float &x, float &y) const
 
virtual void set2DOffsetRotation (unsigned int index, unsigned int vertIndex, float angle)
 
virtual void get2DOffsetRotation (unsigned int index, unsigned int vertIndex, float &angle) const
 
virtual void setColor (unsigned int index, unsigned int vertex, float r, float g, float b, float a)
 
virtual void getColor (unsigned int index, unsigned int vertex, float &r, float &g, float &b, float &a) const
 
virtual void setUVCoordinates (unsigned int index, unsigned int vertIndex, float u, float v)
 
virtual void getUVCoordinates (unsigned int index, unsigned int vertIndex, float &u, float &v) const
 
Primitive Attribute Setters and Getters
virtual void setFillParameters (unsigned int index, void *fill, unsigned int fullStipplePattern[32]=0)
 
virtual void getFillParameters (unsigned int index, void *&fill, unsigned int fullStipplePattern[32]) const
 
virtual void setGroup (unsigned int index, float zFactor)
 
virtual float group (unsigned int index) const
 
virtual void setVisible (unsigned int index, bool visible)
 
virtual bool visible (unsigned int index) const
 
- Public Member Functions inherited from makVrv::DtPrimitiveStyle
 DtPrimitiveStyle (unsigned int vertexCountPerPrimitive)
 
virtual ~DtPrimitiveStyle ()
 
virtual void releaseResources ()
 
int numberOfPrimitives () const
 
unsigned int vertexCount () const
 

Protected Types

typedef std::vector
< DtOffsetColoredTexturedVertex
TexturedQuadVertexList
 
typedef std::vector
< TexturedQuadInfo
TexturedQuadInfoList
 
typedef std::unordered_map
< void *, TextureInfo
TextureIndexMap
 
- Protected Types inherited from makVrv::DtPrimitiveStyle
typedef std::vector< unsigned
int * > 
IndexList
 

Protected Member Functions

virtual float * vertexData () const
 
virtual unsigned int vertexDataSize () const
 

Protected Attributes

DtOverlayResourceProvidermyResourceProvider
 
TexturedQuadVertexList myTexturedQuadsVertices
 
TexturedQuadInfoList myTexturedQuads
 
TextureIndexMap myTextureIndexMap
 
DtProjected2DTexturedEffectmyEffect
 
bool myRepeating
 
- Protected Attributes inherited from makVrv::DtPrimitiveStyle
DtBufferObjectmyBufferObject
 
unsigned int myVertexCount
 
IndexList myProxyIndices
 

Member Typedef Documentation

typedef std::unordered_map<void*, TextureInfo> makVrv::DtTexturedPrimitiveStyle::TextureIndexMap
protected

Constructor & Destructor Documentation

makVrv::DtTexturedPrimitiveStyle::DtTexturedPrimitiveStyle ( DtOverlayResourceProvider provider,
unsigned int  vertexCount,
bool  repeating = false 
)

CTOR.

virtual makVrv::DtTexturedPrimitiveStyle::~DtTexturedPrimitiveStyle ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual void makVrv::DtTexturedPrimitiveStyle::add ( unsigned int indexPtr)
virtual

Add an index pointer to keep up to date.

Reimplemented from makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::remove ( unsigned int  index)
virtual

Remove an index.

Reimplemented from makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::render ( int  mode,
unsigned int  groupCount,
bool  geocentric,
float  geocentricAlpha,
const double  cameraLocation[3],
const double  positionMatrix[16],
const double  projectionMatrix[16],
int  offset 
)
virtual

Render the primitives.

Implements makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::update ( int  renderMode)
virtual

Update the style resources.

Reimplemented from makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::set3DVertexPosition ( unsigned int  index,
unsigned int  vertex,
float  x,
float  y,
float  z,
float  w 
)
virtual

Sets the 3D position of the vertex.

Implements makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::set3DVertexQuadPositions ( unsigned int  index,
float  x,
float  y,
float  z,
float  w 
)
virtual

Sets the 3D position of the vertex for a quad (sets vertex 0,1,2,3)

Implements makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::get3DVertexPosition ( unsigned int  index,
unsigned int  vertex,
float &  x,
float &  y,
float &  z,
float &  w 
) const
virtual

Gets the 3D position of the vertex.

Implements makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::set2DVertexPosition ( unsigned int  index,
unsigned int  vertex,
float  x,
float  y 
)
virtual

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

Implements makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::get2DVertexPosition ( unsigned int  index,
unsigned int  vertex,
float &  x,
float &  y 
) const
virtual

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

Implements makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::set2DOffsetRotation ( unsigned int  index,
unsigned int  vertIndex,
float  angle 
)
virtual

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

Implements makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::get2DOffsetRotation ( unsigned int  index,
unsigned int  vertIndex,
float &  angle 
) const
virtual

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

Implements makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::setColor ( unsigned int  index,
unsigned int  vertex,
float  r,
float  g,
float  b,
float  a 
)
virtual

Sets the color of the vertex.

Implements makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::getColor ( unsigned int  index,
unsigned int  vertex,
float &  r,
float &  g,
float &  b,
float &  a 
) const
virtual

Gets the color of the vertex.

Implements makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::setUVCoordinates ( unsigned int  index,
unsigned int  vertIndex,
float  u,
float  v 
)
virtual

Sets the UV coordinate.

Implements makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::getUVCoordinates ( unsigned int  index,
unsigned int  vertIndex,
float &  u,
float &  v 
) const
virtual

Gets the UV coordinate.

Implements makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::setFillParameters ( unsigned int  index,
void *  fill,
unsigned int  fullStipplePattern[32] = 0 
)
virtual

Sets the fill parameters for the primitive.

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

Implements makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::getFillParameters ( unsigned int  index,
void *&  fill,
unsigned int  fullStipplePattern[32] 
) const
virtual

Gets the fill parameters for the primitive.

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

Implements makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::setGroup ( unsigned int  index,
float  zFactor 
)
virtual

Sets the group for the primitive.

Parameters
indexthe index of the primitve to set the group for.

Implements makVrv::DtPrimitiveStyle.

virtual float makVrv::DtTexturedPrimitiveStyle::group ( unsigned int  index) const
virtual

Gets the group for the primitive.

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

Implements makVrv::DtPrimitiveStyle.

virtual void makVrv::DtTexturedPrimitiveStyle::setVisible ( unsigned int  index,
bool  visible 
)
virtual

Sets the visible state for the primitive.

Parameters
indexthe index of the primitive to set the state for.

Implements makVrv::DtPrimitiveStyle.

virtual bool makVrv::DtTexturedPrimitiveStyle::visible ( unsigned int  index) const
virtual

Gets the visible state for the primitive.

Parameters
indexthe index of the primitive to get the state for.

Implements makVrv::DtPrimitiveStyle.

virtual float* makVrv::DtTexturedPrimitiveStyle::vertexData ( ) const
protectedvirtual

Get the vertex data.

Implements makVrv::DtPrimitiveStyle.

virtual unsigned int makVrv::DtTexturedPrimitiveStyle::vertexDataSize ( ) const
protectedvirtual

Get total size of the vertex data in bytes.

Implements makVrv::DtPrimitiveStyle.

Member Data Documentation

DtOverlayResourceProvider& makVrv::DtTexturedPrimitiveStyle::myResourceProvider
protected
TexturedQuadVertexList makVrv::DtTexturedPrimitiveStyle::myTexturedQuadsVertices
protected
TexturedQuadInfoList makVrv::DtTexturedPrimitiveStyle::myTexturedQuads
protected
TextureIndexMap makVrv::DtTexturedPrimitiveStyle::myTextureIndexMap
protected
DtProjected2DTexturedEffect* makVrv::DtTexturedPrimitiveStyle::myEffect
protected
bool makVrv::DtTexturedPrimitiveStyle::myRepeating
protected

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)