8 #include <QtCore/QDebug>
9 #include <QtCore/QPoint>
11 #if QT_VERSION >= 0x050000
12 #include <QtWidgets/QStatusBar>
14 #include <QtGui/QStatusBar>
27 : ScrollZoomer(canvas),
31 setTrackerMode(AlwaysOn);
48 const double radius_cm = sqrt(x_cm*x_cm + y_cm*y_cm);
51 const double d = 1. / Q;
62 QwtText text(text_string);
63 text.setBackgroundBrush(
QBrush( bg ));
contains zoomer for a 2d plot with tracking information
TrackZoomer2D(QWidget *canvas)
constructor
showMessage(const QString &message, int timeout=0)
contains the wrappe of the data for the 2d viewer
void setWavelength_A(double wavelength_A)
set the wavelength that is needed of the optional resolution calculation
QStatusBar * _statusbar
pointer to the statusbar to put the text to
void setCameraDistance_cm(double cameradistance_cm)
set the camera distance that is needed of the optional resolution calculation
double _wavelength_A
the wavelength in Angstroem (for resolution determination)
number(long n, int base=10)
append(const QString &str)
void setPixelSize_um(double pixelsize_um)
set the size of a pixel in micro meters
virtual QwtText trackerTextF(const QPointF &pos) const
change the tracker text
TwoDViewerData * _data
the data
auxiliary data[Processor]
virtual double value(double x, double y) const
return the value of the data at point x,y
void setData(TwoDViewerData *data)
set the data to retrieve the values from
void setStatusBar(QStatusBar *statusbar)
set the statusbar pointer
double _cameraDistance_cm
the cameraDistance in cm (for resolution determination)
double _pixelsize_um
the pixel size in micro meters (for resolution determination)