A 2D text (bitmap rendering): it always "faces the observer" despite it's at some 3D location.
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...
std::shared_ptr< CText > Ptr
void render() const override
Render.
static CText::Ptr Create(const std::string &str)
Class factory
CText(const std::string &str=std::string(""))
Constructor.
void setString(const std::string &s)
Sets the text to display.
std::string getString() const
Return the current text associated to this label.
void setFont(const std::string &s, int height)
Sets the font (It has no effect yet!)
virtual ~CText()
Private, virtual destructor: only can be deleted from smart pointers.
std::string getFont() const