Public Member Functions | Private Attributes | List of all members
QwtCPointerData Class Reference

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

#include <qwt_point_data.h>

Inheritance diagram for QwtCPointerData:
Inheritance graph
[legend]

Public Member Functions

virtual QRectF boundingRect () const
 Calculate the bounding rectangle. More...
 
 QwtCPointerData (const double *x, const double *y, size_t size)
 
virtual QPointF sample (size_t i) const
 
virtual size_t size () const
 
const double * xData () const
 
const double * yData () const
 
- Public Member Functions inherited from QwtSeriesData< QPointF >
 QwtSeriesData ()
 Constructor. More...
 
virtual void setRectOfInterest (const QRectF &rect)
 
virtual ~QwtSeriesData ()
 Destructor. More...
 

Private Attributes

size_t d_size
 
const double * d_x
 
const double * d_y
 

Additional Inherited Members

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

Detailed Description

Data class containing two pointers to memory blocks of doubles.

Definition at line 41 of file qwt_point_data.h.

Constructor & Destructor Documentation

QwtCPointerData::QwtCPointerData ( const double *  x,
const double *  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 105 of file qwt_point_data.cpp.

Member Function Documentation

QRectF QwtCPointerData::boundingRect ( ) const
virtual

Calculate the bounding rectangle.

The bounding rectangle is calculated once by iterating over all points and is stored for all following requests.

Returns
Bounding rectangle

Implements QwtSeriesData< QPointF >.

Definition at line 121 of file qwt_point_data.cpp.

QPointF QwtCPointerData::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 141 of file qwt_point_data.cpp.

size_t QwtCPointerData::size ( ) const
virtual
Returns
Size of the data set

Implements QwtSeriesData< QPointF >.

Definition at line 130 of file qwt_point_data.cpp.

const double * QwtCPointerData::xData ( ) const
Returns
Array of the x-values

Definition at line 147 of file qwt_point_data.cpp.

const double * QwtCPointerData::yData ( ) const
Returns
Array of the y-values

Definition at line 153 of file qwt_point_data.cpp.

Member Data Documentation

size_t QwtCPointerData::d_size
private

Definition at line 56 of file qwt_point_data.h.

const double* QwtCPointerData::d_x
private

Definition at line 54 of file qwt_point_data.h.

const double* QwtCPointerData::d_y
private

Definition at line 55 of file qwt_point_data.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