Open Search
    MtTrkGid Class Reference

    #include <lib_motiontracker.h>

    Detailed Description

    Represents a persistent unique ID number for a track.

    For any specific Motion Tracker Object this ID always represents the same track, even if other tracks are added or deleted.

    Note
    In contrast, track indices are not guaranteed to always refer to the same tracks between sessions.

    Public Member Functions

    Bool operator== (const MtTrkGid &rhs)
     
    Int32 ToInt () const
     

    Static Public Member Functions

    static MtTrkGidAlloc ()
     
    static void Free (MtTrkGid *&p)
     

    Private Member Functions

     MtTrkGid ()
     
     ~MtTrkGid ()
     

    Constructor & Destructor Documentation

    ◆ MtTrkGid()

    MtTrkGid ( )
    private

    ◆ ~MtTrkGid()

    ~MtTrkGid ( )
    private

    Member Function Documentation

    ◆ Alloc()

    static MtTrkGid* Alloc ( )
    static

    Internal.

    ◆ Free()

    static void Free ( MtTrkGid *&  p)
    static

    Destructs MtTrkGids allocated with Alloc(). Use AutoAlloc to automate the allocation and destruction based on scope.

    Parameters
    [in,out]pThe MtTrkGid to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards.

    ◆ operator==()

    Bool operator== ( const MtTrkGid rhs)

    Tests whether this and rhs have the same value.

    Parameters
    [in]rhsThe object with which to compare.
    Returns
    true if values match, otherwise false.

    ◆ ToInt()

    Int32 ToInt ( ) const

    Returns the ID number as a raw integer.

    Returns
    The raw integer.