|
QWT 7.0.1
|
Interface for iterating over an array of OHLC samples. More...
#include <qwt_series_data.h>
Public Member Functions | |
| QwtTradingChartData (const QVector< QwtOHLCSample > &=QVector< QwtOHLCSample >()) | |
| Constructor. | |
| virtual QRectF | boundingRect () const QWT_OVERRIDE |
| Calculate the bounding rectangle. | |
Public Member Functions inherited from QwtArraySeriesData< QwtOHLCSample > | |
| QwtArraySeriesData () | |
| Constructor. | |
| QwtArraySeriesData (const QVector< QwtOHLCSample > &samples) | |
| Constructor. | |
| QwtArraySeriesData (QVector< QwtOHLCSample > &&samples) | |
| void | setSamples (const QVector< QwtOHLCSample > &samples) |
| Assign an array of samples. | |
| void | setSamples (QVector< QwtOHLCSample > &&samples) |
| const QVector< QwtOHLCSample > | samples () const |
| virtual size_t | size () const QWT_OVERRIDE |
| virtual QwtOHLCSample | sample (size_t index) const QWT_OVERRIDE |
Public Member Functions inherited from QwtSeriesData< T > | |
| QwtSeriesData () | |
| Constructor. | |
| virtual | ~QwtSeriesData () |
| Destructor. | |
| virtual void | setRectOfInterest (const QRectF &rect) |
| Set a the "rect of interest". | |
Additional Inherited Members | |
Protected Attributes inherited from QwtArraySeriesData< QwtOHLCSample > | |
| QVector< QwtOHLCSample > | m_samples |
| Vector of samples. | |
Protected Attributes inherited from QwtSeriesData< T > | |
| QRectF | cachedBoundingRect |
| Can be used to cache a calculated bounding rectangle. | |
Interface for iterating over an array of OHLC samples.
| QwtTradingChartData::QwtTradingChartData | ( | const QVector< QwtOHLCSample > & | samples = QVector< QwtOHLCSample >() | ) |
Constructor.
| samples | Samples |
|
virtual |
Calculate the bounding rectangle.
The bounding rectangle is calculated once by iterating over all points and is stored for all following requests.
Implements QwtSeriesData< T >.