---
name: "QwtCPointerData"
section: "3"
platform: "linux"
package: "libqwt-doc"
version: "6.1.4-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/QwtCPointerData"
---

# QwtCPointerData(3)

Data class containing two pointers to memory blocks of doubles.

## NAME

QwtCPointerData - Data class containing two pointers to memory blocks of doubles.

## SYNOPSIS

`#include <qwt_point_data.h>`

Inherits **QwtSeriesData\< QPointF \>**.

### Public Member Functions

**QwtCPointerData** (const double \*x, const double \*y, size\_t **size**)\
 virtual QRectF **boundingRect** () const\
 Calculate the bounding rectangle.  virtual size\_t **size** () const\
 virtual QPointF **sample** (size\_t index) const\
 const double \* **xData** () const\
 const double \* **yData** () const\

### Additional Inherited Members

## Detailed Description

Data class containing two pointers to memory blocks of doubles.

## Constructor & Destructor Documentation

### QwtCPointerData::QwtCPointerData (const double \* x, const double \* y, size\_t size)

Constructor

**Parameters:**

*x* Array of x values \
 *y* Array of y values \
 *size* Size 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()**

## 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 \>**.

### QPointF QwtCPointerData::sample (size\_t index) const` [virtual]`

Return the sample at position i

**Parameters:**

*index* Index

**Returns:**

Sample at position i

Implements **QwtSeriesData\< QPointF \>**.

### size\_t QwtCPointerData::size () const` [virtual]`

**Returns:**

Size of the data set

Implements **QwtSeriesData\< QPointF \>**.

### const double \* QwtCPointerData::xData () const

**Returns:**

Array of the x-values

### const double \* QwtCPointerData::yData () const

**Returns:**

Array of the y-values

## Author

Generated automatically by Doxygen for Qwt User's Guide from the source code.
