---
name: "QwtIntervalData"
section: "3"
platform: "linux"
package: "libqwt5-doc"
version: "5.2.3-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/QwtIntervalData"
---

# QwtIntervalData(3)

## NAME

QwtIntervalData -

## SYNOPSIS

`#include <qwt_interval_data.h>`

### Public Member Functions

**QwtIntervalData** ()\
 **QwtIntervalData** (const QwtArray\< **QwtDoubleInterval** \> &, const QwtArray\< double \> &)\
 **~QwtIntervalData** ()\
 QwtDoubleRect **boundingRect** () const \
 const **QwtDoubleInterval** & **interval** (size\_t i) const \
 void **setData** (const QwtArray\< **QwtDoubleInterval** \> &, const QwtArray\< double \> &)\
 size\_t **size** () const \
 double **value** (size\_t i) const \

## Detailed Description

Series of samples of a value and an interval.

**QwtIntervalData** is a series of samples of a value and an interval. F.e. error bars are built from samples \[x, y1-y2\], while a histogram might consist of \[x1-x2, y\] samples.

## Member Function Documentation

### QwtDoubleRect QwtIntervalData::boundingRect () const

Calculate the bounding rectangle of the samples

The x coordinates of the rectangle are built from the intervals, the y coordinates from the values.

**Returns:**

Bounding rectangle

### const QwtDoubleInterval & QwtIntervalData::interval (size\_ti) const` [inline]`

Interval of a sample

**Parameters:**

*i* Sample index

**Returns:**

Interval

**See also:**

**value()**, **size()**

### size\_t QwtIntervalData::size () const` [inline]`

**Returns:**

Number of samples

### double QwtIntervalData::value (size\_ti) const` [inline]`

Value of a sample

**Parameters:**

*i* Sample index

**Returns:**

Value

**See also:**

**interval()**, **size()**

## Author

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