PreviewCropTool.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00002 
00023 #ifndef _PREVIEWCROPTOOL_H
00024 #define _PREVIEWCROPTOOL_H
00025 
00026 #include "Tool.h"
00027 
00031 class PreviewCropTool : public PreviewTool
00032 {
00033 public:
00034     PreviewCropTool(PreviewToolHelper *helper);
00035     void Activate();
00036     void ReallyAfterDrawImagesEvent();
00037     void MouseMoveEvent(double x, double y, wxMouseEvent & e);
00038     void MouseButtonEvent(wxMouseEvent &e);
00039 private:
00040     bool moving_left, moving_right, moving_top, moving_bottom, mouse_down;
00041     double top, bottom, left, right;
00042     double start_drag_x, start_drag_y;
00043     HuginBase::PanoramaOptions start_drag_options, opts;
00044     // region of intrest while displayed during change by dragging.
00045     vigra::Rect2D new_roi;
00046 };
00047 
00048 #endif

Generated on Mon Apr 21 01:25:34 2014 for Hugintrunk by  doxygen 1.3.9.1