|CroppingCapability (XnNodeHandle hNode)|
|CroppingCapability (const NodeWrapper &node)|
|XnStatus||SetCropping (const XnCropping &Cropping)|
|XnStatus||GetCropping (XnCropping &Cropping) const|
|XnStatus||RegisterToCroppingChange (StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)|
|void||UnregisterFromCroppingChange (XnCallbackHandle hCallback)|
Purpose: Provides Cropping capability for map generator nodes. Cropping capability restricts the size of the data frames to be generated by the MapGenerator node to a selected (cropped) area of the full field-of-view.
Usage: Do not instantiate directly. Instead, use MapGenerator::GetCroppingCap() to obtain an instance.
When cropping is enabled, the size of the generated map is reduced to fit a lower resolution (smaller FOV dimensions). For example, if the map generator is working in VGA resolution (640x480) and the application chooses to crop at 300x200, the next pixel row will begin after 300 pixels. Pixels outside the cropping area are not returned in the buffer - they are not blacked out; they are not returned at all. Thus, cropping is very useful for providing a performance boost.
Event: 'Cropping Change'
Signals that the holder node's cropping area has been changed.
Calling the SetCropping() method raises this event.
Constructor & Destructor Documentation
[in] hNode Node handle
|xn::CroppingCapability::CroppingCapability||(||const NodeWrapper &||node||)||
Member Function Documentation
[out] Cropping Retreived cropping configuration.
- Return values:
XN_STATUS_INVALID_OPERATION The MapGenerator node does not support the Cropping capability.
Registers an event handler for the 'Cropping Change' event.
[in] handler Callback function to be invoked when the event is raised. [in] pCookie User's cookie, to be delivered to the callback. [out] hCallback Handle to the callback to be used for unregistering it.
For full details and usage of the parameters, see Registering to Events.
Unregisters the event handler for the 'Cropping Change' event.
[in] hCallback Handle received from registration.
For full details and usage of the parameter, see Unregistering from Events .
The documentation for this class was generated from the following file:
Generated on Wed May 16 2012 10:16:07 for OpenNI 1.5.4 by 22.214.171.124