OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
osgQt::QFontImplementation Class Reference

#include <QFontImplementation.h>

Inheritance diagram for osgQt::QFontImplementation:
Inheritance graph
[legend]
Collaboration diagram for osgQt::QFontImplementation:
Collaboration graph
[legend]

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)
 
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)
 
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
 

Protected Attributes

std::string _filename
 
QFont _font
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

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
 

Detailed Description

Definition at line 26 of file QFontImplementation.h.

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  charcode)
inlinevirtual

Get a Glyph3D for specified charcode.

Implements osgText::Font::FontImplementation.

Definition at line 38 of file QFontImplementation.h.

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

Implements osgText::Font::FontImplementation.

Definition at line 34 of file QFontImplementation.h.

Member Data Documentation

std::string osgQt::QFontImplementation::_filename
protected

Definition at line 46 of file QFontImplementation.h.

QFont osgQt::QFontImplementation::_font
protected

Definition at line 47 of file QFontImplementation.h.


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