OpenNI 1.5.7
Public Attributes | List of all members
XnModuleAlternativeViewPointInterface Struct Reference

#include <XnModuleInterface.h>

Public Attributes

XnBool(* IsViewPointSupported )(XnModuleNodeHandle hGenerator, XnNodeHandle hOther)
 
XnStatus(* SetViewPoint )(XnModuleNodeHandle hGenerator, XnNodeHandle hOther)
 
XnBool(* IsViewPointAs )(XnModuleNodeHandle hGenerator, XnNodeHandle hOther)
 
XnStatus(* ResetViewPoint )(XnModuleNodeHandle hGenerator)
 
XnStatus(* RegisterToViewPointChange )(XnModuleNodeHandle hGenerator, XnModuleStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
 
void(* UnregisterFromViewPointChange )(XnModuleNodeHandle hGenerator, XnCallbackHandle hCallback)
 
XnStatus(* GetPixelCoordinatesInViewPoint )(XnModuleNodeHandle hGenerator, XnNodeHandle hOther, XnUInt32 x, XnUInt32 y, XnUInt32 *pAltX, XnUInt32 *pAltY)
 

Member Data Documentation

XnStatus(* XnModuleAlternativeViewPointInterface::GetPixelCoordinatesInViewPoint)(XnModuleNodeHandle hGenerator, XnNodeHandle hOther, XnUInt32 x, XnUInt32 y, XnUInt32 *pAltX, XnUInt32 *pAltY)

Gets a single pixel coordinates in an alternative view point. This method uses current frame data.

Parameters
hGenerator[in] A handle to the instance.
hOther[in] The view point to translate to.
x[in] X-coordinate of the pixel to be translated
y[in] Y-coordinate of the pixel to be translated
pAltX[out] X-coordinate of the pixel in the alternative view point
pAltY[out] Y-coordinate of the pixel in the alternative view point
XnBool(* XnModuleAlternativeViewPointInterface::IsViewPointAs)(XnModuleNodeHandle hGenerator, XnNodeHandle hOther)

Checks if current view point is as if coming from the other node view point.

Parameters
hGenerator[in] A handle to the instance.
hOther[in] The view point to be checked.
XnBool(* XnModuleAlternativeViewPointInterface::IsViewPointSupported)(XnModuleNodeHandle hGenerator, XnNodeHandle hOther)

Checks if this generator can change its output to look like as if it was taken from a different location, represented by another generator.

Parameters
hGenerator[in] A handle to the instance.
hOther[in] The view point to be checked.
Returns
TRUE if view point is supported, FALSE otherwise.
XnStatus(* XnModuleAlternativeViewPointInterface::RegisterToViewPointChange)(XnModuleNodeHandle hGenerator, XnModuleStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)

Registers a callback function to view point changes.

Parameters
hGenerator[in] A handle to the instance.
handler[in] A pointer to a function that will be called when view point 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 UnregisterFromViewPointChange().
XnStatus(* XnModuleAlternativeViewPointInterface::ResetViewPoint)(XnModuleNodeHandle hGenerator)

Sets the view point of this generator to its normal one.

Parameters
hGenerator[in] A handle to the instance.
XnStatus(* XnModuleAlternativeViewPointInterface::SetViewPoint)(XnModuleNodeHandle hGenerator, XnNodeHandle hOther)

Sets the view point of this generator to look like as if placed at another generator location.

Parameters
hGenerator[in] A handle to the instance.
hOther[in] The view point to be set.
void(* XnModuleAlternativeViewPointInterface::UnregisterFromViewPointChange)(XnModuleNodeHandle hGenerator, XnCallbackHandle hCallback)

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

Parameters
hGenerator[in] A handle to the instance.
hCallback[in] The handle to the callback returned from RegisterToViewPointChange().

The documentation for this struct was generated from the following file: