QwtPlotAbstractBarChart(3) | Qwt User's Guide | QwtPlotAbstractBarChart(3) |
QwtPlotAbstractBarChart - Abstract base class for bar chart items.
#include <qwt_plot_abstract_barchart.h>
Inherits QwtPlotSeriesItem.
Inherited by QwtPlotBarChart, and QwtPlotMultiBarChart.
enum LayoutPolicy { AutoAdjustSamples,
ScaleSamplesToAxes, ScaleSampleToCanvas,
FixedSampleSize }
Mode how to calculate the bar width.
QwtPlotAbstractBarChart (const QwtText
&title)
virtual ~QwtPlotAbstractBarChart ()
Destructor. void setLayoutPolicy (LayoutPolicy)
LayoutPolicy layoutPolicy () const
void setLayoutHint (double)
double layoutHint () const
void setSpacing (int)
Set the spacing. int spacing () const
void setMargin (int)
Set the margin. int margin () const
void setBaseline (double)
Set the baseline. double baseline () const
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.
double sampleWidth (const QwtScaleMap &map,
double canvasSize, double boundingSize, double value) const
Abstract base class for bar chart items.
In opposite to almost all other plot items bar charts can't be displayed inside of their bounding rectangle and need a special API how to calculate the width of the bars and how they affect the layout of the attached plot.
Mode how to calculate the bar width. setLayoutPolicy(), setLayoutHint(), barWidthHint()
Enumerator
See also:
See also:
Constructor
Parameters:
Returns:
See also:
Calculate a hint for the canvas margin. Bar charts need to reserve some space for displaying the bars for the first and the last sample. The hint is calculated from the layoutHint() depending on the layoutPolicy().
The margins are in target device coordinates ( pixels on screen )
Parameters:
Returns:
See also:
Reimplemented from QwtPlotItem.
The combination of layoutPolicy() and layoutHint() define how the width of the bars is calculated
Returns:
See also:
The combination of layoutPolicy() and layoutHint() define how the width of the bars is calculated
Returns:
See also:
Returns:
See also:
Calculate the width for a sample in paint device coordinates
Parameters:
Returns:
See also:
Set the baseline. The baseline is the origin for the chart. Each bar is painted from the baseline in the direction of the sample value. In case of a horizontal orientation() the baseline is interpreted as x - otherwise as y - value.
The default value for the baseline is 0.
Parameters:
See also:
The combination of layoutPolicy() and layoutHint() define how the width of the bars is calculated
Parameters:
See also:
The combination of layoutPolicy() and layoutHint() define how the width of the bars is calculated
Parameters:
See also:
Set the margin. The margin is the distance between the outmost bars and the contentsRect() of the canvas. The default setting is 5 pixels.
Parameters:
See also:
Set the spacing. The spacing is the distance between 2 samples ( bars for QwtPlotBarChart or a group of bars for QwtPlotMultiBarChart ) in paint device coordinates.
See also:
Returns:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |