#include <lib_motiontracker.h>
Provides access to 2D Tracking data.
Allows specific tracks to be retrieved based on name, index or unique ID.
Public Member Functions | |
| Int32 | GetTrackCount () const | 
| Mt2dTrack * | GetTrackByIndex (Int32 idx) const | 
| Mt2dTrack * | GetTrackByGid (const MtTrkGid *sdkTrkGid) const | 
| BaseSelect * | GetTrackIndices (Bool userTracks=true, Bool autoTracks=false) const | 
| Mt2dTrack * | GetTrackByName (const String &name) const | 
Static Public Member Functions | |
| static Mt2dTrackData * | Alloc () | 
| static void | Free (Mt2dTrackData *&p) | 
Private Member Functions | |
| Mt2dTrackData () | |
| ~Mt2dTrackData () | |
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  static | 
Internal.
      
  | 
  static | 
Destructs Mt2dTrackDatas allocated with Alloc(). Use AutoAlloc to automate the allocation and destruction based on scope.
| [in,out] | p | The Mt2dTrackData to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards. | 
| Int32 GetTrackCount | ( | ) | const | 
Queries the number of 2D tracks.
Retrieves a track by index.
Free() on the returned track when it is no longer needed. | [in] | idx | The index of desired track: 0 <= idx < GetTrackCount(). | 
Retrieves a track by global identifier.
Free() on the returned track when it is no longer needed. | [in] | sdkTrkGid | The global ID of the desired track. The caller owns the pointed MtTrkGid. | 
| BaseSelect* GetTrackIndices | ( | Bool | userTracks = true,  | 
        
| Bool | autoTracks = false  | 
        ||
| ) | const | 
Retrieves a BaseSelect containing the valid indices for the tracks.
Free() on the returned track when it is no longer needed. | [in] | userTracks | true to include user created tracks, otherwise false. | 
| [in] | autoTracks | true to include automatic tracks, otherwise false. | 
Retrieves a track by name.
Free() on the returned track when it is no longer needed. | [in] | name | The name of wanted track. |