#include <XnVMultipleHands.h>
List of all members.
Detailed Description
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 20 of file XnVMultipleHands.h.
Constructor & Destructor Documentation
XnVMultipleHands::XnVMultipleHands |
( |
|
) |
|
Create an empty list of hands
Copy constructor. Create a list of the same hands as the other.
- Parameters:
-
[in] | other | The object from which to copy the list of hands |
XnVMultipleHands::~XnVMultipleHands |
( |
|
) |
|
Member Function Documentation
XnUInt32 XnVMultipleHands::ActiveEntries |
( |
|
) |
const |
Get the number of hands that are considered 'Active'
- Returns:
- The number of 'Active' entries
Add a hand
- Parameters:
-
[in] | pContext | The Hand Point Context of the new hand |
Get an iterator to the first Hand Point Context
- Returns:
- An iterator to the first Hand Point Context. Will be equal to end() if none exist
Get a const iterator to the first Hand Point Context
- Returns:
- A const iterator to the first Hand Point Context. Will be equal to end() if none exist
XnVIntList::Iterator XnVMultipleHands::beginOld |
( |
|
) |
|
Get an iterator to the first item in the 'Old' list
- Returns:
- An iterator to the first old ID. Will be equal to end() if list is empty
XnVIntList::ConstIterator XnVMultipleHands::beginOld |
( |
|
) |
const |
Get a const iterator to the first item in the 'Old' list
- Returns:
- A const iterator to the first old ID. Will be equal to end() if list is empty
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.
Create a copy of the object, with same lists and copies of all Hand Point Contexts
- Parameters:
-
[out] | other | The new copy of the object |
Get an iterator after the last Hand Point Context
- Returns:
- An iterator to after the last Hand Point Context
Get a const iterator after the last Hand Point Context
- Returns:
- A const iterator to after the last Hand Point Context
XnVIntList::Iterator XnVMultipleHands::endOld |
( |
|
) |
|
Get an iterator after the last item in the 'Old list
- Returns:
- An iterator to after the last old ID
XnVIntList::ConstIterator XnVMultipleHands::endOld |
( |
|
) |
const |
Get a const iterator after the last item in the 'Old list
- Returns:
- A const iterator to after the last old ID
Iterator XnVMultipleHands::Find |
( |
XnUInt32 |
nID |
) |
|
Search for a Hand Point Context by ID
- Parameters:
-
[in] | nID | The ID of the requested Hand Point Context |
- Returns:
- An iterator to the Hand Point Context that matches the ID, or to end() if no match
Search for a Hand Point Context by ID
- Parameters:
-
[in] | nID | The ID of the requested Hand Point Context |
- Returns:
- A const iterator to the Hand Point Context that matches the ID, or to end() if no match
Get the context of a hand
- Parameters:
-
[in] | nID | The ID of the hand |
- Returns:
- The Hand Point Context of that ID, or NULL if it doesn't exist
Get the context of a hand
- Parameters:
-
[in] | nID | The ID of the hand |
- Returns:
- The Hand Point Context of that ID, or NULL if it doesn't exist
const XnPoint3D& XnVMultipleHands::GetFocusPoint |
( |
|
) |
const |
Get the focus point
- Returns:
- The focus point
Get the context of the single selected hand
- Returns:
- The Hand Point Context of the single selected hand, or NULL if no hands exist
Get the context of the single selected hand
- Returns:
- The Hand Point Context of the single selected hand, or NULL if no hands exist
XnBool XnVMultipleHands::IsActive |
( |
XnUInt32 |
nID |
) |
const |
Check if a certain ID exists in the 'Active' list
- Parameters:
-
- Returns:
- TRUE of the ID is 'Active', FALSE otherwise
XnBool XnVMultipleHands::IsNew |
( |
XnUInt32 |
nID |
) |
const |
Check if a certain ID exists in the 'New' list
- Parameters:
-
- Returns:
- TRUE of the ID is 'New', FALSE otherwise
XnBool XnVMultipleHands::IsOld |
( |
XnUInt32 |
nID |
) |
const |
Check if a certain ID exists in the 'Old' list
- Parameters:
-
- Returns:
- TRUE of the ID is 'Old', FALSE otherwise
void XnVMultipleHands::MarkActive |
( |
XnUInt32 |
nID |
) |
|
Mark a hand as 'Active'.
- Parameters:
-
[in] | nID | The ID the should be considered 'Active' |
void XnVMultipleHands::MarkNew |
( |
XnUInt32 |
nID |
) |
|
Mark a hand as 'New'
- Parameters:
-
[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
- Parameters:
-
[in] | nID | The ID that should be considered 'Old' |
XnUInt32 XnVMultipleHands::NewEntries |
( |
|
) |
const |
Get the number of hands that are considered 'New'
- Returns:
- The number of 'New' entries
XnUInt32 XnVMultipleHands::OldEntries |
( |
|
) |
const |
Get the number of hands that are considered 'Old'
- Returns:
- The number of 'Old' entries
void XnVMultipleHands::ReassignPrimary |
( |
XnUInt32 |
nHint = 0 |
) |
|
Pick a new Single Interesting Point
XnStatus XnVMultipleHands::Remove |
( |
XnUInt32 |
nID |
) |
|
Remove an existing hand
- Parameters:
-
[in] | nID | The ID of the hand to be removed |
- Returns:
- The Hand Point Context that was removed, or NULL if it doesn't exist
void XnVMultipleHands::RemoveActive |
( |
XnUInt32 |
nID |
) |
|
Remove marking as 'Active'
- Parameters:
-
[in] | nID | The ID that should no longer be considered 'Active' |
void XnVMultipleHands::RemoveNew |
( |
XnUInt32 |
nID |
) |
|
Remove marking as 'New'
- Parameters:
-
[in] | nID | The ID that should no longer be considered 'New' |
void XnVMultipleHands::RemoveOld |
( |
XnUInt32 |
nID |
) |
|
Remove marking as 'Old'
- Parameters:
-
[in] | nID | The ID that should no longer be considered 'Old' |
void XnVMultipleHands::SetFocusPoint |
( |
const XnPoint3D & |
ptFocusPoint |
) |
|
Replace the focus point
- Parameters:
-
[in] | ptFocusPoint | the new focus point |
Member Data Documentation
The documentation for this class was generated from the following file: