C# Class Kinect.KinectGestures

KinectGestures is utility class that processes programmatic Kinect gestures
Mostrar archivo Open project: BrainProject/UnityTemp Class Usage Examples

Public Methods

Method Description
CheckForGesture ( long userId, GestureData &gestureData, float timestamp, Vector3 &jointsPos, bool &jointsTracked ) : void

estimate the state and progress of the given gesture.

GetNeededJointIndexes ( KinectManager manager ) : int[]

Gets the list of gesture joint indexes.

Private Methods

Method Description
CheckPoseComplete ( GestureData &gestureData, float timestamp, Vector3 jointPos, bool isInPose, float durationToComplete ) : void
SetGestureCancelled ( GestureData &gestureData ) : void
SetGestureJoint ( GestureData &gestureData, float timestamp, int joint, Vector3 jointPos ) : void
SetScreenPos ( long userId, GestureData &gestureData, Vector3 &jointsPos, bool &jointsTracked ) : void
SetWheelRotation ( long userId, GestureData &gestureData, Vector3 initialPos, Vector3 currentPos ) : void
SetZoomFactor ( long userId, GestureData &gestureData, float initialZoom, Vector3 &jointsPos, bool &jointsTracked ) : void

Method Details

CheckForGesture() public static method

estimate the state and progress of the given gesture.
public static CheckForGesture ( long userId, GestureData &gestureData, float timestamp, Vector3 &jointsPos, bool &jointsTracked ) : void
userId long User ID
gestureData GestureData Gesture-data structure
timestamp float Current time
jointsPos UnityEngine.Vector3 Joints-position array
jointsTracked bool Joints-tracked array
return void

GetNeededJointIndexes() public static method

Gets the list of gesture joint indexes.
public static GetNeededJointIndexes ( KinectManager manager ) : int[]
manager KinectManager The KinectManager instance
return int[]