Public Member Functions | Protected Attributes | Private Attributes | List of all members
DataSeriesBase Class Referenceabstract

#include <series_data.h>

Inheritance diagram for DataSeriesBase:
Inheritance graph
[legend]

Public Member Functions

QRectF boundingRect () const override
 
void calculateBoundingBox ()
 
 DataSeriesBase (const PlotData *transformed)
 
virtual PlotData::RangeTimeOpt getVisualizationRangeX ()
 
virtual PlotData::RangeValueOpt getVisualizationRangeY (PlotData::RangeTime range_X)=0
 
virtual QPointF sample (size_t i) const override
 
virtual nonstd::optional< QPointF > sampleFromTime (double t)=0
 
void setTimeOffset (double offset)
 
virtual size_t size () const override
 
const PlotDatatransformedData () const
 
virtual bool updateCache ()=0
 
- Public Member Functions inherited from QwtSeriesData< QPointF >
 QwtSeriesData ()
 Constructor. More...
 
virtual void setRectOfInterest (const QRectF &rect)
 
virtual ~QwtSeriesData ()
 Destructor. More...
 

Protected Attributes

QRectF _bounding_box
 
- Protected Attributes inherited from QwtSeriesData< QPointF >
QRectF d_boundingRect
 Can be used to cache a calculated bounding rectangle. More...
 

Private Attributes

double _time_offset
 
const PlotData_transformed_data
 

Detailed Description

Definition at line 7 of file series_data.h.

Constructor & Destructor Documentation

DataSeriesBase::DataSeriesBase ( const PlotData transformed)
inline

Definition at line 11 of file series_data.h.

Member Function Documentation

QRectF DataSeriesBase::boundingRect ( ) const
inlineoverridevirtual

Calculate the bounding rect of all samples

The bounding rect is necessary for autoscaling and can be used for a couple of painting optimizations.

qwtBoundingRect(...) offers slow implementations iterating over the samples. For large sets it is recommended to implement something faster f.e. by caching the bounding rectangle.

Returns
Bounding rectangle

Implements QwtSeriesData< QPointF >.

Definition at line 27 of file series_data.h.

void DataSeriesBase::calculateBoundingBox ( )
inline

Definition at line 70 of file series_data.h.

virtual PlotData::RangeTimeOpt DataSeriesBase::getVisualizationRangeX ( )
inlinevirtual

Reimplemented in PointSeriesXY.

Definition at line 49 of file series_data.h.

virtual PlotData::RangeValueOpt DataSeriesBase::getVisualizationRangeY ( PlotData::RangeTime  range_X)
pure virtual

Implemented in PointSeriesXY, and TimeseriesQwt.

virtual QPointF DataSeriesBase::sample ( size_t  i) const
inlineoverridevirtual

Return a sample

Parameters
iIndex
Returns
Sample at position i

Implements QwtSeriesData< QPointF >.

Reimplemented in PointSeriesXY.

Definition at line 16 of file series_data.h.

virtual nonstd::optional<QPointF> DataSeriesBase::sampleFromTime ( double  t)
pure virtual

Implemented in PointSeriesXY, and TimeseriesQwt.

void DataSeriesBase::setTimeOffset ( double  offset)
inline

Definition at line 35 of file series_data.h.

virtual size_t DataSeriesBase::size ( ) const
inlineoverridevirtual
Returns
Number of samples

Implements QwtSeriesData< QPointF >.

Definition at line 22 of file series_data.h.

const PlotData* DataSeriesBase::transformedData ( ) const
inline

Definition at line 59 of file series_data.h.

virtual bool DataSeriesBase::updateCache ( )
pure virtual

Member Data Documentation

QRectF DataSeriesBase::_bounding_box
protected

Definition at line 62 of file series_data.h.

double DataSeriesBase::_time_offset
private

Definition at line 66 of file series_data.h.

const PlotData* DataSeriesBase::_transformed_data
private

Definition at line 65 of file series_data.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:18