PreviewDragTool Class Reference
Allows the user to change the yaw, pitch and roll of a connected component of images by dragging them in the fast preview. More...
#include <PreviewDragTool.h>
Inheritance diagram for PreviewDragTool:

Public Types | |
| enum | DragMode { drag_mode_normal, drag_mode_mosaic } |
Public Member Functions | |
| PreviewDragTool (PreviewToolHelper *helper) | |
| 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 | ReallyAfterDrawImagesEvent () |
| Draw (using OpenGL) the overlays, e.g. crop highlights, guides. | |
| void | setDragMode (DragMode drag_mode) |
| DragMode | getDragMode () |
| void | getTranslationShift (double &delta_x, double &delta_y) |
Detailed Description
Allows the user to change the yaw, pitch and roll of a connected component of images by dragging them in the fast preview.If there are multiple components under the pointer when the user begins to drag, the lowest number one is chosen, since it is drawn on top.
| Modifiers | Variables changed |
| none | yaw and pitch |
| shift | yaw or pitch, depending on biggest difference. |
| control | roll |
You can also change only roll by using the secondary mouse button (if there is one).
Reasoning: control click on mac is equivalent right click on other platforms, no modifiers should be close to old behaviour (where no modifiers were used), alt moves windows on some window managers, leaving shift as the only common modifier suitable for constrained drag.
Member Enumeration Documentation
|
|
|
Constructor & Destructor Documentation
|
|
|
Member Function Documentation
|
|
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 PreviewTool. |
|
|
|
|
||||||||||||
|
|
|
|
Notify of a mouse button press on the panorama preview.
Reimplemented from PreviewTool. |
|
||||||||||||||||
|
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 PreviewTool. |
|
|
Draw (using OpenGL) the overlays, e.g. crop highlights, guides.
Reimplemented from PreviewTool. |
|
|
|
The documentation for this class was generated from the following files:
- hugin1/hugin/PreviewDragTool.h
- hugin1/hugin/PreviewDragTool.cpp
1.3.9.1