qwt_polar_layout.h
Go to the documentation of this file.
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_LAYOUT_H
10 #define QWT_POLAR_LAYOUT_H
11 
12 #include "qwt_global.h"
13 #include "qwt_polar_plot.h"
14 
24 {
25 public:
26 
28  enum Option
29  {
31  IgnoreScrollbars = 0x01,
32 
34  IgnoreFrames = 0x02,
35 
37  IgnoreTitle = 0x04,
38 
40  IgnoreLegend = 0x08
41  };
42 
44  typedef QFlags<Option> Options;
45 
46  explicit QwtPolarLayout();
47  virtual ~QwtPolarLayout();
48 
49  void setLegendPosition( QwtPolarPlot::LegendPosition pos, double ratio );
50  void setLegendPosition( QwtPolarPlot::LegendPosition pos );
51  QwtPolarPlot::LegendPosition legendPosition() const;
52 
53  void setLegendRatio( double ratio );
54  double legendRatio() const;
55 
56  virtual void activate( const QwtPolarPlot *,
57  const QRectF &rect, Options options = Options() );
58 
59  virtual void invalidate();
60 
61  const QRectF &titleRect() const;
62  const QRectF &legendRect() const;
63  const QRectF &canvasRect() const;
64 
65  class LayoutData;
66 
67 protected:
68  QRectF layoutLegend( Options options, QRectF & ) const;
69 
70 private:
71  class PrivateData;
73 };
74 
75 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPolarLayout::Options )
76 
77 #endif
A plotting widget, displaying a polar coordinate system.
Option
Options to configure the plot layout engine.
#define QWT_EXPORT
Definition: qwt_global.h:38
QFlags< Option > Options
Options to configure the plot layout engine.
Layout class for QwtPolarPlot.
PrivateData * d_data
struct Options options


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