void setTextKerning(const double text_kerning)
mrpt::opengl::TOpenGLFontStyle getTextStyle() const
Gets the current drawing style.
void setTextSpacing(const double text_spacing)
#define DEFINE_SERIALIZABLE(class_name, NS)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
double setTextSpacing() const
void setTextStyle(const mrpt::opengl::TOpenGLFontStyle text_style)
Change drawing style: FILL, OUTLINE, NICE.
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...
CText3D(const std::string &str=std::string(""), const std::string &fontName=std::string("sans"), const float scale=1.0, const mrpt::opengl::TOpenGLFontStyle text_style=mrpt::opengl::NICE, const double text_spacing=1.5, const double text_kerning=0.1)
TOpenGLFontStyle m_text_style
double setTextKerning() const
void setString(const std::string &s)
Sets the displayed string.
Renderizable generic renderer for objects using the "text shader".
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".
void onUpdateBuffers_Text() override
Must be implemented in derived classes to update the geometric entities to be drawn in "m_*_buffer" f...
const std::string & getFont() const
Returns the text font
const std::string & getString() const
Returns the currently text associated to this object.