9 #ifndef _ONEDVIEWERDATA_
10 #define _ONEDVIEWERDATA_
14 #include <QtCore/QString>
16 #include <qwt_series_data.h>
22 class Histogram1DFloat;
51 virtual size_t size()
const;
bool _xLog
flag to tell whether x scale will be drawn in log
virtual QRectF boundingRect() const
return the bounding rectangle
virtual QPointF sample(size_t i) const
return the x value for data point
std::tr1::shared_ptr< self_type > shared_pointer
a shared pointer of this class
contains the base class for add viewer data
QPointF _logMinPos
the minimum positions in x and y for log scales
virtual ~OneDViewerData()
destructor
OneDViewerData()
default constructor
void setResult(result_t::shared_pointer result)
set the cass data to be wrapped by this
virtual size_t size() const
return the size of the data
result_t::shared_pointer _result
pointer to the cass data
void setYRangeForLog(bool log)
set up the bounding rect for when y should be log scale
Data::result_t::shared_pointer result()
retrieve pointer to the cass data
void setXRangeForLog(bool log)
set up the bounding rect for when x should be log scale
base class for all data wrappers
bool _yLog
flag to tell whether y scale will be drawn in log