![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class provides a track graphic which displays an arrow within the TSLTrackDisplayManager
This class is reference counted internally to allow objects to be shared within the track manager SDK
Public Member Functions | |
void | tailWidth (double width, TSLDimensionUnits units) |
double | tailWidth () const |
TSLDimensionUnits | tailWidthUnits () const |
void | headWidth (double width, TSLDimensionUnits units) |
double | headWidth () const |
TSLDimensionUnits | headWidthUnits () const |
void | headAtBack (bool head) |
bool | headAtBack () const |
void | headAtFront (bool head) |
bool | headAtFront () const |
void | headClosed (bool closed) |
bool | headClosed () const |
void | headAcuity (double angle) |
double | headAcuity () const |
const TSLRenderingAttributes & | rendering () const |
void | rendering (const TSLRenderingAttributes &attribs) |
![]() | |
TSLTrackGraphic::GraphicType | type () const |
void | release () |
void | featureID (TSLFeatureID featureID) |
TSLFeatureID | featureID () const |
bool | featureName (const char *featureName) |
void | userID (uint32_t id) |
uint32_t | userID () const |
TSLTrack::TrackID | graphicID () const |
bool | addControlPoint (double lat, double lon) |
bool | addControlPoint (TSLTrack *track) |
bool | getControlPointLocation (uint32_t index, double &lat, double &lon) const |
TSLTrack * | getControlPointTrack (uint32_t index) const |
TSLTrackGraphic::ControlPointType | controlPointType (uint32_t index) const |
bool | removeControlPoint (uint32_t index) |
uint32_t | numControlPoints () const |
bool | insertControlPoint (uint32_t index, double lat, double lon) |
bool | insertControlPoint (uint32_t index, TSLTrack *track) |
bool | moveControlPoint (uint32_t index, double lat, double lon) |
Static Public Member Functions | |
static TSLTrackGraphicArrow * | create () |
static TSLTrackGraphicArrow * | create (TSLTrack *track1, TSLTrack *track2) |
Additional Inherited Members | |
![]() | |
enum | ControlPointType { LatLonControlPoint , TrackControlPoint } |
The control point types supported by track graphics. More... | |
enum | GraphicType { TrackGraphicLink , TrackGraphicArrow , TrackGraphicRuler } |
The types of graphic provided by the MapLink Track Manager SDK. More... | |
![]() | |
TSLTrackGraphic () | |
TSLTrackGraphic (const TSLTrackGraphic &other) | |
virtual | ~TSLTrackGraphic () |
void | operator delete (void *ptr) |
|
static |
Create an arrow graphic
After calling this method the application must call addControlPoint twice in order to define the start and end points of the arrow.
After calling this method the application may set the graphic's rendering attributes via the rendering method
|
static |
Create an arrow graphic between 2 tracks
After calling this method the application may set the graphic's rendering attributes via the rendering method
track1 | The track to attach the 'back' of the arrow to |
track2 | The track to attach the 'front' of the arrow to |
double TSLTrackGraphicArrow::headAcuity | ( | ) | const |
Get the acuity angle of the arrow head(s)
void TSLTrackGraphicArrow::headAcuity | ( | double | angle | ) |
Set the acuity angle of the arrow head(s)
The acuity of the arrow heads is the angle between the tail of the arrow and the inside of the arrow head.
angle | The acuity angle in degrees, between 0.0 and 90.0 |
bool TSLTrackGraphicArrow::headAtBack | ( | ) | const |
Get whether an arrow head is displayed at the 'back' of the arrow
void TSLTrackGraphicArrow::headAtBack | ( | bool | head | ) |
Set whether an arrow head should be displayed at the 'back' of the arrow
head | Whether the 'back' arrow head should be displayed |
bool TSLTrackGraphicArrow::headAtFront | ( | ) | const |
Get whether an arrow head is displayed at the 'front' of the arrow
void TSLTrackGraphicArrow::headAtFront | ( | bool | head | ) |
Set whether an arrow head should be displayed at the 'front' of the arrow
head | Whether the 'front' arrow head should be displayed |
bool TSLTrackGraphicArrow::headClosed | ( | ) | const |
Get whether the arrow head(s) are 'closed'
void TSLTrackGraphicArrow::headClosed | ( | bool | closed | ) |
Set whether the arrow head(s) should be drawn as 'closed'
A 'closed' arrow head will be drawn as a polygon and may be filled using TSLRenderingAttributes::m_fillStyle. Otherwise the arrow head will be drawn as 'open', i.e as a polyline
closed | Whether the arrow head(s) should be drawn as 'closed' |
double TSLTrackGraphicArrow::headWidth | ( | ) | const |
Get the width of the arrow head(s)
void TSLTrackGraphicArrow::headWidth | ( | double | width, |
TSLDimensionUnits | units ) |
Set the width of the arrow head(s)
width | The width of the arrow head(s) |
units | The units of the head width |
TSLDimensionUnits TSLTrackGraphicArrow::headWidthUnits | ( | ) | const |
Get the units of the head width
const TSLRenderingAttributes & TSLTrackGraphicArrow::rendering | ( | ) | const |
Get the rendering attributes of the arrow
void TSLTrackGraphicArrow::rendering | ( | const TSLRenderingAttributes & | attribs | ) |
Set the rendering attributes of the arrow
The following settings will determine whether the arrow is made up of polylines, polygons, or both:
Applications should specify both polyline and polygon attributes when calling this method
double TSLTrackGraphicArrow::tailWidth | ( | ) | const |
Get the width of the arrow tail
void TSLTrackGraphicArrow::tailWidth | ( | double | width, |
TSLDimensionUnits | units ) |
Set the width of the arrow tail
width | The width of the tail |
units | The units of the tail width |
TSLDimensionUnits TSLTrackGraphicArrow::tailWidthUnits | ( | ) | const |
Get the units of the tail width