GlobeEngine
AtmosphereViewerInputControl.h
Go to the documentation of this file.
1 
8 #ifndef AtmosphereEngine_AtmosphereViewerInputControl_h
9 #define AtmosphereEngine_AtmosphereViewerInputControl_h
10 
11 #include "OpenGL_Includes.h"
12 #include "InputControl.h"
13 #include "AtmosphereEngine.h"
14 #include <vmmlib/matrix.hpp>
15 #include "qmath.h"
16 
17 namespace at {
19  {
20  public:
23 
24  void mouseMoveWhilePressedEvent(int button, int x, int y);
25  void mouseButtonEvent(int button, int state, int x, int y);
26  void wheelEvent(float _input);
27  void moveToLocation(vmml::Vector2d _delta);
28  void keyPressEvent(unsigned char pKey);
29  void keyReleaseEvent(unsigned char pKey);
30  void mouseMoveStopEvent();
31  void mouseMoveEvent(int x, int y);
32  void executeDirectCommands();
33 
34  private:
35  void setMoveCommand(int _camID, int _command);
36  void setCommand(int _camID, int _command, float _value);
37 
38  float scrollAdjustment;
39  unsigned char constKeyModifier;
40  float scaleAdjustment;
41  std::map<unsigned char, std::string> functionMap;
42  };
43 }
44 #endif
void keyReleaseEvent(unsigned char pKey)
Definition: AtmosphereViewerInputControl.cpp:164
void mouseMoveStopEvent()
Definition: AtmosphereViewerInputControl.cpp:166
void mouseMoveWhilePressedEvent(int button, int x, int y)
Definition: AtmosphereViewerInputControl.cpp:49
void mouseButtonEvent(int button, int state, int x, int y)
Definition: AtmosphereViewerInputControl.cpp:93
~AtmosphereViewerInputControl()
Definition: AtmosphereViewerInputControl.cpp:21
void mouseMoveEvent(int x, int y)
Definition: AtmosphereViewerInputControl.cpp:168
void moveToLocation(vmml::Vector2d _delta)
AtmosphereViewerInputControl()
Definition: AtmosphereViewerInputControl.cpp:10
Definition: AtmosphereViewerInputControl.h:18
Definition: AtmosphereComposition.h:20
void wheelEvent(float _input)
Definition: AtmosphereViewerInputControl.cpp:24
Definition: InputControl.h:16
void executeDirectCommands()
Definition: AtmosphereViewerInputControl.cpp:143
void keyPressEvent(unsigned char pKey)
Definition: AtmosphereViewerInputControl.cpp:121