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
PreviewCameraTool.h
Go to the documentation of this file.
1
// -*- c-basic-offset: 4 -*-
23
#ifndef __PREVIEW_CAMERA_TOOL_H__
24
#define __PREVIEW_CAMERA_TOOL_H__
25
26
#include "
Tool.h
"
27
#include "
ToolHelper.h
"
28
29
34
class
PreviewCameraTool
:
public
PreviewTool
35
{
36
public
:
37
explicit
PreviewCameraTool
(
PreviewToolHelper
*
helper
) :
PreviewTool
(helper) {};
38
virtual
~PreviewCameraTool
() {};
39
40
void
Activate
();
42
void
MouseWheelEvent
(wxMouseEvent &);
44
void
MouseButtonEvent
(wxMouseEvent &e);
46
void
MouseMoveEvent
(
double
x,
double
y, wxMouseEvent& e);
47
private
:
49
void
ChangeZoomLevel
(
bool
zoomIn,
const
hugin_utils::FDiff2D
& scrollPos);
51
void
UpdateCenter
(
const
hugin_utils::FDiff2D
& moveDist);
52
54
bool
m_moving
;
56
hugin_utils::FDiff2D
m_lastScreenPos
;
57
};
58
59
#endif
/* __PREVIEW_CAMERA_TOOL_H__ */
60
Tool.h
PreviewCameraTool
tool for the manipulation of the opengl 'camera' properties It handles zooming in/out of the main pre...
Definition:
PreviewCameraTool.h:34
ToolHelper.h
PreviewCameraTool::Activate
void Activate()
Switch on a tool.
Definition:
PreviewCameraTool.cpp:29
PreviewCameraTool::MouseButtonEvent
void MouseButtonEvent(wxMouseEvent &e)
event for mouse button processing
Definition:
PreviewCameraTool.cpp:80
PreviewCameraTool::MouseWheelEvent
void MouseWheelEvent(wxMouseEvent &)
event for mouse wheel processing
Definition:
PreviewCameraTool.cpp:59
PreviewCameraTool::MouseMoveEvent
void MouseMoveEvent(double x, double y, wxMouseEvent &e)
event for mouse move
Definition:
PreviewCameraTool.cpp:106
PreviewCameraTool::~PreviewCameraTool
virtual ~PreviewCameraTool()
Definition:
PreviewCameraTool.h:38
PreviewCameraTool::UpdateCenter
void UpdateCenter(const hugin_utils::FDiff2D &moveDist)
update center, used for panning
Definition:
PreviewCameraTool.cpp:67
Tool::helper
ToolHelper * helper
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
Definition:
Tool.h:102
PreviewCameraTool::m_moving
bool m_moving
flag to indicate that we are moving the view with middle mouse button
Definition:
PreviewCameraTool.h:54
hugin_utils::TDiff2D
Definition:
hugin_math.h:82
PreviewTool
Definition:
Tool.h:111
PreviewCameraTool::m_lastScreenPos
hugin_utils::FDiff2D m_lastScreenPos
last screen position during moving , needed for real-time update
Definition:
PreviewCameraTool.h:56
PreviewToolHelper
Definition:
ToolHelper.h:183
PreviewCameraTool::PreviewCameraTool
PreviewCameraTool(PreviewToolHelper *helper)
Definition:
PreviewCameraTool.h:37
PreviewCameraTool::ChangeZoomLevel
void ChangeZoomLevel(bool zoomIn, const hugin_utils::FDiff2D &scrollPos)
update zoom level
Definition:
PreviewCameraTool.cpp:37
Generated on Sun Nov 17 2024 01:25:36 for Hugintrunk by
1.8.5