10#ifndef QWT_PLOT_DATA_ACCESS_H
11#define QWT_PLOT_DATA_ACCESS_H
13#include "qwt_global.h"
14#include "qwt_series_store.h"
122 template<
typename T >
126 template<
typename T >
140 static int removeSamplesInRange(
QwtPlotItem* item,
const QRectF& range);
143 static int removeSamplesInRange(
QwtPlotItem* item,
const QPainterPath& range);
148template<
typename T >
155 const size_t size = store->
dataSize();
156 result.reserve(
static_cast< int >(size));
157 for (
size_t i = 0; i < size; ++i)
158 result.append(store->sample(i));
163template<
typename T >
167 if (!store || from < 0)
170 const int size =
static_cast< int >(store->
dataSize());
171 if (to < 0 || to >= size)
174 for (
int i = from; i <= to; ++i)
175 result.append(store->sample(
static_cast< size_t >(i)));
Sample for box-and-whisker plot (boxplot) visualization
Definition qwt_samples.h:363
A sample of the types (x1-x2, y) or (x, y1-y2)
Definition qwt_samples.h:74
Open-High-Low-Close sample used in financial charts
Definition qwt_samples.h:210
Utility class for reading and writing sample data from QwtPlotItem instances
Definition qwt_plot_data_access.h:55
Base class for items on the plot canvas
Definition qwt_plot_item.h:85
QwtPoint3D class defines a 3D point in double coordinates
Definition qwt_point_3d.h:40
Class storing a QwtSeriesData object
Definition qwt_series_store.h:91
virtual size_t dataSize() const override
Definition qwt_series_store.h:167
A sample of the types (x1...xn, y) or (x, y1..yn)
Definition qwt_samples.h:139
Sample used in vector fields
Definition qwt_samples.h:291