MapLink Pro 11.1.2.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Loading...
Searching...
No Matches
TSLTrackGraphicLink Class Reference
Inheritance diagram for TSLTrackGraphicLink:

Detailed Description

This class provides a track graphic which displays a link (TSLPolyline).

  • This graphic must have 2 or more control points.
  • The rendering attributes of the arrow may be controlled via the rendering method.

This class is reference counted internally to allow objects to be shared within the track manager SDK:

  • Ownership of this object will never be transferred from the application to MapLink.
  • The application must call release() in order to relinquish its ownership, even if the object has been passed to another.

Public Member Functions

const TSLRenderingAttributesrendering () const
 
void rendering (const TSLRenderingAttributes &attribs)
 
- Public Member Functions inherited from TSLTrackGraphic
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
 
TSLTrackgetControlPointTrack (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 TSLTrackGraphicLinkcreate ()
 
static TSLTrackGraphicLinkcreate (TSLTrack *track1, TSLTrack *track2)
 

Additional Inherited Members

- Public Types inherited from TSLTrackGraphic
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...
 
- Protected Member Functions inherited from TSLTrackGraphic
 TSLTrackGraphic ()
 
 TSLTrackGraphic (const TSLTrackGraphic &other)
 
virtual ~TSLTrackGraphic ()
 
void operator delete (void *ptr)
 

Member Function Documentation

◆ create() [1/2]

static TSLTrackGraphicLink * TSLTrackGraphicLink::create ( )
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.

◆ create() [2/2]

static TSLTrackGraphicLink * TSLTrackGraphicLink::create ( TSLTrack * track1,
TSLTrack * track2 )
static

Create a link between 2 tracks.

After calling this method the application may set the graphic's rendering attributes via the rendering method.

Parameters
track1The track to attach the start of the line to.
track2The track to attach the end of the line to.

◆ rendering() [1/2]

const TSLRenderingAttributes & TSLTrackGraphicLink::rendering ( ) const

Get the rendering attributes of the link.

Returns
The rendering attributes of the link.

◆ rendering() [2/2]

void TSLTrackGraphicLink::rendering ( const TSLRenderingAttributes & attribs)

Set the rendering attributes of the link.

Applications should specify polyline attributes when calling this method.

Parameters
attribsThe rendering attributes of the link.