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(); }
public void FinishEdit3d() { currenteditstate = ViewerStateEnum.None; onStateChanged(); }
public void ActivateEdit3d() { currenteditstate = ViewerStateEnum.Edit3d; onStateChanged(); }
public void ActivateEditTerrain() { currenteditstate = ViewerStateEnum.Terrain; onStateChanged(); }
public void FinishEditTerrain() { currenteditstate = ViewerStateEnum.None; onStateChanged(); }