VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes
makVrv::DtTextRenderer Class Reference

A class for rendering text object. More...

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

Public Member Functions

 DtTextRenderer (DtOverlayResourceProvider &provider)
 CTOR. More...
 
virtual ~DtTextRenderer ()
 DTOR. More...
 
DtTextProxycreateProxy ()
 Create a text proxy. More...
 
DtTextProxycloneProxy (const DtTextProxy *)
 Clone a text proxy. More...
 
virtual int numberOfPrimitives () const
 Get the number of Primitives. More...
 
virtual void releaseResources ()
 Release any rendering resources. More...
 
virtual bool isRenderModeSupported (int mode)
 Get if a render mode is supported. More...
 
bool forceTextShaping (void) const
 
void render (bool geocentric, float geocentricAlpha, const double location[3], const double positionMatrix[16], const double projectionMatrix[16])
 Render the text. More...
 
void addGroupRef (unsigned int)
 Add the given group reference to the DtOverlayResourceProvider. More...
 
void removeGroupRef (unsigned int)
 Remove the given group reference from the DtOverlayResourceProvider. More...
 
void deleteProxy (DtTextProxy *)
 Create a text proxy. More...
 
- Public Member Functions inherited from makVrv::DtPrimitiveRenderer
 DtPrimitiveRenderer (DtOverlayResourceProvider &provider)
 
virtual ~DtPrimitiveRenderer ()
 
void setRenderMode (int mode)
 
int renderMode () const
 
int numberOfRenderModes () const
 
void setOrderMode (int mode)
 set the order mode. More...
 
int orderMode () const
 get the order mode. More...
 
void addGroupRef (unsigned int group)
 
void removeGroupRef (unsigned int group)
 
unsigned int groupCount () const
 

Protected Types

typedef std::vector
< DtTextProxy * > 
TextProxyList
 

Protected Attributes

TextProxyList myProxyList
 
DtTexturedGlyphRenderermyGlyphRenderer
 
DtProjected2DTexturedEffectmyEffect
 
DtBufferObjectmyBufferObject
 
- Protected Attributes inherited from makVrv::DtPrimitiveRenderer
DtOverlayResourceProvidermyProvider
 
int myRenderMode
 
int myOrderMode
 
bool myForceUpdate
 

Additional Inherited Members

- Public Types inherited from makVrv::DtPrimitiveRenderer
enum  RenderModes { RenderMode_VertexBufferObject = 1, RenderMode_SortedVertexBufferObject, RenderModes_End }
 
enum  OrderModes { OrderMode_None = 0, OrderMode_Queue, OrderMode_Group, OrderModes_end }
 

Detailed Description

A class for rendering text object.

Member Typedef Documentation

typedef std::vector<DtTextProxy*> makVrv::DtTextRenderer::TextProxyList
protected

Constructor & Destructor Documentation

makVrv::DtTextRenderer::DtTextRenderer ( DtOverlayResourceProvider provider)

CTOR.

virtual makVrv::DtTextRenderer::~DtTextRenderer ( )
virtual

DTOR.

Member Function Documentation

DtTextProxy* makVrv::DtTextRenderer::createProxy ( )

Create a text proxy.

DtTextProxy* makVrv::DtTextRenderer::cloneProxy ( const DtTextProxy )

Clone a text proxy.

virtual int makVrv::DtTextRenderer::numberOfPrimitives ( ) const
virtual

Get the number of Primitives.

Implements makVrv::DtPrimitiveRenderer.

virtual void makVrv::DtTextRenderer::releaseResources ( )
virtual

Release any rendering resources.

Implements makVrv::DtPrimitiveRenderer.

virtual bool makVrv::DtTextRenderer::isRenderModeSupported ( int  mode)
virtual

Get if a render mode is supported.

Implements makVrv::DtPrimitiveRenderer.

bool makVrv::DtTextRenderer::forceTextShaping ( void  ) const
void makVrv::DtTextRenderer::render ( bool  geocentric,
float  geocentricAlpha,
const double  location[3],
const double  positionMatrix[16],
const double  projectionMatrix[16] 
)

Render the text.

void makVrv::DtTextRenderer::addGroupRef ( unsigned  int)

Add the given group reference to the DtOverlayResourceProvider.

void makVrv::DtTextRenderer::removeGroupRef ( unsigned  int)

Remove the given group reference from the DtOverlayResourceProvider.

void makVrv::DtTextRenderer::deleteProxy ( DtTextProxy )

Create a text proxy.

Member Data Documentation

TextProxyList makVrv::DtTextRenderer::myProxyList
protected
DtTexturedGlyphRenderer* makVrv::DtTextRenderer::myGlyphRenderer
protected
DtProjected2DTexturedEffect* makVrv::DtTextRenderer::myEffect
protected
DtBufferObject* makVrv::DtTextRenderer::myBufferObject
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)