Qwt Polar User's Guide  1.1.0-rc1
 All Classes Functions Typedefs Enumerations Enumerator Pages
qwt_polar_marker.h
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2  * QwtPolar Widget Library
3  * Copyright (C) 2008 Uwe Rathmann
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the Qwt License, Version 1.0
7  *****************************************************************************/
8 
9 #ifndef QWT_POLAR_MARKER_H
10 #define QWT_POLAR_MARKER_H
11 
12 #include "qwt_polar_global.h"
13 #include "qwt_polar_item.h"
14 #include <qwt_point_polar.h>
15 #include <qstring.h>
16 
17 class QRect;
18 class QwtText;
19 class QwtSymbol;
20 
38 class QWT_POLAR_EXPORT QwtPolarMarker: public QwtPolarItem
39 {
40 public:
41  explicit QwtPolarMarker();
42  virtual ~QwtPolarMarker();
43 
44  virtual int rtti() const;
45 
46  void setPosition( const QwtPointPolar & );
47  QwtPointPolar position() const;
48 
49  void setSymbol( const QwtSymbol *s );
50  const QwtSymbol *symbol() const;
51 
52  void setLabel( const QwtText& );
53  QwtText label() const;
54 
55  void setLabelAlignment( Qt::Alignment );
56  Qt::Alignment labelAlignment() const;
57 
58  virtual void draw( QPainter *painter,
59  const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap,
60  const QPointF &pole, double radius,
61  const QRectF &canvasRect ) const;
62 
63  virtual QwtInterval boundingInterval( int scaleId ) const;
64 
65 private:
66  class PrivateData;
67  PrivateData *d_data;
68 };
69 
70 #endif