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

the 2d data wrapper More...

#include <two_d_viewer_data.h>

+ Inheritance diagram for jocassview::TwoDViewerData:
+ Collaboration diagram for jocassview::TwoDViewerData:

Public Types

typedef std::pair< size_t, size_t > shape_t
 define the shape of the data More...
 
- Public Types inherited from jocassview::Data
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...
 
- Public Member Functions inherited from jocassview::Data
 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

- Protected Attributes inherited from jocassview::Data
QString _sourceName
 the name of the source More...
 
bool _wasUpdated
 flag to tell whether the data was updated More...
 

Detailed Description

the 2d data wrapper

Author
Lutz Foucar

Definition at line 30 of file two_d_viewer_data.h.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

TwoDViewerData::TwoDViewerData ( )

default constructor

intialize the histogram pointer to 0

Definition at line 20 of file two_d_viewer_data.cpp.

TwoDViewerData::~TwoDViewerData ( )
virtual

destructor

delete the histogram data pointed to

Definition at line 25 of file two_d_viewer_data.cpp.

Member Function Documentation

QwtInterval TwoDViewerData::origZInterval ( bool  log) const

return the min max values of the values in the data

Returns
the interval of min to max values in the data
Parameters
logwhen true it will return the minimal positive value

Definition at line 50 of file two_d_viewer_data.cpp.

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

Data::result_t::shared_pointer TwoDViewerData::result ( )
virtual

retrieve the pointer to the data

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

Parameters
resultthe result that contains the data

Definition at line 30 of file two_d_viewer_data.cpp.

double TwoDViewerData::value ( double  x,
double  y 
) const
virtual

return the value of the data at point x,y

Parameters
xthe x coordinate of the requested data
ythe 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().

Member Data Documentation

result_t::shared_pointer jocassview::TwoDViewerData::_result
private

the cass data container

Definition at line 79 of file two_d_viewer_data.h.


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