|
| | QwtPlotTradingCurve (const QString &title=QString()) |
| | Constructor.
|
| |
| | QwtPlotTradingCurve (const QwtText &title) |
| | Constructor.
|
| |
| virtual | ~QwtPlotTradingCurve () |
| | Destructor .
|
| |
| virtual int | rtti () const override |
| | Get the runtime type information.
|
| |
| void | setPaintAttribute (PaintAttribute, bool on=true) |
| | Specify an attribute how to draw the curve.
|
| |
| bool | testPaintAttribute (PaintAttribute) const |
| | Test a paint attribute.
|
| |
| 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 |
| | Get the symbol style.
|
| |
| 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 |
| | Get the symbol pen.
|
| |
| void | setSymbolBrush (Direction, const QBrush &) |
| | Set the symbol brush.
|
| |
| QBrush | symbolBrush (Direction) const |
| | Get the symbol brush.
|
| |
| void | setSymbolExtent (double) |
| | Set the extent of the symbol.
|
| |
| double | symbolExtent () const |
| | Get the extent of the symbol.
|
| |
| void | setMinSymbolWidth (double) |
| | Set a minimum for the symbol width.
|
| |
| double | minSymbolWidth () const |
| | Get the minimum for the symbol width.
|
| |
| void | setMaxSymbolWidth (double) |
| | Set a maximum for the symbol width.
|
| |
| double | maxSymbolWidth () const |
| | Get the maximum for the symbol width.
|
| |
| virtual void | drawSeries (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const override |
| | Draw an interval of the curve.
|
| |
| virtual QRectF | boundingRect () const override |
| | Get the bounding rectangle of all samples.
|
| |
| virtual QwtGraphic | legendIcon (int index, const QSizeF &) const override |
| | Get a legend icon.
|
| |
| | 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 |
| | Get the orientation of the plot item.
|
| |
| virtual void | draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const override |
| | Draw the complete series.
|
| |
| virtual void | updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &) override |
| | Update the scale divisions.
|
| |
| | QwtPlotItem () |
| | Default constructor.
|
| |
| | QwtPlotItem (const QString &title) |
| | Constructor with title as QString.
|
| |
| | QwtPlotItem (const QwtText &title) |
| | Constructor with title as QwtText.
|
| |
| virtual | ~QwtPlotItem () |
| | Destructor.
|
| |
| void | attach (QwtPlot *plot) |
| | Attach the item to a plot.
|
| |
| void | detach () |
| | Detach the item from the plot.
|
| |
| QwtPlot * | plot () const |
| | Get the plot the item is attached to.
|
| |
| void | setTitle (const QString &title) |
| | Set the title using a QString.
|
| |
| void | setTitle (const QwtText &title) |
| | Set the title using a QwtText.
|
| |
| const QwtText & | title () const |
| | Get the title.
|
| |
| void | setItemAttribute (ItemAttribute, bool on=true) |
| | Set an item attribute.
|
| |
| bool | testItemAttribute (ItemAttribute) const |
| | Test an item attribute.
|
| |
| void | setItemInterest (ItemInterest, bool on=true) |
| | Set an item interest.
|
| |
| bool | testItemInterest (ItemInterest) const |
| | Test an item interest.
|
| |
| void | setRenderHint (RenderHint, bool on=true) |
| | Set a render hint.
|
| |
| bool | testRenderHint (RenderHint) const |
| | Test a render hint.
|
| |
| void | setRenderThreadCount (uint numThreads) |
| | Set the number of render threads.
|
| |
| uint | renderThreadCount () const |
| | Get the number of render threads.
|
| |
| void | setLegendIconSize (const QSize &) |
| | Set the legend icon size.
|
| |
| QSize | legendIconSize () const |
| | Get the legend icon size.
|
| |
| double | z () const |
| | Get the z-value.
|
| |
| void | setZ (double z) |
| | Set the z-value.
|
| |
| void | show () |
| | Show the item.
|
| |
| void | hide () |
| | Hide the item.
|
| |
| virtual void | setVisible (bool) |
| | Set the visibility.
|
| |
| bool | isVisible () const |
| | Check if the item is visible.
|
| |
| void | setAxes (QwtAxisId xAxis, QwtAxisId yAxis) |
| | Set both axes.
|
| |
| void | setXAxis (QwtAxisId) |
| | Set the x-axis.
|
| |
| QwtAxisId | xAxis () const |
| | Get the x-axis.
|
| |
| void | setYAxis (QwtAxisId) |
| | Set the y-axis.
|
| |
| QwtAxisId | yAxis () const |
| | Get the y-axis.
|
| |
| virtual void | itemChanged () |
| | Notify the plot that the item has changed.
|
| |
| virtual void | legendChanged () |
| | Notify the item that the legend has changed.
|
| |
| virtual void | getCanvasMarginHint (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const |
| | Get margin hints for the canvas.
|
| |
| virtual void | updateLegend (const QwtPlotItem *, const QList< QwtLegendData > &) |
| | Update the item with changes of the legend.
|
| |
| QRectF | scaleRect (const QwtScaleMap &, const QwtScaleMap &) const |
| | Calculate the scale rectangle.
|
| |
| QRectF | paintRect (const QwtScaleMap &, const QwtScaleMap &) const |
| | Calculate the paint rectangle.
|
| |
| virtual QList< QwtLegendData > | legendData () const |
| | Return legend data.
|
| |
|
void | setData (QwtSeriesData< QwtOHLCSample > *series) |
| |
|
QwtSeriesData< QwtOHLCSample > * | data () |
| |
|
const QwtSeriesData< QwtOHLCSample > * | data () const |
| |
|
QwtOHLCSample | sample (size_t index) const |
| |
| virtual size_t | dataSize () const override |
| |
| virtual QRectF | dataRect () const override |
| |
| virtual void | setRectOfInterest (const QRectF &rect) override |
| | Set a the "rectangle of interest" for the stored series.
|
| |
|
QwtSeriesData< QwtOHLCSample > * | swapData (QwtSeriesData< QwtOHLCSample > *series) |
| |
|
| 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 () override |
| | dataChanged() indicates, that the series has been changed.
|
| |
| QwtGraphic | defaultIcon (const QBrush &, const QSizeF &) const |
| | Create a default icon.
|
| |
QwtPlotTradingCurve illustrates movements in the price of a financial instrument over time.