Exemplo n.º 1
0
 private void OnTransformChanged(GizmoTransform transform, GizmoTransform.ChangeData changeData)
 {
     if (changeData.TRSDimension == GizmoDimension.Dim2D ||
         changeData.ChangeReason == GizmoTransform.ChangeReason.ParentChange)
     {
         _controllers[(int)LookAndFeel.PlaneType].UpdateTransforms();
     }
 }
 private void OnGizmoTransformChanged(GizmoTransform gizmoTransform, GizmoTransform.ChangeData changeData)
 {
     if (changeData.ChangeReason == GizmoTransform.ChangeReason.ParentChange ||
         changeData.TRSDimension == GizmoDimension.Dim3D)
     {
         UpdateCamLookSlider(Gizmo.GetWorkCamera());
     }
 }
 private void OnTransformChanged(GizmoTransform transform, GizmoTransform.ChangeData changeData)
 {
     if (changeData.ChangeReason == GizmoTransform.ChangeReason.ParentChange ||
         changeData.TRSDimension == GizmoDimension.Dim3D)
     {
         _controllers[(int)LookAndFeel.CapType].UpdateTransforms(GetZoomFactor(Gizmo.GetWorkCamera()));
     }
 }
 private void OnTransformChanged(GizmoTransform transform, GizmoTransform.ChangeData changeData)
 {
     if (changeData.TRSDimension == GizmoDimension.Dim2D ||
         changeData.ChangeReason == GizmoTransform.ChangeReason.ParentChange)
     {
         _controllers[(int)LookAndFeel.LineType].UpdateTransforms();
         _cap2D.CapSlider2D(GetRealDirection(), GetRealEndPosition());
     }
 }
Exemplo n.º 5
0
        private void OnTransformChanged(GizmoTransform transform, GizmoTransform.ChangeData changeData)
        {
            if (changeData.ChangeReason == GizmoTransform.ChangeReason.ParentChange ||
                changeData.TRSDimension == GizmoDimension.Dim3D)
            {
                Camera camera     = Gizmo.GetWorkCamera();
                float  zoomFactor = GetZoomFactor(camera);

                _controllers[(int)LookAndFeel.LineType].UpdateTransforms(zoomFactor);
                _cap3D.CapSlider3D(GetRealDirection(), GetRealEndPosition(zoomFactor));
            }
        }
 private void OnChanged(GizmoTransform.ChangeData changeData)
 {
     if (changeData.TRSDimension == GizmoDimension.Dim3D)
     {
         _firingChanged3DEvent = true;
         if (Changed != null)
         {
             Changed(this, changeData);
         }
         _firingChanged3DEvent = false;
     }
     else
     {
         _firingChanged2DEvent = true;
         if (Changed != null)
         {
             Changed(this, changeData);
         }
         _firingChanged2DEvent = false;
     }
 }
Exemplo n.º 7
0
 private void OnGizmoTransformChanged(GizmoTransform transform, GizmoTransform.ChangeData changeData)
 {
     Update2DGizmoPosition();
 }