TextBase
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGTEXT_TEXTBASE
#define OSGTEXT_TEXTBASE 1
#include <osg/Drawable>
#include <osgText/String>
#include <osgText/KerningType>
#include <osgText/Font>
namespace osgText {
#define NEW_APPROACH
class OSGTEXT_EXPORT TextBase : public osg::Drawable
{
public:
TextBase();
TextBase(const TextBase& text,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
//virtual osg::Object* cloneType() const { return new Text(); }
//virtual osg::Object* clone(const osg::CopyOp& copyop) const { return new Text(*this,copyop); }
virtual bool isSameKindAs(const osg::Object* obj) const { return dynamic_cast<const TextBase*>(obj)!=NULL; }
virtual const char* className() const { return "TextBase"; }
virtual const char* libraryName() const { return "osgText"; }
void setColor(const osg::Vec4& color);
const osg::Vec4& getColor() const { return _color; }
virtual void setFont(Font* font=0) { setFont(osg::ref_ptr<Font>(font)); };
virtual void setFont(osg::ref_ptr<Font> font);
virtual void setFont(const std::string& fontfile);
Font* getFont() { return _font.get(); }
const Font* getFont() const { return _font.get(); }
void setStyle(Style* style) { _style = style; }
Style* getStyle() { return _style.get(); }
const Style* getStyle() const { return _style.get(); }
Style* getOrCreateStyle() { if (!_style) _style = new Style; return _style.get(); }
void setFontResolution(unsigned int width, unsigned int height);
unsigned int getFontWidth() const { return _fontSize.first; }
unsigned int getFontHeight() const { return _fontSize.second; }
void setText(const String& text);
void setText(const std::string& text);
void setText(const std::string& text,String::Encoding encoding);
void setText(const wchar_t* text);
String& getText() { return _text; }
const String& getText() const { return _text; }
void update() { computeGlyphRepresentation(); }
void setCharacterSize(float height);
void setCharacterSize(float height, float aspectRatio);
float getCharacterHeight() const { return _characterHeight; }
float getCharacterAspectRatio() const { return _style.valid()? _style->getWidthRatio() : 1.0f; }
enum CharacterSizeMode
{
OBJECT_COORDS,
SCREEN_COORDS,
OBJECT_COORDS_WITH_MAXIMUM_SCREEN_SIZE_CAPPED_BY_FONT_HEIGHT
};
void setCharacterSizeMode(CharacterSizeMode mode) { _characterSizeMode = mode; }
CharacterSizeMode getCharacterSizeMode() const { return _characterSizeMode; }
void setMaximumWidth(float maximumWidth);
float getMaximumWidth() const { return _maximumWidth; }
void setMaximumHeight(float maximumHeight);
float getMaximumHeight() const { return _maximumHeight; }
void setLineSpacing(float lineSpacing);
float getLineSpacing() const { return _lineSpacing; }
void setPosition(const osg::Vec3& pos);
const osg::Vec3& getPosition() const { return _position; }
enum AlignmentType
{
LEFT_TOP,
LEFT_CENTER,
LEFT_BOTTOM,
CENTER_TOP,
CENTER_CENTER,
CENTER_BOTTOM,
RIGHT_TOP,
RIGHT_CENTER,
RIGHT_BOTTOM,
LEFT_BASE_LINE,
CENTER_BASE_LINE,
RIGHT_BASE_LINE,
LEFT_BOTTOM_BASE_LINE,
CENTER_BOTTOM_BASE_LINE,
RIGHT_BOTTOM_BASE_LINE,
BASE_LINE = LEFT_BASE_LINE
};
void setAlignment(AlignmentType alignment);
AlignmentType getAlignment() const { return _alignment; }
enum AxisAlignment
{
XY_PLANE,
REVERSED_XY_PLANE,
XZ_PLANE,
REVERSED_XZ_PLANE,
YZ_PLANE,
REVERSED_YZ_PLANE,
SCREEN,
USER_DEFINED_ROTATION
};
void setAxisAlignment(AxisAlignment axis);
AxisAlignment getAxisAlignment() const { return _axisAlignment; }
void setRotation(const osg::Quat& quat);
const osg::Quat& getRotation() const { return _rotation; }
void setAutoRotateToScreen(bool autoRotateToScreen);
bool getAutoRotateToScreen() const { return _autoRotateToScreen; }
enum Layout
{
LEFT_TO_RIGHT,
RIGHT_TO_LEFT,
VERTICAL
};
void setLayout(Layout layout);
Layout getLayout() const { return _layout; }
enum DrawModeMask
{
TEXT = 1,
BOUNDINGBOX = 2,
FILLEDBOUNDINGBOX = 4,
ALIGNMENT = 8
};
void setDrawMode(unsigned int mode);
unsigned int getDrawMode() const { return _drawMode; }
void setBoundingBoxMargin(float margin);
float getBoundingBoxMargin() const { return _textBBMargin; }
void setBoundingBoxColor(const osg::Vec4& color){ _textBBColor = color; }
const osg::Vec4& getBoundingBoxColor() const { return _textBBColor; }
void setKerningType(KerningType kerningType) { _kerningType = kerningType; }
KerningType getKerningType() const { return _kerningType; }
unsigned int getLineCount() const { return _lineCount; }
virtual void compileGLObjects(osg::RenderInfo& renderInfo) const;
virtual void resizeGLObjectBuffers(unsigned int maxSize);
virtual void releaseGLObjects(osg::State* state=0) const;
virtual osg::BoundingBox computeBoundingBox() const;
typedef osg::ref_ptr<osg::Vec3Array> Coords;
Coords& getCoords() { return _coords; }
const Coords& getCoords() const { return _coords; }
void getCoord(unsigned int i, osg::Vec2& c) const { c.set((*_coords)[i].x(), (*_coords)[i].y()); }
void getCoord(unsigned int i, osg::Vec3& c) const { c = (*_coords)[i]; }
const osg::Matrix& getMatrix() const { return _matrix; }
bool computeMatrix(osg::Matrix& matrix, osg::State* state=0) const;
protected:
virtual ~TextBase();
virtual osg::StateSet* createStateSet();
virtual void assignStateSet();
void initArraysAndBuffers();
osg::VertexArrayState* createVertexArrayStateImplementation(osg::RenderInfo& renderInfo) const;
void positionCursor(const osg::Vec2 & endOfLine_coords, osg::Vec2 & cursor, unsigned int linelength);
String::iterator computeLastCharacterOnLine(osg::Vec2& cursor, String::iterator first,String::iterator last);
void computePositions();
virtual void computePositionsImplementation();
virtual void computeGlyphRepresentation() = 0;
typedef osg::ref_ptr<osg::Vec2Array> TexCoords;
typedef osg::ref_ptr<osg::Vec4Array> ColorCoords;
typedef std::vector< osg::ref_ptr<osg::DrawElements> > Primitives;
// members which have public access.
osg::Vec4 _color;
osg::ref_ptr<Font> _font;
osg::ref_ptr<Font> _fontFallback;
osg::ref_ptr<Style> _style;
FontResolution _fontSize;
float _characterHeight;
CharacterSizeMode _characterSizeMode;
float _maximumWidth;
float _maximumHeight;
float _lineSpacing;
String _text;
osg::Vec3 _position;
AlignmentType _alignment;
AxisAlignment _axisAlignment;
osg::Quat _rotation;
bool _autoRotateToScreen;
Layout _layout;
unsigned int _drawMode;
float _textBBMargin;
osg::Vec4 _textBBColor;
KerningType _kerningType;
unsigned int _lineCount;
bool _glyphNormalized;
osg::Vec3 _offset;
osg::Vec3 _normal;
osg::BoundingBox _textBB;
osg::BoundingBox _textBBWithMargin;
mutable osg::Matrix _matrix;
Primitives _decorationPrimitives;
void setupDecoration();
osg::ref_ptr<osg::VertexBufferObject> _vbo;
osg::ref_ptr<osg::ElementBufferObject> _ebo;
Coords _coords;
Coords _normals;
ColorCoords _colorCoords;
TexCoords _texcoords;
unsigned int addCoord(const osg::Vec2& c) { unsigned int s = _coords->size(); _coords->push_back(osg::Vec3(c.x(), c.y(), 0.0f)); _coords->dirty(); return s; }
unsigned int addCoord(const osg::Vec3& c) { unsigned int s = _coords->size(); _coords->push_back(c); _coords->dirty(); return s; }
void addTexCoord(const osg::Vec2& tc) { _texcoords->push_back(tc); _texcoords->dirty(); }
};
}
#endif
Drawable
Font
KerningType
String
osgText::Font
Definition Font:68
osgText::String
Definition String:44
osgText::String::Encoding
Encoding
Definition String:53
osgText::Style
Definition osgText/Style:72
osgText::TextBase::setRotation
void setRotation(const osg::Quat &quat)
osgText::TextBase::_style
osg::ref_ptr< Style > _style
Definition TextBase:316
osgText::TextBase::_kerningType
KerningType _kerningType
Definition TextBase:334
osgText::TextBase::AlignmentType
AlignmentType
Definition TextBase:169
osgText::TextBase::CENTER_CENTER
@ CENTER_CENTER
Definition TextBase:175
osgText::TextBase::LEFT_CENTER
@ LEFT_CENTER
Definition TextBase:171
osgText::TextBase::LEFT_BASE_LINE
@ LEFT_BASE_LINE
Definition TextBase:182
osgText::TextBase::RIGHT_BASE_LINE
@ RIGHT_BASE_LINE
Definition TextBase:184
osgText::TextBase::RIGHT_BOTTOM
@ RIGHT_BOTTOM
Definition TextBase:180
osgText::TextBase::RIGHT_TOP
@ RIGHT_TOP
Definition TextBase:178
osgText::TextBase::LEFT_TOP
@ LEFT_TOP
Definition TextBase:170
osgText::TextBase::LEFT_BOTTOM
@ LEFT_BOTTOM
Definition TextBase:172
osgText::TextBase::CENTER_TOP
@ CENTER_TOP
Definition TextBase:174
osgText::TextBase::LEFT_BOTTOM_BASE_LINE
@ LEFT_BOTTOM_BASE_LINE
Definition TextBase:186
osgText::TextBase::CENTER_BOTTOM_BASE_LINE
@ CENTER_BOTTOM_BASE_LINE
Definition TextBase:187
osgText::TextBase::BASE_LINE
@ BASE_LINE
Definition TextBase:190
osgText::TextBase::CENTER_BASE_LINE
@ CENTER_BASE_LINE
Definition TextBase:183
osgText::TextBase::CENTER_BOTTOM
@ CENTER_BOTTOM
Definition TextBase:176
osgText::TextBase::RIGHT_CENTER
@ RIGHT_CENTER
Definition TextBase:179
osgText::TextBase::RIGHT_BOTTOM_BASE_LINE
@ RIGHT_BOTTOM_BASE_LINE
Definition TextBase:188
osgText::TextBase::update
void update()
Definition TextBase:106
osgText::TextBase::_maximumWidth
float _maximumWidth
Definition TextBase:320
osgText::TextBase::getAutoRotateToScreen
bool getAutoRotateToScreen() const
Definition TextBase:217
osgText::TextBase::getCharacterHeight
float getCharacterHeight() const
Definition TextBase:115
osgText::TextBase::_textBBWithMargin
osg::BoundingBox _textBBWithMargin
Definition TextBase:341
osgText::TextBase::getCoord
void getCoord(unsigned int i, osg::Vec3 &c) const
Definition TextBase:280
osgText::TextBase::setFont
virtual void setFont(Font *font=0)
Definition TextBase:45
osgText::TextBase::Layout
Layout
Definition TextBase:220
osgText::TextBase::VERTICAL
@ VERTICAL
Definition TextBase:223
osgText::TextBase::RIGHT_TO_LEFT
@ RIGHT_TO_LEFT
default
Definition TextBase:222
osgText::TextBase::LEFT_TO_RIGHT
@ LEFT_TO_RIGHT
Definition TextBase:221
osgText::TextBase::AxisAlignment
AxisAlignment
Definition TextBase:199
osgText::TextBase::REVERSED_XY_PLANE
@ REVERSED_XY_PLANE
Definition TextBase:201
osgText::TextBase::SCREEN
@ SCREEN
Definition TextBase:206
osgText::TextBase::REVERSED_XZ_PLANE
@ REVERSED_XZ_PLANE
Definition TextBase:203
osgText::TextBase::YZ_PLANE
@ YZ_PLANE
Definition TextBase:204
osgText::TextBase::XY_PLANE
@ XY_PLANE
Definition TextBase:200
osgText::TextBase::XZ_PLANE
@ XZ_PLANE
Definition TextBase:202
osgText::TextBase::USER_DEFINED_ROTATION
@ USER_DEFINED_ROTATION
Definition TextBase:207
osgText::TextBase::REVERSED_YZ_PLANE
@ REVERSED_YZ_PLANE
Definition TextBase:205
osgText::TextBase::_textBBMargin
float _textBBMargin
Definition TextBase:332
osgText::TextBase::_vbo
osg::ref_ptr< osg::VertexBufferObject > _vbo
Definition TextBase:349
osgText::TextBase::getBoundingBoxColor
const osg::Vec4 & getBoundingBoxColor() const
Definition TextBase:249
osgText::TextBase::getText
String & getText()
Definition TextBase:99
osgText::TextBase::_maximumHeight
float _maximumHeight
Definition TextBase:321
osgText::TextBase::assignStateSet
virtual void assignStateSet()
osgText::TextBase::setColor
void setColor(const osg::Vec4 &color)
osgText::TextBase::getMaximumHeight
float getMaximumHeight() const
Definition TextBase:148
osgText::TextBase::Coords
osg::ref_ptr< osg::Vec3Array > Coords
Definition TextBase:275
osgText::TextBase::setFont
virtual void setFont(const std::string &fontfile)
osgText::TextBase::getCharacterSizeMode
CharacterSizeMode getCharacterSizeMode() const
Definition TextBase:129
osgText::TextBase::_layout
Layout _layout
Definition TextBase:330
osgText::TextBase::computePositions
void computePositions()
osgText::TextBase::_position
osg::Vec3 _position
Definition TextBase:325
osgText::TextBase::getText
const String & getText() const
Definition TextBase:102
osgText::TextBase::TextBase
TextBase()
osgText::TextBase::addCoord
unsigned int addCoord(const osg::Vec2 &c)
Definition TextBase:357
osgText::TextBase::getOrCreateStyle
Style * getOrCreateStyle()
Definition TextBase:70
osgText::TextBase::_glyphNormalized
bool _glyphNormalized
Definition TextBase:336
osgText::TextBase::getAlignment
AlignmentType getAlignment() const
Definition TextBase:195
osgText::TextBase::setBoundingBoxColor
void setBoundingBoxColor(const osg::Vec4 &color)
Definition TextBase:247
osgText::TextBase::~TextBase
virtual ~TextBase()
osgText::TextBase::getStyle
const Style * getStyle() const
Definition TextBase:67
osgText::TextBase::setAxisAlignment
void setAxisAlignment(AxisAlignment axis)
osgText::TextBase::getLineSpacing
float getLineSpacing() const
Definition TextBase:157
osgText::TextBase::getCoords
Coords & getCoords()
Definition TextBase:276
osgText::TextBase::setText
void setText(const std::string &text, String::Encoding encoding)
osgText::TextBase::_axisAlignment
AxisAlignment _axisAlignment
Definition TextBase:327
osgText::TextBase::_drawMode
unsigned int _drawMode
Definition TextBase:331
osgText::TextBase::_coords
Coords _coords
Definition TextBase:352
osgText::TextBase::_fontFallback
osg::ref_ptr< Font > _fontFallback
Definition TextBase:315
osgText::TextBase::setAlignment
void setAlignment(AlignmentType alignment)
osgText::TextBase::releaseGLObjects
virtual void releaseGLObjects(osg::State *state=0) const
osgText::TextBase::resizeGLObjectBuffers
virtual void resizeGLObjectBuffers(unsigned int maxSize)
osgText::TextBase::computeBoundingBox
virtual osg::BoundingBox computeBoundingBox() const
osgText::TextBase::compileGLObjects
virtual void compileGLObjects(osg::RenderInfo &renderInfo) const
osgText::TextBase::setLayout
void setLayout(Layout layout)
osgText::TextBase::createVertexArrayStateImplementation
osg::VertexArrayState * createVertexArrayStateImplementation(osg::RenderInfo &renderInfo) const
osgText::TextBase::_lineCount
unsigned int _lineCount
Definition TextBase:335
osgText::TextBase::_textBBColor
osg::Vec4 _textBBColor
Definition TextBase:333
osgText::TextBase::setFontResolution
void setFontResolution(unsigned int width, unsigned int height)
osgText::TextBase::getMaximumWidth
float getMaximumWidth() const
Definition TextBase:139
osgText::TextBase::setCharacterSizeMode
void setCharacterSizeMode(CharacterSizeMode mode)
Definition TextBase:126
osgText::TextBase::_characterHeight
float _characterHeight
Definition TextBase:318
osgText::TextBase::setLineSpacing
void setLineSpacing(float lineSpacing)
osgText::TextBase::_normals
Coords _normals
Definition TextBase:353
osgText::TextBase::_autoRotateToScreen
bool _autoRotateToScreen
Definition TextBase:329
osgText::TextBase::_colorCoords
ColorCoords _colorCoords
Definition TextBase:354
osgText::TextBase::CharacterSizeMode
CharacterSizeMode
Definition TextBase:119
osgText::TextBase::SCREEN_COORDS
@ SCREEN_COORDS
default
Definition TextBase:121
osgText::TextBase::OBJECT_COORDS_WITH_MAXIMUM_SCREEN_SIZE_CAPPED_BY_FONT_HEIGHT
@ OBJECT_COORDS_WITH_MAXIMUM_SCREEN_SIZE_CAPPED_BY_FONT_HEIGHT
internally scale the characters to be constant screen size.
Definition TextBase:122
osgText::TextBase::OBJECT_COORDS
@ OBJECT_COORDS
Definition TextBase:120
osgText::TextBase::computeLastCharacterOnLine
String::iterator computeLastCharacterOnLine(osg::Vec2 &cursor, String::iterator first, String::iterator last)
osgText::TextBase::computeMatrix
bool computeMatrix(osg::Matrix &matrix, osg::State *state=0) const
osgText::TextBase::addCoord
unsigned int addCoord(const osg::Vec3 &c)
Definition TextBase:358
osgText::TextBase::setCharacterSize
void setCharacterSize(float height, float aspectRatio)
osgText::TextBase::setStyle
void setStyle(Style *style)
Definition TextBase:63
osgText::TextBase::className
virtual const char * className() const
Definition TextBase:37
osgText::TextBase::TextBase
TextBase(const TextBase &text, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
osgText::TextBase::setCharacterSize
void setCharacterSize(float height)
osgText::TextBase::_decorationPrimitives
Primitives _decorationPrimitives
Definition TextBase:345
osgText::TextBase::setText
void setText(const std::string &text)
osgText::TextBase::getStyle
Style * getStyle()
Definition TextBase:65
osgText::TextBase::_texcoords
TexCoords _texcoords
Definition TextBase:355
osgText::TextBase::getBoundingBoxMargin
float getBoundingBoxMargin() const
Definition TextBase:245
osgText::TextBase::addTexCoord
void addTexCoord(const osg::Vec2 &tc)
Definition TextBase:361
osgText::TextBase::_textBB
osg::BoundingBox _textBB
Definition TextBase:340
osgText::TextBase::getKerningType
KerningType getKerningType() const
Definition TextBase:254
osgText::TextBase::setKerningType
void setKerningType(KerningType kerningType)
Definition TextBase:252
osgText::TextBase::setMaximumWidth
void setMaximumWidth(float maximumWidth)
osgText::TextBase::getFontHeight
unsigned int getFontHeight() const
Definition TextBase:78
osgText::TextBase::_matrix
osg::Matrix _matrix
Definition TextBase:343
osgText::TextBase::isSameKindAs
virtual bool isSameKindAs(const osg::Object *obj) const
Definition TextBase:36
osgText::TextBase::getLayout
Layout getLayout() const
Definition TextBase:228
osgText::TextBase::setAutoRotateToScreen
void setAutoRotateToScreen(bool autoRotateToScreen)
osgText::TextBase::createStateSet
virtual osg::StateSet * createStateSet()
osgText::TextBase::DrawModeMask
DrawModeMask
Definition TextBase:232
osgText::TextBase::TEXT
@ TEXT
Definition TextBase:233
osgText::TextBase::FILLEDBOUNDINGBOX
@ FILLEDBOUNDINGBOX
Definition TextBase:235
osgText::TextBase::BOUNDINGBOX
@ BOUNDINGBOX
default
Definition TextBase:234
osgText::TextBase::ALIGNMENT
@ ALIGNMENT
Definition TextBase:236
osgText::TextBase::setBoundingBoxMargin
void setBoundingBoxMargin(float margin)
osgText::TextBase::_ebo
osg::ref_ptr< osg::ElementBufferObject > _ebo
Definition TextBase:350
osgText::TextBase::_normal
osg::Vec3 _normal
Definition TextBase:339
osgText::TextBase::getLineCount
unsigned int getLineCount() const
Definition TextBase:257
osgText::TextBase::_font
osg::ref_ptr< Font > _font
Definition TextBase:314
osgText::TextBase::_lineSpacing
float _lineSpacing
Definition TextBase:322
osgText::TextBase::_fontSize
FontResolution _fontSize
Definition TextBase:317
osgText::TextBase::getFont
Font * getFont()
Definition TextBase:56
osgText::TextBase::_alignment
AlignmentType _alignment
Definition TextBase:326
osgText::TextBase::_offset
osg::Vec3 _offset
Definition TextBase:338
osgText::TextBase::setDrawMode
void setDrawMode(unsigned int mode)
osgText::TextBase::positionCursor
void positionCursor(const osg::Vec2 &endOfLine_coords, osg::Vec2 &cursor, unsigned int linelength)
osgText::TextBase::_text
String _text
Definition TextBase:324
osgText::TextBase::getCoord
void getCoord(unsigned int i, osg::Vec2 &c) const
Definition TextBase:279
osgText::TextBase::libraryName
virtual const char * libraryName() const
Definition TextBase:38
osgText::TextBase::getDrawMode
unsigned int getDrawMode() const
Definition TextBase:241
osgText::TextBase::TexCoords
osg::ref_ptr< osg::Vec2Array > TexCoords
Definition TextBase:307
osgText::TextBase::setText
void setText(const wchar_t *text)
osgText::TextBase::_rotation
osg::Quat _rotation
Definition TextBase:328
osgText::TextBase::getColor
const osg::Vec4 & getColor() const
Definition TextBase:41
osgText::TextBase::setText
void setText(const String &text)
osgText::TextBase::_characterSizeMode
CharacterSizeMode _characterSizeMode
Definition TextBase:319
osgText::TextBase::getRotation
const osg::Quat & getRotation() const
Definition TextBase:214
osgText::TextBase::setMaximumHeight
void setMaximumHeight(float maximumHeight)
osgText::TextBase::getAxisAlignment
AxisAlignment getAxisAlignment() const
Definition TextBase:211
osgText::TextBase::setPosition
void setPosition(const osg::Vec3 &pos)
osgText::TextBase::getMatrix
const osg::Matrix & getMatrix() const
Definition TextBase:283
osgText::TextBase::setFont
virtual void setFont(osg::ref_ptr< Font > font)
osgText::TextBase::initArraysAndBuffers
void initArraysAndBuffers()
osgText::TextBase::Primitives
std::vector< osg::ref_ptr< osg::DrawElements > > Primitives
Definition TextBase:309
osgText::TextBase::getCoords
const Coords & getCoords() const
Definition TextBase:277
osgText::TextBase::getCharacterAspectRatio
float getCharacterAspectRatio() const
Definition TextBase:116
osgText::TextBase::_color
osg::Vec4 _color
Definition TextBase:313
osgText::TextBase::computeGlyphRepresentation
virtual void computeGlyphRepresentation()=0
osgText::TextBase::computePositionsImplementation
virtual void computePositionsImplementation()
osgText::TextBase::getFont
const Font * getFont() const
Definition TextBase:59
osgText::TextBase::getFontWidth
unsigned int getFontWidth() const
Definition TextBase:77
osgText::TextBase::getPosition
const osg::Vec3 & getPosition() const
Definition TextBase:165
osgText::TextBase::ColorCoords
osg::ref_ptr< osg::Vec4Array > ColorCoords
Definition TextBase:308
osgText::TextBase::setupDecoration
void setupDecoration()
osg::CopyOp
Definition CopyOp:41
osg::CopyOp::SHALLOW_COPY
@ SHALLOW_COPY
Definition CopyOp:47
osg::Drawable
Definition Drawable:89
osg::Object
Definition Object:61
osg::Quat
Definition Quat:30
osg::RenderInfo
Definition RenderInfo:28
osg::StateSet
Definition StateSet:46
osg::State
Definition State:80
osg::Vec2f::set
void set(value_type x, value_type y)
Definition Vec2f:61
osg::Vec2f::x
value_type & x()
Definition Vec2f:67
osg::Vec2f::y
value_type & y()
Definition Vec2f:68
osg::VertexArrayState
Definition VertexArrayState:25
osg::ref_ptr
Definition ref_ptr:32
osgText
osgText::FontResolution
std::pair< unsigned int, unsigned int > FontResolution
Definition KerningType:20
osgText::KerningType
KerningType
Definition KerningType:23
osg::Vec2
Vec2f Vec2
Definition Vec2:21
osg::Vec3
Vec3f Vec3
Definition Vec3:21
osg::BoundingBox
BoundingBoxd BoundingBox
Definition BoundingBox:257
osg::Matrix
Matrixd Matrix
Definition Matrix:27
osg::Vec4
Vec4f Vec4
Definition Vec4:21
OSGTEXT_EXPORT
#define OSGTEXT_EXPORT
Definition osgText/Export:39
NULL
#define NULL
Definition osg/Export:55