コード例 #1
0
ファイル: KinectFace.cs プロジェクト: lavrri/Cuba-Connection
        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
ファイル: KinectArm.cs プロジェクト: lavrri/Cuba-Connection
        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;
            }
        }