CFEL - ASG Software Suite
2.5.0
CASS
|
the 2d data wrapper More...
#include <two_d_viewer_data.h>
Public Types | |
typedef std::pair< size_t, size_t > | shape_t |
define the shape of the data More... | |
![]() | |
typedef cass::Result< float > | result_t |
define the result type More... | |
Public Member Functions | |
TwoDViewerData () | |
default constructor More... | |
virtual | ~TwoDViewerData () |
destructor More... | |
void | setResult (result_t::shared_pointer result) |
set the cass data to be wrapped by this More... | |
result_t::shared_pointer | result () |
retrieve the pointer to the data More... | |
QwtInterval | origZInterval (bool log) const |
return the min max values of the values in the data More... | |
virtual double | value (double x, double y) const |
return the value of the data at point x,y More... | |
![]() | |
Data () | |
constructor More... | |
virtual | ~Data () |
virtual destrutor More... | |
virtual void | setResult (result_t::shared_pointer result)=0 |
fill the data with the result More... | |
virtual void | setSourceName (const QString &name) |
set the source name More... | |
virtual QString | sourceName () const |
retrieve the source name More... | |
virtual bool | wasUpdated () const |
retrieve was upDated flag More... | |
Private Attributes | |
result_t::shared_pointer | _result |
the cass data container More... | |
Additional Inherited Members | |
![]() | |
QString | _sourceName |
the name of the source More... | |
bool | _wasUpdated |
flag to tell whether the data was updated More... | |
the 2d data wrapper
Definition at line 30 of file two_d_viewer_data.h.
typedef std::pair<size_t,size_t> jocassview::TwoDViewerData::shape_t |
define the shape of the data
Definition at line 34 of file two_d_viewer_data.h.
TwoDViewerData::TwoDViewerData | ( | ) |
default constructor
intialize the histogram pointer to 0
Definition at line 20 of file two_d_viewer_data.cpp.
|
virtual |
destructor
delete the histogram data pointed to
Definition at line 25 of file two_d_viewer_data.cpp.
QwtInterval TwoDViewerData::origZInterval | ( | bool | log | ) | const |
return the min max values of the values in the data
log | when true it will return the minimal positive value |
Definition at line 50 of file two_d_viewer_data.cpp.
Referenced by jocassview::TwoDViewer::replot().
|
virtual |
retrieve the pointer to the data
Implements jocassview::Data.
Definition at line 44 of file two_d_viewer_data.cpp.
Referenced by jocassview::TwoDViewer::replot().
void TwoDViewerData::setResult | ( | result_t::shared_pointer | result | ) |
set the cass data to be wrapped by this
takes over ownership of the data pointed to and deletes it when another pointer is passed to this.
result | the result that contains the data |
Definition at line 30 of file two_d_viewer_data.cpp.
|
virtual |
return the value of the data at point x,y
x | the x coordinate of the requested data |
y | the y coordinate of the requested data |
Definition at line 72 of file two_d_viewer_data.cpp.
References cass::ACQIRIS::width.
Referenced by jocassview::TrackZoomer2D::trackerTextF().
|
private |
the cass data container
Definition at line 79 of file two_d_viewer_data.h.