15#define OSGTEXT_STYLE 1
36 bool operator == (
const Bevel& rhs)
const
39 if (_thickness != rhs.
_thickness)
return false;
43 void setSmoothConcaveJunctions(
bool flag) { _smoothConcaveJunctions = flag; }
44 bool getSmoothConcaveJunctions()
const {
return _smoothConcaveJunctions; }
46 void setBevelThickness(
float thickness) { _thickness = thickness; }
47 float getBevelThickness()
const {
return _thickness; }
49 void flatBevel(
float width=0.25f);
83 bool operator == (
const Style& style)
const;
Definition osgText/Style:28
std::vector< osg::Vec2 > Vertices
Definition osgText/Style:55
void setVertices(const Vertices &vertices)
Definition osgText/Style:57
void roundedBevel(float width=0.5f, unsigned int numSteps=10)
void print(std::ostream &fout)
Vertices _vertices
Definition osgText/Style:67
bool _smoothConcaveJunctions
Definition osgText/Style:65
Vertices & getVertices()
Definition osgText/Style:58
META_Object(osgText, Bevel) bool operator
const Vertices & getVertices() const
Definition osgText/Style:59
Bevel(const Bevel &bevel, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
void roundedBevel2(float width=0.5f, unsigned int numSteps=10)
float _thickness
Definition osgText/Style:66
Definition osgText/Style:72
float _sampleDensity
Definition osgText/Style:113
void setOutlineRatio(float outlineRatio)
0 is off
Definition osgText/Style:99
const Bevel * getBevel() const
Definition osgText/Style:87
float _thicknessRatio
Definition osgText/Style:111
osg::ref_ptr< Bevel > _bevel
Definition osgText/Style:108
float getSampleDensity() const
Definition osgText/Style:104
void setWidthRatio(float widthRatio)
1 is the default width of the text
Definition osgText/Style:91
float getOutlineRatio() const
Definition osgText/Style:100
float getWidthRatio() const
Definition osgText/Style:92
Style(const Style &style, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
float getThicknessRatio() const
Definition osgText/Style:96
void setBevel(Bevel *bevel)
NULL is no bevel.
Definition osgText/Style:86
void setThicknessRatio(float thicknessRatio)
0 is 2D text
Definition osgText/Style:95
static osg::ref_ptr< Style > & getDefaultStyle()
default Layout implementation used if no other is specified on TextNode
float _widthRatio
Definition osgText/Style:110
void setSampleDensity(float sd)
1.0 is default number of samples
Definition osgText/Style:103
float _outlineRatio
Definition osgText/Style:112
META_Object(osgText, Style)
@ SHALLOW_COPY
Definition CopyOp:47
#define OSGTEXT_EXPORT
Definition osgText/Export:39