#include <Text.h>
|
| Text (std::string text="", double fontSize=12, Color textColor=Color(), double posX=0., double posY=0., TextAlign textAlign=ALIGN_LEFT, double paddingL=0., double paddingT=0., double paddingR=0., double paddingB=0., Color backgroundColor=Color(), Color borderColor=Color(), double borderWidth=0.0, std::string fontPath="") |
|
| ~Text () |
|
void | setText (const std::string &s) |
|
void | setFontSize (const double fontSize) |
|
void | setBackgroundColor (const Color &c) |
|
void | setBorderColor (const Color &c) |
|
void | setBorderWidth (double w) |
|
void | setPadding (double left, double top, double right, double bottom) |
|
void * | getOSGNode () |
|
void | setFixedWidth (double w) |
|
void | setFixedHeight (double h) |
|
void | setPosition (double x, double y) |
|
void | setFontResolution (int x, int y) |
|
void | getRectangle (double *left, double *right, double *top, double *bottom) |
|
void | getPosition (double *x, double *y) |
|
std::string | getText () |
|
double | getFontsize () |
|
void | getPadding (double *pl, double *pt, double *pr, double *pb) |
|
TextAlign | getAlign () |
|
Color | getBackgroundColor () |
|
Color | getBorderColor () |
|
double | getBorderWidth () |
|
std::string | getFont () |
|
| TextInterface () |
|
virtual | ~TextInterface () |
|
Definition at line 45 of file Text.h.
◆ Text()
osg_text::Text::Text |
( |
std::string |
text = "" , |
|
|
double |
fontSize = 12 , |
|
|
Color |
textColor = Color() , |
|
|
double |
posX = 0. , |
|
|
double |
posY = 0. , |
|
|
TextAlign |
textAlign = ALIGN_LEFT , |
|
|
double |
paddingL = 0. , |
|
|
double |
paddingT = 0. , |
|
|
double |
paddingR = 0. , |
|
|
double |
paddingB = 0. , |
|
|
Color |
backgroundColor = Color() , |
|
|
Color |
borderColor = Color() , |
|
|
double |
borderWidth = 0.0 , |
|
|
std::string |
fontPath = "" |
|
) |
| |
◆ ~Text()
osg_text::Text::~Text |
( |
void |
| ) |
|
◆ createBackground()
void osg_text::Text::createBackground |
( |
Color |
bgColor | ) |
|
|
private |
◆ createBorder()
void osg_text::Text::createBorder |
( |
Color |
bColor | ) |
|
|
private |
◆ getAlign()
◆ getBackgroundColor()
Color osg_text::Text::getBackgroundColor |
( |
| ) |
|
|
virtual |
◆ getBorderColor()
Color osg_text::Text::getBorderColor |
( |
| ) |
|
|
virtual |
◆ getBorderWidth()
double osg_text::Text::getBorderWidth |
( |
| ) |
|
|
virtual |
◆ getFont()
std::string osg_text::Text::getFont |
( |
| ) |
|
|
virtual |
◆ getFontsize()
double osg_text::Text::getFontsize |
( |
| ) |
|
|
virtual |
◆ getOSGNode()
void * osg_text::Text::getOSGNode |
( |
| ) |
|
|
virtual |
◆ getPadding()
void osg_text::Text::getPadding |
( |
double * |
pl, |
|
|
double * |
pt, |
|
|
double * |
pr, |
|
|
double * |
pb |
|
) |
| |
|
virtual |
◆ getPosition()
void osg_text::Text::getPosition |
( |
double * |
x, |
|
|
double * |
y |
|
) |
| |
|
virtual |
◆ getRectangle()
void osg_text::Text::getRectangle |
( |
double * |
left, |
|
|
double * |
right, |
|
|
double * |
top, |
|
|
double * |
bottom |
|
) |
| |
|
virtual |
◆ getText()
std::string osg_text::Text::getText |
( |
| ) |
|
|
virtual |
◆ setBackgroundColor()
void osg_text::Text::setBackgroundColor |
( |
const Color & |
c | ) |
|
|
virtual |
◆ setBorderColor()
void osg_text::Text::setBorderColor |
( |
const Color & |
c | ) |
|
|
virtual |
◆ setBorderWidth()
void osg_text::Text::setBorderWidth |
( |
double |
w | ) |
|
|
virtual |
◆ setFixedHeight()
void osg_text::Text::setFixedHeight |
( |
double |
h | ) |
|
|
virtual |
◆ setFixedWidth()
void osg_text::Text::setFixedWidth |
( |
double |
w | ) |
|
|
virtual |
◆ setFontResolution()
void osg_text::Text::setFontResolution |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
virtual |
◆ setFontSize()
void osg_text::Text::setFontSize |
( |
const double |
fontSize | ) |
|
◆ setPadding()
void osg_text::Text::setPadding |
( |
double |
left, |
|
|
double |
top, |
|
|
double |
right, |
|
|
double |
bottom |
|
) |
| |
|
virtual |
◆ setPosition()
void osg_text::Text::setPosition |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
virtual |
◆ setText()
void osg_text::Text::setText |
( |
const std::string & |
s | ) |
|
|
virtual |
◆ updateBackgroundPos()
void osg_text::Text::updateBackgroundPos |
( |
| ) |
|
|
private |
◆ updateBorderPos()
void osg_text::Text::updateBorderPos |
( |
| ) |
|
|
private |
◆ updateBoundingBox()
void osg_text::Text::updateBoundingBox |
( |
| ) |
|
|
private |
◆ updatePosition()
void osg_text::Text::updatePosition |
( |
| ) |
|
|
private |
◆ updateSize()
void osg_text::Text::updateSize |
( |
| ) |
|
|
private |
◆ backgroundColor
osg::ref_ptr<osg::Vec4Array> osg_text::Text::backgroundColor |
|
private |
◆ backgroundGeode
osg::ref_ptr<osg::Geode> osg_text::Text::backgroundGeode |
|
private |
◆ backgroundGeom
osg::ref_ptr<osg::Geometry> osg_text::Text::backgroundGeom |
|
private |
◆ backgroundVertices
osg::ref_ptr<osg::Vec3Array> osg_text::Text::backgroundVertices |
|
private |
◆ borderColor
osg::ref_ptr<osg::Vec4Array> osg_text::Text::borderColor |
|
private |
◆ borderGeode
osg::ref_ptr<osg::Geode> osg_text::Text::borderGeode |
|
private |
◆ borderGeom
osg::ref_ptr<osg::Geometry> osg_text::Text::borderGeom |
|
private |
◆ borderVertices
osg::ref_ptr<osg::Vec3Array> osg_text::Text::borderVertices |
|
private |
◆ borderWidth
double osg_text::Text::borderWidth |
|
private |
◆ fixedHeight
double osg_text::Text::fixedHeight |
|
private |
◆ fixedWidth
double osg_text::Text::fixedWidth |
|
private |
◆ font
std::string osg_text::Text::font |
|
private |
◆ fontSize
double osg_text::Text::fontSize |
|
private |
◆ height
double osg_text::Text::height |
|
private |
◆ labelGeode
osg::ref_ptr<osg::Geode> osg_text::Text::labelGeode |
|
private |
◆ labelText
osg::ref_ptr<osgText::Text> osg_text::Text::labelText |
|
private |
◆ pb
double osg_text::Text::pb |
|
private |
◆ pl
double osg_text::Text::pl |
|
private |
◆ posX
double osg_text::Text::posX |
|
private |
◆ posXB
double osg_text::Text::posXB |
|
private |
◆ posXI
double osg_text::Text::posXI |
|
private |
◆ posY
double osg_text::Text::posY |
|
private |
◆ pr
double osg_text::Text::pr |
|
private |
◆ pt
double osg_text::Text::pt |
|
private |
◆ resolutionCorrection
osg::ref_ptr<osg::MatrixTransform> osg_text::Text::resolutionCorrection |
|
private |
◆ resolutionCorrectionX
double osg_text::Text::resolutionCorrectionX |
|
private |
◆ resolutionCorrectionY
double osg_text::Text::resolutionCorrectionY |
|
private |
◆ text_
std::string osg_text::Text::text_ |
|
private |
◆ textAlign
◆ transform
osg::ref_ptr<osg::PositionAttitudeTransform> osg_text::Text::transform |
|
private |
◆ width
double osg_text::Text::width |
|
private |
The documentation for this class was generated from the following files:
- /Developer/bob-learning-dev/simulation/mars/common/graphics/osg_text/src/Text.h
- /Developer/bob-learning-dev/simulation/mars/common/graphics/osg_text/src/Text.cpp