2
* Delta3D Open Source Game and Simulation Engine
3
* Copyright (C) 2005, BMH Associates, Inc.
7
* @author Adrian Friebel
10
#ifndef SIMULATIONCAMERACONTROLLER_H_
11
#define SIMULATIONCAMERACONTROLLER_H_
14
#include <dtGame/gmcomponent.h>
15
#include <dtDAL/gameeventmanager.h>
18
#include <srCore/export.h>
19
#include <srCore/simulationRobotSelectionComponent.h>
20
#include <srCore/simulationArenaComponent.h>
22
// TODO: Different camera control modes, such as walking mode, automated mode, ...
25
* The SimulationCameraController is the camera controlled by the user to go through the
26
* Robot3D simulator. It is not the one of the cameras defined on the robot.
28
class ROBOT_EXPORT SimulationCameraController : public dtGame::GMComponent
31
SimulationCameraController(const std::string &name, osg::Vec3f camPos, bool camState);
33
void ProcessMessage(const dtGame::Message &message);
35
void init(dtCore::Mouse *mouse, dtCore::Keyboard *keyboard);
39
void inline toggleScreenShots(bool toggle) {screenShotToggle = toggle;};
41
void setViewport(bool fullwindow);
43
virtual ~SimulationCameraController();
46
void sendMessageToAll(dtDAL::GameEvent &event);
52
srCore::ScreenShotCallback* mScreenShotTaker;
53
bool screenShotToggle;
55
dtCore::FlyMotionModel *mFMM;
61
#endif /*SIMULATIONCAMERACONTROLLER_H_*/