OpenSceneGraph
3.0.1
|
Public Member Functions | |
Style () | |
Style (const Style &style, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Object (osgText, Style) | |
bool | operator== (const Style &style) const |
void | setBevel (Bevel *bevel) |
NULL is no bevel. | |
const Bevel * | getBevel () 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 |
osgText::Style::Style | ( | ) |
osgText::Style::Style | ( | const Style & | style, |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) |
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
osg::ref_ptr<Bevel> osgText::Style::_bevel [protected] |
float osgText::Style::_outlineRatio [protected] |
float osgText::Style::_sampleDensity [protected] |
float osgText::Style::_thicknessRatio [protected] |
float osgText::Style::_widthRatio [protected] |
![]() | Generated at Mon Oct 3 2011 12:39:49 for the OpenSceneGraph by doxygen 1.7.5. |