|AlternativeViewPointCapability (XnNodeHandle hNode)|
|AlternativeViewPointCapability (const NodeWrapper &node)|
|XnBool||IsViewPointSupported (ProductionNode &otherNode) const|
|XnStatus||SetViewPoint (ProductionNode &otherNode)|
|XnBool||IsViewPointAs (ProductionNode &otherNode) const|
|XnStatus||RegisterToViewPointChange (StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)|
|void||UnregisterFromViewPointChange (XnCallbackHandle hCallback)|
Purpose: The AlternativeViewPoint capability enables any type of map generator (depth, image, or IR) to transform its data to appear as if the sensor is placed in another location. The other location is represented by a second production node, usually representing another sensor.
Usage: Do not instantiate directly. Instead, use Generator::GetAlternativeViewPointCap() to obtain an instance.
This capability provides a solution for the situation where you want to impose color over depth, but there is then the problem that the two sensing media (transducers) are looking in slightly different directions. This capability superimposes the two sensing media of one sensor.
Other uses are also possible.
- The AlternativeViewPoint capability has nothing to do with the actual physical position of a sensor. You could move the location of the sensor itself, but this will not change the current viewpoint.
Event: 'Viewpoint Change'
Constructor & Destructor Documentation
|xn::AlternativeViewPointCapability::AlternativeViewPointCapability||(||const NodeWrapper &||node||)||
Member Function Documentation
|XnBool xn::AlternativeViewPointCapability::IsViewPointAs||(||ProductionNode &||otherNode||)|| const
Returns whether the holder node's viewpoint is the same viewpoint as that of another specified node. Thus, this method is somewhat of an equality operator.
[in] otherNode Other node, whose viewpoint is used for comparison with the viewpoint of this node.
|XnBool xn::AlternativeViewPointCapability::IsViewPointSupported||(||ProductionNode &||otherNode||)|| const
Checks if the generator node holding this capability can change its output to appear as if the sensor was placed at the viewpoint of another specific production node.
[in] otherNode Other production node, whose viewpoint against which this node's viewpoint is being checked.
This is not the same as xn::ProductionNode::IsCapabilitySupported(). Although the node implementation supports this capability, it may nevertheless support only the viewpoints of nodes of some specific sensors and not of other specific sensors.
Registers a handler for the 'Viewpoint Change' event (see the above overview to this class).
[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.
Sets the viewpoint of the holding generator node to its normal viewpoint.
Sets the current viewpoint of the holding generator node to look as if it is placed at a different generator location. All further generated output will appear as if the sensor was placed at the different location.
[in] otherNode Viewpoint to be set.
Unregisters the event handler for the the 'Viewpoint 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 184.108.40.206