CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdTrVecTtfFontsCache Class Reference

#include <TrVecTtfFontsCache.h>

Inheritance diagram for OdTrVecTtfFontsCache:
OdStaticRxObject< OdTtfFontsCache > OdTrVisTtfFontsCacheClient

Public Member Functions

 OdTrVecTtfFontsCache ()
 
 ~OdTrVecTtfFontsCache ()
 
OdDrawOrderMetafileBase & deviceRefs ()
 
bool useStableFontKey () const
 
void setUseStableFontKey (bool bStableKey)
 
void setUseStableFontKey (OdTrVecDevice *pDevice)
 
const voidgetFontCache (const FontKey &fontKey) const
 
OdTrVisDisplayId getCharMetafile (const void *pFont, OdUInt32 uChar, double *pSideMult=NULL)
 
OdTrVisRawTexturePtr getCharTexture (const void *pFont, OdUInt32 uChar, double *pSideMult=NULL)
 
void shareToNew (OdTrVecDevice *pDevice)
 
OdRxObjectPtr tfcNewMetafile (void *pSessionId)
 
OdGiConveyorGeometrytfcBeginMetafile (OdRxObject *pMetafile, void *pSessionId)
 
void tfcFinalizeMetafileExt (FontKey &fontKey, CharKey chr, OdRxObject *pMetafile, void *pSessionId)
 
void tfcFinalizeMetafile (OdRxObject *pMetafile, void *pSessionId)
 
void tfcPlayMetafile (const OdGeMatrix3d &xForm, const OdRxObject *pMetafile, void *pSessionId) const
 
- Public Member Functions inherited from OdStaticRxObject< OdTtfFontsCache >
void addRef ()
 
void release () ODRX_NOEXCEPT
 

Protected Member Functions

OdUInt64 getFontKey (const OdGiTextStyle *pTextStyle) const
 
TtfFont getFontCache (OdUInt64 fontKeyPartA, OdUInt64 fontKeyPartB) const
 
OdTrVisDisplayId getCharMetafile (TtfFont pFont, OdUInt32 uChar, double *pSideMult=NULL) const
 
OdTrVisRawTexturePtr getCharTexture (TtfFont pFont, OdUInt32 uChar, double *pSideMult=NULL) const ODRX_OVERRIDE
 

Protected Attributes

OdStaticRxObject< OdDrawOrderMetafileBase > m_deviceRefs
 
bool m_bStableKey
 

Additional Inherited Members

- Public Types inherited from OdTrVisTtfFontsCacheClient
typedef const voidTtfFont
 

Detailed Description

<group ExRender_Windows_Classes>

Definition at line 48 of file TrVecTtfFontsCache.h.

Constructor & Destructor Documentation

◆ OdTrVecTtfFontsCache()

OdTrVecTtfFontsCache::OdTrVecTtfFontsCache ( )

◆ ~OdTrVecTtfFontsCache()

OdTrVecTtfFontsCache::~OdTrVecTtfFontsCache ( )

Member Function Documentation

◆ deviceRefs()

OdDrawOrderMetafileBase & OdTrVecTtfFontsCache::deviceRefs ( )
inline

Definition at line 57 of file TrVecTtfFontsCache.h.

◆ getCharMetafile() [1/2]

OdTrVisDisplayId OdTrVecTtfFontsCache::getCharMetafile ( const void * pFont,
OdUInt32 uChar,
double * pSideMult = NULL )

◆ getCharMetafile() [2/2]

OdTrVisDisplayId OdTrVecTtfFontsCache::getCharMetafile ( TtfFont pFont,
OdUInt32 uChar,
double * pSideMult = NULL ) const
inlineprotectedvirtual

Implements OdTrVisTtfFontsCacheClient.

Definition at line 88 of file TrVecTtfFontsCache.h.

◆ getCharTexture() [1/2]

OdTrVisRawTexturePtr OdTrVecTtfFontsCache::getCharTexture ( const void * pFont,
OdUInt32 uChar,
double * pSideMult = NULL )

Return texture for character.

Parameters
pFont[in] Pointer to the font.
uChar[in] Property value to set.
pSideMult[out] Distance between this and previous character.
Returns
texture for character if successfully, or null otherwise.
Remarks

◆ getCharTexture() [2/2]

OdTrVisRawTexturePtr OdTrVecTtfFontsCache::getCharTexture ( TtfFont pFont,
OdUInt32 uChar,
double * pSideMult = NULL ) const
inlineprotectedvirtual

Return texture for character.

Parameters
pFont[in] Pointer to the font.
uChar[in] Property value to set.
pSideMult[out] Distance between this and previous character.
Returns
texture for character if successfully, or null otherwise.
Remarks

Implements OdTrVisTtfFontsCacheClient.

Definition at line 100 of file TrVecTtfFontsCache.h.

◆ getFontCache() [1/2]

const void * OdTrVecTtfFontsCache::getFontCache ( const FontKey & fontKey) const

◆ getFontCache() [2/2]

TtfFont OdTrVecTtfFontsCache::getFontCache ( OdUInt64 fontKeyPartA,
OdUInt64 fontKeyPartB ) const
inlineprotectedvirtual

Implements OdTrVisTtfFontsCacheClient.

Definition at line 86 of file TrVecTtfFontsCache.h.

◆ getFontKey()

OdUInt64 OdTrVecTtfFontsCache::getFontKey ( const OdGiTextStyle * pTextStyle) const
protected

◆ setUseStableFontKey() [1/2]

void OdTrVecTtfFontsCache::setUseStableFontKey ( bool bStableKey)
inline

Definition at line 60 of file TrVecTtfFontsCache.h.

◆ setUseStableFontKey() [2/2]

void OdTrVecTtfFontsCache::setUseStableFontKey ( OdTrVecDevice * pDevice)

◆ shareToNew()

void OdTrVecTtfFontsCache::shareToNew ( OdTrVecDevice * pDevice)

◆ tfcBeginMetafile()

OdGiConveyorGeometry * OdTrVecTtfFontsCache::tfcBeginMetafile ( OdRxObject * pMetafile,
void * pSessionId )

◆ tfcFinalizeMetafile()

void OdTrVecTtfFontsCache::tfcFinalizeMetafile ( OdRxObject * pMetafile,
void * pSessionId )

◆ tfcFinalizeMetafileExt()

void OdTrVecTtfFontsCache::tfcFinalizeMetafileExt ( FontKey & fontKey,
CharKey chr,
OdRxObject * pMetafile,
void * pSessionId )

◆ tfcNewMetafile()

OdRxObjectPtr OdTrVecTtfFontsCache::tfcNewMetafile ( void * pSessionId)

◆ tfcPlayMetafile()

void OdTrVecTtfFontsCache::tfcPlayMetafile ( const OdGeMatrix3d & xForm,
const OdRxObject * pMetafile,
void * pSessionId ) const

◆ useStableFontKey()

bool OdTrVecTtfFontsCache::useStableFontKey ( ) const
inline

Definition at line 59 of file TrVecTtfFontsCache.h.

Member Data Documentation

◆ m_bStableKey

bool OdTrVecTtfFontsCache::m_bStableKey
protected

Definition at line 52 of file TrVecTtfFontsCache.h.

◆ m_deviceRefs

OdStaticRxObject<OdDrawOrderMetafileBase> OdTrVecTtfFontsCache::m_deviceRefs
protected

Definition at line 51 of file TrVecTtfFontsCache.h.


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