#include <OSGTextTXFGlyph.h>
Inheritance diagram for osg::TextTXFGlyph:

Definition at line 61 of file OSGTextTXFGlyph.h.
|
|
Defines the glyph index Definition at line 65 of file OSGTextGlyph.h. |
|
|
Defines the coordinate indices Definition at line 180 of file OSGTextTXFGlyph.h. 00180 { COORD_LEFT = 0, COORD_TOP = 1, COORD_RIGHT = 2, COORD_BOTTOM = 3 };
|
|
|
Defines the invalid glyph index Definition at line 68 of file OSGTextGlyph.h. 00068 { INVALID_INDEX = -1 };
|
|
|
Destroys a TextTXFGlyph object. Definition at line 62 of file OSGTextTXFGlyph.cpp.
|
|
|
Creates a new TextTXFGlyph object. Definition at line 49 of file OSGTextTXFGlyph.cpp. References _texCoord, COORD_BOTTOM, COORD_LEFT, COORD_RIGHT, and COORD_TOP. 00050 : TextGlyph(), _width(0), _height(0), _horiBearingX(0), _horiBearingY(0), 00051 _vertBearingX(0), _vertBearingY(0), _x(0), _y(0), _scale(1.f), _texCoord() 00052 { 00053 _texCoord[COORD_LEFT] = _texCoord[COORD_BOTTOM] = 00054 _texCoord[COORD_RIGHT] = _texCoord[COORD_TOP] = 0.f; 00055 }
|
|
|
Copy constructor (not implemented!) |
|
|
Returns the width of the glyph.
Implements osg::TextGlyph. Definition at line 69 of file OSGTextTXFGlyph.cpp. References _scale, and _width. Referenced by osg::TextTXFFace::addToGeom(), osg::SimpleStatisticsForeground::draw(), and osg::GraphicStatisticsForeground::drawString().
|
|
|
Returns the height of the glyph.
Implements osg::TextGlyph. Definition at line 77 of file OSGTextTXFGlyph.cpp. References _height, and _scale. Referenced by osg::TextTXFFace::addToGeom(), osg::SimpleStatisticsForeground::draw(), and osg::GraphicStatisticsForeground::drawString().
|
|
|
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.
Implements osg::TextGlyph. Definition at line 85 of file OSGTextTXFGlyph.cpp. References _horiBearingX, and _scale. 00086 { return static_cast<Real32>(_horiBearingX) * _scale; }
|
|
|
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.
Implements osg::TextGlyph. Definition at line 93 of file OSGTextTXFGlyph.cpp. References _horiBearingY, and _scale. 00094 { return static_cast<Real32>(_horiBearingY) * _scale; }
|
|
|
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.
Implements osg::TextGlyph. Definition at line 101 of file OSGTextTXFGlyph.cpp. References _scale, and _vertBearingX. 00102 { return static_cast<Real32>(_vertBearingX) * _scale; }
|
|
|
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.
Implements osg::TextGlyph. Definition at line 109 of file OSGTextTXFGlyph.cpp. References _scale, and _vertBearingY. 00110 { return static_cast<Real32>(_vertBearingY) * _scale; }
|
|
|
Returns the x position of the glyph in the texture.
Definition at line 50 of file OSGTextTXFGlyph.inl. References _x. 00050 { return _x; }
|
|
|
Returns the y position of the glyph in the texture.
Definition at line 53 of file OSGTextTXFGlyph.inl. References _y. 00053 { return _y; }
|
|
|
Returns the width of the glyph in pixels.
Definition at line 56 of file OSGTextTXFGlyph.inl. References _width. Referenced by osg::TextTXFFace::prepareTexture(). 00056 { return _width; }
|
|
|
Returns the height of the glyph in pixels.
Definition at line 59 of file OSGTextTXFGlyph.inl. References _height. Referenced by osg::TextTXFFace::prepareTexture(). 00059 { return _height; }
|
|
|
Returns the x bearing of the glyph in pixels for horizontal layout. The x bearing is the distance from the origin to the left border of the glyph.
Definition at line 62 of file OSGTextTXFGlyph.inl. References _horiBearingX. 00062 { return _horiBearingX; }
|
|
|
Returns the y bearing of the glyph in pixels for horizontal layout. The y bearing is the distance from the origin to the top border of the glyph.
Definition at line 65 of file OSGTextTXFGlyph.inl. References _horiBearingY. 00065 { return _horiBearingY; }
|
|
|
Returns the x bearing of the glyph in pixels for vertical layout. The x bearing is the distance from the origin to the left border of the glyph.
Definition at line 68 of file OSGTextTXFGlyph.inl. References _vertBearingX. 00068 { return _vertBearingX; }
|
|
|
Returns the y bearing of the glyph in pixels for vertical layout. The y bearing is the distance from the origin to the top border of the glyph.
Definition at line 71 of file OSGTextTXFGlyph.inl. References _vertBearingY. 00071 { return _vertBearingY; }
|
|
|
Returns the scale factor.
Definition at line 74 of file OSGTextTXFGlyph.inl. References _scale. 00074 { return _scale; }
|
|
|
Returns a texture coordinate.
Definition at line 77 of file OSGTextTXFGlyph.inl. References _texCoord. Referenced by osg::TextTXFFace::addToGeom(), osg::SimpleStatisticsForeground::draw(), and osg::GraphicStatisticsForeground::drawString(). 00078 { 00079 assert(index < 4); 00080 return _texCoord[index]; 00081 }
|
|
|
Returns a coordinate.
|
|
||||||||||||
|
Calculates coordinates Definition at line 117 of file OSGTextTXFGlyph.cpp. References _height, _texCoord, _width, _x, _y, COORD_BOTTOM, COORD_LEFT, COORD_RIGHT, and COORD_TOP. 00119 { 00120 Real32 w = static_cast<Real32>(textureWidth); 00121 Real32 h = static_cast<Real32>(textureHeight); 00122 _texCoord[TextTXFGlyph::COORD_LEFT] = _x / w; 00123 _texCoord[TextTXFGlyph::COORD_BOTTOM] = _y / h; 00124 _texCoord[TextTXFGlyph::COORD_RIGHT] = (_x + _width) / w; 00125 _texCoord[TextTXFGlyph::COORD_TOP] = (_y + _height) / h; 00126 }
|
|
|
Copy operator (not implemented!) |
|
|
Returns the index of the glyph.
Definition at line 43 of file OSGTextGlyph.inl. References osg::TextGlyph::_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 osg::TextGlyph::_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 osg::TextGlyph::_vertAdvance. 00049 { return _vertAdvance; }
|
|
|
Needs access to constructor Definition at line 65 of file OSGTextTXFGlyph.h. |
|
|
The width of the glyph in pixels Definition at line 205 of file OSGTextTXFGlyph.h. Referenced by calculateCoordinates(), getPixmapWidth(), and getWidth(). |
|
|
The height of the glyph in pixels Definition at line 208 of file OSGTextTXFGlyph.h. Referenced by calculateCoordinates(), getHeight(), and getPixmapHeight(). |
|
|
The x bearing of the glyph in pixels for horizontal layout Definition at line 211 of file OSGTextTXFGlyph.h. Referenced by getHoriBearingX(), and getPixmapHoriBearingX(). |
|
|
The y bearing of the glyph in pixels for horizontal layout Definition at line 214 of file OSGTextTXFGlyph.h. Referenced by getHoriBearingY(), and getPixmapHoriBearingY(). |
|
|
The x bearing of the glyph in pixels for vertical layout Definition at line 217 of file OSGTextTXFGlyph.h. Referenced by getPixmapVertBearingX(), and getVertBearingX(). |
|
|
The y bearing of the glyph in pixels for vertical layout Definition at line 220 of file OSGTextTXFGlyph.h. Referenced by getPixmapVertBearingY(), and getVertBearingY(). |
|
|
The x position of the glyph in the texture in pixels Definition at line 223 of file OSGTextTXFGlyph.h. Referenced by calculateCoordinates(), and getX(). |
|
|
The y position of the glyph in the texture in pixels Definition at line 226 of file OSGTextTXFGlyph.h. Referenced by calculateCoordinates(), and getY(). |
|
|
The scaling factor Definition at line 229 of file OSGTextTXFGlyph.h. Referenced by getHeight(), getHoriBearingX(), getHoriBearingY(), getScale(), getVertBearingX(), getVertBearingY(), and getWidth(). |
|
|
The texture coordinates Definition at line 232 of file OSGTextTXFGlyph.h. Referenced by calculateCoordinates(), getTexCoord(), and TextTXFGlyph(). |
|
|
The index of the glyph Definition at line 145 of file OSGTextGlyph.h. Referenced by osg::TextGlyph::getGlyphIndex(). |
|
|
The advance of the glyph for horizontal layout Definition at line 148 of file OSGTextGlyph.h. Referenced by osg::TextGlyph::getHoriAdvance(). |
|
|
The advance of the glyph for vertical layout Definition at line 151 of file OSGTextGlyph.h. Referenced by osg::TextGlyph::getVertAdvance(). |
1.4.3