The DdtMagnificationWidget class Class for the Magnification Widget that can be used to display a magnified portion of the image around the point currently under the mouse pointer inside the image widget.
More...
#include <ddtMagnificationWidget.hpp>
The DdtMagnificationWidget class Class for the Magnification Widget that can be used to display a magnified portion of the image around the point currently under the mouse pointer inside the image widget.
◆ DdtMagnificationWidget()
DdtMagnificationWidget::DdtMagnificationWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Constructor
- Parameters
-
parent | Pointer to the parent widget |
◆ ~DdtMagnificationWidget()
virtual DdtMagnificationWidget::~DdtMagnificationWidget |
( |
| ) |
|
|
virtualdefault |
◆ ClearImage()
void DdtMagnificationWidget::ClearImage |
( |
| ) |
|
◆ DrawCenterRectangle()
void DdtMagnificationWidget::DrawCenterRectangle |
( |
QPixmap *const |
image | ) |
const |
Draw a rectangle around the center of the image Size depends on environment of the widget. For widget and dialog the size should be 10 x 10 pixels, for the Pick Object dialog, it depends on the position of the pixel-slider
- Parameters
-
image | QPixmap onto which the rectangle is drawn |
◆ DrawMarker()
void DdtMagnificationWidget::DrawMarker |
( |
double |
fwhm_x, |
|
|
double |
fwhm_y, |
|
|
const double |
angle_x_axis |
|
) |
| const |
Draws a marker for a given position with given parameters
- Parameters
-
fwhm_x | Full width at half maximum x |
fwhm_y | Full width at half maximum y |
angle_x_axis | Angle of marker |
◆ get_default_magnification_factors()
QString DdtMagnificationWidget::get_default_magnification_factors |
( |
| ) |
|
Retrieve the list of magnification scales
- Returns
- the list of scale factors
◆ get_region_size()
int DdtMagnificationWidget::get_region_size |
( |
| ) |
|
Retrieve the value region size
- Returns
- the value of the region size
◆ GetImageSize()
int DdtMagnificationWidget::GetImageSize |
( |
| ) |
|
Returns the image size
- Returns
- Size of the image
◆ MagnifiedImage
void DdtMagnificationWidget::MagnifiedImage |
( |
QImage |
magnified_image | ) |
|
|
slot |
Slot to retrieve the magnified image at the mouse coordinates
- Parameters
-
magnifiedImage | The magnified image. |
◆ set_default_magnification_factors()
void DdtMagnificationWidget::set_default_magnification_factors |
( |
const QString |
default_factors | ) |
|
Set the list of possible scale factors as comma separated values like: 1/20,1/10,1/4,1/2,1,2,4,10,20". When empty a default list should be used.
- Parameters
-
◆ set_region_size()
void DdtMagnificationWidget::set_region_size |
( |
const int |
size | ) |
|
Set the value for the region size
- Parameters
-
◆ SetImageSize()
void DdtMagnificationWidget::SetImageSize |
( |
int |
size | ) |
|
Set the size of the image
- Parameters
-
◆ SetMagnificationFactor
void DdtMagnificationWidget::SetMagnificationFactor |
( |
QString |
factor | ) |
|
|
signal |
Signal sent, when the magnification factor was changed
◆ default_magnification_factors
QString DdtMagnificationWidget::default_magnification_factors |
|
protected |
default_magnification_factors List of magnification scales
◆ magnification_factor_index
int DdtMagnificationWidget::magnification_factor_index |
|
protected |
Index for the list of magnification factors
◆ magnification_factors
QStringList DdtMagnificationWidget::magnification_factors |
|
protected |
List of magnification factors
◆ region_size
int DdtMagnificationWidget::region_size |
|
protected |
region_size The size of the region
◆ region_size
The documentation for this class was generated from the following files: