![]() |
MapLink Pro 11.2
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|

A Text primitive
A Text instance represents a string, which will be rendered based on the TextStyle attributes.
Public Member Functions | |
| Text () | |
| Constructor. | |
| Text (const char *style) | |
| Text (const char *style, const GeodeticPoint &pos, const char *textValue) | |
| Text (const Text &other) | |
| Copy Constructor. | |
| virtual | ~Text () |
| Destructor. | |
| virtual GeometryType | type () const |
| Query the type of the geometry instance. | |
| virtual Geometry * | clone () const |
| void | position (const GeodeticPoint &p) |
| Set the position of the text. | |
| const GeodeticPoint & | position () const |
| Query the position of the text. | |
| void | value (const char *v) |
| Set the value of the text. | |
| const char * | value () const |
| Query the value of the text. | |
Public Member Functions inherited from envitia::maplink::earth::geometry::Geometry | |
| virtual | ~Geometry () |
| Destructor. | |
| const char * | styleName () const |
| Query the style used when rendering the geometry. | |
| void | styleName (const char *style) |
| Interpolation | interpolation () const |
| void | interpolation (Interpolation i) |
| Set the type of interpolation applied to edges. | |
| void | visibility (bool v) |
| void | visibilityOnSurface (bool v, const Surface3D *surface) |
| bool | visibilityOnSurface (const Surface3D *surface) const |
| bool | setAttribute (const char *name, const char *value) |
| const char * | getAttribute (const char *name) const |
| bool | removeAttribute (const char *name) |
| unsigned int | numAttributes () const |
| const char * | attributeName (unsigned int index) const |
| const char * | attributeValue (unsigned int index) const |
| bool | removeAttribute (unsigned int index) |
| GeodeticPoint | centroid () const |
| Query the centroid of the geometry. | |
| void | translate (const GeodeticPoint &t) |
| void | scale (const GeodeticPoint &s) |
| void | scale (const GeodeticPoint &s, const GeodeticPoint &origin) |
| void | rotate (const GeodeticDirection &axis, double angle) |
Additional Inherited Members | |
Public Types inherited from envitia::maplink::earth::geometry::Geometry | |
| enum | GeometryType { GeometryTypePolyline , GeometryTypePolygon , GeometryTypeSymbol , GeometryTypeText , GeometryTypeSet } |
| The type of a geometry instance. More... | |
| enum | Interpolation { GreatCircle , RhumbLine } |
Protected Member Functions inherited from envitia::maplink::earth::geometry::Geometry | |
| Geometry () | |
| Geometry (const char *style) | |
| Geometry (const Geometry &other) | |
Protected Attributes inherited from envitia::maplink::earth::geometry::Geometry | |
| void * | m_p |
| envitia::maplink::earth::geometry::Text::Text | ( | ) |
Constructor.
| envitia::maplink::earth::geometry::Text::Text | ( | const char * | style | ) |
Constructor.
| style | The name of the style to use when rendering. |
| envitia::maplink::earth::geometry::Text::Text | ( | const char * | style, |
| const GeodeticPoint & | pos, | ||
| const char * | textValue ) |
Constructor.
| style | The name of the style to use when rendering. |
| pos | The position of the text. |
| textValue | The text string to display. |
| envitia::maplink::earth::geometry::Text::Text | ( | const Text & | other | ) |
Copy Constructor.
|
virtual |
Destructor.
|
virtual |
Create a clone of this geometry
If the geometry is a set this will perform a deep copy (All children of the set will be cloned).
Implements envitia::maplink::earth::geometry::Geometry.
| const GeodeticPoint & envitia::maplink::earth::geometry::Text::position | ( | ) | const |
Query the position of the text.
| void envitia::maplink::earth::geometry::Text::position | ( | const GeodeticPoint & | p | ) |
Set the position of the text.
|
virtual |
Query the type of the geometry instance.
Implements envitia::maplink::earth::geometry::Geometry.
| const char * envitia::maplink::earth::geometry::Text::value | ( | ) | const |
Query the value of the text.
| void envitia::maplink::earth::geometry::Text::value | ( | const char * | v | ) |
Set the value of the text.