OpenSceneGraph  3.0.1
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
osgText::Glyph Class Reference
Inheritance diagram for osgText::Glyph:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Glyph (Font *font, unsigned int glyphCode)
FontgetFont ()
const FontgetFont () const
unsigned int getGlyphCode () const
void setWidth (float width)
float getWidth () const
void setHeight (float height)
float getHeight () const
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 setTexture (GlyphTexture *texture)
GlyphTexturegetTexture ()
const GlyphTexturegetTexture () const
void setTexturePosition (int posX, int posY)
int getTexturePositionX () const
int getTexturePositionY () const
void setMinTexCoord (const osg::Vec2 &coord)
const osg::Vec2getMinTexCoord () const
void setMaxTexCoord (const osg::Vec2 &coord)
const osg::Vec2getMaxTexCoord () const
void subload () const

Protected Types

typedef osg::buffered_value
< GLuint > 
GLObjectList

Protected Member Functions

virtual ~Glyph ()

Protected Attributes

Font_font
unsigned int _glyphCode
float _width
float _height
osg::Vec2 _horizontalBearing
float _horizontalAdvance
osg::Vec2 _verticalBearing
float _verticalAdvance
GlyphTexture_texture
int _texturePosX
int _texturePosY
osg::Vec2 _minTexCoord
osg::Vec2 _maxTexCoord
GLObjectList _globjList

Member Typedef Documentation


Constructor & Destructor Documentation

osgText::Glyph::Glyph ( Font font,
unsigned int  glyphCode 
)
virtual osgText::Glyph::~Glyph ( ) [protected, virtual]

Member Function Documentation

Font* osgText::Glyph::getFont ( ) [inline]
const Font* osgText::Glyph::getFont ( ) const [inline]
unsigned int osgText::Glyph::getGlyphCode ( ) const [inline]
float osgText::Glyph::getHeight ( ) const [inline]
float osgText::Glyph::getHorizontalAdvance ( ) const
const osg::Vec2& osgText::Glyph::getHorizontalBearing ( ) const
const osg::Vec2& osgText::Glyph::getMaxTexCoord ( ) const
const osg::Vec2& osgText::Glyph::getMinTexCoord ( ) const
GlyphTexture* osgText::Glyph::getTexture ( )
const GlyphTexture* osgText::Glyph::getTexture ( ) const
int osgText::Glyph::getTexturePositionX ( ) const
int osgText::Glyph::getTexturePositionY ( ) const
float osgText::Glyph::getVerticalAdvance ( ) const
const osg::Vec2& osgText::Glyph::getVerticalBearing ( ) const
float osgText::Glyph::getWidth ( ) const [inline]
void osgText::Glyph::setHeight ( float  height) [inline]
void osgText::Glyph::setHorizontalAdvance ( float  advance)
void osgText::Glyph::setHorizontalBearing ( const osg::Vec2 bearing)
void osgText::Glyph::setMaxTexCoord ( const osg::Vec2 coord)
void osgText::Glyph::setMinTexCoord ( const osg::Vec2 coord)
void osgText::Glyph::setTexture ( GlyphTexture texture)
void osgText::Glyph::setTexturePosition ( int  posX,
int  posY 
)
void osgText::Glyph::setVerticalAdvance ( float  advance)
void osgText::Glyph::setVerticalBearing ( const osg::Vec2 bearing)
void osgText::Glyph::setWidth ( float  width) [inline]
void osgText::Glyph::subload ( ) const

Member Data Documentation

unsigned int osgText::Glyph::_glyphCode [protected]
float osgText::Glyph::_height [protected]
float osgText::Glyph::_width [protected]

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

osg logo
Generated at Mon Oct 3 2011 12:39:49 for the OpenSceneGraph by doxygen 1.7.5.