Qwt User's Guide 6.3.0
Loading...
Searching...
No Matches
qwt_plot_abstract_barchart.h
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:
61
62 explicit QwtPlotAbstractBarChart( const QwtText& title );
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;
93 PrivateData* m_data;
94};
95
96#endif
Abstract base class for bar chart items.
LayoutPolicy
Mode how to calculate the bar width.
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.
Base class for plot items representing a series of samples.
A scale map.
A class representing a text.
Definition qwt_text.h:52