Public Member Functions | Protected Attributes | List of all members
PointSeriesXY Class Reference

#include <point_series_xy.h>

Inheritance diagram for PointSeriesXY:
Inheritance graph
[legend]

Public Member Functions

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

Protected Attributes

PlotData _cached_curve
 
const PlotData_x_axis
 
const PlotData_y_axis
 
- Protected Attributes inherited from DataSeriesBase
QRectF _bounding_box
 
- Protected Attributes inherited from QwtSeriesData< QPointF >
QRectF d_boundingRect
 Can be used to cache a calculated bounding rectangle. More...
 

Detailed Description

Definition at line 6 of file point_series_xy.h.

Constructor & Destructor Documentation

PointSeriesXY::PointSeriesXY ( const PlotData y_axis,
const PlotData x_axis 
)

Definition at line 5 of file point_series_xy.cpp.

Member Function Documentation

QRectF PointSeriesXY::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 17 of file point_series_xy.h.

PlotData::RangeTimeOpt PointSeriesXY::getVisualizationRangeX ( )
overridevirtual

Reimplemented from DataSeriesBase.

Definition at line 14 of file point_series_xy.cpp.

PlotData::RangeValueOpt PointSeriesXY::getVisualizationRangeY ( PlotData::RangeTime  range_X)
overridevirtual

Implements DataSeriesBase.

Definition at line 40 of file point_series_xy.cpp.

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

Return a sample

Parameters
iIndex
Returns
Sample at position i

Reimplemented from DataSeriesBase.

Definition at line 11 of file point_series_xy.h.

nonstd::optional< QPointF > PointSeriesXY::sampleFromTime ( double  t)
overridevirtual

Implements DataSeriesBase.

Definition at line 24 of file point_series_xy.cpp.

bool PointSeriesXY::updateCache ( )
overridevirtual

Implements DataSeriesBase.

Definition at line 47 of file point_series_xy.cpp.

Member Data Documentation

PlotData PointSeriesXY::_cached_curve
protected

Definition at line 34 of file point_series_xy.h.

const PlotData* PointSeriesXY::_x_axis
protected

Definition at line 32 of file point_series_xy.h.

const PlotData* PointSeriesXY::_y_axis
protected

Definition at line 33 of file point_series_xy.h.


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


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