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

The base class for map unit based geometry.
These geometry classes are designed to store vector data in a particular coordinate system. The units of this data may be degrees, metres, or any other unit considered a 'Map-Unit'.
Public Types | |
| enum | GeometryType { GeometryTypeNone , GeometryTypeSet , GeometryTypePoint , GeometryTypePolyline , GeometryTypePolygon } |
| This enum represents the type of a given TSLMUGeometry instance. More... | |
Public Member Functions | |
| void | destroy () |
| Destructor. | |
| TSLMUGeometry::GeometryType | type () const |
| virtual TSLMUGeometry * | clone ()=0 |
| TSLFeatureID | featureID () const |
| void | featureID (TSLFeatureID id) |
| const char * | featureName () const |
| void | featureName (const char *name) |
| unsigned int | numAttributes () const |
| bool | getAttribute (unsigned int index, TSLSimpleString *attributeName, TSLSimpleString *attributeValue) |
| const char * | getAttribute (const char *attributeName) const |
| void | setAttribute (const char *attributeName, const char *attributeValue) |
| void | clearAttribute (const char *attributeName) |
| void | clearAttributes () |
| Clear all attributes. | |
| void | rotation (double rot) |
| double | rotation () const |
| virtual bool | calculateExtent (TSLMUExtent &extent) const =0 |
Protected Member Functions | |
| TSLMUGeometry (TSLMUGeometry::GeometryType type, TSLFeatureID featureID=TSLFeatureID_Default, const char *featureName=NULL) | |
| TSLMUGeometry (const TSLMUGeometry &other) | |
| virtual | ~TSLMUGeometry () |
This enum represents the type of a given TSLMUGeometry instance.
|
protected |
|
protected |
|
protectedvirtual |
|
pure virtual |
Calculate the extent of this geometry
| extent | Will be set to this geometries extent. |
Implemented in TSLMUGeometrySet, TSLMUPoint, TSLMUPolygon, and TSLMUPolyline.
| void TSLMUGeometry::clearAttribute | ( | const char * | attributeName | ) |
Clear an attribute
| attributeName | Name of the attribute to clear. |
| void TSLMUGeometry::clearAttributes | ( | ) |
Clear all attributes.
|
pure virtual |
Create a clone of this geometry
Implemented in TSLMUGeometrySet, TSLMUPoint, TSLMUPolygon, and TSLMUPolyline.
| void TSLMUGeometry::destroy | ( | ) |
Destructor.
| TSLFeatureID TSLMUGeometry::featureID | ( | ) | const |
Query the feature ID
| void TSLMUGeometry::featureID | ( | TSLFeatureID | id | ) |
Set the feature ID
| id | The feature ID. |
| const char * TSLMUGeometry::featureName | ( | ) | const |
Query the feature Name
| void TSLMUGeometry::featureName | ( | const char * | name | ) |
Set the feature name
| name | The feature name or NULL to clear. |
| const char * TSLMUGeometry::getAttribute | ( | const char * | attributeName | ) | const |
Query the value of an attribute
| attributeName | Name of the attribute to query |
| bool TSLMUGeometry::getAttribute | ( | unsigned int | index, |
| TSLSimpleString * | attributeName, | ||
| TSLSimpleString * | attributeValue ) |
Query an attribute by index
| index | The index of the attribute to query |
| attributeName | Will be set to the name of the attribute |
| attributeValue | Will be set to the value of the attribute |
| unsigned int TSLMUGeometry::numAttributes | ( | ) | const |
Query the number of attributes
| double TSLMUGeometry::rotation | ( | ) | const |
Query the rotation of this geometry
Rotation is specific in radians. A positive rotation is anticlockwise
| void TSLMUGeometry::rotation | ( | double | rot | ) |
Set the rotation of this geometry
Rotation is specified in radians. A positive rotation is anticlockwise.
| rot | The rotation to set, in radians, positive anticlockwise |
| void TSLMUGeometry::setAttribute | ( | const char * | attributeName, |
| const char * | attributeValue ) |
Set the value of an attribute
If this attribute exists it will be overwritten.
| attributeName | Name of the attribute to set |
| attributeValue | Value of the attribute |
| TSLMUGeometry::GeometryType TSLMUGeometry::type | ( | ) | const |
Query the geometry type