CFEL - ASG Software Suite
2.5.0
CASS
|
class that allows to zoom in a 2d view with tracking information More...
#include <track_zoomer_2d.h>
Public Member Functions | |
TrackZoomer2D (QWidget *canvas) | |
constructor More... | |
virtual QwtText | trackerTextF (const QPointF &pos) const |
change the tracker text More... | |
void | setData (TwoDViewerData *data) |
set the data to retrieve the values from More... | |
void | setWavelength_A (double wavelength_A) |
set the wavelength that is needed of the optional resolution calculation More... | |
void | setCameraDistance_cm (double cameradistance_cm) |
set the camera distance that is needed of the optional resolution calculation More... | |
void | setPixelSize_um (double pixelsize_um) |
set the size of a pixel in micro meters More... | |
void | setStatusBar (QStatusBar *statusbar) |
set the statusbar pointer More... | |
Private Attributes | |
TwoDViewerData * | _data |
the data More... | |
double | _wavelength_A |
the wavelength in Angstroem (for resolution determination) More... | |
double | _cameraDistance_cm |
the cameraDistance in cm (for resolution determination) More... | |
double | _pixelsize_um |
the pixel size in micro meters (for resolution determination) More... | |
QStatusBar * | _statusbar |
pointer to the statusbar to put the text to More... | |
class that allows to zoom in a 2d view with tracking information
tracks the data values and position
Definition at line 28 of file track_zoomer_2d.h.
TrackZoomer2D::TrackZoomer2D | ( | QWidget * | canvas | ) |
constructor
canvas | the canvas which hold the plot |
Definition at line 26 of file track_zoomer_2d.cpp.
void TrackZoomer2D::setCameraDistance_cm | ( | double | cameradistance_cm | ) |
set the camera distance that is needed of the optional resolution calculation
cameradistance_cm | the camera distance in centimeter |
Definition at line 77 of file track_zoomer_2d.cpp.
References _cameraDistance_cm.
Referenced by jocassview::TwoDViewer::on_load_geomfile_triggered(), and jocassview::TwoDViewer::TwoDViewer().
void TrackZoomer2D::setData | ( | TwoDViewerData * | data | ) |
set the data to retrieve the values from
data | the object containing the data |
Definition at line 67 of file track_zoomer_2d.cpp.
Referenced by jocassview::TwoDViewer::TwoDViewer().
void TrackZoomer2D::setPixelSize_um | ( | double | pixelsize_um | ) |
set the size of a pixel in micro meters
pixelsize_um | the pixel size in micro meters |
Definition at line 83 of file track_zoomer_2d.cpp.
References _pixelsize_um.
Referenced by jocassview::TwoDViewer::on_load_geomfile_triggered(), and jocassview::TwoDViewer::TwoDViewer().
void TrackZoomer2D::setStatusBar | ( | QStatusBar * | statusbar | ) |
set the statusbar pointer
statusbar | pointer to the statusbar to put the text to |
Definition at line 88 of file track_zoomer_2d.cpp.
References _statusbar.
void TrackZoomer2D::setWavelength_A | ( | double | wavelength_A | ) |
set the wavelength that is needed of the optional resolution calculation
wavelength_A | the wavelength in Angstroem |
Definition at line 72 of file track_zoomer_2d.cpp.
References _wavelength_A.
Referenced by jocassview::TwoDViewer::on_load_geomfile_triggered(), and jocassview::TwoDViewer::TwoDViewer().
|
virtual |
change the tracker text
pos | The position of the mouse |
Definition at line 34 of file track_zoomer_2d.cpp.
References _cameraDistance_cm, _data, _pixelsize_um, _statusbar, _wavelength_A, QString::append(), QString::number(), QColor::setAlpha(), QStatusBar::showMessage(), jocassview::TwoDViewerData::value(), QPointF::x(), and QPointF::y().
|
private |
the cameraDistance in cm (for resolution determination)
Definition at line 84 of file track_zoomer_2d.h.
Referenced by setCameraDistance_cm(), and trackerTextF().
|
private |
the data
Definition at line 78 of file track_zoomer_2d.h.
Referenced by setData(), and trackerTextF().
|
private |
the pixel size in micro meters (for resolution determination)
Definition at line 87 of file track_zoomer_2d.h.
Referenced by setPixelSize_um(), and trackerTextF().
|
private |
pointer to the statusbar to put the text to
Definition at line 90 of file track_zoomer_2d.h.
Referenced by setStatusBar(), and trackerTextF().
|
private |
the wavelength in Angstroem (for resolution determination)
Definition at line 81 of file track_zoomer_2d.h.
Referenced by setWavelength_A(), and trackerTextF().