10 #ifndef QWT_PLOT_TRADING_CURVE_H 11 #define QWT_PLOT_TRADING_CURVE_H 109 virtual int rtti()
const;
114 void setSamples(
const QVector<QwtOHLCSample> & );
120 void setSymbolPen(
const QColor &,
121 qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
122 void setSymbolPen(
const QPen & );
123 QPen symbolPen()
const;
125 void setSymbolBrush(
Direction,
const QBrush & );
128 void setSymbolExtent(
double width );
129 double symbolExtent()
const;
131 void setMinSymbolWidth(
double );
132 double minSymbolWidth()
const;
134 void setMaxSymbolWidth(
double );
135 double maxSymbolWidth()
const;
139 const QRectF &canvasRect,
int from,
int to )
const;
149 virtual void drawSymbols( QPainter *,
151 const QRectF &canvasRect,
int from,
int to )
const;
153 virtual void drawUserSymbol( QPainter *,
155 Qt::Orientation,
bool inverted,
double width )
const;
158 Qt::Orientation,
bool inverted,
double width )
const;
161 Qt::Orientation,
double width )
const;
163 virtual double scaledSymbolWidth(
165 const QRectF &canvasRect )
const;
Open-High-Low-Close sample used in financial charts.
Direction
Direction of a price movement.
Class storing a QwtSeriesData object.
The closing price is higher than the opening price.
virtual void drawSeries(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const =0
SymbolStyle
Symbol styles.
A class representing a text.
A paint device for scalable graphics.
virtual QwtGraphic legendIcon(int index, const QSizeF &) const
virtual QRectF boundingRect() const
QFlags< PaintAttribute > PaintAttributes
Paint attributes.
Base class for plot items representing a series of samples.
QwtPlotTradingCurve illustrates movements in the price of a financial instrument over time...