qwt_plot_abstract_barchart.h
Go to the documentation of this file.
1 /******************************************************************************
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
lu_byte right
Definition: lparser.c:1227
#define QWT_EXPORT
Definition: qwt_global.h:38
lu_byte left
Definition: lparser.c:1226
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:11684
Definition: core.h:1131
Base class for plot items representing a series of samples.
#define QWT_OVERRIDE
Definition: qwt_global.h:53
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.


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:01:38