gz/rendering/Text.hh
Represents a billboard text geometry that is always facing the camera.
Definition: gz/rendering/Text.hh:62
STL class.
virtual void SetFontName(const std::string &_font)=0
Set the font.
virtual gz::math::AxisAlignedBox AABB() const =0
Get the axis aligned bounding box of the text.
virtual bool ShowOnTop() const =0
Get whether the is displayed above other objects.
virtual TextHorizontalAlign HorizontalAlignment() const =0
Get the horizontal alignment of the text.
virtual float SpaceWidth() const =0
Get the width of spaces between words.
virtual void SetBaseline(const float _baseline)=0
Set the baseline height of the text.
TextVerticalAlign
Text vertical alignment.
Definition: gz/rendering/Text.hh:49
virtual void SetCharHeight(const float _height)=0
Set the height of the character in meters.
virtual float CharHeight() const =0
Get the height of the characters in meters return Height of the characters.
virtual void SetSpaceWidth(const float _width)=0
Set the width of spaces between words.
virtual std::string TextString() const =0
Get the displayed text.
virtual void SetColor(const gz::math::Color &_color)=0
Set the text color.
virtual void SetShowOnTop(const bool _onTop)=0
True = text always is displayed ontop.
virtual void SetTextAlignment(const TextHorizontalAlign &_hAlign, const TextVerticalAlign &_vAlign)=0
Set the alignment of the text.
virtual float Baseline() const =0
Get the baseline height in meters.
virtual void SetTextString(const std::string &_text)=0
Set the text to display.
TextHorizontalAlign
Text Horizontal alignment.
Definition: gz/rendering/Text.hh:37
virtual TextVerticalAlign VerticalAlignment() const =0
Get the vertical alignment of the text.
Represents a geometric shape to be rendered.
Definition: gz/rendering/Geometry.hh:34