15 #define OSGTEXT_STYLE 1
19 #include <osgText/Export>
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);
51 void roundedBevel(
float width=0.5f,
unsigned int numSteps=10);
53 void roundedBevel2(
float width=0.5f,
unsigned int numSteps=10);
57 void setVertices(
const Vertices& vertices) { _vertices = vertices; }
61 void print(std::ostream& fout);
83 bool operator == (
const Style& style)
const;
float getSampleDensity() const
void setWidthRatio(float widthRatio)
1 is the default width of the text
osg::ref_ptr< Bevel > _bevel
void setOutlineRatio(float outlineRatio)
0 is off
bool _smoothConcaveJunctions
const Bevel * getBevel() const
float getThicknessRatio() const
float getWidthRatio() const
void setBevel(Bevel *bevel)
NULL is no bevel.
#define META_Object(library, name)
GLint GLenum GLsizei width
std::vector< osg::Vec2 > Vertices
void setVertices(const Vertices &vertices)
const Vertices & getVertices() const
float getOutlineRatio() const
void setSampleDensity(float sd)
1.0 is default number of samples
void setThicknessRatio(float thicknessRatio)
0 is 2D text