OpenSceneGraph  3.0.1
Public Member Functions | Static 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)
bool operator== (const Style &style) const
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

Static Public Member Functions

static osg::ref_ptr< Style > & getDefaultStyle ()
 default Layout implementation used if no other is specified on TextNode

Protected Attributes

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

Constructor & Destructor Documentation

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

Member Function Documentation

const Bevel* osgText::Style::getBevel ( ) const [inline]
static osg::ref_ptr<Style>& osgText::Style::getDefaultStyle ( ) [static]

default Layout implementation used if no other is specified on TextNode

float osgText::Style::getOutlineRatio ( ) const [inline]
float osgText::Style::getSampleDensity ( ) const [inline]
float osgText::Style::getThicknessRatio ( ) const [inline]
float osgText::Style::getWidthRatio ( ) const [inline]
osgText::Style::META_Object ( osgText  ,
Style   
)
bool osgText::Style::operator== ( const Style style) const
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 Mon Oct 3 2011 12:39:49 for the OpenSceneGraph by doxygen 1.7.5.