Hugin trunk 0.1
Loading...
Searching...
No Matches
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);
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
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);
83
84 void ChangeZoomLevel(bool zoomIn, double scale = 1.1);
85 void KeypressEvent(int keycode, int modifiers, bool pressed);
86
87 private:
88
90 bool down;
91 //starting position of the mouse
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 KeypressEvent(int keycode, int modifiers, bool pressed)
Notify of a Keypress event.
void Activate()
Switch on a tool.
void MouseMoveEvent(double x, double y, wxMouseEvent &e)
Notify when the mouse pointer has moved over the panorama preview.
PanosphereOverviewCameraTool(PanosphereOverviewToolHelper *helper)
void ChangeZoomLevel(bool zoomIn, double scale=1.1)
void MouseButtonEvent(wxMouseEvent &e)
Notify of a mouse button press on the panorama preview.
void MouseWheelEvent(wxMouseEvent &)
Notify of a mouse wheel event on the panorama preview.
tool for manipulation of the opengl 'camera' properties It handles the position of the camera in 3 di...
void MouseWheelEvent(wxMouseEvent &)
Notify of a mouse wheel event on the panorama preview.
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 ChangeZoomLevel(bool zoomIn, double scale=1.1)
void MouseMoveEvent(double x, double y, wxMouseEvent &e)
Notify when the mouse pointer has moved over the panorama preview.
PlaneOverviewCameraTool(PlaneOverviewToolHelper *helper)
void Activate()
Switch on a tool.
ToolHelper * helper
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
Definition Tool.h:109
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition threshold.h:41