10 #ifndef opengl_CText3D_H 11 #define opengl_CText3D_H 105 const double scale = 1.0,
107 const double text_spacing = 1.5,
const double text_kerning = 0.1);
113 const double scale = 1.0,
115 const double text_spacing = 1.5,
const double text_kerning = 0.1);
double setTextKerning() const
TOpenGLFontStyle m_text_style
GLenum GLenum GLenum GLenum GLenum scale
virtual ~CText3D()
Private, virtual destructor: only can be deleted from smart pointers.
void setString(const std::string &s)
Sets the displayed string.
EIGEN_STRONG_INLINE void notifyChange() const
Must be called to notify that the object has changed (so, the display list must be updated) ...
void setFont(const std::string &font)
Changes the font name, among accepted values: "sans", "mono", "serif".
std::shared_ptr< CText3D > Ptr
A renderizable object suitable for rendering with OpenGL's display lists.
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.
const std::string & getFont() const
Returns the text font.
const std::string & getString() const
Returns the currently text associated to this object.
TOpenGLFontStyle
Different style for vectorized font rendering.
static Ptr Create(Args &&... args)
GLsizei const GLchar ** string
void setTextKerning(const double text_kerning)
void setTextStyle(const mrpt::opengl::TOpenGLFontStyle text_style)
Change drawing style: FILL, OUTLINE, NICE.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
renders glyphs filled with antialiased outlines
A 3D text (rendered with OpenGL primitives), with selectable font face and drawing style...
double setTextSpacing() const
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...
mrpt::opengl::TOpenGLFontStyle getTextStyle() const
Gets the current drawing style.
void setTextSpacing(const double text_spacing)
void render_dl() const override
Render.
renders glyphs as filled polygons