![]() |
MapLink Pro 11.1.2.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class provides a track graphic which displays a link (TSLPolyline).
This class is reference counted internally to allow objects to be shared within the track manager SDK:
Public Member Functions | |
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 TSLTrackGraphicLink * | create () |
static TSLTrackGraphicLink * | 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 a link graphic.
After calling this method the application must call addControlPoint at least twice in order to define the control points of the link.
After calling this method the application may set the graphic's rendering attributes via the rendering method.
|
static |
Create a link 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 start of the line to. |
track2 | The track to attach the end of the line to. |
const TSLRenderingAttributes & TSLTrackGraphicLink::rendering | ( | ) | const |
Get the rendering attributes of the link.
void TSLTrackGraphicLink::rendering | ( | const TSLRenderingAttributes & | attribs | ) |
Set the rendering attributes of the link.
Applications should specify polyline attributes when calling this method.
attribs | The rendering attributes of the link. |