Public Member Functions | Protected Attributes | Private Member Functions | List of all members
QwtSeriesData< T > Class Template Referenceabstract

Abstract interface for iterating over samples. More...

#include <qwt_plot_barchart.h>

Inheritance diagram for QwtSeriesData< T >:
Inheritance graph
[legend]

Public Member Functions

virtual QRectF boundingRect () const
 
 QwtSeriesData ()
 Constructor. More...
 
virtual T sample (size_t i) const =0
 
virtual void setRectOfInterest (const QRectF &rect)
 
virtual size_t size () const =0
 
virtual ~QwtSeriesData ()
 Destructor. More...
 

Protected Attributes

QRectF cachedBoundingRect
 Can be used to cache a calculated bounding rectangle. More...
 

Private Member Functions

QwtSeriesData< T > & operator= (const QwtSeriesData< T > &)
 

Detailed Description

template<typename T>
class QwtSeriesData< T >

Abstract interface for iterating over samples.

Qwt offers several implementations of the QwtSeriesData API, but in situations, where data of an application specific format needs to be displayed, without having to copy it, it is recommended to implement an individual data access.

A subclass of QwtSeriesData<QPointF> must implement:

Definition at line 18 of file qwt_plot_barchart.h.

Constructor & Destructor Documentation

◆ QwtSeriesData()

template<typename T >
QwtSeriesData< T >::QwtSeriesData

Constructor.

Definition at line 118 of file qwt_series_data.h.

◆ ~QwtSeriesData()

template<typename T >
QwtSeriesData< T >::~QwtSeriesData
virtual

Destructor.

Definition at line 124 of file qwt_series_data.h.

Member Function Documentation

◆ boundingRect()

template<typename T >
virtual QRectF QwtSeriesData< T >::boundingRect ( ) const
inlinevirtual

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.

Returns
Bounding rectangle

Definition at line 88 of file qwt_series_data.h.

◆ operator=()

template<typename T >
QwtSeriesData< T >& QwtSeriesData< T >::operator= ( const QwtSeriesData< T > &  )
private

◆ sample()

template<typename T >
virtual T QwtSeriesData< T >::sample ( size_t  i) const
pure virtual

◆ setRectOfInterest()

template<typename T >
void QwtSeriesData< T >::setRectOfInterest ( const QRectF &  rect)
virtual

Set a the "rect of interest"

QwtPlotSeriesItem defines the current area of the plot canvas as "rectangle of interest" ( QwtPlotSeriesItem::updateScaleDiv() ). It can be used to implement different levels of details.

The default implementation does nothing.

Parameters
rectRectangle of interest

Reimplemented in QwtSyntheticPointData.

Definition at line 129 of file qwt_series_data.h.

◆ size()

template<typename T >
virtual size_t QwtSeriesData< T >::size ( ) const
pure virtual
Returns
Number of samples

Implemented in QwtArraySeriesData< T >.

Member Data Documentation

◆ cachedBoundingRect

template<typename T >
QRectF QwtSeriesData< T >::cachedBoundingRect
mutableprotected

Can be used to cache a calculated bounding rectangle.

Definition at line 111 of file qwt_series_data.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:30