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

List of all members.

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

Protected Attributes

std::string _filename
QFont _font

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) [inline, virtual]

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 [inline, virtual]

Member Data Documentation

std::string osgQt::QFontImplementation::_filename [protected]

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