Public Member Functions | Private Attributes | List of all members
QwtCPointerData< T > Class Template Reference

Data class containing two pointers to memory blocks of T. More...

#include <qwt_point_data.h>

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

Public Member Functions

 QwtCPointerData (const T *x, const T *y, size_t size)
 
virtual QPointF sample (size_t index) const QWT_OVERRIDE
 
virtual size_t size () const QWT_OVERRIDE
 
const T * xData () const
 
const T * yData () const
 
- Public Member Functions inherited from QwtSeriesData< QPointF >
virtual QRectF boundingRect () const
 
 QwtSeriesData ()
 Constructor. More...
 
virtual void setRectOfInterest (const QRectF &rect)
 
virtual size_t size () const=0
 
virtual ~QwtSeriesData ()
 Destructor. More...
 

Private Attributes

size_t m_size
 
const T * m_x
 
const T * m_y
 

Additional Inherited Members

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

Detailed Description

template<typename T>
class QwtCPointerData< T >

Data class containing two pointers to memory blocks of T.

Definition at line 43 of file qwt_point_data.h.

Constructor & Destructor Documentation

◆ QwtCPointerData()

template<typename T >
QwtCPointerData< T >::QwtCPointerData ( const T *  x,
const T *  y,
size_t  size 
)

Constructor

Parameters
xArray of x values
yArray of y values
sizeSize of the x and y arrays
Warning
The programmer must assure that the memory blocks referenced by the pointers remain valid during the lifetime of the QwtPlotCPointer object.
See also
QwtPlotCurve::setData(), QwtPlotCurve::setRawSamples()

Definition at line 326 of file qwt_point_data.h.

Member Function Documentation

◆ sample()

template<typename T >
QPointF QwtCPointerData< T >::sample ( size_t  index) const
virtual

Return the sample at position i

Parameters
indexIndex
Returns
Sample at position i

Implements QwtSeriesData< QPointF >.

Definition at line 347 of file qwt_point_data.h.

◆ size()

template<typename T >
size_t QwtCPointerData< T >::size
virtual
Returns
Size of the data set

Definition at line 335 of file qwt_point_data.h.

◆ xData()

template<typename T >
const T * QwtCPointerData< T >::xData
Returns
Array of the x-values

Definition at line 354 of file qwt_point_data.h.

◆ yData()

template<typename T >
const T * QwtCPointerData< T >::yData
Returns
Array of the y-values

Definition at line 361 of file qwt_point_data.h.

Member Data Documentation

◆ m_size

template<typename T >
size_t QwtCPointerData< T >::m_size
private

Definition at line 57 of file qwt_point_data.h.

◆ m_x

template<typename T >
const T* QwtCPointerData< T >::m_x
private

Definition at line 55 of file qwt_point_data.h.

◆ m_y

template<typename T >
const T* QwtCPointerData< T >::m_y
private

Definition at line 56 of file qwt_point_data.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:50