Пример #1
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        public JointsOption()
        {
            _head = new JointSetting("ctl_Head", false);
            _shoulderCenter = new JointSetting("ctl_Shoulder_Center", false);
            _shoulderRight = new JointSetting("ctl_Shoulder_R", false);
            _elbowRight = new JointSetting("ctl_Elbow_R", false);
            _wristRight = new JointSetting("ctl_Wrist_R", false);
            _handRight = new JointSetting("ctl_Hand_R", false);
            _shoulderLeft = new JointSetting("ctl_Shoulder_L", false);
            _elbowLeft = new JointSetting("ctl_Elbow_L", false);
            _wristLeft = new JointSetting("ctl_Wrist_L", false);
            _handLeft = new JointSetting("ctl_Hand_L", false);
            _spine = new JointSetting("ctl_Spine", false);
            _hipCenter = new JointSetting("ctl_Hip_Center", false);
            _hipRight = new JointSetting("ctl_Hip_R", false);
            _kneeRight = new JointSetting("ctl_Knee_R", false);
            _ankleRight = new JointSetting("ctl_Ankle_R", false);
            _footRight = new JointSetting("ctl_Foot_R", false);
            _hipLeft = new JointSetting("ctl_Hip_L", false);
            _kneeLeft = new JointSetting("ctl_Knee_L", false);
            _ankleLeft = new JointSetting("ctl_Ankle_L", false);
            _footLeft = new JointSetting("ctl_Foot_L", false);

            _jointMap = new SortedDictionary<JointType, JointSetting>();
            _jointMap.Add(JointType.Head, _head);
            _jointMap.Add(JointType.ShoulderCenter, _shoulderCenter);
            _jointMap.Add(JointType.ShoulderRight, _shoulderRight);
            _jointMap.Add(JointType.ElbowRight, _elbowRight);
            _jointMap.Add(JointType.WristRight, _wristRight);
            _jointMap.Add(JointType.HandRight, _handRight);
            _jointMap.Add(JointType.ShoulderLeft, _shoulderLeft);
            _jointMap.Add(JointType.ElbowLeft, _elbowLeft);
            _jointMap.Add(JointType.WristLeft, _wristLeft);
            _jointMap.Add(JointType.HandLeft, _handLeft);
            _jointMap.Add(JointType.Spine, _spine);
            _jointMap.Add(JointType.HipCenter, _hipCenter);
            _jointMap.Add(JointType.HipRight, _hipRight);
            _jointMap.Add(JointType.KneeRight, _kneeRight);
            _jointMap.Add(JointType.AnkleRight, _ankleRight);
            _jointMap.Add(JointType.FootRight, _footRight);
            _jointMap.Add(JointType.HipLeft, _hipLeft);
            _jointMap.Add(JointType.KneeLeft, _kneeLeft);
            _jointMap.Add(JointType.AnkleLeft, _ankleLeft);
            _jointMap.Add(JointType.FootLeft, _footLeft);
        }
Пример #2
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        public JointsOption()
        {
            _head           = new JointSetting("ctl_Head", false);
            _shoulderCenter = new JointSetting("ctl_Shoulder_Center", false);
            _shoulderRight  = new JointSetting("ctl_Shoulder_R", false);
            _elbowRight     = new JointSetting("ctl_Elbow_R", false);
            _wristRight     = new JointSetting("ctl_Wrist_R", false);
            _handRight      = new JointSetting("ctl_Hand_R", false);
            _shoulderLeft   = new JointSetting("ctl_Shoulder_L", false);
            _elbowLeft      = new JointSetting("ctl_Elbow_L", false);
            _wristLeft      = new JointSetting("ctl_Wrist_L", false);
            _handLeft       = new JointSetting("ctl_Hand_L", false);
            _spine          = new JointSetting("ctl_Spine", false);
            _hipCenter      = new JointSetting("ctl_Hip_Center", false);
            _hipRight       = new JointSetting("ctl_Hip_R", false);
            _kneeRight      = new JointSetting("ctl_Knee_R", false);
            _ankleRight     = new JointSetting("ctl_Ankle_R", false);
            _footRight      = new JointSetting("ctl_Foot_R", false);
            _hipLeft        = new JointSetting("ctl_Hip_L", false);
            _kneeLeft       = new JointSetting("ctl_Knee_L", false);
            _ankleLeft      = new JointSetting("ctl_Ankle_L", false);
            _footLeft       = new JointSetting("ctl_Foot_L", false);

            _jointMap = new SortedDictionary <JointType, JointSetting>();
            _jointMap.Add(JointType.Head, _head);
            _jointMap.Add(JointType.ShoulderCenter, _shoulderCenter);
            _jointMap.Add(JointType.ShoulderRight, _shoulderRight);
            _jointMap.Add(JointType.ElbowRight, _elbowRight);
            _jointMap.Add(JointType.WristRight, _wristRight);
            _jointMap.Add(JointType.HandRight, _handRight);
            _jointMap.Add(JointType.ShoulderLeft, _shoulderLeft);
            _jointMap.Add(JointType.ElbowLeft, _elbowLeft);
            _jointMap.Add(JointType.WristLeft, _wristLeft);
            _jointMap.Add(JointType.HandLeft, _handLeft);
            _jointMap.Add(JointType.Spine, _spine);
            _jointMap.Add(JointType.HipCenter, _hipCenter);
            _jointMap.Add(JointType.HipRight, _hipRight);
            _jointMap.Add(JointType.KneeRight, _kneeRight);
            _jointMap.Add(JointType.AnkleRight, _ankleRight);
            _jointMap.Add(JointType.FootRight, _footRight);
            _jointMap.Add(JointType.HipLeft, _hipLeft);
            _jointMap.Add(JointType.KneeLeft, _kneeLeft);
            _jointMap.Add(JointType.AnkleLeft, _ankleLeft);
            _jointMap.Add(JointType.FootLeft, _footLeft);
        }