Hugintrunk
0.1
|
#include <OverviewOutlinesTool.h>
Public Member Functions | |
PlaneOverviewOutlinesTool (PlaneOverviewToolHelper *helper, GLViewer *preview) | |
void | Activate () |
Switch on a tool. More... | |
void | AfterDrawImagesEvent () |
Draw (using OpenGL) images above the others. More... | |
void | drawBackground () |
drawing the background means drawing a mesh that covers the whole panorama for the purpose of darkening the regions outside of the preview canvas More... | |
virtual void | MarkDirty () override |
Public Member Functions inherited from OverviewOutlinesTool | |
OverviewOutlinesTool (ToolHelper *, GLViewer *preview) | |
virtual | ~OverviewOutlinesTool () |
virtual void | panoramaChanged (HuginBase::Panorama &pano) |
Notification about a Panorama change. More... | |
virtual void | panoramaImagesChanged (HuginBase::Panorama &, const HuginBase::UIntSet &) |
notifies about changes to images More... | |
Public Member Functions inherited from HuginBase::PanoramaObserver | |
virtual | ~PanoramaObserver () |
Public Member Functions inherited from PlaneOverviewTool | |
PlaneOverviewTool (PlaneOverviewToolHelper *helper) | |
virtual | ~PlaneOverviewTool () |
Public Member Functions inherited from OverviewTool | |
OverviewTool (OverviewToolHelper *helper) | |
virtual | ~OverviewTool () |
Public Member Functions inherited from Tool | |
Tool (ToolHelper *helper) | |
Construct keeping a pointer to a PreviewToolHelper. More... | |
virtual | ~Tool () |
virtual void | MouseMoveEvent (double x, double y, wxMouseEvent &e) |
Notify when the mouse pointer has moved over the panorama preview. More... | |
virtual void | MouseButtonEvent (wxMouseEvent &e) |
Notify of a mouse button press on the panorama preview. More... | |
virtual void | MouseWheelEvent (wxMouseEvent &e) |
Notify of a mouse wheel event on the panorama preview. More... | |
virtual void | ImagesUnderMouseChangedEvent () |
Notify when the images directly underneath the mouse pointer have changed. More... | |
virtual void | KeypressEvent (int keycode, int modifiers, bool pressed) |
Notify of a Keypress event. More... | |
virtual void | BeforeDrawImagesEvent () |
Draw using OpenGL anything the tool requires underneath the images. More... | |
virtual void | ReallyAfterDrawImagesEvent () |
Draw (using OpenGL) the overlays, e.g. crop highlights, guides. More... | |
virtual bool | BeforeDrawImageEvent (unsigned int image) |
Draw what the tool requires just before a given image is drawn. More... | |
virtual void | AfterDrawImageEvent (unsigned int image) |
Notification called just after the image was drawn normally. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from OverviewOutlinesTool | |
void | draw () |
void | DrawRect (double left, double top, double right, double bottom, bool outline, double linewidth=1.0) |
Protected Attributes inherited from OverviewOutlinesTool | |
ToolHelper * | thelper |
bool | dirty_meshes |
GLViewer * | preview |
unsigned int | display_list_number_canvas |
unsigned int | display_list_number_crop |
unsigned int | display_list_number_canvas_outline |
unsigned int | display_list_number_crop_outline |
Protected Attributes inherited from Tool | |
ToolHelper * | helper |
The PreviewToolHelper that uses the same preview window and panorama as the tool should. More... | |
Static Protected Attributes inherited from OverviewOutlinesTool | |
static const double | res =10 |
static const double | mindist =2 |
Definition at line 133 of file OverviewOutlinesTool.h.
|
inline |
Definition at line 137 of file OverviewOutlinesTool.h.
|
virtual |
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 100 of file OverviewOutlinesTool.cpp.
References ToolHelper::DRAW_OVER_IMAGES, Tool::helper, ToolHelper::MARK_DIRTY, and ToolHelper::NotifyMe().
|
virtual |
Draw (using OpenGL) images above the others.
Reimplemented from Tool.
Definition at line 106 of file OverviewOutlinesTool.cpp.
References OverviewOutlinesTool::draw().
|
virtual |
drawing the background means drawing a mesh that covers the whole panorama for the purpose of darkening the regions outside of the preview canvas
Reimplemented from OverviewOutlinesTool.
Definition at line 135 of file OverviewOutlinesTool.cpp.
|
overridevirtual |
Reimplemented from Tool.
Definition at line 151 of file OverviewOutlinesTool.cpp.
References OverviewOutlinesTool::dirty_meshes.