Kinect.KinectGestures.GetNeededJointIndexes C# (CSharp) Method

GetNeededJointIndexes() public static method

Gets the list of gesture joint indexes.
public static GetNeededJointIndexes ( KinectManager manager ) : int[]
manager KinectManager The KinectManager instance
return int[]
        public static int[] GetNeededJointIndexes(KinectManager manager)
        {
            leftHandIndex = manager.GetJointIndex(KinectInterop.JointType.HandLeft);
            rightHandIndex = manager.GetJointIndex(KinectInterop.JointType.HandRight);

            leftElbowIndex = manager.GetJointIndex(KinectInterop.JointType.ElbowLeft);
            rightElbowIndex = manager.GetJointIndex(KinectInterop.JointType.ElbowRight);

            leftShoulderIndex = manager.GetJointIndex(KinectInterop.JointType.ShoulderLeft);
            rightShoulderIndex = manager.GetJointIndex(KinectInterop.JointType.ShoulderRight);

            hipCenterIndex = manager.GetJointIndex(KinectInterop.JointType.SpineBase);
            shoulderCenterIndex = manager.GetJointIndex(KinectInterop.JointType.SpineShoulder);

            leftHipIndex = manager.GetJointIndex(KinectInterop.JointType.HipLeft);
            rightHipIndex = manager.GetJointIndex(KinectInterop.JointType.HipRight);

            leftAnkleIndex = manager.GetJointIndex(KinectInterop.JointType.AnkleLeft);
            rightAnkleIndex = manager.GetJointIndex(KinectInterop.JointType.AnkleRight);

            neck = manager.GetJointIndex(KinectInterop.JointType.Neck);
            hipsIndex = manager.GetJointIndex(KinectInterop.JointType.SpineBase);

            int[] neededJointIndexes = {
            leftHandIndex, rightHandIndex, leftElbowIndex, rightElbowIndex, leftShoulderIndex, rightShoulderIndex,
            hipCenterIndex, shoulderCenterIndex, leftHipIndex, rightHipIndex, leftAnkleIndex, rightAnkleIndex
            };

            return neededJointIndexes;
        }