qwt_round_scale_draw.h
Go to the documentation of this file.
1 /******************************************************************************
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
QwtRoundScaleDraw
A class for drawing round scales.
Definition: qwt_round_scale_draw.h:31
QwtAbstractScaleDraw::drawTick
virtual void drawTick(QPainter *painter, double value, double len) const =0
qwt_global.h
mqtt_test_proto.x
x
Definition: mqtt_test_proto.py:34
QwtRoundScaleDraw::moveCenter
void moveCenter(double x, double y)
Move the center of the scale draw, leaving the radius unchanged.
Definition: qwt_round_scale_draw.h:64
mqtt_test_proto.y
y
Definition: mqtt_test_proto.py:35
QwtAbstractScaleDraw::extent
virtual double extent(const QFont &font) const =0
QwtAbstractScaleDraw::drawBackbone
virtual void drawBackbone(QPainter *painter) const =0
QwtAbstractScaleDraw::m_data
PrivateData * m_data
Definition: qwt_abstract_scale_draw.h:134
qwt_abstract_scale_draw.h
QwtAbstractScaleDraw
A abstract base class for drawing scales.
Definition: qwt_abstract_scale_draw.h:31
QwtRoundScaleDraw::PrivateData
Definition: qwt_round_scale_draw.cpp:19
QwtAbstractScaleDraw::drawLabel
virtual void drawLabel(QPainter *painter, double value) const =0
QWT_OVERRIDE
#define QWT_OVERRIDE
Definition: qwt_global.h:53
QWT_EXPORT
#define QWT_EXPORT
Definition: qwt_global.h:38


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:24