Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PreviewCropTool.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
2 
23 #ifndef _PREVIEWCROPTOOL_H
24 #define _PREVIEWCROPTOOL_H
25 
26 #include "Tool.h"
27 
32 {
33 public:
35  void Activate();
37  void MouseMoveEvent(double x, double y, wxMouseEvent & e);
38  void MouseButtonEvent(wxMouseEvent &e);
39 private:
41  double top, bottom, left, right;
44  // region of intrest while displayed during change by dragging.
45  vigra::Rect2D new_roi;
46 };
47 
48 #endif
Allow the user to change the cropping region by dragging it in the fast preview.
HuginBase::PanoramaOptions opts
void MouseMoveEvent(double x, double y, wxMouseEvent &e)
Notify when the mouse pointer has moved over the panorama preview.
vigra::Rect2D new_roi
void ReallyAfterDrawImagesEvent()
Draw (using OpenGL) the overlays, e.g. crop highlights, guides.
ToolHelper * helper
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
Definition: Tool.h:102
HuginBase::PanoramaOptions start_drag_options
void Activate()
Switch on a tool.
void MouseButtonEvent(wxMouseEvent &e)
Notify of a mouse button press on the panorama preview.
PreviewCropTool(PreviewToolHelper *helper)
Panorama image options.