Functions
Mirror Capability
Generator
Collaboration diagram for Mirror Capability:

Functions

XN_C_API XnBool xnIsMirrored (XnNodeHandle hInstance)
 Gets current mirroring configuration.
XN_C_API XnStatus xnRegisterToMirrorChange (XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
 Registers a callback function to mirror changes.
XN_C_API XnStatus xnSetMirror (XnNodeHandle hInstance, XnBool bMirror)
 Sets current mirror configuration.
XN_C_API void xnUnregisterFromMirrorChange (XnNodeHandle hInstance, XnCallbackHandle hCallback)
 Unregisters a callback function which was registered using xnRegisterToMirrorChange().

Detailed Description

The mirror capability (XN_CAPABILITY_MIRROR) allows mirroring of the data produced by a Generator. Mirroring is useful if the sensor is placed in front of the user (so that it sees the user right hand as the left one), but applications want user to get a more natural feeling of control.


Function Documentation

Gets current mirroring configuration.

Parameters:
hInstance[in] A handle to the instance.
XN_C_API XnStatus xnRegisterToMirrorChange ( XnNodeHandle  hInstance,
XnStateChangedHandler  handler,
void pCookie,
XnCallbackHandle phCallback 
)

Registers a callback function to mirror changes.

Parameters:
hInstance[in] A handle to the instance.
handler[in] A pointer to a function that will be called when mirror changes.
pCookie[in] A user cookie that will be passed to the callback function.
phCallback[out] Optional. Will be filled with a handle to be passed to xnUnregisterFromMirrorChange().
XN_C_API XnStatus xnSetMirror ( XnNodeHandle  hInstance,
XnBool  bMirror 
)

Sets current mirror configuration.

Parameters:
hInstance[in] A handle to the instance.
bMirror[in] TRUE for mirroring output, FALSE otherwise.

Unregisters a callback function which was registered using xnRegisterToMirrorChange().

Parameters:
hInstance[in] A handle to the instance.
hCallback[in] The handle to the callback returned from xnRegisterToMirrorChange().


nao_openni
Author(s): Bener SUAY
autogenerated on Mon Jan 6 2014 11:27:51