Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_curve.h
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_curve.h
r8127 r9383 34 34 <dl><dt>a) Assign curve properties</dt> 35 35 <dd>When a curve is created, it is configured to draw black solid lines 36 with in QwtPlotCurve::Lines style and no symbols. 36 with in QwtPlotCurve::Lines style and no symbols. 37 37 You can change this by calling 38 38 setPen(), setStyle() and setSymbol().</dd> … … 53 53 \sa QwtPointSeriesData, QwtSymbol, QwtScaleMap 54 54 */ 55 class QWT_EXPORT QwtPlotCurve: 55 class QWT_EXPORT QwtPlotCurve: 56 56 public QwtPlotSeriesItem, public QwtSeriesStore<QPointF> 57 57 { … … 76 76 77 77 /*! 78 Draw vertical or horizontal sticks ( depending on the 78 Draw vertical or horizontal sticks ( depending on the 79 79 orientation() ) from a baseline which is defined by setBaseline(). 80 80 */ … … 91 91 Draw dots at the locations of the data points. Note: 92 92 This is different from a dotted line (see setPen()), and faster 93 as a curve in QwtPlotCurve::NoStyle style and a symbol 93 as a curve in QwtPlotCurve::NoStyle style and a symbol 94 94 painting a point. 95 95 */ … … 111 111 { 112 112 /*! 113 For QwtPlotCurve::Steps only. 113 For QwtPlotCurve::Steps only. 114 114 Draws a step function from the right to the left. 115 115 */ … … 142 142 { 143 143 /*! 144 QwtPlotCurve tries to find a color representing the curve 144 QwtPlotCurve tries to find a color representing the curve 145 145 and paints a rectangle with it. 146 146 */ … … 148 148 149 149 /*! 150 If the style() is not QwtPlotCurve::NoCurve a line 150 If the style() is not QwtPlotCurve::NoCurve a line 151 151 is painted with the curve pen(). 152 152 */ … … 192 192 193 193 /*! 194 Minimize memory usage that is temporarily needed for the 194 Minimize memory usage that is temporarily needed for the 195 195 translated points, before they get painted. 196 This might slow down the performance of painting 196 This might slow down the performance of painting 197 197 */ 198 198 MinimizeMemory = 0x04, … … 201 201 Render the points to a temporary image and paint the image. 202 202 This is a very special optimization for Dots style, when 203 having a huge amount of points. 203 having a huge amount of points. 204 204 With a reasonable number of points QPainter::drawPoints() 205 205 will be faster. … … 211 211 typedef QFlags<PaintAttribute> PaintAttributes; 212 212 213 explicit QwtPlotCurve( const QString &title = QString ::null);213 explicit QwtPlotCurve( const QString &title = QString() ); 214 214 explicit QwtPlotCurve( const QwtText &title ); 215 215 … … 271 271 void init(); 272 272 273 virtual void drawCurve( QPainter * p, int style,274 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 275 const QRectF &canvasRect, int from, int to ) const; 276 277 virtual void drawSymbols( QPainter * p, const QwtSymbol &,278 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 279 const QRectF &canvasRect, int from, int to ) const; 280 281 virtual void drawLines( QPainter * p,282 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 283 const QRectF &canvasRect, int from, int to ) const; 284 285 virtual void drawSticks( QPainter * p,286 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 287 const QRectF &canvasRect, int from, int to ) const; 288 289 virtual void drawDots( QPainter * p,290 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 291 const QRectF &canvasRect, int from, int to ) const; 292 293 virtual void drawSteps( QPainter * p,273 virtual void drawCurve( QPainter *, int style, 274 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 275 const QRectF &canvasRect, int from, int to ) const; 276 277 virtual void drawSymbols( QPainter *, const QwtSymbol &, 278 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 279 const QRectF &canvasRect, int from, int to ) const; 280 281 virtual void drawLines( QPainter *, 282 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 283 const QRectF &canvasRect, int from, int to ) const; 284 285 virtual void drawSticks( QPainter *, 286 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 287 const QRectF &canvasRect, int from, int to ) const; 288 289 virtual void drawDots( QPainter *, 290 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 291 const QRectF &canvasRect, int from, int to ) const; 292 293 virtual void drawSteps( QPainter *, 294 294 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 295 295 const QRectF &canvasRect, int from, int to ) const; 296 296 297 297 virtual void fillCurve( QPainter *, 298 const QwtScaleMap &, const QwtScaleMap &, 298 const QwtScaleMap &, const QwtScaleMap &, 299 299 const QRectF &canvasRect, QPolygonF & ) const; 300 300
Note:
See TracChangeset
for help on using the changeset viewer.