15#define OSGTEXT_TEXT3D 1
41 float getCharacterDepth()
const;
59 if (_wallStateSet.valid() ==
false) _wallStateSet =
new osg::StateSet;
60 return _wallStateSet.get();
127 _glyphGeometry(glyphGeometry),
void setCharacterDepth(float characterDepth)
virtual void accept(osg::Drawable::ConstAttributeFunctor &af) const
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()
Definition Text3D:57
virtual bool supports(const osg::Drawable::ConstAttributeFunctor &) const
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
Definition Text3D:89
virtual void drawImplementation(osg::RenderInfo &renderInfo) const
virtual void resizeGLObjectBuffers(unsigned int maxSize)
META_Object(osgText, Text3D) float getCharacterDepth() const
void setWallStateSet(osg::StateSet *wallStateSet)
Definition Text3D:63
void setRenderMode(RenderMode renderMode)
Definition Text3D:49
virtual osg::BoundingBox computeBoundingBox() const
osg::Geometry::PrimitiveSetList _backPrimitiveSetList
Definition Text3D:121
RenderMode getRenderMode() const
Definition Text3D:47
std::vector< LineRenderInfo > TextRenderInfo
Definition Text3D:135
RenderMode
Definition Text3D:30
@ PER_FACE
Definition Text3D:31
virtual void accept(osg::PrimitiveFunctor &pf) const
const osg::StateSet * getWallStateSet() const
Definition Text3D:55
RenderMode _renderMode
Definition Text3D:140
virtual ~Text3D()
Definition Text3D:111
void setBackStateSet(osg::StateSet *backStateSet)
Definition Text3D:72
osg::StateSet * getBackStateSet()
Definition Text3D:66
osg::StateSet * getOrCreateBackStateSet()
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()
Definition Text3D:53
osg::Geometry::PrimitiveSetList _frontPrimitiveSetList
Definition Text3D:119
virtual bool supports(const osg::Drawable::AttributeFunctor &) const
Definition Text3D:80
TextRenderInfo _textRenderInfo
Definition Text3D:137
virtual void releaseGLObjects(osg::State *state=0) const
osg::ref_ptr< osg::StateSet > _backStateSet
Definition Text3D:143
osg::StateSet * getBackStateSet() const
Definition Text3D:68
Definition BoundingBox:34
@ SHALLOW_COPY
Definition CopyOp:47
std::vector< ref_ptr< PrimitiveSet > > PrimitiveSetList
Definition Geometry:102
Definition PrimitiveSet:54
#define OSGTEXT_EXPORT
Definition osgText/Export:39
osg::Vec3 _position
Definition Text3D:131
GlyphRenderInfo(GlyphGeometry *glyphGeometry, osg::Vec3 &pos)
Definition Text3D:126
osg::ref_ptr< GlyphGeometry > _glyphGeometry
Definition Text3D:130