示例#1
0
 public void CameraModeHandler(string command, bool down)
 {
     if (down)
     {
         if (command == CMD_MOUSELOOK)
         {
             currentcamerastate = ViewerStateEnum.MouseLook;
         }
         else if (command == CMD_ORBIT)
         {
             currentcamerastate = ViewerStateEnum.CameraOrbit;
         }
         else if (command == CMD_PAN)
         {
             currentcamerastate = ViewerStateEnum.CameraPan;
         }
         else if (command == CMD_ZOOM)
         {
             currentcamerastate = ViewerStateEnum.CameraZoom;
         }
     }
     else
     {
         currentcamerastate = ViewerStateEnum.None;
     }
     onStateChanged();
 }
示例#2
0
 public void FinishEdit3d()
 {
     currenteditstate = ViewerStateEnum.None;
     onStateChanged();
 }
示例#3
0
 public void ActivateEdit3d()
 {
     currenteditstate = ViewerStateEnum.Edit3d;
     onStateChanged();
 }
示例#4
0
 public void ActivateEditTerrain()
 {
     currenteditstate = ViewerStateEnum.Terrain;
     onStateChanged();
 }
示例#5
0
 public void FinishEditTerrain()
 {
     currenteditstate = ViewerStateEnum.None;
     onStateChanged();
 }
示例#6
0
 public void CameraModeHandler(string command, bool down)
 {
     if (down)
     {
         if (command == CMD_MOUSELOOK)
         {
             currentcamerastate = ViewerStateEnum.MouseLook;
         }
         else if (command == CMD_ORBIT)
         {
             currentcamerastate = ViewerStateEnum.CameraOrbit;
         }
         else if (command == CMD_PAN)
         {
             currentcamerastate = ViewerStateEnum.CameraPan;
         }
         else if (command == CMD_ZOOM)
         {
             currentcamerastate = ViewerStateEnum.CameraZoom;
         }
     }
     else
     {
         currentcamerastate = ViewerStateEnum.None;
     }
     onStateChanged();
 }
示例#7
0
 public void ActivateEditTerrain()
 {
     currenteditstate = ViewerStateEnum.Terrain;
     onStateChanged();
 }
示例#8
0
 public void ActivateEdit3d()
 {
     currenteditstate = ViewerStateEnum.Edit3d;
     onStateChanged();
 }