qwt_plot_abstract_barchart.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_PLOT_ABSTRACT_BAR_CHART_H
11 #define QWT_PLOT_ABSTRACT_BAR_CHART_H
12 
13 #include "qwt_global.h"
14 #include "qwt_plot_seriesitem.h"
15 #include "qwt_series_data.h"
16 
26 {
27 public:
34  {
43 
48 
56 
60  FixedSampleSize
61  };
62 
63  explicit QwtPlotAbstractBarChart( const QwtText &title );
64  virtual ~QwtPlotAbstractBarChart();
65 
66  void setLayoutPolicy( LayoutPolicy );
67  LayoutPolicy layoutPolicy() const;
68 
69  void setLayoutHint( double );
70  double layoutHint() const;
71 
72  void setSpacing( int );
73  int spacing() const;
74 
75  void setMargin( int );
76  int margin() const;
77 
78  void setBaseline( double );
79  double baseline() const;
80 
81  virtual void getCanvasMarginHint(
82  const QwtScaleMap &xMap, const QwtScaleMap &yMap,
83  const QRectF &canvasRect,
84  double &left, double &top, double &right, double &bottom) const;
85 
86 
87 protected:
88  double sampleWidth( const QwtScaleMap &map,
89  double canvasSize, double dataSize,
90  double value ) const;
91 
92 private:
93  class PrivateData;
95 };
96 
97 #endif
#define QWT_EXPORT
Definition: qwt_global.h:38
Abstract base class for bar chart items.
LayoutPolicy
Mode how to calculate the bar width.
A class representing a text.
Definition: qwt_text.h:51
A scale map.
Definition: qwt_scale_map.h:30
Base class for plot items representing a series of samples.
virtual void getCanvasMarginHint(const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasSize, double &left, double &top, double &right, double &bottom) const
Calculate a hint for the canvas margin.


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