15#define OSGTEXT_TEXT3D 1
41 float getCharacterDepth()
const;
Vec2f Vec2
Definition Vec2:21
Vec3f Vec3
Definition Vec3:21
BoundingBoxd BoundingBox
Definition BoundingBox:257
The osgText library is a NodeKit that extends the core scene graph to support high quality text.
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
std::vector< ref_ptr< PrimitiveSet > > PrimitiveSetList
Definition Geometry:102
A PrimitiveFunctor is used (in conjunction with osg::Drawable::accept (PrimitiveFunctor&)) to get acc...
Definition PrimitiveSet:54
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
Stores a set of modes and attributes which represent a set of OpenGL state.
Definition StateSet:46
void setCharacterDepth(float characterDepth)
Set the Charactere Depth of text.
virtual void accept(osg::Drawable::ConstAttributeFunctor &af) const
accept an ConstAttributeFunctor and call its methods to tell it about the internal attributes that th...
osg::ref_ptr< osg::StateSet > _wallStateSet
Definition Text3D:142
std::vector< GlyphRenderInfo > LineRenderInfo
Definition Text3D:134
osg::Geometry::PrimitiveSetList _wallPrimitiveSetList
Definition Text3D:120
osg::StateSet * getOrCreateWallStateSet()
Get or create the wall StateSet.
Definition Text3D:57
virtual bool supports(const osg::Drawable::ConstAttributeFunctor &) const
return true, osgText::Text does support accept(ConstAttributeFunctor&).
Definition Text3D:83
void copyAndOffsetPrimitiveSets(osg::Geometry::PrimitiveSetList &dest_PrimitiveSetList, osg::Geometry::PrimitiveSetList &src_PrimitiveSetList, unsigned int offset)
virtual bool supports(const osg::PrimitiveFunctor &) const
return true, osgText::Text does support accept(PrimitiveFunctor&) .
Definition Text3D:89
virtual void drawImplementation(osg::RenderInfo &renderInfo) const
Draw the text.
virtual void resizeGLObjectBuffers(unsigned int maxSize)
Resize any per context GLObject buffers to specified size.
META_Object(osgText, Text3D) float getCharacterDepth() const
Get the Charactere Depth of text.
void setWallStateSet(osg::StateSet *wallStateSet)
Set the wall StateSet.
Definition Text3D:63
void setRenderMode(RenderMode renderMode)
Deprecated, value is now ignored.
Definition Text3D:49
virtual osg::BoundingBox computeBoundingBox() const
Compute the bounding box around Drawables's geometry.
osg::Geometry::PrimitiveSetList _backPrimitiveSetList
Definition Text3D:121
RenderMode getRenderMode() const
Deprecated, value is now ignored.
Definition Text3D:47
std::vector< LineRenderInfo > TextRenderInfo
Definition Text3D:135
RenderMode
Deprecated.
Definition Text3D:30
@ PER_GLYPH
Definition Text3D:32
@ PER_FACE
Definition Text3D:31
virtual void accept(osg::PrimitiveFunctor &pf) const
accept a PrimtiveFunctor and call its methods to tell it about the internal primtives that this Drawa...
const osg::StateSet * getWallStateSet() const
Get the wall StateSet.
Definition Text3D:55
RenderMode _renderMode
Definition Text3D:140
virtual ~Text3D()
Definition Text3D:111
void setBackStateSet(osg::StateSet *backStateSet)
Set the back StateSet.
Definition Text3D:72
osg::StateSet * getBackStateSet()
Get the back StateSet.
Definition Text3D:66
osg::StateSet * getOrCreateBackStateSet()
Get or create the back StateSet.
Definition Text3D:70
String::iterator computeLastCharacterOnLine(osg::Vec2 &cursor, String::iterator first, String::iterator last)
Text3D(const Text3D &text, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
void computeGlyphRepresentation()
osg::StateSet * getWallStateSet()
Get the wall StateSet.
Definition Text3D:53
osg::Geometry::PrimitiveSetList _frontPrimitiveSetList
Definition Text3D:119
virtual bool supports(const osg::Drawable::AttributeFunctor &) const
return false, osgText::Text does not support accept(AttributeFunctor&).
Definition Text3D:80
friend class Font
Definition Text3D:104
TextRenderInfo _textRenderInfo
Definition Text3D:137
virtual void releaseGLObjects(osg::State *state=0) const
If State is non-zero, this function releases OpenGL objects for the specified graphics context.
osg::ref_ptr< osg::StateSet > _backStateSet
Definition Text3D:143
osg::StateSet * getBackStateSet() const
Get the back StateSet.
Definition Text3D:68
osg::Vec3 _position
Definition Text3D:131
GlyphRenderInfo(GlyphGeometry *glyphGeometry, osg::Vec3 &pos)
Definition Text3D:126
osg::ref_ptr< GlyphGeometry > _glyphGeometry
Definition Text3D:130
#define OSGTEXT_EXPORT
Definition Export:39