Пример #1
0
        public KinectFace(KinectDeviceView device, bool _faceTracking, bool _audioInput) : base(device)
        {
            //kinectDevice = device;

            faceTracking = _faceTracking;
            audioInput   = _audioInput;
        }
Пример #2
0
        public KinectLeg(bool isLeft, KinectDeviceView device) : base(isLeft, device)
        {
            kinectDevice = (KinectDeviceView)device;

            if (isLeft)
            {
                hipJoint   = KinectDevice.JointID.HipLeft;
                kneeJoint  = KinectDevice.JointID.KneeLeft;
                ankleJoint = KinectDevice.JointID.AnkleLeft;
                footJoint  = KinectDevice.JointID.FootLeft;
            }
            else
            {
                hipJoint   = KinectDevice.JointID.HipRight;
                kneeJoint  = KinectDevice.JointID.KneeRight;
                ankleJoint = KinectDevice.JointID.AnkleRight;
                footJoint  = KinectDevice.JointID.FootRight;
            }
        }
Пример #3
0
        public KinectArm(bool isLeft, KinectDeviceView device, bool _handTracking) : base(isLeft, device)
        {
            kinectDevice = device;
            handTracking = _handTracking;

            if (isLeft)
            {
                shoulderJoint = KinectDevice.JointID.ShoulderLeft;
                elbowJoint    = KinectDevice.JointID.ElbowLeft;
                wristJoint    = KinectDevice.JointID.WristLeft;
                handJoint     = KinectDevice.JointID.HandLeft;
                handTipJoint  = KinectDevice.JointID.HandTipLeft;
                thumbJoint    = KinectDevice.JointID.ThumbLeft;
            }
            else
            {
                shoulderJoint = KinectDevice.JointID.ShoulderRight;
                elbowJoint    = KinectDevice.JointID.ElbowRight;
                wristJoint    = KinectDevice.JointID.WristRight;
                handJoint     = KinectDevice.JointID.HandRight;
                handTipJoint  = KinectDevice.JointID.HandTipRight;
                thumbJoint    = KinectDevice.JointID.ThumbRight;
            }
        }