#include <OverviewCameraTool.h>
Inheritance diagram for PanosphereOverviewCameraTool:

Public Member Functions | |
| PanosphereOverviewCameraTool (PanosphereOverviewToolHelper *helper) | |
| virtual | ~PanosphereOverviewCameraTool () |
| 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. | |
| 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. | |
| void | ChangeZoomLevel (bool zoomIn, double scale=1.1) |
| void | KeypressEvent (int keycode, int modifiers, bool pressed) |
| Notify of a Keypress event. | |
Private Attributes | |
| bool | down |
| double | start_x |
| double | start_y |
| double | start_angx |
| double | start_angy |
Static Private Attributes | |
| const double | limit_low = 1.2 |
| const double | limit_high = 5.0 |
moving the camera closer or further away from the panosphere) TODO add manipulation of the FOV of the camera, i.e. the perspective
Definition at line 36 of file OverviewCameraTool.h.
|
|
Definition at line 39 of file OverviewCameraTool.h. |
|
|
Definition at line 40 of file OverviewCameraTool.h. |
|
|
Switch on a tool. Inherited classes also register events they want to respond to with the PreviewToolHelper. As events are lost when the tool is deactivated without notification to the PreviewTool, things from the last activation can be cleaned up here too. Implements Tool. Definition at line 30 of file OverviewCameraTool.cpp. References down, and ToolHelper::NotifyMe(). |
|
||||||||||||
|
||||||||||||||||
|
Notify of a Keypress event. Currently unused as the preview cannot get keyboard input focus. Reimplemented from Tool. Definition at line 106 of file OverviewCameraTool.cpp. References ChangeZoomLevel(). |
|
|
Notify of a mouse button press on the panorama preview.
Reimplemented from Tool. Definition at line 59 of file OverviewCameraTool.cpp. References down, hugin_utils::FDiff2D, PanosphereOverviewVisualizationState::getAngX(), PanosphereOverviewVisualizationState::getAngY(), ToolHelper::GetMouseScreenPosition(), ToolHelper::GetVisualizationStatePtr(), ToolHelper::IsMouseOverPano(), start_angx, start_angy, start_x, start_y, hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y. |
|
||||||||||||||||
|
Notify when the mouse pointer has moved over the panorama preview. The coordinates are in the space of the panorama output at full size, with no output cropping.
Reimplemented from Tool. Definition at line 41 of file OverviewCameraTool.cpp. References hugin_utils::FDiff2D, PanosphereOverviewVisualizationState::getAngX(), PanosphereOverviewVisualizationState::getAngY(), ToolHelper::GetMouseScreenPosition(), PanosphereOverviewVisualizationState::getR(), PanosphereOverviewVisualizationState::getSphereRadius(), ToolHelper::GetVisualizationStatePtr(), M_PI, VisualizationState::Redraw(), PanosphereOverviewVisualizationState::setAngX(), PanosphereOverviewVisualizationState::setAngY(), start_angx, start_x, hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y. |
|
|
Notify of a mouse wheel event on the panorama preview.
Reimplemented from Tool. Definition at line 99 of file OverviewCameraTool.cpp. References ChangeZoomLevel(). |
|
|
Definition at line 58 of file OverviewCameraTool.h. Referenced by Activate(), and MouseButtonEvent(). |
|
|
Definition at line 28 of file OverviewCameraTool.cpp. Referenced by ChangeZoomLevel(). |
|
|
Definition at line 27 of file OverviewCameraTool.cpp. Referenced by ChangeZoomLevel(). |
|
|
Definition at line 62 of file OverviewCameraTool.h. Referenced by MouseButtonEvent(), and MouseMoveEvent(). |
|
|
Definition at line 62 of file OverviewCameraTool.h. Referenced by MouseButtonEvent(). |
|
|
Definition at line 60 of file OverviewCameraTool.h. Referenced by MouseButtonEvent(), and MouseMoveEvent(). |
|
|
Definition at line 60 of file OverviewCameraTool.h. Referenced by MouseButtonEvent(). |
1.3.9.1