CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | Private Attributes | List of all members
jocassview::TrackZoomer2D Class Reference

class that allows to zoom in a 2d view with tracking information More...

#include <track_zoomer_2d.h>

+ Inheritance diagram for jocassview::TrackZoomer2D:
+ Collaboration diagram for jocassview::TrackZoomer2D:

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...
 

Detailed Description

class that allows to zoom in a 2d view with tracking information

tracks the data values and position

Author
Stephan Kassemeyer
Lutz Foucar

Definition at line 28 of file track_zoomer_2d.h.

Constructor & Destructor Documentation

TrackZoomer2D::TrackZoomer2D ( QWidget canvas)

constructor

Parameters
canvasthe canvas which hold the plot

Definition at line 26 of file track_zoomer_2d.cpp.

Member Function Documentation

void TrackZoomer2D::setCameraDistance_cm ( double  cameradistance_cm)

set the camera distance that is needed of the optional resolution calculation

Parameters
cameradistance_cmthe 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

Parameters
datathe object containing the data

Definition at line 67 of file track_zoomer_2d.cpp.

References _data, and data.

Referenced by jocassview::TwoDViewer::TwoDViewer().

void TrackZoomer2D::setPixelSize_um ( double  pixelsize_um)

set the size of a pixel in micro meters

Parameters
pixelsize_umthe 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

Parameters
statusbarpointer 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

Parameters
wavelength_Athe 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().

QwtText TrackZoomer2D::trackerTextF ( const QPointF pos) const
virtual

change the tracker text

Returns
the text to be displayed
Parameters
posThe 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().

Member Data Documentation

double jocassview::TrackZoomer2D::_cameraDistance_cm
private

the cameraDistance in cm (for resolution determination)

Definition at line 84 of file track_zoomer_2d.h.

Referenced by setCameraDistance_cm(), and trackerTextF().

TwoDViewerData* jocassview::TrackZoomer2D::_data
private

the data

Definition at line 78 of file track_zoomer_2d.h.

Referenced by setData(), and trackerTextF().

double jocassview::TrackZoomer2D::_pixelsize_um
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().

QStatusBar* jocassview::TrackZoomer2D::_statusbar
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().

double jocassview::TrackZoomer2D::_wavelength_A
private

the wavelength in Angstroem (for resolution determination)

Definition at line 81 of file track_zoomer_2d.h.

Referenced by setWavelength_A(), and trackerTextF().


The documentation for this class was generated from the following files: