![]() |
OpenNI 1.5.4
|
#include <XnCppWrapper.h>
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.
Remarks:
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.
Event: 'Viewpoint Change'
Signals that the holder node's viewpoint has changed (also see Configuration Change Events).
Use RegisterToViewPointChange() and UnregisterFromViewPointChange() for using this event.
Calling the SetViewPoint() or ResetViewPoint() methods raises this event.
|
inline |
|
inline |
|
inline |
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. |
|
inline |
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. |
Remarks
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.
|
inline |
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.
|
inline |
Sets the viewpoint of the holding generator node to its normal viewpoint.
|
inline |
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. |
|
inline |
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 .