10 #ifndef QWT_PLOT_TRADING_CURVE_H 11 #define QWT_PLOT_TRADING_CURVE_H 111 bool testPaintAttribute( PaintAttribute ) const;
119 void setSymbolPen( const QColor &,
120 qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
121 void setSymbolPen( const QPen & );
122 QPen symbolPen() const;
124 void setSymbolBrush(
Direction, const QBrush & );
125 QBrush symbolBrush( Direction ) const;
127 void setSymbolExtent(
double );
128 double symbolExtent() const;
130 void setMinSymbolWidth(
double );
131 double minSymbolWidth() const;
133 void setMaxSymbolWidth(
double );
134 double maxSymbolWidth() const;
136 virtual
void drawSeries( QPainter *,
138 const QRectF &canvasRect,
int from,
int to ) const
QWT_OVERRIDE;
140 virtual QRectF boundingRect() const QWT_OVERRIDE;
142 virtual
QwtGraphic legendIcon(
int index, const QSizeF & ) const QWT_OVERRIDE;
148 virtual
void drawSymbols( QPainter *,
150 const QRectF &canvasRect,
int from,
int to ) const;
152 virtual
void drawUserSymbol( QPainter *,
154 Qt::Orientation,
bool inverted,
double symbolWidth ) const;
156 void drawBar( QPainter *, const QwtOHLCSample &,
157 Qt::Orientation,
bool inverted,
double width ) const;
159 void drawCandleStick( QPainter *, const QwtOHLCSample &,
160 Qt::Orientation,
double width ) const;
162 virtual
double scaledSymbolWidth(
164 const QRectF &canvasRect ) const;
Open-High-Low-Close sample used in financial charts.
Abstract interface for iterating over samples.
Direction
Direction of a price movement.
Class storing a QwtSeriesData object.
The closing price is higher than the opening price.
SymbolStyle
Symbol styles.
A class representing a text.
A paint device for scalable graphics.
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...