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

Public Member Functions | |
| PlaneOverviewCameraTool (PlaneOverviewToolHelper *helper) | |
| virtual | ~PlaneOverviewCameraTool () |
| 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 | |
| int | counter |
| bool | down |
| double | start_x |
| double | start_y |
| double | start_pos_x |
| double | start_pos_y |
dragging with middle click or ctrl + left click for adjusting the XY position and mouse wheel for adjusting Z position (zooming in/out)
Definition at line 71 of file OverviewCameraTool.h.
|
|
Definition at line 74 of file OverviewCameraTool.h. |
|
|
Definition at line 75 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 120 of file OverviewCameraTool.cpp. References down, and ToolHelper::NotifyMe(). |
|
||||||||||||
|
Definition at line 192 of file OverviewCameraTool.cpp. References VisualizationState::ForceRequireRedraw(), PlaneOverviewVisualizationState::getR(), ToolHelper::GetVisualizationStatePtr(), VisualizationState::Redraw(), VisualizationState::SetDirtyViewport(), and PlaneOverviewVisualizationState::setR(). Referenced by KeypressEvent(), and MouseWheelEvent(). |
|
||||||||||||||||
|
Notify of a Keypress event. Currently unused as the preview cannot get keyboard input focus. Reimplemented from Tool. Definition at line 211 of file OverviewCameraTool.cpp. References ChangeZoomLevel(). |
|
|
Notify of a mouse button press on the panorama preview.
Reimplemented from Tool. Definition at line 173 of file OverviewCameraTool.cpp. References down, PlaneOverviewToolHelper::getPlaneX(), PlaneOverviewToolHelper::getPlaneY(), ToolHelper::GetVisualizationStatePtr(), PlaneOverviewVisualizationState::getX(), PlaneOverviewVisualizationState::getY(), start_pos_x, start_pos_y, start_x, and start_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 128 of file OverviewCameraTool.cpp. References DEG_TO_RAD, VisualizationState::ForceRequireRedraw(), PlaneOverviewVisualizationState::getFOV(), PlaneOverviewVisualizationState::getR(), VisualizationState::GetViewer(), ToolHelper::GetVisualizationStatePtr(), VisualizationState::Redraw(), PlaneOverviewVisualizationState::setX(), PlaneOverviewVisualizationState::setY(), start_pos_x, start_pos_y, start_x, and start_y. |
|
|
Notify of a mouse wheel event on the panorama preview.
Reimplemented from Tool. Definition at line 204 of file OverviewCameraTool.cpp. References ChangeZoomLevel(). |
|
|
Definition at line 88 of file OverviewCameraTool.h. |
|
|
Definition at line 89 of file OverviewCameraTool.h. Referenced by Activate(), and MouseButtonEvent(). |
|
|
Definition at line 93 of file OverviewCameraTool.h. Referenced by MouseButtonEvent(), and MouseMoveEvent(). |
|
|
Definition at line 93 of file OverviewCameraTool.h. Referenced by MouseButtonEvent(), and MouseMoveEvent(). |
|
|
Definition at line 91 of file OverviewCameraTool.h. Referenced by MouseButtonEvent(), and MouseMoveEvent(). |
|
|
Definition at line 91 of file OverviewCameraTool.h. Referenced by MouseButtonEvent(), and MouseMoveEvent(). |
1.3.9.1