QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
QwtTradingChartData类 参考

Interface for iterating over an array of OHLC samples 更多...

#include <qwt_series_data.h>

类 QwtTradingChartData 继承关系图:
QwtArraySeriesData< QwtOHLCSample > QwtSeriesData< T >

Public 成员函数

 QwtTradingChartData (const QVector< QwtOHLCSample > &=QVector< QwtOHLCSample >())
 Constructor
 
virtual QRectF boundingRect () const override
 Calculate the bounding rectangle
 
- Public 成员函数 继承自 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< QwtOHLCSamplesamples () const
 
virtual size_t size () const override
 
virtual QwtOHLCSample sample (size_t index) const override
 
- Public 成员函数 继承自 QwtSeriesData< T >
 QwtSeriesData ()
 Constructor
 
virtual ~QwtSeriesData ()
 Destructor
 
virtual void setRectOfInterest (const QRectF &rect)
 Set a the "rect of interest"
 

额外继承的成员函数

- Protected 属性 继承自 QwtArraySeriesData< QwtOHLCSample >
QVector< QwtOHLCSamplem_samples
 Vector of samples
 
- Protected 属性 继承自 QwtSeriesData< T >
QRectF cachedBoundingRect
 Can be used to cache a calculated bounding rectangle
 

详细描述

Interface for iterating over an array of OHLC samples

QwtTradingChartData provides access to QwtOHLCSample samples stored in a QVector. Used for candlestick or OHLC chart financial data.

构造及析构函数说明

◆ QwtTradingChartData()

QwtTradingChartData::QwtTradingChartData ( const QVector< QwtOHLCSample > &  samples = QVectorQwtOHLCSample >())

Constructor

参数
samplesSamples

成员函数说明

◆ boundingRect()

QRectF QwtTradingChartData::boundingRect ( ) const
overridevirtual

Calculate the bounding rectangle

The bounding rectangle is calculated once by iterating over all points and is stored for all following requests.

返回
Bounding rectangle

实现了 QwtSeriesData< T >.


该类的文档由以下文件生成: