#include "qwt_global.h"
#include "qwt_samples.h"
#include "qwt_point_3d.h"
#include <qvector.h>
#include <qrect.h>
Go to the source code of this file.
Classes | |
class | QwtArraySeriesData< T > |
Template class for data, that is organized as QVector. More... | |
class | QwtSeriesData< T > |
Abstract interface for iterating over samples. More... | |
Typedefs | |
typedef QwtArraySeriesData< QwtIntervalSample > | QwtIntervalSeriesData |
Interface for iterating over an array of intervals. More... | |
typedef QwtArraySeriesData< QwtPoint3D > | QwtPoint3DSeriesData |
Interface for iterating over an array of 3D points. More... | |
typedef QwtArraySeriesData< QPointF > | QwtPointSeriesData |
Interface for iterating over an array of points. More... | |
typedef QwtArraySeriesData< QwtSetSample > | QwtSetSeriesData |
Interface for iterating over an array of samples. More... | |
typedef QwtArraySeriesData< QwtOHLCSample > | QwtTradingChartData |
Interface for iterating over an array of OHLC samples. More... | |
typedef QwtArraySeriesData< QwtVectorFieldSample > | QwtVectorFieldData |
Interface for iterating over an array of vector field samples. More... | |
Functions | |
QWT_EXPORT QRectF | qwtBoundingRect (const QwtSeriesData< QPointF > &, int from=0, int to=-1) |
Calculate the bounding rectangle of a series subset. More... | |
QWT_EXPORT QRectF | qwtBoundingRect (const QwtSeriesData< QwtIntervalSample > &, int from=0, int to=-1) |
Calculate the bounding rectangle of a series subset. More... | |
QWT_EXPORT QRectF | qwtBoundingRect (const QwtSeriesData< QwtOHLCSample > &, int from=0, int to=-1) |
Calculate the bounding rectangle of a series subset. More... | |
QWT_EXPORT QRectF | qwtBoundingRect (const QwtSeriesData< QwtPoint3D > &, int from=0, int to=-1) |
Calculate the bounding rectangle of a series subset. More... | |
QWT_EXPORT QRectF | qwtBoundingRect (const QwtSeriesData< QwtPointPolar > &, int from=0, int to=-1) |
Calculate the bounding rectangle of a series subset. More... | |
QWT_EXPORT QRectF | qwtBoundingRect (const QwtSeriesData< QwtSetSample > &, int from=0, int to=-1) |
Calculate the bounding rectangle of a series subset. More... | |
QWT_EXPORT QRectF | qwtBoundingRect (const QwtSeriesData< QwtVectorFieldSample > &, int from=0, int to=-1) |
Calculate the bounding rectangle of a series subset. More... | |
template<typename T , typename LessThan > | |
int | qwtUpperSampleIndex (const QwtSeriesData< T > &series, double value, LessThan lessThan) |
Interface for iterating over an array of intervals.
Definition at line 220 of file qwt_series_data.h.
typedef QwtArraySeriesData< QwtPoint3D > QwtPoint3DSeriesData |
Interface for iterating over an array of 3D points.
Definition at line 217 of file qwt_series_data.h.
typedef QwtArraySeriesData< QPointF > QwtPointSeriesData |
Interface for iterating over an array of points.
Definition at line 214 of file qwt_series_data.h.
typedef QwtArraySeriesData< QwtSetSample > QwtSetSeriesData |
Interface for iterating over an array of samples.
Definition at line 223 of file qwt_series_data.h.
typedef QwtArraySeriesData< QwtOHLCSample > QwtTradingChartData |
Interface for iterating over an array of OHLC samples.
Definition at line 229 of file qwt_series_data.h.
Interface for iterating over an array of vector field samples.
Definition at line 226 of file qwt_series_data.h.
QWT_EXPORT QRectF qwtBoundingRect | ( | const QwtSeriesData< QPointF > & | series, |
int | from, | ||
int | to | ||
) |
Calculate the bounding rectangle of a series subset.
Slow implementation, that iterates over the series.
series | Series |
from | Index of the first sample, <= 0 means from the beginning |
to | Index of the last sample, < 0 means to the end |
Definition at line 136 of file qwt_series_data.cpp.
QWT_EXPORT QRectF qwtBoundingRect | ( | const QwtSeriesData< QwtIntervalSample > & | series, |
int | from, | ||
int | to | ||
) |
Calculate the bounding rectangle of a series subset.
Slow implementation, that iterates over the series.
series | Series |
from | Index of the first sample, <= 0 means from the beginning |
to | Index of the last sample, < 0 means to the end |
Definition at line 189 of file qwt_series_data.cpp.
QWT_EXPORT QRectF qwtBoundingRect | ( | const QwtSeriesData< QwtOHLCSample > & | series, |
int | from, | ||
int | to | ||
) |
Calculate the bounding rectangle of a series subset.
Slow implementation, that iterates over the series.
series | Series |
from | Index of the first sample, <= 0 means from the beginning |
to | Index of the last sample, < 0 means to the end |
Definition at line 206 of file qwt_series_data.cpp.
QWT_EXPORT QRectF qwtBoundingRect | ( | const QwtSeriesData< QwtPoint3D > & | series, |
int | from, | ||
int | to | ||
) |
Calculate the bounding rectangle of a series subset.
Slow implementation, that iterates over the series.
series | Series |
from | Index of the first sample, <= 0 means from the beginning |
to | Index of the last sample, < 0 means to the end |
Definition at line 152 of file qwt_series_data.cpp.
QWT_EXPORT QRectF qwtBoundingRect | ( | const QwtSeriesData< QwtPointPolar > & | series, |
int | from, | ||
int | to | ||
) |
Calculate the bounding rectangle of a series subset.
The horizontal coordinates represent the azimuth, the vertical coordinates the radius.
Slow implementation, that iterates over the series.
series | Series |
from | Index of the first sample, <= 0 means from the beginning |
to | Index of the last sample, < 0 means to the end |
Definition at line 172 of file qwt_series_data.cpp.
QWT_EXPORT QRectF qwtBoundingRect | ( | const QwtSeriesData< QwtSetSample > & | series, |
int | from, | ||
int | to | ||
) |
Calculate the bounding rectangle of a series subset.
Slow implementation, that iterates over the series.
series | Series |
from | Index of the first sample, <= 0 means from the beginning |
to | Index of the last sample, < 0 means to the end |
Definition at line 223 of file qwt_series_data.cpp.
QWT_EXPORT QRectF qwtBoundingRect | ( | const QwtSeriesData< QwtVectorFieldSample > & | series, |
int | from, | ||
int | to | ||
) |
Calculate the bounding rectangle of a series subset.
Slow implementation, that iterates over the series.
series | Series |
from | Index of the first sample, <= 0 means from the beginning |
to | Index of the last sample, < 0 means to the end |
Definition at line 240 of file qwt_series_data.cpp.
|
inline |
Binary search for a sorted series of samples
qwtUpperSampleIndex returns the index of sample that is the upper bound of value. Is the the value smaller than the smallest value the return value will be 0. Is the value greater or equal than the largest value the return value will be -1.
series | Series of samples |
value | Value |
lessThan | Compare operation |
Definition at line 308 of file qwt_series_data.h.