Beispiel #1
0
        public void InitiateFreeEdit(int mousex, int mousey)
        {
            editing3d.EditingPreliminaries();

            Entity entity = selectionmodel.GetFirstSelectedEntity();

            if (entity != null)
            {
                editing3d.iDragStartX     = mousex;
                editing3d.iDragStartY     = mousey;
                editing3d.startscale      = entity.scale;
                editing3d.currentedittype = Editing3d.EditType.ScaleFree;
            }
            //DEBUG(  "initializing StartPos " << editing3d.startscale ); // DEBUG
        }
Beispiel #2
0
        public void InitiateFreeEdit(int mousex, int mousey)
        {
            Entity entity = selectionmodel.GetFirstSelectedEntity();

            if (entity != null)
            {
                editing3d.EditingPreliminaries();

                editing3d.startrot = entity.rot;
                Test.Debug("initializing StartRot " + editing3d.startrot.ToString());    // Test.Debug
                //    mvKeyboardAndMouse::bDragging = true;
                editing3d.iDragStartX = mousex;
                editing3d.iDragStartY = mousey;

                editing3d.currentedittype = Editing3d.EditType.RotFree;
            }
        }
Beispiel #3
0
        public void InitiateHandleEdit(int mousex, int mousey, Axis axistype)
        {
            editing3d.EditingPreliminaries();

            Entity entity = selectionmodel.GetFirstSelectedEntity();

            if (entity == null)
            {
                return;
            }

            editing3d.iDragStartX = mousex;
            editing3d.iDragStartY = mousey;
            editing3d.startpos    = entity.pos;
            Test.Debug("initializing startpos " + editing3d.startpos);    // Test.Debug

            editing3d.currentaxis     = axistype;
            editing3d.currentedittype = Editing3d.EditType.PosHandle;
        }