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:
32  enum LayoutPolicy
33  {
41  AutoAdjustSamples,
42 
46  ScaleSamplesToAxes,
47 
54  ScaleSampleToCanvas,
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
left
lu_byte left
Definition: lparser.c:1226
QwtPlotItem::getCanvasMarginHint
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.
Definition: qwt_plot_item.cpp:595
sol::stack::top
int top(lua_State *L)
Definition: sol.hpp:11684
QwtPlotSeriesItem
Base class for plot items representing a series of samples.
Definition: qwt_plot_seriesitem.h:24
QwtPlotAbstractBarChart::PrivateData
Definition: qwt_plot_abstract_barchart.cpp:25
right
lu_byte right
Definition: lparser.c:1227
qwt_global.h
QwtPlotSeriesItem::m_data
PrivateData * m_data
Definition: qwt_plot_seriesitem.h:64
QwtText
A class representing a text.
Definition: qwt_text.h:51
range_format::map
@ map
QwtPlotAbstractBarChart::LayoutPolicy
LayoutPolicy
Mode how to calculate the bar width.
Definition: qwt_plot_abstract_barchart.h:39
QwtScaleMap
A scale map.
Definition: qwt_scale_map.h:26
qwt_plot_seriesitem.h
QwtPlotAbstractBarChart
Abstract base class for bar chart items.
Definition: qwt_plot_abstract_barchart.h:24
QWT_OVERRIDE
#define QWT_OVERRIDE
Definition: qwt_global.h:53
QWT_EXPORT
#define QWT_EXPORT
Definition: qwt_global.h:38


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