![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
Geodetic Arc specific access methods.
This class represents the access methods that are specific to a geodetic arc. They also allow setting of rendering attributes.
Rendering attributes can be set directly to this geometry using the inherited TSLEntityBase::setRendering method. This is called 'Entity Rendering'.
Rendering can be applied to a large range of geometry using 'Feature Rendering' which is set by the datalayer using TSLDataLayer::addFeatureRendering which creates a featureID. The featureID can then have attributes applied to it using TSLDataLayer::setFeatureRendering.
A featureID can be applied to geometry on creation, or it can be added later using TSLEntityBase::featureID.
Valid Rendering Attributes for TSLGeodeticArc:
The above is not a complete list, see TSLRenderingAttributeInt, TSLRenderingAttributeDouble and TSLRenderingAttributeBool for more details.
Known Limitations:
Public Member Functions | |
void | centre (const TSLCoord &newPosition) |
const TSLCoord & | centre () const |
double | endAngle () const |
void | endAngle (double newValue) |
void | interpolationAngleDelta (double newValue) |
double | interpolationAngleDelta () const |
TSLGeodeticInterpolationOptionsEnum | interpolationOptions () const |
void | interpolationOptions (TSLGeodeticInterpolationOptionsEnum newValue) |
double | startAngle () const |
void | startAngle (double newValue) |
double | xRadius () const |
void | xRadius (double newValue) |
double | yRadius () const |
void | yRadius (double newValue) |
![]() | |
TSLCoord | centroid () const |
TSLEntity * | clone () const |
bool | contains (const TSLEntity *other) const |
bool | crosses (const TSLEntity *other) const |
void | alwaysMergeDifferences (bool _alwaysMergeDifferences) |
TSLEntity * | difference (const TSLEntity *other) const |
double | distance (const TSLCoord &point, bool useRenderedExtent=true, int drawingSurfaceID=-1) const |
TSLEnvelope | envelope (int surfaceID=-1) const |
bool | equals (const TSLEntity *other) const |
TSLEntity * | intersection (const TSLEntity *other) const |
bool | intersects (const TSLEntity *other) const |
bool | intersects (const TSLEnvelope *envelope) const |
bool | move (const TSLCoord &location, const TSLCoord &reference) |
bool | overlaps (const TSLEntity *other) const |
TSLEntitySet * | parent () |
const TSLEntitySet * | parent () const |
void | renderLevel (int level) |
int | renderLevel () const |
bool | rotate (double angle, const TSLCoord *origin=NULL) |
double | rotation () const |
bool | rotation (double newValue) |
bool | scale (double scaleParam, TSLCoord *origin=0) |
bool | scaleXY (double scaleX, double scaleY, TSLCoord *origin=0) |
double | squareDistance (const TSLCoord &point, bool useRenderedExtent=true, int drawingSurfaceID=-1) const |
double | squareDistance (const TSLEntity *otherEntity) const |
bool | touches (const TSLEntity *other) const |
bool | translate (TSLTMC xoffset, TSLTMC yoffset) |
TSLEntity * | unionWith (const TSLEntity *other) const |
bool | within (const TSLEntity *other) const |
TSLCoord | adjustedWeightedCentroid () |
reserved for future use | |
TSLCoord | centreOfGravity () |
reserved for future use | |
![]() | |
bool | addDataSet () |
bool | addDataSet (TSLDataHandler *toUseDataHandler) |
bool | clearRenderingAttributes () |
TSLDataSet * | dataSet () |
const TSLDataSet * | dataSet () const |
short | dataSourceID () const |
void | dataSourceID (short dataSourceID) |
bool | deleteDataSet () |
void | destroy () |
TSLEntityID | entityID () const |
void | entityID (TSLEntityID value) |
TSLFeatureID | featureID () const |
void | featureID (TSLFeatureID newValue) |
bool | getRendering (TSLRenderingAttributeInt attribute, int *result) const |
bool | getRendering (TSLRenderingAttributeDouble attribute, double *result) const |
bool | getRendering (TSLRenderingAttributeBool attribute, bool *result) const |
bool | getRendering (TSLRenderingAttributes &result) const |
TSL3DEntity * | is3DEntity () |
const TSL3DEntity * | is3DEntity () const |
TSLEntity * | isEntity () |
const TSLEntity * | isEntity () const |
bool | isOptimisedEntity () const |
void | name (const char *newValue) |
const char * | name () const |
void | releaseResources (int surfaceID) |
bool | setRendering (TSLRenderingAttributeInt attribute, int value) |
bool | setRendering (TSLRenderingAttributeDouble attribute, double value) |
bool | setRendering (TSLRenderingAttributeBool attribute, bool value) |
bool | setRendering (const TSLRenderingAttributes &attributes) |
void | sourceID (int value) |
int | sourceID () const |
TSLGeometryType | type () const |
void | version (TSLVersion value) |
TSLVersion | version () const |
Static Public Member Functions | |
static TSLGeodeticArc * | create (TSLFeatureID featureID, double startAngle, double endAngle, TSLTMC cx, TSLTMC cy, double radx, double rady=0.0, double rotation=0) |
static const TSLGeodeticArc * | isGeodeticArc (const TSLEntity *entity) |
static TSLGeodeticArc * | isGeodeticArc (TSLEntity *entity) |
![]() | |
static TSLEntity * | createFromWKB (const unsigned char *wkb, unsigned int wkbLength, double TMCPerMU, double mapOffsetX=0.0, double mapOffsetY=0.0, bool multiAsEntitySet=false, double maxCurveAngle=0.0) |
static TSLEntity * | createFromWKT (const char *wkt, double TMCPerMU, double mapOffsetX=0.0, double mapOffsetY=0.0, bool multiAsEntitySet=false, double maxCurveAngle=0.0) |
Additional Inherited Members | |
![]() | |
~TSLEntity () | |
![]() | |
~TSLEntityBase () | |
const TSLCoord & TSLGeodeticArc::centre | ( | ) | const |
Query centre of geodetic arc.
Returns the coordinate of the centre of the geodetic arc.
void TSLGeodeticArc::centre | ( | const TSLCoord & | newPosition | ) |
Sets the centre point of the geodetic arc.
newPosition | New centre of the geodetic arc. |
|
static |
Creates a geodetic arc with the specified parameters.
This call should only be used for temporary entities. For example, this call may be used to create entities that are used in the spatial tests.
All angles are in radians, +ve anti-clockwise from the +ve X axis.
featureID | ID of the feature code to assign to the entity. This is used when rendering map features if no specific attribute set has been created for the entity. |
startAngle | Angle for start of geodetic arc. |
endAngle | Angle for end of geodetic arc. If the same as startAngle, a full ellipse is drawn. |
cx | X coordinate of centre of ellipse the geodetic arc follows. |
cy | Y coordinate of centre of ellipse the geodetic arc follows. |
radx | Radius of geodetic arc along X axis, before rotation. In metres. |
rady | Radius of geodetic arc along Y axis, before rotation. In metres. If 0, rady is assumed to be the same as radx. |
rotation | Angle of rotation of geodetic arc, about the centre coordinate of ellipse. |
double TSLGeodeticArc::endAngle | ( | ) | const |
Queries the end angle of the geodetic arc.
This angle is in radians, +ve anti-clockwise, relative to the +ve X-axis.
void TSLGeodeticArc::endAngle | ( | double | newValue | ) |
Sets the end angle of the geodetic arc.
newValue | New angle in radians, +ve anti-clockwise, relative to the +ve X-axis. |
double TSLGeodeticArc::interpolationAngleDelta | ( | ) | const |
Returns the step angle used for interpolation, in radians.
void TSLGeodeticArc::interpolationAngleDelta | ( | double | newValue | ) |
Sets the step angle for interpolation, in radians. Will be used only if interpolation is on.
newValue | New value for the step angle, in radians. |
TSLGeodeticInterpolationOptionsEnum TSLGeodeticArc::interpolationOptions | ( | ) | const |
Returns the flags which control interpolation between control points of this geodetic entity.
void TSLGeodeticArc::interpolationOptions | ( | TSLGeodeticInterpolationOptionsEnum | newValue | ) |
Sets the flags which control interpolation between control points of this geodetic entity. At this time, only the TSLGeodeticInterpolationOptionsGreatCircle flag is supported.
newValue | New value for the flags. |
|
static |
Query whether the entity is a geodetic Arc.
If this entity is a geodetic Arc, returns an accessor, otherwise returns NULL.
When querying Optimised maps this query may return NULL.
entity | the entity to query |
|
static |
Query whether the entity is a geodetic Arc.
If this entity is a geodetic Arc, returns an accessor, otherwise returns NULL.
When querying Optimised maps this query may return NULL.
entity | the entity to query |
double TSLGeodeticArc::startAngle | ( | ) | const |
Queries the start angle of the geodetic arc.
This angle is in radians, +ve anti-clockwise, relative to the +ve X-axis.
void TSLGeodeticArc::startAngle | ( | double | newValue | ) |
Sets the start angle of the geodetic arc.
newValue | New angle in radians, +ve anti-clockwise, relative to the +ve X-axis. |
double TSLGeodeticArc::xRadius | ( | ) | const |
Query the X radius of the arc, in metres.
This is the radius along the X axis, before rotation.
void TSLGeodeticArc::xRadius | ( | double | newValue | ) |
Set the X radius of the arc, in metres.
newValue | New value of the radius along the X axis, before rotation. |
double TSLGeodeticArc::yRadius | ( | ) | const |
Query the Y radius of the arc, in metres.
This is the radius along the Y axis, before rotation.
void TSLGeodeticArc::yRadius | ( | double | newValue | ) |
Set the Y radius of the arc, in metres.
newValue | New value of the radius along the Y axis, before rotation. |