20#ifndef DDT_DATAVISUALISATION_DDTWIDGETS_MAGNIFICATIONWIDGET_HPP
21#define DDT_DATAVISUALISATION_DDTWIDGETS_MAGNIFICATIONWIDGET_HPP
23#include <QtUiPlugin/QDesignerExportWidget>
38 Q_PROPERTY(QString default_magnification_factors READ
39 get_default_magnification_factors WRITE
40 set_default_magnification_factors)
41 Q_PROPERTY(
int center_rectangle_size READ get_center_rectangle_size WRITE set_center_rectangle_size)
60 void set_default_magnification_factors(
const QString default_factors);
66 QString get_default_magnification_factors();
72 void set_center_rectangle_size(
const int size);
78 int get_center_rectangle_size()
const;
83 void SetExpandingSize();
89 int GetImageSize()
const;
95 int GetCurrentMagnificationFactor()
const;
101 int GetMaximumCenterRectangleSize()
const;
115 void CalcMarkerPosAndDraw(
bool draw_marker,
116 QPointF view_xy, QRect magnified_image_rect,
bool view_rotate_90_270,
117 double fwhm_x,
double fwhm_y,
118 double angle_x_axis,
bool vertical_flip,
bool horizontal_flip);
124 void ClearMagnifiedImage();
174 QLabel* label_zoomed_image;
175 QToolButton* button_zoom_in;
176 QToolButton* button_zoom_out;
177 QToolButton* button_zoom_one;
178 QLabel* label_current_zoom;
182 void ChangedMagnification(QString magnification_factor);
185 void DrawCenterRectangle(QPixmap& pixmap);
186 void DrawMarker(QPixmap& pixmap);
190 void ButtonZoomInPressed();
191 void ButtonZoomOutPressed();
192 void ButtonZoomOnePressed();
199 void MagnifiedImage(QImage magnified_image);
DDT Utils. Helper classes for DDT Datavisualisation. Utilities for the DDT Datavisualisation.
Image Handling class, offers access to image handling functions. This file is part of the DDT Image H...