#include <XnVSlider3D.h>
List of all members.
Public Types |
typedef void(XN_CALLBACK_TYPE * | ValueChangeCB )(XnFloat fXValue, XnFloat fYValue, XnFloat fZValue, void *pUserCxt) |
Public Member Functions |
| XnVSlider3D (const XnPoint3D &ptMin, const XnPoint3D &ptMax) |
| ~XnVSlider3D () |
XnStatus | Update (const XnPoint3D &pt) |
XnCallbackHandle | RegisterValueChange (void *cxt, ValueChangeCB CB) |
void | UnregisterValueChange (XnCallbackHandle hCB) |
Protected Member Functions |
| XN_DECLARE_EVENT_3ARG (XnVValueChange3DSpecificEvent, XnVValueChange3DEvent, XnFloat, fValueX, XnFloat, fValueY, XnFloat, fValueZ) |
void | ValueChange (XnFloat fXValue, XnFloat fYValue, XnFloat fZValue) |
Protected Attributes |
XnPoint3D | m_ptMin |
XnPoint3D | m_ptMax |
XnFloat | m_fSizeX |
XnFloat | m_fSizeY |
XnFloat | m_fSizeZ |
XnVValueChange3DSpecificEvent | m_ValueChangeCBs |
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 21 of file XnVSlider3D.h.
Member Typedef Documentation
Type for the value change event callback. The values are between 0 and 1.
Definition at line 27 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] |
XnVSlider3D::XN_DECLARE_EVENT_3ARG |
( |
XnVValueChange3DSpecificEvent |
, |
|
|
XnVValueChange3DEvent |
, |
|
|
XnFloat |
, |
|
|
fValueX |
, |
|
|
XnFloat |
, |
|
|
fValueY |
, |
|
|
XnFloat |
, |
|
|
fValueZ |
| |
|
) |
| | [protected] |
Member Data Documentation
The documentation for this class was generated from the following file: