コード例 #1
0
        public void StartTransformAction(AbstractTransformAction transformAction, IRevertable revertable = null)
        {
            if (CurrentAction != null || SelectionTransformAction != NoAction)
            {
                return;
            }

            actionStartCamTarget = control.CameraTarget;

            if (revertable != null)
            {
                BeginUndoCollection();
                AddToUndo(revertable);
            }


            SelectionTransformAction = transformAction;
        }
コード例 #2
0
        public void StartTransformAction(AbstractTransformAction transformAction, int part = -1, IRevertable revertable = null)
        {
            if (revertable != null)
            {
                BeginUndoCollection();
                AddToUndo(revertable);
            }

            if (part != -1)
            {
                HoveredPart     = part;
                ExclusiveAction = transformAction;
            }
            else
            {
                CurrentAction = transformAction;
            }
        }
コード例 #3
0
 public virtual void ApplyTransformActionToSelection(AbstractTransformAction transformAction, ref TransformChangeInfos transformChangeInfos)
 {
 }
コード例 #4
0
 public virtual void ApplyTransformActionToPart(AbstractTransformAction transformAction, int part, ref TransformChangeInfos transformChangeInfos)
 {
 }
コード例 #5
0
 public override void ApplyTransformActionToSelection(AbstractTransformAction transformAction)
 {
     position = transformAction.NewPos(position);
     UpdateNodePosition();
 }