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 
25 {
26 public:
33  {
42 
47 
55 
59  FixedSampleSize
60  };
61 
62  explicit QwtPlotAbstractBarChart( const QwtText &title );
63  virtual ~QwtPlotAbstractBarChart();
64 
65  void setLayoutPolicy( LayoutPolicy );
66  LayoutPolicy layoutPolicy() const;
67 
68  void setLayoutHint( double );
69  double layoutHint() const;
70 
71  void setSpacing( int );
72  int spacing() const;
73 
74  void setMargin( int );
75  int margin() const;
76 
77  void setBaseline( double );
78  double baseline() const;
79 
80  virtual void getCanvasMarginHint(
81  const QwtScaleMap &xMap, const QwtScaleMap &yMap,
82  const QRectF &canvasRect, double &left, double &top,
83  double &right, double &bottom) const QWT_OVERRIDE;
84 
85 
86 protected:
87  double sampleWidth( const QwtScaleMap &map,
88  double canvasSize, double boundingSize,
89  double value ) const;
90 
91 private:
92  class PrivateData;
94 };
95 
96 #endif
enum MQTTPropertyCodes value
lu_byte right
Definition: lparser.c:1229
virtual void getCanvasMarginHint(const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const
Calculate a hint for the canvas margin.
#define QWT_EXPORT
Definition: qwt_global.h:38
lu_byte left
Definition: lparser.c:1228
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:26
int top(lua_State *L)
Definition: sol.hpp:10543
Base class for plot items representing a series of samples.
#define QWT_OVERRIDE
Definition: qwt_global.h:53


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