OpenSceneGraph 2.8.3

osgText::Font3D::Glyph3D Class Reference

Inheritance diagram for osgText::Font3D::Glyph3D:

List of all members.

Public Member Functions

 Glyph3D (unsigned int glyphCode)
unsigned int getGlyphCode () const
 return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
void setHorizontalBearing (const osg::Vec2 &bearing)
const osg::Vec2getHorizontalBearing () const
void setHorizontalAdvance (float advance)
float getHorizontalAdvance () const
void setVerticalBearing (const osg::Vec2 &bearing)
const osg::Vec2getVerticalBearing () const
void setVerticalAdvance (float advance)
float getVerticalAdvance () const
void setBoundingBox (osg::BoundingBox &bb)
const osg::BoundingBoxgetBoundingBox () const
virtual void setThreadSafeRefUnref (bool threadSafe)
 Set whether to use a mutex to ensure ref() and unref() are thread safe.
osg::Geometry::PrimitiveSetListgetFrontPrimitiveSetList ()
 Get the PrimitiveSetList for the front face.
osg::Geometry::PrimitiveSetListgetWallPrimitiveSetList ()
 Get the PrimitiveSetList for the wall face.
osg::Geometry::PrimitiveSetListgetBackPrimitiveSetList ()
 Get et the PrimitiveSetList for the back face.
void setVertexArray (osg::Vec3Array *va)
 Set the VertexArray of the glyph.
osg::Vec3ArraygetVertexArray ()
 Get the VertexArray of the glyph.
osg::Vec3ArraygetNormalArray ()
 Get the NormalArray for the wall face.
float getHorizontalWidth ()
float getHorizontalHeight ()
float getVerticalWidth ()
float getVerticalHeight ()
void setWidth (float width)
float getWidth ()
void setHeight (float height)
float getHeight ()

Protected Member Functions

virtual ~Glyph3D ()

Protected Attributes

unsigned int _glyphCode
osg::Vec2 _horizontalBearing
float _horizontalAdvance
osg::Vec2 _verticalBearing
float _verticalAdvance
osg::BoundingBox _bb
float _width
float _height
osg::ref_ptr< osg::Vec3Array_vertexArray
osg::ref_ptr< osg::Vec3Array_normalArray
osg::Geometry::PrimitiveSetList _frontPrimitiveSetList
osg::Geometry::PrimitiveSetList _wallPrimitiveSetList
osg::Geometry::PrimitiveSetList _backPrimitiveSetList

Constructor & Destructor Documentation

osgText::Font3D::Glyph3D::Glyph3D ( unsigned int  glyphCode) [inline]
virtual osgText::Font3D::Glyph3D::~Glyph3D ( ) [inline, protected, virtual]

Member Function Documentation

osg::Geometry::PrimitiveSetList& osgText::Font3D::Glyph3D::getBackPrimitiveSetList ( ) [inline]

Get et the PrimitiveSetList for the back face.

const osg::BoundingBox& osgText::Font3D::Glyph3D::getBoundingBox ( ) const [inline]
osg::Geometry::PrimitiveSetList& osgText::Font3D::Glyph3D::getFrontPrimitiveSetList ( ) [inline]

Get the PrimitiveSetList for the front face.

unsigned int osgText::Font3D::Glyph3D::getGlyphCode ( ) const [inline]

return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

float osgText::Font3D::Glyph3D::getHeight ( ) [inline]
float osgText::Font3D::Glyph3D::getHorizontalAdvance ( ) const [inline]
const osg::Vec2& osgText::Font3D::Glyph3D::getHorizontalBearing ( ) const [inline]
float osgText::Font3D::Glyph3D::getHorizontalHeight ( ) [inline]
float osgText::Font3D::Glyph3D::getHorizontalWidth ( ) [inline]
osg::Vec3Array* osgText::Font3D::Glyph3D::getNormalArray ( ) [inline]

Get the NormalArray for the wall face.

osg::Vec3Array* osgText::Font3D::Glyph3D::getVertexArray ( ) [inline]

Get the VertexArray of the glyph.

float osgText::Font3D::Glyph3D::getVerticalAdvance ( ) const [inline]
const osg::Vec2& osgText::Font3D::Glyph3D::getVerticalBearing ( ) const [inline]
float osgText::Font3D::Glyph3D::getVerticalHeight ( ) [inline]
float osgText::Font3D::Glyph3D::getVerticalWidth ( ) [inline]
osg::Geometry::PrimitiveSetList& osgText::Font3D::Glyph3D::getWallPrimitiveSetList ( ) [inline]

Get the PrimitiveSetList for the wall face.

float osgText::Font3D::Glyph3D::getWidth ( ) [inline]
void osgText::Font3D::Glyph3D::setBoundingBox ( osg::BoundingBox bb) [inline]
void osgText::Font3D::Glyph3D::setHeight ( float  height) [inline]
void osgText::Font3D::Glyph3D::setHorizontalAdvance ( float  advance) [inline]
void osgText::Font3D::Glyph3D::setHorizontalBearing ( const osg::Vec2 bearing) [inline]
virtual void osgText::Font3D::Glyph3D::setThreadSafeRefUnref ( bool  threadSafe) [virtual]

Set whether to use a mutex to ensure ref() and unref() are thread safe.

Reimplemented from osg::Referenced.

void osgText::Font3D::Glyph3D::setVertexArray ( osg::Vec3Array va) [inline]

Set the VertexArray of the glyph.

void osgText::Font3D::Glyph3D::setVerticalAdvance ( float  advance) [inline]
void osgText::Font3D::Glyph3D::setVerticalBearing ( const osg::Vec2 bearing) [inline]
void osgText::Font3D::Glyph3D::setWidth ( float  width) [inline]

Member Data Documentation

unsigned int osgText::Font3D::Glyph3D::_glyphCode [protected]

The documentation for this class was generated from the following file:

osg logo
Generated at Tue Mar 22 2011 13:20:29 for the OpenSceneGraph by doxygen 1.7.3.