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

#include <timeseries_qwt.h>

Inheritance diagram for QwtSeriesWrapper:
Inheritance graph
[legend]

Public Member Functions

QRectF boundingRect () const override
 
virtual RangeOpt getVisualizationRangeX ()
 
virtual RangeOpt getVisualizationRangeY (Range range_X)=0
 
const PlotDataBase< double > * plotData () const
 
 QwtSeriesWrapper (const PlotDataBase< double > *data)
 
QPointF sample (size_t i) const override
 
virtual nonstd::optional< QPointF > sampleFromTime (double t)=0
 
void setTimeOffset (double offset)
 
size_t size () const override
 
virtual bool updateCache (bool reset_old_data)=0
 
- Public Member Functions inherited from QwtSeriesData< QPointF >
 QwtSeriesData ()
 Constructor. More...
 
virtual void setRectOfInterest (const QRectF &rect)
 
virtual ~QwtSeriesData ()
 Destructor. More...
 

Private Attributes

const PlotDataBase< double > * _data
 
double _time_offset
 

Additional Inherited Members

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

Detailed Description

Definition at line 12 of file timeseries_qwt.h.

Constructor & Destructor Documentation

QwtSeriesWrapper::QwtSeriesWrapper ( const PlotDataBase< double > *  data)
inline

Definition at line 19 of file timeseries_qwt.h.

Member Function Documentation

QRectF QwtSeriesWrapper::boundingRect ( ) const
overridevirtual

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 105 of file timeseries_qwt.cpp.

RangeOpt QwtSeriesWrapper::getVisualizationRangeX ( )
virtual

Reimplemented in PointSeriesXY.

Definition at line 139 of file timeseries_qwt.cpp.

virtual RangeOpt QwtSeriesWrapper::getVisualizationRangeY ( Range  range_X)
pure virtual

Implemented in QwtTimeseries, and PointSeriesXY.

const PlotDataBase< double > * QwtSeriesWrapper::plotData ( ) const

Definition at line 152 of file timeseries_qwt.cpp.

QPointF QwtSeriesWrapper::sample ( size_t  i) const
overridevirtual

Return a sample

Parameters
iIndex
Returns
Sample at position i

Implements QwtSeriesData< QPointF >.

Definition at line 123 of file timeseries_qwt.cpp.

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

Implemented in QwtTimeseries, and PointSeriesXY.

void QwtSeriesWrapper::setTimeOffset ( double  offset)

Definition at line 134 of file timeseries_qwt.cpp.

size_t QwtSeriesWrapper::size ( ) const
overridevirtual
Returns
Number of samples

Implements QwtSeriesData< QPointF >.

Definition at line 129 of file timeseries_qwt.cpp.

virtual bool QwtSeriesWrapper::updateCache ( bool  reset_old_data)
pure virtual

Member Data Documentation

const PlotDataBase<double>* QwtSeriesWrapper::_data
private

Definition at line 15 of file timeseries_qwt.h.

double QwtSeriesWrapper::_time_offset
private

Definition at line 16 of file timeseries_qwt.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:50