void setTextKerning(const double text_kerning)
mrpt::opengl::TOpenGLFontStyle getTextStyle() const
Gets the current drawing style.
void setTextSpacing(const double text_spacing)
double setTextSpacing() const
void setTextStyle(const mrpt::opengl::TOpenGLFontStyle text_style)
Change drawing style: FILL, OUTLINE, NICE.
void render_dl() const override
Render.
void getBoundingBox(mrpt::math::TPoint3D &bb_min, mrpt::math::TPoint3D &bb_max) const override
Evaluates the bounding box of this object (including possible children) in the coordinate frame of th...
virtual ~CText3D()
Private, virtual destructor: only can be deleted from smart pointers.
TOpenGLFontStyle m_text_style
CText3D(const std::string &str=std::string(""), const std::string &fontName=std::string("sans"), const double scale=1.0, const mrpt::opengl::TOpenGLFontStyle text_style=mrpt::opengl::NICE, const double text_spacing=1.5, const double text_kerning=0.1)
Constructor.
double setTextKerning() const
std::shared_ptr< CText3D > Ptr
void setString(const std::string &s)
Sets the displayed string.
static Ptr Create(Args &&... args)
A 3D text (rendered with OpenGL primitives), with selectable font face and drawing style.
void setFont(const std::string &font)
Changes the font name, among accepted values: "sans", "mono", "serif".
const std::string & getFont() const
Returns the text font
const std::string & getString() const
Returns the currently text associated to this object.