NITE 1.5.1 - API Reference
|
#include <XnVMultipleHands.h>
Classes | |
class | ConstIterator |
class | ConstIteratorOld |
class | Iterator |
class | IteratorOld |
Public Member Functions | |
XnVMultipleHands () | |
XnVMultipleHands (const XnVMultipleHands &other) | |
~XnVMultipleHands () | |
XnStatus | Add (const XnVHandPointContext *pContext) |
XnStatus | Remove (XnUInt32 nID) |
XnVHandPointContext * | GetContext (XnUInt32 nID) |
const XnVHandPointContext * | GetContext (XnUInt32 nID) const |
XnVHandPointContext * | GetPrimaryContext () |
const XnVHandPointContext * | GetPrimaryContext () const |
void | MarkNew (XnUInt32 nID) |
void | MarkOld (XnUInt32 nID) |
void | MarkActive (XnUInt32 nID) |
void | RemoveNew (XnUInt32 nID) |
void | RemoveOld (XnUInt32 nID) |
void | RemoveActive (XnUInt32 nID) |
XnUInt32 | NewEntries () const |
XnUInt32 | OldEntries () const |
XnUInt32 | ActiveEntries () const |
void | Clone (XnVMultipleHands &other) const |
void | Clear () |
void | ClearLists () |
void | ClearNewList () |
void | ClearOldList () |
Iterator | begin () |
ConstIterator | begin () const |
Iterator | end () |
ConstIterator | end () const |
Iterator | Find (XnUInt32 nID) |
ConstIterator | Find (XnUInt32 nID) const |
XnBool | IsNew (XnUInt32 nID) const |
XnBool | IsOld (XnUInt32 nID) const |
XnBool | IsActive (XnUInt32 nID) const |
IteratorOld | beginOld () |
ConstIteratorOld | beginOld () const |
IteratorOld | endOld () |
ConstIteratorOld | endOld () const |
void | ReassignPrimary (XnUInt32 nHint=0) |
void | SetFocusPoint (const XnPoint3D &ptFocusPoint) |
const XnPoint3D & | GetFocusPoint () const |
Private Attributes | |
XnVHandPointContext | m_Hands [32] |
XnUInt32 | m_nNextAvailable |
XnUInt32 | m_nAvailable |
XnVIntList * | m_pActiveIDs |
XnVIntList * | m_pNewIDs |
XnVIntList * | m_pOldIDs |
XnUInt32 | m_nPrimaryID |
XnPoint3D | m_ptFocusPoint |
A XnVMultipleHands holds all the known hands in the system. It holds lists of which hands are new, which are active, and another list of the hands that aren't there anymore, but were still there last frame.
Definition at line 22 of file XnVMultipleHands.h.
Create an empty list of hands
XnVMultipleHands::XnVMultipleHands | ( | const XnVMultipleHands & | other | ) |
Copy constructor. Create a list of the same hands as the other.
[in] | other | The object from which to copy the list of hands |
XnUInt32 XnVMultipleHands::ActiveEntries | ( | ) | const |
Get the number of hands that are considered 'Active'
XnStatus XnVMultipleHands::Add | ( | const XnVHandPointContext * | pContext | ) |
Add a hand
[in] | pContext | The Hand Point Context of the new hand |
Get an iterator to the first Hand Point Context
ConstIterator XnVMultipleHands::begin | ( | ) | const |
Get a const iterator to the first Hand Point Context
Get an iterator to the first item in the 'Old' list
ConstIteratorOld XnVMultipleHands::beginOld | ( | ) | const |
Get a const iterator to the first item in the 'Old' list
void XnVMultipleHands::Clear | ( | ) |
Remove all Hand Point Contexts
void XnVMultipleHands::ClearLists | ( | ) |
Remove all entries from 'New', 'Old' and 'Active' lists
void XnVMultipleHands::ClearNewList | ( | ) |
Remove all entries from the 'New' list.
void XnVMultipleHands::ClearOldList | ( | ) |
Remove all entries from the 'Old' list.
void XnVMultipleHands::Clone | ( | XnVMultipleHands & | other | ) | const |
Create a copy of the object, with same lists and copies of all Hand Point Contexts
[out] | other | The new copy of the object |
Get an iterator after the last Hand Point Context
ConstIterator XnVMultipleHands::end | ( | ) | const |
Get a const iterator after the last Hand Point Context
Get an iterator after the last item in the 'Old list
ConstIteratorOld XnVMultipleHands::endOld | ( | ) | const |
Get a const iterator after the last item in the 'Old list
Iterator XnVMultipleHands::Find | ( | XnUInt32 | nID | ) |
Search for a Hand Point Context by ID
[in] | nID | The ID of the requested Hand Point Context |
ConstIterator XnVMultipleHands::Find | ( | XnUInt32 | nID | ) | const |
Search for a Hand Point Context by ID
[in] | nID | The ID of the requested Hand Point Context |
XnVHandPointContext* XnVMultipleHands::GetContext | ( | XnUInt32 | nID | ) |
Get the context of a hand
[in] | nID | The ID of the hand |
const XnVHandPointContext* XnVMultipleHands::GetContext | ( | XnUInt32 | nID | ) | const |
Get the context of a hand
[in] | nID | The ID of the hand |
const XnPoint3D& XnVMultipleHands::GetFocusPoint | ( | ) | const |
Get the focus point
Get the context of the single selected hand
const XnVHandPointContext* XnVMultipleHands::GetPrimaryContext | ( | ) | const |
Get the context of the single selected hand
XnBool XnVMultipleHands::IsActive | ( | XnUInt32 | nID | ) | const |
Check if a certain ID exists in the 'Active' list
[in] | nID | The ID to check |
XnBool XnVMultipleHands::IsNew | ( | XnUInt32 | nID | ) | const |
Check if a certain ID exists in the 'New' list
[in] | nID | The ID to check |
XnBool XnVMultipleHands::IsOld | ( | XnUInt32 | nID | ) | const |
Check if a certain ID exists in the 'Old' list
[in] | nID | The ID to check |
void XnVMultipleHands::MarkActive | ( | XnUInt32 | nID | ) |
Mark a hand as 'Active'.
[in] | nID | The ID the should be considered 'Active' |
void XnVMultipleHands::MarkNew | ( | XnUInt32 | nID | ) |
Mark a hand as 'New'
[in] | nID | The ID that should be considered 'New' |
void XnVMultipleHands::MarkOld | ( | XnUInt32 | nID | ) |
Mark a hand as 'Old'. This means a Hand Point Context may not exist for this ID
[in] | nID | The ID that should be considered 'Old' |
XnUInt32 XnVMultipleHands::NewEntries | ( | ) | const |
Get the number of hands that are considered 'New'
XnUInt32 XnVMultipleHands::OldEntries | ( | ) | const |
Get the number of hands that are considered 'Old'
void XnVMultipleHands::ReassignPrimary | ( | XnUInt32 | nHint = 0 | ) |
Pick a new Single Interesting Point
XnStatus XnVMultipleHands::Remove | ( | XnUInt32 | nID | ) |
Remove an existing hand
[in] | nID | The ID of the hand to be removed |
void XnVMultipleHands::RemoveActive | ( | XnUInt32 | nID | ) |
Remove marking as 'Active'
[in] | nID | The ID that should no longer be considered 'Active' |
void XnVMultipleHands::RemoveNew | ( | XnUInt32 | nID | ) |
Remove marking as 'New'
[in] | nID | The ID that should no longer be considered 'New' |
void XnVMultipleHands::RemoveOld | ( | XnUInt32 | nID | ) |
Remove marking as 'Old'
[in] | nID | The ID that should no longer be considered 'Old' |
void XnVMultipleHands::SetFocusPoint | ( | const XnPoint3D & | ptFocusPoint | ) |
Replace the focus point
[in] | ptFocusPoint | the new focus point |
XnVHandPointContext XnVMultipleHands::m_Hands[32] [private] |
Definition at line 421 of file XnVMultipleHands.h.
XnUInt32 XnVMultipleHands::m_nAvailable [private] |
Definition at line 423 of file XnVMultipleHands.h.
XnUInt32 XnVMultipleHands::m_nNextAvailable [private] |
Definition at line 422 of file XnVMultipleHands.h.
XnUInt32 XnVMultipleHands::m_nPrimaryID [private] |
Definition at line 429 of file XnVMultipleHands.h.
XnVIntList* XnVMultipleHands::m_pActiveIDs [private] |
Definition at line 425 of file XnVMultipleHands.h.
XnVIntList* XnVMultipleHands::m_pNewIDs [private] |
Definition at line 426 of file XnVMultipleHands.h.
XnVIntList* XnVMultipleHands::m_pOldIDs [private] |
Definition at line 427 of file XnVMultipleHands.h.
XnPoint3D XnVMultipleHands::m_ptFocusPoint [private] |
Definition at line 431 of file XnVMultipleHands.h.