Go to the documentation of this file.
18 #ifndef DDT_DATAVISUALISATION_DDTWIDGETS_PANNINGWIDGET_HPP
19 #define DDT_DATAVISUALISATION_DDTWIDGETS_PANNINGWIDGET_HPP
21 #include <QtUiPlugin/QDesignerExportWidget>
31 Q_PROPERTY(
bool ShowAxes READ get_show_axes WRITE set_show_axes)
50 void set_show_axes(
const bool show);
56 bool get_show_axes()
const;
62 void set_rotation_deg(
const float rotation);
69 float get_rotation_deg()
const;
145 bool eventFilter(QObject* obj, QEvent* event);
150 void OnMouseMoveEvent(QMouseEvent* m);
151 void OnMousePressEvent(QMouseEvent* m);
152 void OnMouseReleaseEvent(QMouseEvent* m);
154 void UpdateSelectionRectangle(
const bool externally_triggered =
false);
155 void ValidateSelectionRectangle();
157 int PanWindowWidth()
const;
158 int PanWindowHeight()
const;
162 QTransform image_transform;
167 const int SHOW_NONE = 0;
168 const int SHOW_COMPASS_AND_XY = 1;
169 const int SHOW_COMPASS_ONLY = 2;
170 const int SHOW_XY_ONLY = 3;
171 const int SHOW_MAX = 4;
192 void SetImage(
const QImage*
const image,
const QTransform& transform,
193 const bool show,
const double rotation);
203 void ImageWidgetViewChanged(
const QRectF& visible_image_rect,
204 const int current_image_width,
205 const int current_image_height);
208 #endif // DDT_DATAVISUALISATION_DDTWIDGETS_PANNINGWIDGET_HPP