#include <XnVClickableVirtualPlane.h>
List of all members.
Detailed Description
This is a specific virtual coordinates, which can freeze points to allow a comfortable click.
Definition at line 32 of file XnVClickableVirtualPlane.h.
Member Typedef Documentation
Constructor & Destructor Documentation
| XnVClickableVirtualPlane::XnVClickableVirtualPlane |
( |
const XnChar * |
strINI, |
|
|
const XnChar * |
strName = "XnVClickableVirtualPlane" | |
|
) |
| | |
Constructor. Create an instance, using the configuration file supplied as parameter.
- Parameters:
-
| [in] | strINI | Configuration INI file |
| [in] | strName | Name of the control, for log purposes. |
| XnVClickableVirtualPlane::~XnVClickableVirtualPlane |
( |
|
) |
|
Member Function Documentation
| void XnVClickableVirtualPlane::Click |
( |
XnUInt32 |
, |
|
|
const XnPoint3D & |
ptPosition | |
|
) |
| | |
Invoke the click event
- Parameters:
-
| [in] | ptPosition | The position of the click |
| void XnVClickableVirtualPlane::FreezeCoordinates |
( |
XnUInt32 |
nID, |
|
|
const XnPoint3D & |
ptPosition | |
|
) |
| | |
Freeze the coordinates - a click is starting.
- Parameters:
-
| [in] | nID | The ID of the point to freeze |
| [in] | ptPosition | The coordinates to send from now on |
| XnBool XnVClickableVirtualPlane::IsFrozen |
( |
XnUInt32 |
nID |
) |
const |
Check if a specific point is frozen
- Parameters:
-
| [in] | nID | The ID the point |
- Returns:
- TRUE if the point is frozen, FALSE o/w
| void XnVClickableVirtualPlane::OnPointCreate |
( |
const XnVHandPointContext * |
pContext |
) |
[virtual] |
Called when a point is created.
- Parameters:
-
| [in] | pContext | The hand context of the newly created point |
Reimplemented from XnVVirtualCoordinates.
| void XnVClickableVirtualPlane::OnPointDestroy |
( |
XnUInt32 |
nID |
) |
[virtual] |
Called when a point is destroyed.
- Parameters:
-
| [in] | nID | the ID of the destroyed point |
Reimplemented from XnVVirtualCoordinates.
| XnCallbackHandle XnVClickableVirtualPlane::RegisterClick |
( |
void * |
cxt, |
|
|
ClickCB |
CB | |
|
) |
| | |
Register for the click event
- Parameters:
-
| [in] | cxt | User's context |
| [in] | CB | The Callback to call when the event is invoked. |
- Returns:
- A handle, to allow unregistration.
| void XnVClickableVirtualPlane::UnfreezeCoordinates |
( |
XnUInt32 |
nID |
) |
|
Unfreeze the coordinates - a click is no longer searched.
- Parameters:
-
| [in] | nID | The ID of the point to unfreeze. |
| void XnVClickableVirtualPlane::UnregisterClick |
( |
XnCallbackHandle |
hCB |
) |
|
Unregister from the click event
- Parameters:
-
| [in] | hCB | The handle provided on registration. |
Member Data Documentation
The documentation for this class was generated from the following file: