21#ifndef DDT_DATAVISUALISATION_DDTWIDGETS_PANNINGWIDGET_HPP
22#define DDT_DATAVISUALISATION_DDTWIDGETS_PANNINGWIDGET_HPP
24#include <QtUiPlugin/QDesignerExportWidget>
34 Q_PROPERTY(
bool ShowAxes READ get_show_axes WRITE set_show_axes)
53 void set_show_axes(
const bool show);
59 bool get_show_axes()
const;
65 void set_rotation_deg(
const float rotation);
72 float get_rotation_deg()
const;
148 bool eventFilter(QObject* obj, QEvent* event);
153 void OnMouseMoveEvent(QMouseEvent* m);
154 void OnMousePressEvent(QMouseEvent* m);
155 void OnMouseReleaseEvent(QMouseEvent* m);
157 void UpdateSelectionRectangle(
const bool externally_triggered =
false);
158 void ValidateSelectionRectangle();
160 int PanWindowWidth()
const;
161 int PanWindowHeight()
const;
165 QTransform image_transform;
170 const int SHOW_NONE = 0;
171 const int SHOW_COMPASS_AND_XY = 1;
172 const int SHOW_COMPASS_ONLY = 2;
173 const int SHOW_XY_ONLY = 3;
174 const int SHOW_MAX = 4;
194 void SetImage(
const QImage &image,
const QTransform& transform,
195 const double rotation);
205 void ImageWidgetViewChanged(
const QRectF& visible_image_rect,
206 const int current_image_width,
207 const int current_image_height);
213 void ClearMagnifiedImage();