OSVR-Core
Public Member Functions | List of all members
osvr::vbtracker::OsvrHdkLedIdentifier Class Reference
Inheritance diagram for osvr::vbtracker::OsvrHdkLedIdentifier:
osvr::vbtracker::LedIdentifier osvr::vbtracker::LedIdentifier

Public Member Functions

 OsvrHdkLedIdentifier (const PatternStringList &PATTERNS)
 Give it a list of patterns to use. More...
 
ZeroBasedBeaconId getId (ZeroBasedBeaconId currentId, BrightnessList &brightnesses, bool &lastBright, bool blobsKeepId) const override
 Determine an ID based on a list of brightnesses This truncates the passed-in list to only as many elements as are in the pattern list, to keep it from growing too large and wasting time and space. More...
 
 OsvrHdkLedIdentifier (const PatternStringList &PATTERNS)
 Give it a list of patterns to use. More...
 
int getId (int currentId, BrightnessList &brightnesses, bool &lastBright, bool blobsKeepId) const override
 Determine an ID based on a list of brightnesses This truncates the passed-in list to only as many elements as are in the pattern list, to keep it from growing too large and wasting time and space. More...
 
- Public Member Functions inherited from osvr::vbtracker::LedIdentifier
virtual ~LedIdentifier ()
 Virtual destructor;.
 
virtual ~LedIdentifier ()
 Virtual destructor;.
 

Constructor & Destructor Documentation

§ OsvrHdkLedIdentifier() [1/2]

osvr::vbtracker::OsvrHdkLedIdentifier::OsvrHdkLedIdentifier ( const PatternStringList &  PATTERNS)

Give it a list of patterns to use.

There is a string for each LED, and each is encoded with '*' meaning that the LED is bright and '.' that it is dim at this point in time. All patterns must have the same length.

§ OsvrHdkLedIdentifier() [2/2]

osvr::vbtracker::OsvrHdkLedIdentifier::OsvrHdkLedIdentifier ( const PatternStringList &  PATTERNS)

Give it a list of patterns to use.

There is a string for each LED, and each is encoded with '*' meaning that the LED is bright and '.' that it is dim at this point in time. All patterns must have the same length.

Member Function Documentation

§ getId() [1/2]

ZeroBasedBeaconId osvr::vbtracker::OsvrHdkLedIdentifier::getId ( ZeroBasedBeaconId  currentId,
BrightnessList &  brightnesses,
bool &  lastBright,
bool  blobsKeepId 
) const
overridevirtual

Determine an ID based on a list of brightnesses This truncates the passed-in list to only as many elements as are in the pattern list, to keep it from growing too large and wasting time and space.

Skip turned-off patterns.

Implements osvr::vbtracker::LedIdentifier.

§ getId() [2/2]

int osvr::vbtracker::OsvrHdkLedIdentifier::getId ( int  currentId,
BrightnessList &  brightnesses,
bool &  lastBright,
bool  blobsKeepId 
) const
overridevirtual

Determine an ID based on a list of brightnesses This truncates the passed-in list to only as many elements as are in the pattern list, to keep it from growing too large and wasting time and space.

Skip turned-off patterns.

Implements osvr::vbtracker::LedIdentifier.


The documentation for this class was generated from the following files: