OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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. 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.
 
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. 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.
 
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;.
 

Detailed Description

Definition at line 40 of file HDKLedIdentifier.h.

Member Function Documentation

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.

Definition at line 92 of file HDKLedIdentifier.cpp.

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.

Definition at line 91 of file HDKLedIdentifier.cpp.


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