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

List of all members.

Public Member Functions

 Style ()
 Style (const Style &style, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
META_Object(osgText, Style)
static osg bool 
operator== (const Style &style) const
 default Layout implementation used if no other is specified on TextNode
void setBevel (Bevel *bevel)
 NULL is no bevel.
const BevelgetBevel () const
void setWidthRatio (float widthRatio)
 1 is the default width of the text
float getWidthRatio () const
void setThicknessRatio (float thicknessRatio)
 0 is 2D text
float getThicknessRatio () const
void setOutlineRatio (float outlineRatio)
 0 is off
float getOutlineRatio () const
void setSampleDensity (float sd)
 1.0 is default number of samples
float getSampleDensity () const

Protected Attributes

osg::ref_ptr< Bevel_bevel
float _widthRatio
float _thicknessRatio
float _outlineRatio
float _sampleDensity

Constructor & Destructor Documentation

osgText::Style::Style ( const Style style,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

Member Function Documentation

const Bevel* osgText::Style::getBevel ( ) const [inline]
float osgText::Style::getOutlineRatio ( ) const [inline]
float osgText::Style::getSampleDensity ( ) const [inline]
float osgText::Style::getThicknessRatio ( ) const [inline]
float osgText::Style::getWidthRatio ( ) const [inline]
META_Object (osgText, Style) static osg bool osgText::Style::operator== ( const Style style) const

default Layout implementation used if no other is specified on TextNode

void osgText::Style::setBevel ( Bevel bevel) [inline]

NULL is no bevel.

void osgText::Style::setOutlineRatio ( float  outlineRatio) [inline]

0 is off

void osgText::Style::setSampleDensity ( float  sd) [inline]

1.0 is default number of samples

void osgText::Style::setThicknessRatio ( float  thicknessRatio) [inline]

0 is 2D text

void osgText::Style::setWidthRatio ( float  widthRatio) [inline]

1 is the default width of the text


Member Data Documentation

float osgText::Style::_outlineRatio [protected]
float osgText::Style::_sampleDensity [protected]
float osgText::Style::_widthRatio [protected]

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

osg logo
Generated at Thu Sep 27 2012 17:03:26 for the OpenSceneGraph by doxygen 1.7.6.1.