|MirrorCapability (XnNodeHandle hNode)|
|MirrorCapability (const NodeWrapper &node)|
|XnStatus||SetMirror (XnBool bMirror)|
|XnBool||IsMirrored () const|
|XnStatus||RegisterToMirrorChange (StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)|
|void||UnregisterFromMirrorChange (XnCallbackHandle hCallback)|
Purpose: Applying the MirrorCapability to a node allows enabling the Mirroring mode on a per node basis. Compare this with enabling the Global Mirror, which applies mirroring to any node supporting the Mirroring capability. To understand mirroring see the Overview below.
Usage: Do not instantiate directly. Instead, use Generator::GetMirrorCap() to obtain an instance.
When you stand facing the sensor device, and the image is processed directly, the sensor "sees" your left hand at your right-hand side, and your right hand at your left-hand side.
If your movements are used to control an avatar, and that avatar is facing you then the avatar on the screen is opposite: your right hand is facing the left of the avatar on the screen, and your left hand is facing the right of the avatar.
The effect of applying and enabling the Mirroring capability on a node makes all the data replace right with left, and left with right.
Thus, if mirroring is disabled (default), then when you raise your right hand, the avatar on the screen opposite you correspondingly also raises its own right hand, this being to the left of yourself.
If mirroring is enabled, when you raise your right hand on the screen the avatar opposite you mirrors you by raising its hand on your right, which is the avatar's left hand.
Enabling mirroring is useful when the avatar is facing the player. Disabling mirroring is useful when the player sees the avatar from behind (for example in third person shooters or to see yourself kicking a football).
Changing the GlobalMirror flag affects mirroring in all existing nodes and in all nodes to be created in the future - see Context::SetGlobalMirror().
Event: 'Mirror Change'
Calling the SetMirror() method raises this event.
Constructor & Destructor Documentation
|xn::MirrorCapability::MirrorCapability||(||const NodeWrapper &||node||)||
Member Function Documentation
|XnBool xn::MirrorCapability::IsMirrored||(||)|| const
Gets the current mirroring configuration of the holder node. This configuration is used for generating the next frame.
Registers an event handler for the 'Mirror 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.
Sets the current mirror configuration of the holder node, enabling or disabling mirroring. This configuration is used for generating the next frame.
[in] bMirror TRUE for mirroring output, FALSE otherwise.
Unregisters the event handler for the 'Mirror 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 188.8.131.52