Defines a text for drawing. More...
#include <cadex/Text.hxx>
Public Member Functions | |
Text () | |
Constructor. | |
Text (const UTF16String &theText) | |
Constructor. | |
void | SetText (const UTF16String &theText) |
Sets a text. | |
const UTF16String & | GetText () const |
Returns a text. | |
void | SetTextOrigin (const Geom::Point2d &theTextOrigin) |
Sets a position of the text. | |
const Geom::Point2d & | TextOrigin () const |
Returns a position of the text on the 2d plane. | |
void | SetFontSize (float theFontSize) |
float | FontSize () const |
Returns size of the font in points. | |
void | SetTextProperties (const Properties &theTextProperties) |
Sets the properties of dimension text. | |
Properties | TextProperties () const |
Returns the properties of dimension text. | |
![]() | |
void | SetUuid (const Uuid &theUuid) |
cadex::Uuid | Uuid () const |
void | Accept (ElementVisitor &theVisitor) const |
![]() | |
size_t | Id () const |
Return unique identifier of public object. | |
internal::BaseObjectImpl * | Impl () const |
bool | IsNull () const |
operator bool () const | |
template<typename T > | |
bool | IsOfType () const |
template<typename T > | |
T * | Impl () const |
Reserved for internal use. | |
Static Public Member Functions | |
static bool | CompareType (const BaseObject &theObject) |
![]() | |
static bool | CompareType (const BaseObject &theObject) |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
![]() | |
Element (const ImplType &theImpl) | |
![]() | |
BaseObject (const ImplType &theImpl) | |
Defines a text for drawing.
float cadex::Drawing::Text::FontSize | ( | ) | const |
Returns size of the font in points.
Returns 16 by default.