27#ifndef QWT_PLOT_ABSTRACT_BAR_CHART_H
28#define QWT_PLOT_ABSTRACT_BAR_CHART_H
30#include "qwt_global.h"
31#include "qwt_plot_seriesitem.h"
92 void setLayoutPolicy( LayoutPolicy );
94 LayoutPolicy layoutPolicy()
const;
97 void setLayoutHint(
double );
99 double layoutHint()
const;
102 void setSpacing(
int );
107 void setMargin(
int );
112 void setBaseline(
double );
114 double baseline()
const;
119 const QRectF& canvasRect,
double& left,
double& top,
120 double& right,
double& bottom)
const override;
125 double canvasSize,
double boundingSize,
126 double value )
const;
条形图项的抽象基类
Definition qwt_plot_abstract_barchart.h:49
LayoutPolicy
Mode how to calculate the bar width
Definition qwt_plot_abstract_barchart.h:57
@ AutoAdjustSamples
The sample width is calculated by dividing the bounding rectangle by the number of samples.
Definition qwt_plot_abstract_barchart.h:65
@ ScaleSamplesToAxes
layoutHint() defines an interval in axis coordinates
Definition qwt_plot_abstract_barchart.h:70
@ ScaleSampleToCanvas
The bar width is calculated by multiplying layoutHint() with the height or width of the canvas.
Definition qwt_plot_abstract_barchart.h:78
virtual void getCanvasMarginHint(const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const
Get margin hints for the canvas
Definition qwt_plot_item.cpp:922
表示一系列样本的绘图项的基类
Definition qwt_plot_seriesitem.h:53
刻度映射
Definition qwt_scale_map.h:52
表示文本的类
Definition qwt_text.h:93