![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class is used to define the attributes of a track group, and how the object should be rendered.
After a track group is created, a symbol must be provided the symbol will define the base rendering should it be necessary. A trackgroup may contain multiple Point symbols, in order to define alternate rendering based on the current display resolution. If additional symbols are added to the trackgroup, the TSLTrackSymbol::maximumResolution parameter will be used to determine which symbol will be drawn.
TrackGroups are not associated to a TrackDisplayManager and are used to provide a hierarchy for track aggregation where set rules may cause a track to be drawn as it's parent group instead.
This class should mainly be used for the initial setup of a trackgroup, and for infrequent updates of symbol rendering.
This class is reference counted internally to allow objects to be shared within the track manager SDK
Public Member Functions | |
virtual TSLTrackBase * | clone () const |
virtual TSLTrackBase::TrackType | type () const |
void | addChild (TSLTrackBase *child) |
void | removeChild (uint32_t index) |
uint32_t | numberOfChildren () |
TSLTrackBase * | childAt (uint32_t index) const |
double | latitude () const |
double | currentLatitude () const |
double | longitude () const |
double | currentLongitude () const |
![]() | |
void | release () |
AggregationState | aggregationState () const |
void | allowAggregation (bool allow) |
void | hierarchyLevel (uint32_t level) |
uint32_t | hierarchyLevel () const |
TSLTrackBase::TrackID | trackNumber () const |
void | aggregator (TSLTrackAggregator *aggregator) |
TSLTrackAggregator * | aggregator () const |
void | hierarchyAggregator (TSLTrackAggregatorEchelon *aggregator) |
TSLTrackAggregatorEchelon * | hierarchyAggregator () const |
double | latitude () const |
double | currentLatitude () const |
double | longitude () const |
double | currentLongitude () const |
double | velocity () const |
double | currentVelocity () const |
double | heading () const |
double | currentHeading () const |
double | altitude () const |
double | currentAltitude () const |
bool | addAttribute (const char *name, const char *key, bool staticAttribute) |
bool | setAttributeValue (const char *name, const char *value) |
const char * | getAttributeName (const char *key) const |
const char * | getAttributeKey (const char *name) const |
const char * | getAttributeValue (const char *name) const |
const char * | getCurrentAttributeValue (const char *name) const |
bool | queryAttribute (unsigned int index, TSLSimpleString *name, TSLSimpleString *key, TSLSimpleString *value) const |
unsigned int | numAttributes () const |
bool | deleteAttribute (const char *name) |
void | deleteAttributes () |
Delete all attributes. | |
bool | addSymbol (TSLTrackSymbol *symbol) |
void | clearHistoryPointColour () |
Clear the override colour for history points/symbols. | |
void | historyPointColour (const TSLRGBA &colour) |
bool | updateSymbol (uint32_t index, TSLTrackSymbol *symbol) |
void | removeSymbol (uint32_t index) |
uint32_t | numberOfSymbols () const |
TSLTrackSymbol * | symbolAt (uint32_t index) const |
void | visible (int drawingSurfaceID, bool visibility) |
void | select (int drawingSurfaceID, bool selected) |
bool | selected (int drawingSurfaceID) |
void | velocity (double velocity) |
void | heading (double heading) |
void | altitude (double altitude) |
void | trackName (const char *name) |
void | userID (uint32_t id) |
uint32_t | userID () const |
const char * | trackName () const |
void | historyPointsVisible (int drawingSurfaceID, bool visibility) |
void | featureID (TSLFeatureID featureID) |
TSLFeatureID | featureID () const |
bool | featureName (const char *featureName) |
void | parentGroup (TSLTrackBase *parentGroup) |
TSLTrackBase * | parentGroup () |
void * | p () const |
Static Public Member Functions | |
static TSLTrackGroup * | create () |
static TSLTrackGroup * | create (TSLTrackSymbol *symbol) |
Additional Inherited Members | |
![]() | |
enum | TrackType { Track , TrackGroup } |
enum | AggregationState { AggregationDisabled , AggregationEnabled , AggregationDisabledByGraphic } |
typedef uint32_t | TrackID |
![]() | |
TSLTrackBase () | |
TSLTrackBase (const TSLTrackBase &other) | |
virtual | ~TSLTrackBase () |
void | operator delete (void *ptr) |
void TSLTrackGroup::addChild | ( | TSLTrackBase * | child | ) |
Add a child to the group
Adds a child to the group to create a hierarchical link between the two. The child can be any TSLTrackBase type, TSLTrack or TSLTrackGroup. The link is one way only.
child | The child TSLTrackBase to add to the group. |
TSLTrackBase * TSLTrackGroup::childAt | ( | uint32_t | index | ) | const |
Get the child at the provided index
The child provided by this method will need to be cast to the appropriate type before calling methods associated solely with TSLTrackGroup or TSLTrack.
index | The index of the child to query. |
|
virtual |
Create a clone of this TSLTrackGroup.
Historic data from the source trackgroup and referenced symbols will be copied, however the per-surface state and history points will not.
Implements TSLTrackBase.
|
static |
Create a TSLTrackGroup
After calling this method the application must call addSymbol in order to define the visualisation of the track
|
static |
Create a TSLTrackGroup
The provided symbol will define the base rendering of this group, and must be a PointSymbol.
If alternate resolution-based rendering is required for this group, additional symbols should be added with the addSymbol method.
The group will take a reference to the TSLTrackSymbol, which may be shared between multiple tracks/groups. The application may continue to use the symbol for as long as it holds a reference.
symbol | The symbol to display for the group, at all resolutions. |
double TSLTrackGroup::currentLatitude | ( | ) | const |
Query the latitude of the track group at the current time.
double TSLTrackGroup::currentLongitude | ( | ) | const |
Query the longitude of the track group at the current time.
double TSLTrackGroup::latitude | ( | ) | const |
Query the latitude of the track group at the display time of the TSLTrackDisplayManager.
double TSLTrackGroup::longitude | ( | ) | const |
Query the longitude of the track group at the display time of the TSLTrackDisplayManager.
uint32_t TSLTrackGroup::numberOfChildren | ( | ) |
Get the number of children of this group
Returns the number of children directly associcated with this group. This method will not search through the tree of it's children.
void TSLTrackGroup::removeChild | ( | uint32_t | index | ) |
Remove a child from the group
Removes the child at the index from the group. This will delete the child if no other references are held.
index | The index of the child to remove from the group. |
|
virtual |
Get the TSLTrackBase::TrackType of this group
Implements TSLTrackBase.