public RotationGizmoSettings3D()
        {
            for (int sliderIndex = 0; sliderIndex < _sliderSettings.Length; ++sliderIndex)
            {
                _sliderSettings[sliderIndex] = new GizmoPlaneSlider3DSettings();
            }

            SetCamLookLineHoverEps(7.0f);
            SetCanHoverCulledPixels(false);
            SetAxisTorusHoverEps(0.4f);
        }
        public MoveGizmoSettings3D()
        {
            for (int axisIndex = 0; axisIndex < _sglSliderSettings.Length; ++axisIndex)
            {
                _sglSliderSettings[axisIndex] = new GizmoLineSlider3DSettings();
            }

            for (int axisIndex = 0; axisIndex < _dblSliderSettings.Length; ++axisIndex)
            {
                _dblSliderSettings[axisIndex] = new GizmoPlaneSlider3DSettings();
                _dblSliderSettings[axisIndex].AreaHoverEps       = 0.0f;
                _dblSliderSettings[axisIndex].BorderLineHoverEps = 0.0f;
                _dblSliderSettings[axisIndex].BorderBoxHoverEps  = 0.0f;
            }
        }
Пример #3
0
        public ScaleGizmoSettings3D()
        {
            for (int axisIndex = 0; axisIndex < _sglSliderSettings.Length; ++axisIndex)
            {
                _sglSliderSettings[axisIndex] = new GizmoLineSlider3DSettings();
            }

            for (int axisIndex = 0; axisIndex < _dblSliderSettings.Length; ++axisIndex)
            {
                _dblSliderSettings[axisIndex]                    = new GizmoPlaneSlider3DSettings();
                _dblSliderSettings[axisIndex].ScaleMode          = GizmoDblAxisScaleMode.Proportional;
                _dblSliderSettings[axisIndex].AreaHoverEps       = 0.0f;
                _dblSliderSettings[axisIndex].BorderLineHoverEps = 0.0f;
                _dblSliderSettings[axisIndex].BorderBoxHoverEps  = 0.0f;
            }

            SetDragSensitivity(0.6f);
        }
        public UniversalGizmoSettings3D()
        {
            // Move
            for (int axisIndex = 0; axisIndex < _mvSglSliderSettings.Length; ++axisIndex)
            {
                _mvSglSliderSettings[axisIndex] = new GizmoLineSlider3DSettings();
            }

            for (int axisIndex = 0; axisIndex < _mvDblSliderSettings.Length; ++axisIndex)
            {
                _mvDblSliderSettings[axisIndex] = new GizmoPlaneSlider3DSettings();
                _mvDblSliderSettings[axisIndex].AreaHoverEps       = 0.0f;
                _mvDblSliderSettings[axisIndex].BorderLineHoverEps = 0.0f;
                _mvDblSliderSettings[axisIndex].BorderBoxHoverEps  = 0.0f;
            }

            // Rotation
            for (int sliderIndex = 0; sliderIndex < _rtSliderSettings.Length; ++sliderIndex)
            {
                _rtSliderSettings[sliderIndex] = new GizmoPlaneSlider3DSettings();
            }

            SetRtCamLookLineHoverEps(7.0f);
            SetRtCanHoverCulledPixels(false);
            SetRtAxisTorusHoverEps(0.4f);

            // Scale
            for (int axisIndex = 0; axisIndex < _scSglSliderSettings.Length; ++axisIndex)
            {
                _scSglSliderSettings[axisIndex] = new GizmoLineSlider3DSettings();
            }

            for (int axisIndex = 0; axisIndex < _scDblSliderSettings.Length; ++axisIndex)
            {
                _scDblSliderSettings[axisIndex]                    = new GizmoPlaneSlider3DSettings();
                _scDblSliderSettings[axisIndex].ScaleMode          = GizmoDblAxisScaleMode.Proportional;
                _scDblSliderSettings[axisIndex].AreaHoverEps       = 0.0f;
                _scDblSliderSettings[axisIndex].BorderLineHoverEps = 0.0f;
                _scDblSliderSettings[axisIndex].BorderBoxHoverEps  = 0.0f;
            }

            SetScDragSensitivity(0.6f);
        }