NITE 1.4.1 - API Reference
|
#include <XnVSlider3D.h>
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 |
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.
typedef void(XN_CALLBACK_TYPE * XnVSlider3D::ValueChangeCB)(XnFloat fXValue, XnFloat fYValue, XnFloat fZValue, void *pUserCxt) |
Type for the value change event callback. The values are between 0 and 1.
Definition at line 27 of file XnVSlider3D.h.
XnVSlider3D::XnVSlider3D | ( | const XnPoint3D & | ptMin, |
const XnPoint3D & | ptMax | ||
) |
Creation. It receives 2 points, defining the 3D space.
XnVSlider3D::~XnVSlider3D | ( | ) |
XnCallbackHandle XnVSlider3D::RegisterValueChange | ( | void * | cxt, |
ValueChangeCB | CB | ||
) |
Register for the value change event
[in] | cxt | User's context |
[in] | CB | The Callback to call when the event is invoked. |
void XnVSlider3D::UnregisterValueChange | ( | XnCallbackHandle | hCB | ) |
Unregister from the value change event
[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.
[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] |
XnFloat XnVSlider3D::m_fSizeX [protected] |
Definition at line 65 of file XnVSlider3D.h.
XnFloat XnVSlider3D::m_fSizeY [protected] |
Definition at line 65 of file XnVSlider3D.h.
XnFloat XnVSlider3D::m_fSizeZ [protected] |
Definition at line 65 of file XnVSlider3D.h.
XnPoint3D XnVSlider3D::m_ptMax [protected] |
Definition at line 64 of file XnVSlider3D.h.
XnPoint3D XnVSlider3D::m_ptMin [protected] |
Definition at line 64 of file XnVSlider3D.h.
XnVValueChange3DSpecificEvent XnVSlider3D::m_ValueChangeCBs [protected] |
Definition at line 67 of file XnVSlider3D.h.