Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_tradingcurve.h
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_tradingcurve.h
r8127 r9383 22 22 that are used in the domain of technical analysis. 23 23 24 While the length ( height or width depending on orientation() ) 24 While the length ( height or width depending on orientation() ) 25 25 of each symbol depends on the corresponding OHLC sample the size 26 26 of the other dimension can be controlled using: … … 32 32 The extent is a size in scale coordinates, so that the symbol width 33 33 is increasing when the plot is zoomed in. Minimum/Maximum width 34 is in widget coordinates independent from the zoom level. 35 When setting the minimum and maximum to the same value, the width of 36 the symbol is fixed. 34 is in widget coordinates independent from the zoom level. 35 When setting the minimum and maximum to the same value, the width of 36 the symbol is fixed. 37 37 */ 38 class QWT_EXPORT QwtPlotTradingCurve: 39 public QwtPlotSeriesItem, QwtSeriesStore<QwtOHLCSample>38 class QWT_EXPORT QwtPlotTradingCurve: 39 public QwtPlotSeriesItem, public QwtSeriesStore<QwtOHLCSample> 40 40 { 41 41 public: … … 102 102 typedef QFlags<PaintAttribute> PaintAttributes; 103 103 104 explicit QwtPlotTradingCurve( const QString &title = QString ::null);104 explicit QwtPlotTradingCurve( const QString &title = QString() ); 105 105 explicit QwtPlotTradingCurve( const QwtText &title ); 106 106 … … 118 118 SymbolStyle symbolStyle() const; 119 119 120 void setSymbolPen( const QColor &, 120 void setSymbolPen( const QColor &, 121 121 qreal width = 0.0, Qt::PenStyle = Qt::SolidLine ); 122 122 void setSymbolPen( const QPen & ); … … 126 126 QBrush symbolBrush( Direction ) const; 127 127 128 void setSymbolExtent( double width);128 void setSymbolExtent( double ); 129 129 double symbolExtent() const; 130 130 … … 151 151 const QRectF &canvasRect, int from, int to ) const; 152 152 153 virtual void drawUserSymbol( QPainter *, 153 virtual void drawUserSymbol( QPainter *, 154 154 SymbolStyle, const QwtOHLCSample &, 155 Qt::Orientation, bool inverted, double symbolWidth ) const; 156 157 void drawBar( QPainter *painter, const QwtOHLCSample &, 155 158 Qt::Orientation, bool inverted, double width ) const; 156 159 157 void drawBar( QPainter *painter, const QwtOHLCSample &, 158 Qt::Orientation, bool inverted, double width ) const; 159 160 void drawCandleStick( QPainter *, const QwtOHLCSample &, 160 void drawCandleStick( QPainter *, const QwtOHLCSample &, 161 161 Qt::Orientation, double width ) const; 162 162
Note:
See TracChangeset
for help on using the changeset viewer.