Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_round_scale_draw.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (4 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_round_scale_draw.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_round_scale_draw.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 13 13 #include "qwt_global.h" 14 14 #include "qwt_abstract_scale_draw.h" 15 15 16 #include <qpoint.h> 16 17 17 18 /*! 18 \brief A class for drawing round scales 19 \brief A class for drawing round scales 19 20 20 QwtRoundScaleDraw can be used to draw round scales. 21 The circle segment can be adjusted by setAngleRange(). 22 The geometry of the scale can be specified with 23 moveCenter() and setRadius(). 21 QwtRoundScaleDraw can be used to draw round scales. 22 The circle segment can be adjusted by setAngleRange(). 23 The geometry of the scale can be specified with 24 moveCenter() and setRadius(). 24 25 25 After a scale division has been specified as a QwtScaleDiv object 26 using QwtAbstractScaleDraw::setScaleDiv(const QwtScaleDiv &s), 27 the scale can be drawn with the QwtAbstractScaleDraw::draw() member. 28 */ 26 After a scale division has been specified as a QwtScaleDiv object 27 using QwtAbstractScaleDraw::setScaleDiv(const QwtScaleDiv &s), 28 the scale can be drawn with the QwtAbstractScaleDraw::draw() member. 29 */ 29 30 30 class QWT_EXPORT QwtRoundScaleDraw: public QwtAbstractScaleDraw 31 class QWT_EXPORT QwtRoundScaleDraw : public QwtAbstractScaleDraw 31 32 { 32 public: 33 public: 33 34 QwtRoundScaleDraw(); 34 35 virtual ~QwtRoundScaleDraw(); … … 38 39 39 40 void moveCenter( double x, double y ); 40 void moveCenter( const QPointF & );41 void moveCenter( const QPointF& ); 41 42 QPointF center() const; 42 43 43 44 void setAngleRange( double angle1, double angle2 ); 44 45 45 virtual double extent( const QFont & ) const;46 virtual double extent( const QFont& ) const QWT_OVERRIDE; 46 47 47 protected: 48 virtual void drawTick( QPainter *, double value, double len ) const; 49 virtual void drawBackbone( QPainter * ) const; 50 virtual void drawLabel( QPainter *, double val ) const; 48 protected: 49 virtual void drawTick( QPainter*, 50 double value, double len ) const QWT_OVERRIDE; 51 51 52 private: 53 QwtRoundScaleDraw( const QwtRoundScaleDraw & ); 54 QwtRoundScaleDraw &operator=( const QwtRoundScaleDraw &other ); 52 virtual void drawBackbone( 53 QPainter* ) const QWT_OVERRIDE; 55 54 55 virtual void drawLabel( 56 QPainter*, double value ) const QWT_OVERRIDE; 57 58 private: 56 59 class PrivateData; 57 PrivateData *d_data;60 PrivateData* m_data; 58 61 }; 59 62
Note:
See TracChangeset
for help on using the changeset viewer.
