CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OdTrVisFont Class Reference

#include <TrVisFont.h>

Inheritance diagram for OdTrVisFont:
OdRxObject

Classes

struct  UVRect
 

Public Types

enum  OdTrVisFontFlag {
  kNone = 0 , kBold = 1 , kItalic = 1 << 1 , kUnderline = 1 << 2 ,
  kStrikeout = 1 << 3
}
 

Public Member Functions

 ~OdTrVisFont ()
 
OdTrVisTexturePtr getTextureForLetter (char c, UVRect &uvRect) const
 
OdTrVisTexturePtr getTexture () const
 
OdString fontName () const
 
OdUInt32 fontSize () const
 
OdUInt32 fontWeight () const
 
void getLetterSize (OdUInt32 &w, OdUInt32 &h) const
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Static Public Member Functions

static OdSmartPtr< OdTrVisFontcreateFont (const OdChar *fontName, OdUInt32 fontSize, OdUInt32 fontWeight, OdUInt8 flags=0, OdTrVisRendition *pRendition=NULL)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Protected Member Functions

 OdTrVisFont ()
 
void setup (const OdChar *fontName, OdUInt32 fontSize, OdUInt32 fontWeight, OdUInt8 flags=0, OdTrVisRendition *pRendition=NULL)
 

Protected Attributes

OdString m_fontName
 
OdUInt32 m_fontSize
 
OdUInt32 m_fontWeight
 
OdUInt8 m_flags
 
OdTrVisRenditionm_pRendition
 
OdTrVisTexturePtr m_pTexture
 

Detailed Description

Definition at line 32 of file TrVisFont.h.

Member Enumeration Documentation

◆ OdTrVisFontFlag

Enumerator
kNone 
kBold 
kItalic 
kUnderline 
kStrikeout 

Definition at line 50 of file TrVisFont.h.

Constructor & Destructor Documentation

◆ OdTrVisFont()

OdTrVisFont::OdTrVisFont ( )
protected

◆ ~OdTrVisFont()

OdTrVisFont::~OdTrVisFont ( )

Member Function Documentation

◆ createFont()

static OdSmartPtr< OdTrVisFont > OdTrVisFont::createFont ( const OdChar fontName,
OdUInt32  fontSize,
OdUInt32  fontWeight,
OdUInt8  flags = 0,
OdTrVisRendition pRendition = NULL 
)
static

◆ fontName()

OdString OdTrVisFont::fontName ( ) const
inline

Definition at line 64 of file TrVisFont.h.

◆ fontSize()

OdUInt32 OdTrVisFont::fontSize ( ) const
inline

Definition at line 65 of file TrVisFont.h.

◆ fontWeight()

OdUInt32 OdTrVisFont::fontWeight ( ) const
inline

Definition at line 66 of file TrVisFont.h.

◆ getLetterSize()

void OdTrVisFont::getLetterSize ( OdUInt32 w,
OdUInt32 h 
) const

◆ getTexture()

OdTrVisTexturePtr OdTrVisFont::getTexture ( ) const

◆ getTextureForLetter()

OdTrVisTexturePtr OdTrVisFont::getTextureForLetter ( char  c,
UVRect uvRect 
) const

◆ setup()

void OdTrVisFont::setup ( const OdChar fontName,
OdUInt32  fontSize,
OdUInt32  fontWeight,
OdUInt8  flags = 0,
OdTrVisRendition pRendition = NULL 
)
protected

Member Data Documentation

◆ m_flags

OdUInt8 OdTrVisFont::m_flags
protected

Definition at line 73 of file TrVisFont.h.

◆ m_fontName

OdString OdTrVisFont::m_fontName
protected

Definition at line 70 of file TrVisFont.h.

◆ m_fontSize

OdUInt32 OdTrVisFont::m_fontSize
protected

Definition at line 71 of file TrVisFont.h.

◆ m_fontWeight

OdUInt32 OdTrVisFont::m_fontWeight
protected

Definition at line 72 of file TrVisFont.h.

◆ m_pRendition

OdTrVisRendition* OdTrVisFont::m_pRendition
protected

Definition at line 74 of file TrVisFont.h.

◆ m_pTexture

OdTrVisTexturePtr OdTrVisFont::m_pTexture
mutableprotected

Definition at line 76 of file TrVisFont.h.


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