Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_interval_symbol.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (4 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_interval_symbol.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_interval_symbol.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 12 12 13 13 #include "qwt_global.h" 14 #include <qpen.h> 15 #include <qsize.h> 14 #include <qnamespace.h> 16 15 17 16 class QPainter; 18 class QRect; 17 class QPen; 18 class QBrush; 19 19 class QPointF; 20 class QColor; 20 21 21 22 /*! 22 \brief A drawing primitive for displaying an interval like an error bar 23 \brief A drawing primitive for displaying an interval like an error bar 23 24 24 \sa QwtPlotIntervalCurve 25 */ 25 \sa QwtPlotIntervalCurve 26 */ 26 27 class QWT_EXPORT QwtIntervalSymbol 27 28 { 28 public: 29 public: 29 30 //! Symbol style 30 31 enum Style … … 34 35 35 36 /*! 36 The symbol displays a line with caps at the beginning/end. 37 The size of the caps depends on the symbol width(). 37 The symbol displays a line with caps at the beginning/end. 38 The size of the caps depends on the symbol width(). 38 39 */ 39 40 Bar, 40 41 41 42 /*! 42 The symbol displays a plain rectangle using pen() and brush(). 43 The size of the rectangle depends on the translated interval and 44 the width(), 43 The symbol displays a plain rectangle using pen() and brush(). 44 The size of the rectangle depends on the translated interval and 45 the width(), 45 46 */ 46 47 Box, 47 48 48 49 /*! 49 Styles >= UserSymbol are reserved for derived 50 classes of QwtIntervalSymbol that overload draw() with 51 additional application specific symbol types. 50 Styles >= UserSymbol are reserved for derived 51 classes of QwtIntervalSymbol that overload draw() with 52 additional application specific symbol types. 52 53 */ 53 54 UserSymbol = 1000 54 55 }; 55 56 56 public: 57 QwtIntervalSymbol( Style = NoSymbol ); 58 QwtIntervalSymbol( const QwtIntervalSymbol & ); 57 public: 58 explicit QwtIntervalSymbol( Style = NoSymbol ); 59 QwtIntervalSymbol( const QwtIntervalSymbol& ); 60 59 61 virtual ~QwtIntervalSymbol(); 60 62 61 QwtIntervalSymbol &operator=( const QwtIntervalSymbol& );62 bool operator==( const QwtIntervalSymbol & ) const;63 bool operator!=( const QwtIntervalSymbol & ) const;63 QwtIntervalSymbol& operator=( const QwtIntervalSymbol& ); 64 bool operator==( const QwtIntervalSymbol& ) const; 65 bool operator!=( const QwtIntervalSymbol& ) const; 64 66 65 67 void setWidth( int ); 66 68 int width() const; 67 69 68 void setBrush( const QBrush & );70 void setBrush( const QBrush& ); 69 71 const QBrush& brush() const; 70 72 71 void setPen( const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );72 void setPen( const QPen & );73 void setPen( const QColor&, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine ); 74 void setPen( const QPen& ); 73 75 const QPen& pen() const; 74 76 … … 76 78 Style style() const; 77 79 78 virtual void draw( QPainter *, Qt::Orientation,80 virtual void draw( QPainter*, Qt::Orientation, 79 81 const QPointF& from, const QPointF& to ) const; 80 82 81 private: 83 private: 82 84 class PrivateData; 83 PrivateData* d_data;85 PrivateData* m_data; 84 86 }; 85 87
Note:
See TracChangeset
for help on using the changeset viewer.
