Public Member Functions | Protected Attributes | List of all members
QwtArraySeriesData< T > Class Template Reference

Template class for data, that is organized as QVector. More...

#include <qwt_series_data.h>

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

Public Member Functions

 QwtArraySeriesData ()
 Constructor. More...
 
 QwtArraySeriesData (const QVector< T > &samples)
 
virtual T sample (size_t index) const
 
const QVector< T > samples () const
 
void setSamples (const QVector< T > &samples)
 
virtual size_t size () const
 
- Public Member Functions inherited from QwtSeriesData< T >
virtual QRectF boundingRect () const =0
 
 QwtSeriesData ()
 Constructor. More...
 
virtual void setRectOfInterest (const QRectF &rect)
 
virtual ~QwtSeriesData ()
 Destructor. More...
 

Protected Attributes

QVector< T > d_samples
 Vector of samples. More...
 
- Protected Attributes inherited from QwtSeriesData< T >
QRectF d_boundingRect
 Can be used to cache a calculated bounding rectangle. More...
 

Detailed Description

template<typename T>
class QwtArraySeriesData< T >

Template class for data, that is organized as QVector.

QVector uses implicit data sharing and can be passed around as argument efficiently.

Definition at line 133 of file qwt_series_data.h.

Constructor & Destructor Documentation

template<typename T >
QwtArraySeriesData< T >::QwtArraySeriesData ( )

Constructor.

Definition at line 171 of file qwt_series_data.h.

template<typename T>
QwtArraySeriesData< T >::QwtArraySeriesData ( const QVector< T > &  samples)
explicit

Constructor

Parameters
samplesArray of samples

Definition at line 176 of file qwt_series_data.h.

Member Function Documentation

template<typename T >
T QwtArraySeriesData< T >::sample ( size_t  index) const
virtual
Returns
Sample at a specific position
Parameters
indexIndex
Returns
Sample at position index

Implements QwtSeriesData< T >.

Definition at line 201 of file qwt_series_data.h.

template<typename T >
const QVector< T > QwtArraySeriesData< T >::samples ( ) const
Returns
Array of samples

Definition at line 189 of file qwt_series_data.h.

template<typename T>
void QwtArraySeriesData< T >::setSamples ( const QVector< T > &  samples)

Assign an array of samples

Parameters
samplesArray of samples

Definition at line 182 of file qwt_series_data.h.

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

Implements QwtSeriesData< T >.

Definition at line 195 of file qwt_series_data.h.

Member Data Documentation

template<typename T>
QVector<T> QwtArraySeriesData< T >::d_samples
protected

Vector of samples.

Definition at line 167 of file qwt_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