Hugintrunk
0.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
hugin1
hugin
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
36
class
PanosphereOverviewCameraTool
:
public
PanosphereOverviewTool
37
{
38
public
:
39
explicit
PanosphereOverviewCameraTool
(
PanosphereOverviewToolHelper
*
helper
) :
PanosphereOverviewTool
(helper) {}
40
virtual
~PanosphereOverviewCameraTool
() {}
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
63
double
start_angx
,
start_angy
;
64
};
65
72
class
PlaneOverviewCameraTool
:
public
PlaneOverviewTool
73
{
74
public
:
75
explicit
PlaneOverviewCameraTool
(
PlaneOverviewToolHelper
*
helper
) :
PlaneOverviewTool
(helper) {}
76
virtual
~PlaneOverviewCameraTool
() {}
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
94
double
start_pos_x
,
start_pos_y
;
95
};
96
97
#endif
/* __OVERVIEW_DRAG_TOOL_H__ */
98
PanosphereOverviewCameraTool
tool for the manipulation of the opengl 'camera' properties It handles rotation of the camera positio...
Definition:
OverviewCameraTool.h:36
PlaneOverviewCameraTool::MouseMoveEvent
void MouseMoveEvent(double x, double y, wxMouseEvent &e)
Notify when the mouse pointer has moved over the panorama preview.
Definition:
OverviewCameraTool.cpp:193
PanosphereOverviewCameraTool::limit_low
static const double limit_low
Definition:
OverviewCameraTool.h:55
Tool.h
PanosphereOverviewToolHelper
Definition:
ToolHelper.h:205
PanosphereOverviewTool
Definition:
Tool.h:128
PlaneOverviewCameraTool::start_pos_x
double start_pos_x
Definition:
OverviewCameraTool.h:94
PanosphereOverviewCameraTool::start_angy
double start_angy
Definition:
OverviewCameraTool.h:63
ToolHelper.h
PanosphereOverviewCameraTool::~PanosphereOverviewCameraTool
virtual ~PanosphereOverviewCameraTool()
Definition:
OverviewCameraTool.h:40
PanosphereOverviewCameraTool::start_angx
double start_angx
Definition:
OverviewCameraTool.h:63
PanosphereOverviewCameraTool::down
bool down
Definition:
OverviewCameraTool.h:59
PlaneOverviewCameraTool::start_y
double start_y
Definition:
OverviewCameraTool.h:92
PanosphereOverviewCameraTool::Activate
void Activate()
Switch on a tool.
Definition:
OverviewCameraTool.cpp:32
PanosphereOverviewCameraTool::ChangeZoomLevel
void ChangeZoomLevel(bool zoomIn, double scale=1.1)
Definition:
OverviewCameraTool.cpp:118
Tool::helper
ToolHelper * helper
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
Definition:
Tool.h:102
PlaneOverviewCameraTool::Activate
void Activate()
Switch on a tool.
Definition:
OverviewCameraTool.cpp:185
PlaneOverviewToolHelper
Definition:
ToolHelper.h:239
PlaneOverviewCameraTool::ChangeZoomLevel
void ChangeZoomLevel(bool zoomIn, double scale=1.1)
Definition:
OverviewCameraTool.cpp:256
PlaneOverviewCameraTool::MouseWheelEvent
void MouseWheelEvent(wxMouseEvent &)
Notify of a mouse wheel event on the panorama preview.
Definition:
OverviewCameraTool.cpp:268
PlaneOverviewCameraTool::PlaneOverviewCameraTool
PlaneOverviewCameraTool(PlaneOverviewToolHelper *helper)
Definition:
OverviewCameraTool.h:75
PanosphereOverviewCameraTool::MouseWheelEvent
void MouseWheelEvent(wxMouseEvent &)
Notify of a mouse wheel event on the panorama preview.
Definition:
OverviewCameraTool.cpp:156
PlaneOverviewTool
Definition:
Tool.h:147
PlaneOverviewCameraTool::counter
int counter
Definition:
OverviewCameraTool.h:89
PlaneOverviewCameraTool::~PlaneOverviewCameraTool
virtual ~PlaneOverviewCameraTool()
Definition:
OverviewCameraTool.h:76
PlaneOverviewCameraTool::start_x
double start_x
Definition:
OverviewCameraTool.h:92
PanosphereOverviewCameraTool::PanosphereOverviewCameraTool
PanosphereOverviewCameraTool(PanosphereOverviewToolHelper *helper)
Definition:
OverviewCameraTool.h:39
PanosphereOverviewCameraTool::limit_high
static const double limit_high
Definition:
OverviewCameraTool.h:57
PanosphereOverviewCameraTool::start_y
double start_y
Definition:
OverviewCameraTool.h:61
PlaneOverviewCameraTool
tool for manipulation of the opengl 'camera' properties It handles the position of the camera in 3 di...
Definition:
OverviewCameraTool.h:72
PanosphereOverviewCameraTool::KeypressEvent
void KeypressEvent(int keycode, int modifiers, bool pressed)
Notify of a Keypress event.
Definition:
OverviewCameraTool.cpp:171
PanosphereOverviewCameraTool::ChangeFOV
void ChangeFOV(bool zoomIn)
Definition:
OverviewCameraTool.cpp:138
PlaneOverviewCameraTool::start_pos_y
double start_pos_y
Definition:
OverviewCameraTool.h:94
PlaneOverviewCameraTool::MouseButtonEvent
void MouseButtonEvent(wxMouseEvent &e)
Notify of a mouse button press on the panorama preview.
Definition:
OverviewCameraTool.cpp:237
PanosphereOverviewCameraTool::MouseButtonEvent
void MouseButtonEvent(wxMouseEvent &e)
Notify of a mouse button press on the panorama preview.
Definition:
OverviewCameraTool.cpp:92
PanosphereOverviewCameraTool::MouseMoveEvent
void MouseMoveEvent(double x, double y, wxMouseEvent &e)
Notify when the mouse pointer has moved over the panorama preview.
Definition:
OverviewCameraTool.cpp:43
PlaneOverviewCameraTool::down
bool down
Definition:
OverviewCameraTool.h:90
PlaneOverviewCameraTool::KeypressEvent
void KeypressEvent(int keycode, int modifiers, bool pressed)
Notify of a Keypress event.
Definition:
OverviewCameraTool.cpp:275
PanosphereOverviewCameraTool::start_x
double start_x
Definition:
OverviewCameraTool.h:61
Generated on Sun Nov 17 2024 01:25:34 for Hugintrunk by
1.8.5