#include <XnVSlider3D.h>
List of all members.
Detailed Description
This is a simple 3D slider. It receives a point, and normalizes it in the 3D space to numbers between 0 and 1 for each axis. The XnVSlider2D defines one event:
Definition at line 22 of file XnVSlider3D.h.
Member Typedef Documentation
Type for the value change event callback. The values are between 0 and 1.
Definition at line 28 of file XnVSlider3D.h.
Constructor & Destructor Documentation
| XnVSlider3D::XnVSlider3D |
( |
const XnPoint3D & |
ptMin, |
|
|
const XnPoint3D & |
ptMax | |
|
) |
| | |
Creation. It receives 2 points, defining the 3D space.
| XnVSlider3D::~XnVSlider3D |
( |
|
) |
|
Member Function Documentation
| XnCallbackHandle XnVSlider3D::RegisterValueChange |
( |
void * |
cxt, |
|
|
ValueChangeCB |
CB | |
|
) |
| | |
Register for the value change 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 XnVSlider3D::UnregisterValueChange |
( |
XnCallbackHandle |
hCB |
) |
|
Unregister from the value change event
- Parameters:
-
| [in] | hCB | The handle provided on registration. |
| XnStatus XnVSlider3D::Update |
( |
const XnPoint3D & |
pt |
) |
|
The main function. It receives a point, normalizes it, and calculates the new values.
- Parameters:
-
| [in] | pt | The point to check in the slider. |
| void XnVSlider3D::ValueChange |
( |
XnFloat |
fXValue, |
|
|
XnFloat |
fYValue, |
|
|
XnFloat |
fZValue | |
|
) |
| | [protected] |
Member Data Documentation
The documentation for this class was generated from the following file: