Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OverviewCameraTool.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
23 #ifndef __OVERVIEW_CAMERA_TOOL_H__
24 #define __OVERVIEW_CAMERA_TOOL_H__
25 
26 #include "Tool.h"
27 #include "ToolHelper.h"
28 
29 
37 {
38  public:
41 
42  void Activate();
43 
44  void MouseMoveEvent(double x, double y, wxMouseEvent & e);
45  void MouseButtonEvent(wxMouseEvent &e);
46  void MouseWheelEvent(wxMouseEvent &);
47 
48  void ChangeZoomLevel(bool zoomIn, double scale = 1.1);
49  void ChangeFOV(bool zoomIn);
50  void KeypressEvent(int keycode, int modifiers, bool pressed);
51 
52  private:
53 
54  //lower limit for the distance of the camera with respect to the sphere radius
55  static const double limit_low;
56  //upper limit for the distance of the camera with respect to the sphere radius
57  static const double limit_high;
58 
59  bool down;
60  //starting position of the mouse
61  double start_x, start_y;
62  //starting position of the camera
64 };
65 
73 {
74  public:
77 
78  void Activate();
79 
80  void MouseMoveEvent(double x, double y, wxMouseEvent & e);
81  void MouseButtonEvent(wxMouseEvent &e);
82  void MouseWheelEvent(wxMouseEvent &);
83 
84  void ChangeZoomLevel(bool zoomIn, double scale = 1.1);
85  void KeypressEvent(int keycode, int modifiers, bool pressed);
86 
87  private:
88 
89  int counter;
90  bool down;
91  //starting position of the mouse
92  double start_x, start_y;
93  //starting position of the camera
95 };
96 
97 #endif /* __OVERVIEW_DRAG_TOOL_H__ */
98 
tool for the manipulation of the opengl 'camera' properties It handles rotation of the camera positio...
void MouseMoveEvent(double x, double y, wxMouseEvent &e)
Notify when the mouse pointer has moved over the panorama preview.
void Activate()
Switch on a tool.
void ChangeZoomLevel(bool zoomIn, double scale=1.1)
ToolHelper * helper
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
Definition: Tool.h:102
void Activate()
Switch on a tool.
void ChangeZoomLevel(bool zoomIn, double scale=1.1)
void MouseWheelEvent(wxMouseEvent &)
Notify of a mouse wheel event on the panorama preview.
PlaneOverviewCameraTool(PlaneOverviewToolHelper *helper)
void MouseWheelEvent(wxMouseEvent &)
Notify of a mouse wheel event on the panorama preview.
PanosphereOverviewCameraTool(PanosphereOverviewToolHelper *helper)
static const double limit_high
tool for manipulation of the opengl 'camera' properties It handles the position of the camera in 3 di...
void KeypressEvent(int keycode, int modifiers, bool pressed)
Notify of a Keypress event.
void MouseButtonEvent(wxMouseEvent &e)
Notify of a mouse button press on the panorama preview.
void MouseButtonEvent(wxMouseEvent &e)
Notify of a mouse button press on the panorama preview.
void MouseMoveEvent(double x, double y, wxMouseEvent &e)
Notify when the mouse pointer has moved over the panorama preview.
void KeypressEvent(int keycode, int modifiers, bool pressed)
Notify of a Keypress event.