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

A Polyline Primitive.
A Polyline is a line within 3D space defined by a single set of edge coordinates in geodetic space. Edges are 'open' - The last point does not need to be the same as the first.
Public Member Functions | |
| Polyline () | |
| Constructor. | |
| Polyline (const char *style) | |
| Polyline (const char *style, const GeodeticPointSet &c) | |
| Polyline (const Polyline &other) | |
| Copy Constructor. | |
| virtual | ~Polyline () |
| Destructor. | |
| virtual GeometryType | type () const |
| Query the type of the geometry instance. | |
| virtual Geometry * | clone () const |
| const GeodeticPointSet & | coords () const |
| Query the coordinates of the line. | |
| void | coords (const GeodeticPointSet &c) |
| Set the coordinates of the line. | |
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::Polyline::Polyline | ( | ) |
Constructor.
| envitia::maplink::earth::geometry::Polyline::Polyline | ( | const char * | style | ) |
Constructor
| style | The name of the style to use when rendering. |
| envitia::maplink::earth::geometry::Polyline::Polyline | ( | const char * | style, |
| const GeodeticPointSet & | c ) |
Constructor
| style | The name of the style to use when rendering. |
| c | The coordinate set which defines the Polyline. |
| envitia::maplink::earth::geometry::Polyline::Polyline | ( | const Polyline & | 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 GeodeticPointSet & envitia::maplink::earth::geometry::Polyline::coords | ( | ) | const |
Query the coordinates of the line.
| void envitia::maplink::earth::geometry::Polyline::coords | ( | const GeodeticPointSet & | c | ) |
Set the coordinates of the line.
|
virtual |
Query the type of the geometry instance.
Implements envitia::maplink::earth::geometry::Geometry.