#include <OSGTextGlyph.h>
Inheritance diagram for osg::TextGlyph:

Public Types | |
| typedef Int32 | Index |
| enum | { INVALID_INDEX = -1 } |
Public Member Functions | |
| virtual | ~TextGlyph () |
| Index | getGlyphIndex () const |
| Real32 | getHoriAdvance () const |
| Real32 | getVertAdvance () const |
| virtual Real32 | getWidth () const =0 |
| virtual Real32 | getHeight () const =0 |
| virtual Real32 | getHoriBearingX () const =0 |
| virtual Real32 | getHoriBearingY () const =0 |
| virtual Real32 | getVertBearingX () const =0 |
| virtual Real32 | getVertBearingY () const =0 |
Protected Member Functions | |
| TextGlyph () | |
Protected Attributes | |
| Index | _glyphIndex |
| Real32 | _horiAdvance |
| Real32 | _vertAdvance |
Private Member Functions | |
| TextGlyph (const TextGlyph &other) | |
| const TextGlyph & | operator= (const TextGlyph &other) |
Definition at line 59 of file OSGTextGlyph.h.
|
|
Defines the glyph index Definition at line 65 of file OSGTextGlyph.h. |
|
|
Defines the invalid glyph index Definition at line 68 of file OSGTextGlyph.h. 00068 { INVALID_INDEX = -1 };
|
|
|
Destroys the Glyph object. Definition at line 49 of file OSGTextGlyph.cpp.
|
|
|
Creates a new Glyph object. Definition at line 52 of file OSGTextGlyph.inl. 00053 : _glyphIndex(INVALID_INDEX), _horiAdvance(0.f), _vertAdvance(0.f) 00054 {}
|
|
|
Copy constructor (not implemented!) |
|
|
Returns the index of the glyph.
Definition at line 43 of file OSGTextGlyph.inl. References _glyphIndex. 00043 { return _glyphIndex; }
|
|
|
Returns the advance of the glyph for horizontal layout. The advance is the distance to the next character on the base line.
Definition at line 46 of file OSGTextGlyph.inl. References _horiAdvance. 00046 { return _horiAdvance; }
|
|
|
Returns the advance of the glyph for vertical layout. The advance is the distance to the next character on the base line. This value is usually negative!
Definition at line 49 of file OSGTextGlyph.inl. References _vertAdvance. 00049 { return _vertAdvance; }
|
|
|
Returns the width of the glyph.
Implemented in osg::TextPixmapGlyph, osg::TextTXFGlyph, and osg::TextVectorGlyph. Referenced by osg::TextFace::calculateBoundingBox(). |
|
|
Returns the height of the glyph.
Implemented in osg::TextPixmapGlyph, osg::TextTXFGlyph, and osg::TextVectorGlyph. Referenced by osg::TextFace::calculateBoundingBox(). |
|
|
Returns the x bearing of the glyph for horizontal layout. The x bearing is the distance from the origin to the left border of the glyph.
Implemented in osg::TextPixmapGlyph, osg::TextTXFGlyph, and osg::TextVectorGlyph. |
|
|
Returns the y bearing of the glyph for horizontal layout. The y bearing is the distance from the origin to the top border of the glyph.
Implemented in osg::TextPixmapGlyph, osg::TextTXFGlyph, and osg::TextVectorGlyph. |
|
|
Returns the x bearing of the glyph for vertical layout. The x bearing is the distance from the origin to the left border of the glyph.
Implemented in osg::TextPixmapGlyph, osg::TextTXFGlyph, and osg::TextVectorGlyph. |
|
|
Returns the y bearing of the glyph for vertical layout. The y bearing is the distance from the origin to the top border of the glyph.
Implemented in osg::TextPixmapGlyph, osg::TextTXFGlyph, and osg::TextVectorGlyph. |
|
|
Copy operator (not implemented!) |
|
|
The index of the glyph Definition at line 145 of file OSGTextGlyph.h. Referenced by getGlyphIndex(). |
|
|
The advance of the glyph for horizontal layout Definition at line 148 of file OSGTextGlyph.h. Referenced by getHoriAdvance(). |
|
|
The advance of the glyph for vertical layout Definition at line 151 of file OSGTextGlyph.h. Referenced by getVertAdvance(). |
1.4.3