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 #include <qpoint.h>
16 
31 {
32 public:
34  virtual ~QwtRoundScaleDraw();
35 
36  void setRadius( double radius );
37  double radius() const;
38 
39  void moveCenter( double x, double y );
40  void moveCenter( const QPointF & );
41  QPointF center() const;
42 
43  void setAngleRange( double angle1, double angle2 );
44 
45  virtual double extent( const QFont & ) const;
46 
47 protected:
48  virtual void drawTick( QPainter *, double val, double len ) const;
49  virtual void drawBackbone( QPainter * ) const;
50  virtual void drawLabel( QPainter *, double val ) const;
51 
52 private:
53  class PrivateData;
55 };
56 
58 inline void QwtRoundScaleDraw::moveCenter( double x, double y )
59 {
60  moveCenter( QPointF( x, y ) );
61 }
62 
63 #endif
A abstract base class for drawing scales.
virtual void drawBackbone(QPainter *painter) const =0
#define QWT_EXPORT
Definition: qwt_global.h:38
int len
virtual void drawTick(QPainter *painter, double value, double len) const =0
virtual void drawLabel(QPainter *painter, double value) const =0
TFSIMD_FORCE_INLINE const tfScalar & y() const
void moveCenter(double x, double y)
Move the center of the scale draw, leaving the radius unchanged.
TFSIMD_FORCE_INLINE const tfScalar & x() const
A class for drawing round scales.
virtual double extent(const QFont &font) const =0


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17