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
24
class
QWT_EXPORT
QwtPlotAbstractBarChart
:
public
QwtPlotSeriesItem
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;
93
PrivateData* m_data;
94
};
95
96
#endif
QwtPlotAbstractBarChart
Abstract base class for bar chart items.
Definition
qwt_plot_abstract_barchart.h:25
QwtPlotAbstractBarChart::LayoutPolicy
LayoutPolicy
Mode how to calculate the bar width.
Definition
qwt_plot_abstract_barchart.h:33
QwtPlotAbstractBarChart::AutoAdjustSamples
@ AutoAdjustSamples
Definition
qwt_plot_abstract_barchart.h:41
QwtPlotAbstractBarChart::ScaleSamplesToAxes
@ ScaleSamplesToAxes
Definition
qwt_plot_abstract_barchart.h:46
QwtPlotAbstractBarChart::ScaleSampleToCanvas
@ ScaleSampleToCanvas
Definition
qwt_plot_abstract_barchart.h:54
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
QwtPlotSeriesItem
Base class for plot items representing a series of samples.
Definition
qwt_plot_seriesitem.h:26
QwtScaleMap
A scale map.
Definition
qwt_scale_map.h:27
QwtText
A class representing a text.
Definition
qwt_text.h:52
src
qwt_plot_abstract_barchart.h
Generated by
1.10.0