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
makVrv::DtTextLayoutInterface Class Referenceabstract

Generic base class for text layout renderers.

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

Public Member Functions

 DtTextLayoutInterface ()
 
virtual ~DtTextLayoutInterface ()
 
 DtTextLayoutInterface (const DtTextLayoutInterface &other)=delete
 
DtTextLayoutInterfaceoperator= (const DtTextLayoutInterface &other)=delete
 
virtual void renderText (DtTexturedGlyphRenderer *, const DtTextProxy *text, DtFontInterface *font, const DtBoundingBox &bBox, const DtObserverRenderData &channelRenderData, int proxyIndex, DtQuadsRenderData *renderData)=0
 
virtual DtBoundingBox calculateBoundingBox (DtFontInterface *font, const DtUnicode &string, const DtPen &pen=DtPen(), unsigned int pos=0, int len=-1) const =0
 
virtual bool isShaped (void) const =0
 

Constructor & Destructor Documentation

makVrv::DtTextLayoutInterface::DtTextLayoutInterface ( )
inline

CTOR.

virtual makVrv::DtTextLayoutInterface::~DtTextLayoutInterface ( )
inlinevirtual

DTOR.

makVrv::DtTextLayoutInterface::DtTextLayoutInterface ( const DtTextLayoutInterface other)
delete

Copy Constructor not implemented - Copy not allowed.

Member Function Documentation

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

Assignment Operator not implemented - Assignment not allowed.

virtual void makVrv::DtTextLayoutInterface::renderText ( DtTexturedGlyphRenderer ,
const DtTextProxy text,
DtFontInterface font,
const DtBoundingBox bBox,
const DtObserverRenderData channelRenderData,
int  proxyIndex,
DtQuadsRenderData renderData 
)
pure virtual

Renders the text to the given glyph renderer.

Implemented in makVrv::DtTextLayout, and makVrv::DtDefaultTextLayout.

virtual DtBoundingBox makVrv::DtTextLayoutInterface::calculateBoundingBox ( DtFontInterface font,
const DtUnicode string,
const DtPen pen = DtPen(),
unsigned int  pos = 0,
int  len = -1 
) const
pure 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.

Implemented in makVrv::DtTextLayout, and makVrv::DtDefaultTextLayout.

virtual bool makVrv::DtTextLayoutInterface::isShaped ( void  ) const
pure virtual

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)