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

A class for rendering text object.

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

Classes

class  DtAltitudeBasedConfiguration
 

Public Types

typedef std::vector
< DtAltitudeBasedConfiguration
DtAltitudeBasedConfigurationCollection
 
- 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 }
 

Public Member Functions

virtual ~DtTextRenderer ()
 
 DtTextRenderer ()=delete
 
 DtTextRenderer (const DtTextRenderer &other)=delete
 
DtTextRendereroperator= (const DtTextRenderer &other)=delete
 
virtual DtTextProxycreateProxy ()
 
virtual DtTextProxycloneProxy (const DtTextProxy *)
 
virtual int numberOfPrimitives () const
 
virtual void releaseResources ()
 
virtual bool isRenderModeSupported (int mode)
 
virtual bool forceTextShaping (void) const
 
virtual void render (bool geocentric, float geocentricAlpha, const double location[3], double altitude, const double positionMatrix[16], const double projectionMatrix[16])
 
virtual void addGroupRef (unsigned int)
 
virtual void removeGroupRef (unsigned int)
 
virtual void removeProxy (const DtTextProxy *)
 
virtual void setAltitudeBasedConfigurationsForProxy (DtTextProxy *, const DtAltitudeBasedConfigurationCollection &)
 
virtual bool getAltitudeBasedConfigurationsForProxy (const DtTextProxy *, DtAltitudeBasedConfigurationCollection &) const
 
virtual void clearAltitudeSpecificConfigurationsForProxy (DtTextProxy *)
 
- Public Member Functions inherited from makVrv::DtPrimitiveRenderer
 DtPrimitiveRenderer (DtDe &de, DtOverlayResourceProvider &provider)
 
virtual ~DtPrimitiveRenderer ()
 
void setRenderMode (int mode)
 
int renderMode () const
 
int numberOfRenderModes () const
 
void setOrderMode (int mode)
 
int orderMode () const
 
void addGroupRef (unsigned int group)
 
void removeGroupRef (unsigned int group)
 
unsigned int groupCount () const
 

Protected Types

typedef std::vector
< DtBufferObject * > 
BufferObjectList
 

Protected Member Functions

 DtTextRenderer (DtDe &de, DtOverlayResourceProvider &provider)
 

Protected Attributes

std::map< const DtTextProxy
*, DtTextProxyGroup * > 
myTextProxyToGroupMap
 
std::map< const
DtTextProxyGroup
*, DtTexturedGlyphRenderer * > 
myGlyphRenderers
 
std::vector< DtTextProxyGroup * > myTextProxyGroups
 
DtProjected2DTexturedEffectmyEffect
 
BufferObjectList myBufferObjectList
 
- Protected Attributes inherited from makVrv::DtPrimitiveRenderer
DtDemyDe
 
DtOverlayResourceProvidermyProvider
 
int myRenderMode
 
int myOrderMode
 
bool myForceUpdate
 

Private Attributes

friend DtTextRendererCreator
 

Member Typedef Documentation

A collection of altitude-based configurations for a text proxy.

Constructor & Destructor Documentation

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

DTOR.

makVrv::DtTextRenderer::DtTextRenderer ( )
delete

Default Constructor not implemented.

makVrv::DtTextRenderer::DtTextRenderer ( const DtTextRenderer other)
delete

Copy Constructor not implemented - Copy not allowed.

makVrv::DtTextRenderer::DtTextRenderer ( DtDe de,
DtOverlayResourceProvider provider 
)
protected

CTOR.

Member Function Documentation

DtTextRenderer& makVrv::DtTextRenderer::operator= ( const DtTextRenderer other)
delete

Assignment Operator not implemented - Assignment not allowed.

virtual DtTextProxy* makVrv::DtTextRenderer::createProxy ( )
virtual

Create a text proxy.

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

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.

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

Render the text.

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

Add the given group reference to the DtOverlayResourceProvider.

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

Remove the given group reference from the DtOverlayResourceProvider.

virtual void makVrv::DtTextRenderer::removeProxy ( const DtTextProxy )
virtual

Removes a text proxy from this text renderer. This does not delete the text proxy object.

virtual void makVrv::DtTextRenderer::setAltitudeBasedConfigurationsForProxy ( DtTextProxy ,
const DtAltitudeBasedConfigurationCollection  
)
virtual

Set a collection of altitude-based configurations to use for a text proxy. This API allows for the specification of different fonts a text proxy will use based on the altitude of the camera rendering the text proxy.

That is, each frame, the camera's altitude is used to determine the specific altitude-based configuration to use. The altitude-based configuration that meets both of the following conditions will be used: (1) The configuration's base altitude is less than the camera's current altitude. (2) The configuration's base altitude is larger than all other altitude-based configurations, defined for a given text proxy, that also meet condition (1).

Altitude is in meters from mean sea level.

virtual bool makVrv::DtTextRenderer::getAltitudeBasedConfigurationsForProxy ( const DtTextProxy ,
DtAltitudeBasedConfigurationCollection  
) const
virtual

Get the collection of altitude-based configurations used for a text proxy.

virtual void makVrv::DtTextRenderer::clearAltitudeSpecificConfigurationsForProxy ( DtTextProxy )
virtual

Clear the collection of altitude-based configurations for a text proxy, if any.

Member Data Documentation

friend makVrv::DtTextRenderer::DtTextRendererCreator
private
std::map<const DtTextProxy*, DtTextProxyGroup*> makVrv::DtTextRenderer::myTextProxyToGroupMap
protected
std::map<const DtTextProxyGroup*, DtTexturedGlyphRenderer*> makVrv::DtTextRenderer::myGlyphRenderers
protected
std::vector<DtTextProxyGroup*> makVrv::DtTextRenderer::myTextProxyGroups
protected
DtProjected2DTexturedEffect* makVrv::DtTextRenderer::myEffect
protected
BufferObjectList makVrv::DtTextRenderer::myBufferObjectList
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)