|
| | QwtPlotTradingCurve (const QString &title=QString()) |
| | Constructor.
|
| |
| | QwtPlotTradingCurve (const QwtText &title) |
| | Constructor.
|
| |
|
virtual | ~QwtPlotTradingCurve () |
| | Destructor.
|
| |
| virtual int | rtti () const QWT_OVERRIDE |
| |
| void | setPaintAttribute (PaintAttribute, bool on=true) |
| | Specify an attribute how to draw the curve.
|
| |
| bool | testPaintAttribute (PaintAttribute) const |
| |
| void | setSamples (const QVector< QwtOHLCSample > &) |
| | Initialize data with an array of samples.
|
| |
| void | setSamples (QwtSeriesData< QwtOHLCSample > *) |
| | Assign a series of samples.
|
| |
| void | setSymbolStyle (SymbolStyle style) |
| | Set the symbol style.
|
| |
| SymbolStyle | symbolStyle () const |
| |
| void | setSymbolPen (const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine) |
| | Build and assign the symbol pen.
|
| |
| void | setSymbolPen (const QPen &) |
| | Set the symbol pen.
|
| |
| QPen | symbolPen () const |
| |
| void | setSymbolBrush (Direction, const QBrush &) |
| | Set the symbol brush.
|
| |
| QBrush | symbolBrush (Direction) const |
| |
| void | setSymbolExtent (double) |
| | Set the extent of the symbol.
|
| |
| double | symbolExtent () const |
| |
| void | setMinSymbolWidth (double) |
| | Set a minimum for the symbol width.
|
| |
| double | minSymbolWidth () const |
| |
| void | setMaxSymbolWidth (double) |
| | Set a maximum for the symbol width.
|
| |
| double | maxSymbolWidth () const |
| |
| virtual void | drawSeries (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const QWT_OVERRIDE |
| | Draw an interval of the curve.
|
| |
| virtual QRectF | boundingRect () const QWT_OVERRIDE |
| |
| virtual QwtGraphic | legendIcon (int index, const QSizeF &) const QWT_OVERRIDE |
| |
| | QwtPlotSeriesItem (const QString &title=QString()) |
| | Constructor.
|
| |
| | QwtPlotSeriesItem (const QwtText &title) |
| | Constructor.
|
| |
|
virtual | ~QwtPlotSeriesItem () |
| | Destructor.
|
| |
| void | setOrientation (Qt::Orientation) |
| | Set the orientation of the item.
|
| |
| Qt::Orientation | orientation () const |
| |
| virtual void | draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const QWT_OVERRIDE |
| | Draw the complete series.
|
| |
| virtual void | updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &) QWT_OVERRIDE |
| | Update the item to changes of the axes scale division.
|
| |
|
| QwtPlotItem () |
| | Constructor.
|
| |
| | QwtPlotItem (const QString &title) |
| | Constructor.
|
| |
| | QwtPlotItem (const QwtText &title) |
| | Constructor.
|
| |
|
virtual | ~QwtPlotItem () |
| | Destroy the QwtPlotItem.
|
| |
| void | attach (QwtPlot *plot) |
| | Attach the item to a plot.
|
| |
| void | detach () |
| | This method detaches a QwtPlotItem from any QwtPlot it has been associated with.
|
| |
|
QwtPlot * | plot () const |
| | Return attached plot.
|
| |
| void | setTitle (const QString &title) |
| | Set a new title.
|
| |
| void | setTitle (const QwtText &title) |
| | Set a new title.
|
| |
| const QwtText & | title () const |
| |
| void | setItemAttribute (ItemAttribute, bool on=true) |
| | Toggle an item attribute.
|
| |
| bool | testItemAttribute (ItemAttribute) const |
| | Test an item attribute.
|
| |
| void | setItemInterest (ItemInterest, bool on=true) |
| | Toggle an item interest.
|
| |
| bool | testItemInterest (ItemInterest) const |
| | Test an item interest.
|
| |
| void | setRenderHint (RenderHint, bool on=true) |
| | Toggle an render hint.
|
| |
| bool | testRenderHint (RenderHint) const |
| | Test a render hint.
|
| |
| void | setRenderThreadCount (uint numThreads) |
| | On multi core systems rendering of certain plot item ( f.e QwtPlotRasterItem ) can be done in parallel in several threads.
|
| |
| uint | renderThreadCount () const |
| |
| void | setLegendIconSize (const QSize &) |
| | Set the size of the legend icon.
|
| |
| QSize | legendIconSize () const |
| |
| double | z () const |
| | Plot items are painted in increasing z-order.
|
| |
| void | setZ (double z) |
| | Set the z value.
|
| |
|
void | show () |
| | Show the item.
|
| |
|
void | hide () |
| | Hide the item.
|
| |
| virtual void | setVisible (bool) |
| | Show/Hide the item.
|
| |
| bool | isVisible () const |
| |
| void | setAxes (QwtAxisId xAxis, QwtAxisId yAxis) |
| | Set X and Y axis.
|
| |
| void | setXAxis (QwtAxisId) |
| | Set the X axis.
|
| |
|
QwtAxisId | xAxis () const |
| | Return xAxis.
|
| |
| void | setYAxis (QwtAxisId) |
| | Set the Y axis.
|
| |
|
QwtAxisId | yAxis () const |
| | Return yAxis.
|
| |
| virtual void | itemChanged () |
| | Update the legend and call QwtPlot::autoRefresh() for the parent plot.
|
| |
| virtual void | legendChanged () |
| | Update the legend of the parent plot.
|
| |
| virtual void | getCanvasMarginHint (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const |
| | Calculate a hint for the canvas margin.
|
| |
| virtual void | updateLegend (const QwtPlotItem *, const QList< QwtLegendData > &) |
| | Update the item to changes of the legend info.
|
| |
| QRectF | scaleRect (const QwtScaleMap &, const QwtScaleMap &) const |
| | Calculate the bounding scale rectangle of 2 maps.
|
| |
| QRectF | paintRect (const QwtScaleMap &, const QwtScaleMap &) const |
| | Calculate the bounding paint rectangle of 2 maps.
|
| |
| virtual QList< QwtLegendData > | legendData () const |
| | Return all information, that is needed to represent the item on the legend.
|
| |
|
virtual | ~QwtAbstractSeriesStore () |
| | Destructor.
|
| |
|
| QwtSeriesStore () |
| | Constructor The store contains no series.
|
| |
|
| ~QwtSeriesStore () |
| | Destructor.
|
| |
| void | setData (QwtSeriesData< QwtOHLCSample > *series) |
| | Assign a series of samples.
|
| |
| QwtSeriesData< QwtOHLCSample > * | data () |
| |
| const QwtSeriesData< QwtOHLCSample > * | data () const |
| |
| QwtOHLCSample | sample (size_t index) const |
| |
| virtual size_t | dataSize () const QWT_OVERRIDE |
| |
| virtual QRectF | dataRect () const QWT_OVERRIDE |
| |
| virtual void | setRectOfInterest (const QRectF &rect) QWT_OVERRIDE |
| | Set a the "rect of interest" for the series.
|
| |
| QwtSeriesData< QwtOHLCSample > * | swapData (QwtSeriesData< QwtOHLCSample > *series) |
| | Replace a series without deleting the previous one.
|
| |
|
|
void | init () |
| | Initialize internal members.
|
| |
| virtual void | drawSymbols (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
| | Draw symbols.
|
| |
| virtual void | drawUserSymbol (QPainter *, SymbolStyle, const QwtOHLCSample &, Qt::Orientation, bool inverted, double symbolWidth) const |
| | Draw a symbol for a symbol style >= UserSymbol.
|
| |
| void | drawBar (QPainter *, const QwtOHLCSample &, Qt::Orientation, bool inverted, double width) const |
| | Draw a bar.
|
| |
| void | drawCandleStick (QPainter *, const QwtOHLCSample &, Qt::Orientation, double width) const |
| | Draw a candle stick.
|
| |
| virtual double | scaledSymbolWidth (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const |
| | Calculate the symbol width in paint coordinates.
|
| |
| virtual void | dataChanged () QWT_OVERRIDE |
| | dataChanged() indicates, that the series has been changed.
|
| |
| QwtGraphic | defaultIcon (const QBrush &, const QSizeF &) const |
| | Return a default icon from a brush.
|
| |
QwtPlotTradingCurve illustrates movements in the price of a financial instrument over time.
QwtPlotTradingCurve supports candlestick or bar ( OHLC ) charts that are used in the domain of technical analysis.
While the length ( height or width depending on orientation() ) of each symbol depends on the corresponding OHLC sample the size of the other dimension can be controlled using:
The extent is a size in scale coordinates, so that the symbol width is increasing when the plot is zoomed in. Minimum/Maximum width is in widget coordinates independent from the zoom level. When setting the minimum and maximum to the same value, the width of the symbol is fixed.