#include <OSGTextLayoutResult.h>
Public Member Functions | |
| TextLayoutResult () | |
| void | clear () |
| UInt32 | getNumGlyphs () const |
Public Attributes | |
| std::vector< TextGlyph::Index > | indices |
| std::vector< Vec2f > | positions |
| std::vector< Vec2f > | lineBounds |
| Vec2f | textBounds |
Definition at line 63 of file OSGTextLayoutResult.h.
| osg::TextLayoutResult::TextLayoutResult | ( | ) | [inline] |
Creates a new TextLayoutResult object.
Definition at line 43 of file OSGTextLayoutResult.inl.
00044 : indices(), positions(), lineBounds(), textBounds() 00045 {}
| void osg::TextLayoutResult::clear | ( | void | ) |
Clears the TextLayoutResult object.
Definition at line 56 of file OSGTextLayoutResult.cpp.
References indices, lineBounds, positions, and textBounds.
00057 { 00058 indices.clear(); 00059 positions.clear(); 00060 lineBounds.clear(); 00061 textBounds.setValues(0.f, 0.f); 00062 }
| UInt32 osg::TextLayoutResult::getNumGlyphs | ( | ) | const [inline] |
Returns the number of glyph indices that have a corresponding position.
Definition at line 48 of file OSGTextLayoutResult.inl.
References indices, and positions.
Referenced by osg::TextTXFFace::addToGeom(), osg::TextFace::calculateBoundingBox(), osg::SimpleStatisticsForeground::drawCharacters(), osg::GraphicStatisticsForeground::drawString(), osg::TextVectorFace::fillGeo(), and osg::TextPixmapFace::makeImage().
| std::vector<TextGlyph::Index> osg::TextLayoutResult::indices |
The glyph indices
Definition at line 75 of file OSGTextLayoutResult.h.
Referenced by osg::TextTXFFace::addToGeom(), osg::TextFace::calculateBoundingBox(), clear(), osg::SimpleStatisticsForeground::drawCharacters(), osg::GraphicStatisticsForeground::drawString(), osg::TextVectorFace::fillGeo(), getNumGlyphs(), and osg::TextPixmapFace::makeImage().
| std::vector<Vec2f> osg::TextLayoutResult::positions |
The positions of the glyphs
Definition at line 78 of file OSGTextLayoutResult.h.
Referenced by osg::TextTXFFace::addToGeom(), osg::TextFace::adjustLineOrigin(), osg::TextFace::calculateBoundingBox(), clear(), osg::SimpleStatisticsForeground::drawCharacters(), osg::GraphicStatisticsForeground::drawString(), osg::TextVectorFace::fillGeo(), getNumGlyphs(), and osg::TextPixmapFace::makeImage().
| std::vector<Vec2f> osg::TextLayoutResult::lineBounds |
The text bounds
Definition at line 91 of file OSGTextLayoutResult.h.
Referenced by clear(), and osg::SimpleStatisticsForeground::draw().
1.5.5