openscenegraph
Public Member Functions | Protected Attributes | List of all members
osgQt::QFontImplementation Class Reference
Inheritance diagram for osgQt::QFontImplementation:
osgText::Font::FontImplementation osg::Referenced

Public Member Functions

 QFontImplementation (const QFont &font)
virtual ~QFontImplementation ()
virtual std::string getFileName () const
virtual bool supportsMultipleFontResolutions () const
virtual osgText::GlyphgetGlyph (const osgText::FontResolution &fontRes, unsigned int charcode)
virtual osgText::Glyph3DgetGlyph3D (unsigned int charcode)
virtual osg::Vec2 getKerning (unsigned int leftcharcode, unsigned int rightcharcode, osgText::KerningType kerningType)
virtual bool hasVertical () const
- Public Member Functions inherited from osgText::Font::FontImplementation
 FontImplementation ()
void addGlyph (const FontResolution &fontRes, unsigned int charcode, Glyph *glyph)
- 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

Protected Attributes

std::string _filename
QFont _font

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 ()
- Public Attributes inherited from osgText::Font::FontImplementation
Font_facade
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
void deleteUsingDeleteHandler () const

Constructor & Destructor Documentation

osgQt::QFontImplementation::QFontImplementation ( const QFont &  font)
virtual osgQt::QFontImplementation::~QFontImplementation ( )
virtual

Member Function Documentation

virtual std::string osgQt::QFontImplementation::getFileName ( ) const
virtual
virtual osgText::Glyph* osgQt::QFontImplementation::getGlyph ( const osgText::FontResolution fontRes,
unsigned int  charcode 
)
virtual

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

Implements osgText::Font::FontImplementation.

virtual osgText::Glyph3D* osgQt::QFontImplementation::getGlyph3D ( unsigned int  charcode)
inlinevirtual

Get a Glyph3D for specified charcode.

Implements osgText::Font::FontImplementation.

virtual osg::Vec2 osgQt::QFontImplementation::getKerning ( unsigned int  leftcharcode,
unsigned int  rightcharcode,
osgText::KerningType  kerningType 
)
virtual

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

Implements osgText::Font::FontImplementation.

virtual bool osgQt::QFontImplementation::hasVertical ( ) const
virtual

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

Implements osgText::Font::FontImplementation.

virtual bool osgQt::QFontImplementation::supportsMultipleFontResolutions ( ) const
inlinevirtual

Member Data Documentation

std::string osgQt::QFontImplementation::_filename
protected
QFont osgQt::QFontImplementation::_font
protected

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