PreviewTool Class Reference
#include <PreviewTool.h>
Inheritance diagram for PreviewTool:

Public Member Functions | |
| PreviewTool (PreviewToolHelper *helper) | |
| Construct keeping a pointer to a PreviewToolHelper. | |
| virtual | ~PreviewTool () |
| virtual void | Activate ()=0 |
| Switch on a tool. | |
| virtual void | MouseMoveEvent (double x, double y, wxMouseEvent &e) |
| Notify when the mouse pointer has moved over the panorama preview. | |
| virtual void | MouseButtonEvent (wxMouseEvent &e) |
| Notify of a mouse button press on the panorama preview. | |
| virtual void | ImagesUnderMouseChangedEvent () |
| Notify when the images directly underneath the mouse pointer have changed. | |
| virtual void | KeypressEvent (int keycode, int modifiers, bool pressed) |
| Notify of a Keypress event. | |
| virtual void | BeforeDrawImagesEvent () |
| Draw using OpenGL anything the tool requires underneath the images. | |
| virtual void | AfterDrawImagesEvent () |
| Draw (using OpenGL) images above the others. | |
| virtual void | ReallyAfterDrawImagesEvent () |
| Draw (using OpenGL) the overlays, e.g. crop highlights, guides. | |
| virtual bool | BeforeDrawImageEvent (unsigned int image) |
| Draw what the tool requires just before a given image is drawn. | |
| virtual void | AfterDrawImageEvent (unsigned int image) |
| Notification called just after the image was drawn normally. | |
Protected Attributes | |
| PreviewToolHelper * | helper |
| The PreviewToolHelper that uses the same preview window and panorama as the tool should. | |
Constructor & Destructor Documentation
|
|
Construct keeping a pointer to a PreviewToolHelper. Child classes should use this to ensure helper is set. |
|
|
|
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. Implemented in PreviewControlPointTool, PreviewCropTool, PreviewDifferenceTool, PreviewDragTool, PreviewIdentifyTool, PreviewLayoutLinesTool, and PreviewPanoMaskTool. |
|
|
Notification called just after the image was drawn normally.
|
|
|
Draw (using OpenGL) images above the others.
Reimplemented in PreviewControlPointTool, PreviewDifferenceTool, PreviewIdentifyTool, and PreviewLayoutLinesTool. |
|
|
Draw what the tool requires just before a given image is drawn. This can be used to modify how the images are drawn, prevent drawing of the image, or change the order of the image drawing (with another event to draw the image when it is needed).
Reimplemented in PreviewDifferenceTool, PreviewIdentifyTool, and PreviewLayoutLinesTool. |
|
|
Draw using OpenGL anything the tool requires underneath the images.
Reimplemented in PreviewLayoutLinesTool, and PreviewPanoMaskTool. |
|
|
Notify when the images directly underneath the mouse pointer have changed. It is monitored by the PreviewToolHelper. Reimplemented in PreviewDifferenceTool, and PreviewIdentifyTool. |
|
||||||||||||||||
|
Notify of a Keypress event. Currently unused as the preview cannot get keyboard input focus. |
|
|
Notify of a mouse button press on the panorama preview.
Reimplemented in PreviewCropTool, PreviewDragTool, PreviewIdentifyTool, and PreviewLayoutLinesTool. |
|
||||||||||||||||
|
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 in PreviewCropTool, PreviewDragTool, and PreviewLayoutLinesTool. |
|
|
Draw (using OpenGL) the overlays, e.g. crop highlights, guides.
Reimplemented in PreviewCropTool, PreviewDragTool, and PreviewPanoMaskTool. |
Member Data Documentation
|
|
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
|
The documentation for this class was generated from the following files:
- hugin1/hugin/PreviewTool.h
- hugin1/hugin/PreviewTool.cpp
1.3.9.1