qwt_round_scale_draw.h
Go to the documentation of this file.
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2  * Qwt Widget Library
3  * Copyright (C) 1997 Josef Wilgen
4  * Copyright (C) 2002 Uwe Rathmann
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the Qwt License, Version 1.0
8  *****************************************************************************/
9 
10 #ifndef QWT_ROUND_SCALE_DRAW_H
11 #define QWT_ROUND_SCALE_DRAW_H
12 
13 #include "qwt_global.h"
15 
16 #include <qpoint.h>
17 
32 {
33 public:
35  virtual ~QwtRoundScaleDraw();
36 
37  void setRadius( double radius );
38  double radius() const;
39 
40  void moveCenter( double x, double y );
41  void moveCenter( const QPointF & );
42  QPointF center() const;
43 
44  void setAngleRange( double angle1, double angle2 );
45 
46  virtual double extent( const QFont & ) const QWT_OVERRIDE;
47 
48 protected:
49  virtual void drawTick( QPainter *,
50  double value, double len ) const QWT_OVERRIDE;
51 
52  virtual void drawBackbone(
53  QPainter * ) const QWT_OVERRIDE;
54 
55  virtual void drawLabel(
56  QPainter *, double value ) const QWT_OVERRIDE;
57 
58 private:
59  class PrivateData;
61 };
62 
64 inline void QwtRoundScaleDraw::moveCenter( double x, double y )
65 {
66  moveCenter( QPointF( x, y ) );
67 }
68 
69 #endif
A abstract base class for drawing scales.
virtual void drawBackbone(QPainter *painter) const =0
enum MQTTPropertyCodes value
#define QWT_EXPORT
Definition: qwt_global.h:38
virtual void drawTick(QPainter *painter, double value, double len) const =0
virtual void drawLabel(QPainter *painter, double value) const =0
void moveCenter(double x, double y)
Move the center of the scale draw, leaving the radius unchanged.
A class for drawing round scales.
virtual double extent(const QFont &font) const =0
#define QWT_OVERRIDE
Definition: qwt_global.h:53
int len
Definition: utf-8.c:46


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:48:10