class OSGTEXT_EXPORT osgText::Text


Inheritance:


Public Methods

[more] Text()
[more] Text(const Text& text, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY)
[more] Text(Font* font)
[more]virtual osg::Object* cloneType() const
[more]virtual osg::Object* clone(const osg::CopyOp& copyop) const
[more]virtual bool isSameKindAs(const osg::Object* obj) const
[more]virtual const char* className() const
[more]virtual const char* libraryName() const
[more]void setPosition(const osg::Vec2& pos)
[more]void setPosition(const osg::Vec3& pos)
[more]const osg::Vec3& getPosition() const
[more]void setColor(const osg::Vec4& color)
[more]osg::Vec4& getColor()
[more]const osg::Vec4& getColor() const
[more]void setDrawMode(int mode)
[more]int getDrawMode() const
[more]void setBoundingBox(int mode)
[more]int getBoundingBox() const
[more]void setAlignment(int alignment)
[more]int getAlignment() const
[more]void setFont(Font* font)
[more]Font* getFont()
[more]const Font* getFont() const
[more]void setText(const char* text)
[more]void setText(const std::string& text)
[more]const std::string& getText() const
[more]virtual void drawImmediateMode(osg::State& state)
[more]virtual void drawBoundingBox(void)
[more]virtual void drawAlignment(void)
[more]const osg::Vec3& getAlignmentPos() const

Public Members

[more]enum AlignmentType
[more]enum BoundingBoxType
[more]enum DrawModeType

Protected Fields

[more]osg::ref_ptr<Font> _font
[more]bool _init
[more]bool _initAlignment
[more]std::string _text
[more]int _fontType
[more]int _alignment
[more]int _drawMode
[more]int _boundingBoxType
[more]osg::Vec3 _pos
[more]osg::Vec3 _alignmentPos
[more]osg::Vec4 _color

Protected Methods

[more]virtual ~Text()
[more]virtual void setDefaults(void)
[more]virtual const bool computeBound(void) const
[more]virtual void calcBounds(osg::Vec3* min, osg::Vec3* max) const
[more]void initAlignment(osg::Vec3* min, osg::Vec3* max)
[more]bool initAlignment(void)

Protected Members

[more]enum FontType


Documentation

oenum AlignmentType

o LEFT_TOP

o LEFT_CENTER

o LEFT_BOTTOM

o CENTER_TOP

o CENTER_CENTER

o CENTER_BOTTOM

o RIGHT_TOP

o RIGHT_CENTER

o RIGHT_BOTTOM

oenum BoundingBoxType

o GEOMETRY

o GLYPH

oenum DrawModeType

o TEXT

o BOUNDINGBOX

o ALIGNMENT

o DEFAULT

o Text()

o Text(const Text& text, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY)

o Text(Font* font)

ovirtual osg::Object* cloneType() const

ovirtual osg::Object* clone(const osg::CopyOp& copyop) const

ovirtual bool isSameKindAs(const osg::Object* obj) const

ovirtual const char* className() const

ovirtual const char* libraryName() const

ovoid setPosition(const osg::Vec2& pos)

ovoid setPosition(const osg::Vec3& pos)

oconst osg::Vec3& getPosition() const

ovoid setColor(const osg::Vec4& color)

oosg::Vec4& getColor()

oconst osg::Vec4& getColor() const

ovoid setDrawMode(int mode)

oint getDrawMode() const

ovoid setBoundingBox(int mode)

oint getBoundingBox() const

ovoid setAlignment(int alignment)

oint getAlignment() const

ovoid setFont(Font* font)

oFont* getFont()

oconst Font* getFont() const

ovoid setText(const char* text)

ovoid setText(const std::string& text)

oconst std::string& getText() const

ovirtual void drawImmediateMode(osg::State& state)

ovirtual void drawBoundingBox(void)

ovirtual void drawAlignment(void)

oconst osg::Vec3& getAlignmentPos() const

oenum FontType

o UNDEF

o BITMAP

o PIXMAP

o OUTLINE

o POLYGON

o TEXTURE

ovirtual ~Text()

ovirtual void setDefaults(void)

ovirtual const bool computeBound(void) const

ovirtual void calcBounds(osg::Vec3* min, osg::Vec3* max) const

ovoid initAlignment(osg::Vec3* min, osg::Vec3* max)

obool initAlignment(void)

oosg::ref_ptr<Font> _font

obool _init

obool _initAlignment

ostd::string _text

oint _fontType

oint _alignment

oint _drawMode

oint _boundingBoxType

oosg::Vec3 _pos

oosg::Vec3 _alignmentPos

oosg::Vec4 _color


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.