Public Member Functions | Private Attributes
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]

List of all members.

Public Member Functions

virtual QRectF boundingRect () const
 Calculate the bounding rectangle.
 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

Private Attributes

size_t d_size
const double * d_x
const double * d_y

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 Fri Sep 1 2017 02:41:57