BaseText.hh
Go to the documentation of this file.
TextVerticalAlign
Text vertical alignment.
Definition: Text.hh:49
virtual void SetBaseline(const float _baseline) override
Set the baseline height of the text.
Definition: BaseText.hh:258
virtual ignition::math::AxisAlignedBox AABB() const override
Get the axis aligned bounding box of the text.
Definition: BaseText.hh:281
void SetShowOnTop(const bool _onTop) override
True = text always is displayed ontop.
Definition: BaseText.hh:273
virtual void SetTextString(const std::string &_text) override
Set the text to display.
Definition: BaseText.hh:174
virtual void SetColor(const ignition::math::Color &_color) override
Set the text color.
Definition: BaseText.hh:189
virtual std::string TextString() const override
Get the displayed text.
Definition: BaseText.hh:167
virtual TextHorizontalAlign HorizontalAlignment() const override
Get the horizontal alignment of the text.
Definition: BaseText.hh:227
Represents a billboard text geometry that is always facing the camera.
Definition: Text.hh:62
virtual void SetTextAlignment(const TextHorizontalAlign &_hAlign, const TextVerticalAlign &_vAlign) override
Set the alignment of the text.
Definition: BaseText.hh:241
virtual void SetSpaceWidth(const float _width) override
Set the width of spaces between words.
Definition: BaseText.hh:219
virtual float CharHeight() const override
Get the height of the characters in meters return Height of the characters.
Definition: BaseText.hh:197
STL class.
virtual void Destroy() override
Destroy any resources associated with this object. Invoking any other functions after destroying an o...
Definition: BaseText.hh:296
void SetFontName(const std::string &_font) override
Set the font.
Definition: BaseText.hh:159
std::string text
Text being displayed.
Definition: BaseText.hh:107
virtual ignition::math::Color Color() const override
Get the text color.
Definition: BaseText.hh:182
std::string FontName() const override
Get the font name.
Definition: BaseText.hh:152
virtual float SpaceWidth() const override
Get the width of spaces between words.
Definition: BaseText.hh:212
TextHorizontalAlign
Text Horizontal alignment.
Definition: Text.hh:37
virtual float Baseline() const override
Get the baseline height in meters.
Definition: BaseText.hh:251
static const Color White
virtual bool ShowOnTop() const override
Get whether the is displayed above other objects.
Definition: BaseText.hh:266
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
Definition: BaseText.hh:289
Align bottom.
virtual void SetCharHeight(const float _height) override
Set the height of the character in meters.
Definition: BaseText.hh:204
Left alignment.
virtual TextVerticalAlign VerticalAlignment() const override
Get the vertical alignment of the text.
Definition: BaseText.hh:234