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

A group of text proxies that share the same set of altitude-based configurations. Groups of text proxies are maintained by the text renderer.

Public Types

typedef std::vector
< DtTextProxy * > 
TextProxyList
 

Public Member Functions

 DtTextProxyGroup (DtAltitudeBasedConfigurationCollection)
 
 DtTextProxyGroup ()
 
 ~DtTextProxyGroup ()
 
 DtTextProxyGroup (const DtTextProxyGroup &other)=delete
 
DtTextProxyGroupoperator= (const DtTextProxyGroup &other)=delete
 
 DtTextProxyGroup (DtTextProxyGroup &&)=delete
 
const DtQuadsRenderDatarenderData (void) const
 
virtual void render (DtTexturedGlyphRenderer *renderer, const DtObserverRenderData &channelRenderData)
 

Protected Member Functions

virtual void initializeRenderDataAndComputeFontToUniqueCodePoints (const DtObserverRenderData &channelRenderData, DtFontInterface *defaultFont)
 
virtual void initializeTextureListsAndLoadFontsForRendering (DtTexturedGlyphRenderer *glyphRenderer)
 
virtual void drawProxies (DtTexturedGlyphRenderer *glyphRenderer, const DtObserverRenderData &channelRenderData, DtFontInterface *defaultFont) const
 

Protected Attributes

TextProxyList myProxies
 
DtAltitudeBasedConfigurationCollection myAltitudeBasedConfigurations
 
DtQuadsRenderData myRenderData
 
tbb::concurrent_unordered_map
< DtFontInterface
*, tbb::concurrent_unordered_set
< DtUnicodeChar::CodePoint > > 
myFontToUniqueCodePoints
 

Friends

class DtTextRenderer
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtTextProxyGroup::DtTextProxyGroup ( DtAltitudeBasedConfigurationCollection  )
makVrv::DtTextProxyGroup::DtTextProxyGroup ( )
makVrv::DtTextProxyGroup::~DtTextProxyGroup ( )
makVrv::DtTextProxyGroup::DtTextProxyGroup ( const DtTextProxyGroup other)
delete
makVrv::DtTextProxyGroup::DtTextProxyGroup ( DtTextProxyGroup &&  )
delete

Member Function Documentation

DtTextProxyGroup& makVrv::DtTextProxyGroup::operator= ( const DtTextProxyGroup other)
delete
const DtQuadsRenderData& makVrv::DtTextProxyGroup::renderData ( void  ) const
virtual void makVrv::DtTextProxyGroup::render ( DtTexturedGlyphRenderer renderer,
const DtObserverRenderData channelRenderData 
)
virtual

Render this group of text proxies using the provided renderer and camera altitude. The camera altitude is used to infer which altitude-based configuration from the internal collection of altitude-based configurations to use.

virtual void makVrv::DtTextProxyGroup::initializeRenderDataAndComputeFontToUniqueCodePoints ( const DtObserverRenderData channelRenderData,
DtFontInterface defaultFont 
)
protectedvirtual
  1. initialize counts, indices' offsets and counts

calculate unique code points across all proxies This is parallelized

virtual void makVrv::DtTextProxyGroup::initializeTextureListsAndLoadFontsForRendering ( DtTexturedGlyphRenderer glyphRenderer)
protectedvirtual

This cannot be parallelized because it needs an OpenGL context.

virtual void makVrv::DtTextProxyGroup::drawProxies ( DtTexturedGlyphRenderer glyphRenderer,
const DtObserverRenderData channelRenderData,
DtFontInterface defaultFont 
) const
protectedvirtual

Draw proxies.

Friends And Related Function Documentation

friend class DtTextRenderer
friend

Member Data Documentation

TextProxyList makVrv::DtTextProxyGroup::myProxies
protected
DtAltitudeBasedConfigurationCollection makVrv::DtTextProxyGroup::myAltitudeBasedConfigurations
protected
DtQuadsRenderData makVrv::DtTextProxyGroup::myRenderData
mutableprotected
tbb::concurrent_unordered_map<DtFontInterface*, tbb::concurrent_unordered_set<DtUnicodeChar::CodePoint> > makVrv::DtTextProxyGroup::myFontToUniqueCodePoints
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)