qwt_polar_layout.h
Go to the documentation of this file.
1 /******************************************************************************
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 
43  Q_DECLARE_FLAGS( Options, Option )
44 
45  explicit QwtPolarLayout();
46  virtual ~QwtPolarLayout();
47 
48  void setLegendPosition( QwtPolarPlot::LegendPosition pos, double ratio );
49  void setLegendPosition( QwtPolarPlot::LegendPosition pos );
50  QwtPolarPlot::LegendPosition legendPosition() const;
51 
52  void setLegendRatio( double ratio );
53  double legendRatio() const;
54 
55  virtual void activate( const QwtPolarPlot*,
56  const QRectF& rect, Options options = Options() );
57 
58  virtual void invalidate();
59 
60  const QRectF& titleRect() const;
61  const QRectF& legendRect() const;
62  const QRectF& canvasRect() const;
63 
64  class LayoutData;
65 
66  protected:
67  QRectF layoutLegend( Options options, QRectF& ) const;
68 
69  private:
70  class PrivateData;
71  PrivateData* m_data;
72 };
73 
74 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPolarLayout::Options )
75 
76 #endif
QwtPolarPlot
A plotting widget, displaying a polar coordinate system.
Definition: qwt_polar_plot.h:46
qwt_global.h
QwtPolarLayout::LayoutData
Definition: qwt_polar_layout.cpp:16
QwtPolarLayout::PrivateData
Definition: qwt_polar_layout.cpp:88
QwtPolarLayout
Layout class for QwtPolarPlot.
Definition: qwt_polar_layout.h:23
QwtPolarLayout::Option
Option
Options to configure the plot layout engine.
Definition: qwt_polar_layout.h:34
QWT_EXPORT
#define QWT_EXPORT
Definition: qwt_global.h:38
qwt_polar_plot.h
QwtPolarPlot::LegendPosition
LegendPosition
Definition: qwt_polar_plot.h:59


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46