OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
osgText::Font::FontImplementation Class Referenceabstract

#include <Font.h>

Inheritance diagram for osgText::Font::FontImplementation:
Inheritance graph
[legend]
Collaboration diagram for osgText::Font::FontImplementation:
Collaboration graph
[legend]

Public Member Functions

 FontImplementation ()
 
virtual std::string getFileName () const =0
 
virtual bool supportsMultipleFontResolutions () const =0
 
virtual GlyphgetGlyph (const FontResolution &fontRes, unsigned int charcode)=0
 
virtual Glyph3DgetGlyph3D (unsigned int charcode)=0
 
virtual osg::Vec2 getKerning (unsigned int leftcharcode, unsigned int rightcharcode, KerningType kerningType)=0
 
virtual bool hasVertical () const =0
 
void addGlyph (const FontResolution &fontRes, unsigned int charcode, Glyph *glyph)
 
virtual bool getVerticalSize (float &, float &) const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Public Attributes

Font_facade
 

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Detailed Description

Definition at line 213 of file Font.h.

Constructor & Destructor Documentation

osgText::Font::FontImplementation::FontImplementation ( )
inline

Definition at line 217 of file Font.h.

Member Function Documentation

void osgText::Font::FontImplementation::addGlyph ( const FontResolution fontRes,
unsigned int  charcode,
Glyph glyph 
)
inline

Definition at line 237 of file Font.h.

virtual std::string osgText::Font::FontImplementation::getFileName ( ) const
pure virtual

Implemented in osgQt::QFontImplementation.

virtual Glyph* osgText::Font::FontImplementation::getGlyph ( const FontResolution fontRes,
unsigned int  charcode 
)
pure virtual

Get a Glyph for specified charcode, and the font size nearest to the current font size hint.

Implemented in osgQt::QFontImplementation.

virtual Glyph3D* osgText::Font::FontImplementation::getGlyph3D ( unsigned int  charcode)
pure virtual

Get a Glyph3D for specified charcode.

Implemented in osgQt::QFontImplementation.

virtual osg::Vec2 osgText::Font::FontImplementation::getKerning ( unsigned int  leftcharcode,
unsigned int  rightcharcode,
KerningType  kerningType 
)
pure virtual

Get a kerning (adjustment of spacing of two adjacent character) for specified charcodes, w.r.t the current font size hint.

Implemented in osgQt::QFontImplementation.

virtual bool osgText::Font::FontImplementation::getVerticalSize ( float &  ,
float &   
) const
inlinevirtual

Definition at line 244 of file Font.h.

virtual bool osgText::Font::FontImplementation::hasVertical ( ) const
pure virtual

Return true if this font provides vertical alignments and spacing or glyphs.

Implemented in osgQt::QFontImplementation.

virtual bool osgText::Font::FontImplementation::supportsMultipleFontResolutions ( ) const
pure virtual

Implemented in osgQt::QFontImplementation.

Member Data Documentation

Font* osgText::Font::FontImplementation::_facade

Definition at line 242 of file Font.h.


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