VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions
makVrv::DtDefaultTextLayout Class Reference
Inheritance diagram for makVrv::DtDefaultTextLayout:
Inheritance graph
[legend]

Public Member Functions

 DtDefaultTextLayout ()
 
virtual ~DtDefaultTextLayout ()
 
 DtDefaultTextLayout (const DtDefaultTextLayout &other)=delete
 
DtDefaultTextLayout & operator= (const DtDefaultTextLayout &other)=delete
 
virtual void renderText (DtTexturedGlyphRenderer *, const DtTextProxy *, DtFontInterface *font, const DtBoundingBox &bBox, const DtObserverRenderData &channelRenderData, int proxyIndex, DtQuadsRenderData *renderData)
 
virtual DtBoundingBox calculateBoundingBox (DtFontInterface *font, const DtUnicode &string, const DtPen &pen=DtPen(), unsigned int pos=0, int len=-1) const
 
virtual bool isShaped (void) const
 
- Public Member Functions inherited from makVrv::DtTextLayoutInterface
 DtTextLayoutInterface ()
 
virtual ~DtTextLayoutInterface ()
 
 DtTextLayoutInterface (const DtTextLayoutInterface &other)=delete
 
DtTextLayoutInterface & operator= (const DtTextLayoutInterface &other)=delete
 

Protected Member Functions

virtual void renderString (DtGlyphRenderer &renderer, DtPen &pen, const DtTextProxy *textProxy, DtFontInterface *font, unsigned int pos, int len, int &vertexIndex, const std::unordered_map< unsigned int, int > &mapTextureIdToTextureIndex, double observerTopographicHeading)
 
virtual void renderString (DtGlyphRenderer &renderer, DtPen &pen, const DtTextProxy *textProxy, DtFontInterface *font, unsigned int pos, int len, float lineLength, int &vertexIndex, const std::unordered_map< unsigned int, int > &mapTextureIdToTextureIndex, double observerTopographicHeading)
 
virtual void renderStringAndWhiteSpace (DtGlyphRenderer &renderer, const DtPen &pen, const DtTextProxy *textProxy, DtFontInterface *font, unsigned int pos, int len, const float extraSpace, int &vertexIndex, const std::unordered_map< unsigned int, int > &mapTextureIdToTextureIndex, double observerTopographicHeading)
 
virtual void renderWrappedText (DtGlyphRenderer &renderer, const DtPen &pen, DtFont::TextAlignment alignment, const DtTextProxy *textProxy, DtFontInterface *font, unsigned int pos, int len, const float lineLength, const float wordWidth, int &vertexIndex, const std::unordered_map< unsigned int, int > &mapTextureIdToTextureIndex, double observerTopographicHeading)
 

Constructor & Destructor Documentation

makVrv::DtDefaultTextLayout::DtDefaultTextLayout ( )

CTOR.

virtual makVrv::DtDefaultTextLayout::~DtDefaultTextLayout ( )
virtual

DTOR.

makVrv::DtDefaultTextLayout::DtDefaultTextLayout ( const DtDefaultTextLayout &  other)
delete

Copy Constructor not implemented - Copy not allowed.

Member Function Documentation

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

Assignment Operator not implemented - Assignment not allowed.

virtual void makVrv::DtDefaultTextLayout::renderText ( DtTexturedGlyphRenderer *  ,
const DtTextProxy *  ,
DtFontInterface *  font,
const DtBoundingBox &  bBox,
const DtObserverRenderData &  channelRenderData,
int  proxyIndex,
DtQuadsRenderData *  renderData 
)
virtual

Renders the text to the given glyph renderer.

Implements makVrv::DtTextLayoutInterface.

virtual DtBoundingBox makVrv::DtDefaultTextLayout::calculateBoundingBox ( DtFontInterface *  font,
const DtUnicode &  string,
const DtPen &  pen = DtPen(),
unsigned int  pos = 0,
int  len = -1 
) const
virtual

Calculates the bounding box, in screen space, for the passed in string and font. By default, this function calculates the bounding box for the entire passed in string but it can also calculate the bounding box for a substring of the passed in string.

Parameters
fontThe font to use when calculating the bounds for a string.
stringThe string to calculate the bounds for.
penSpecifies the spacing and starting position to use when calculating the bounding box.
posThe position, within the passed in string, of the first character for the substring to calculate the bounding box for.
lenThe number of characters, from pos, to consider in the passed in string. If -1, consider all remaining characters in the string.

Implements makVrv::DtTextLayoutInterface.

virtual bool makVrv::DtDefaultTextLayout::isShaped ( void  ) const
inlinevirtual
virtual void makVrv::DtDefaultTextLayout::renderString ( DtGlyphRenderer &  renderer,
DtPen &  pen,
const DtTextProxy *  textProxy,
DtFontInterface *  font,
unsigned int  pos,
int  len,
int &  vertexIndex,
const std::unordered_map< unsigned int, int > &  mapTextureIdToTextureIndex,
double  observerTopographicHeading 
)
protectedvirtual
virtual void makVrv::DtDefaultTextLayout::renderString ( DtGlyphRenderer &  renderer,
DtPen &  pen,
const DtTextProxy *  textProxy,
DtFontInterface *  font,
unsigned int  pos,
int  len,
float  lineLength,
int &  vertexIndex,
const std::unordered_map< unsigned int, int > &  mapTextureIdToTextureIndex,
double  observerTopographicHeading 
)
protectedvirtual
virtual void makVrv::DtDefaultTextLayout::renderStringAndWhiteSpace ( DtGlyphRenderer &  renderer,
const DtPen &  pen,
const DtTextProxy *  textProxy,
DtFontInterface *  font,
unsigned int  pos,
int  len,
const float  extraSpace,
int &  vertexIndex,
const std::unordered_map< unsigned int, int > &  mapTextureIdToTextureIndex,
double  observerTopographicHeading 
)
protectedvirtual
virtual void makVrv::DtDefaultTextLayout::renderWrappedText ( DtGlyphRenderer &  renderer,
const DtPen &  pen,
DtFont::TextAlignment  alignment,
const DtTextProxy *  textProxy,
DtFontInterface *  font,
unsigned int  pos,
int  len,
const float  lineLength,
const float  wordWidth,
int &  vertexIndex,
const std::unordered_map< unsigned int, int > &  mapTextureIdToTextureIndex,
double  observerTopographicHeading 
)
protectedvirtual

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)