KD Chart API Documentation
3.1
Loading...
Searching...
No Matches
source
src
KDChart
Cartesian
KDChartLeveyJenningsGridAttributes.h
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** This file is part of the KD Chart library.
4
**
5
** SPDX-FileCopyrightText: 2001 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6
**
7
** SPDX-License-Identifier: MIT
8
**
9
****************************************************************************/
10
11
#ifndef KDCHARTLEVEYJENNINGSGRIDATTRIBUTES_H
12
#define KDCHARTLEVEYJENNINGSGRIDATTRIBUTES_H
13
14
#include "
KDChartEnums.h
"
15
#include "
KDChartGlobal.h
"
16
#include <QMetaType>
17
18
QT_BEGIN_NAMESPACE
19
class
QPen
;
20
QT_END_NAMESPACE
21
22
namespace
KDChart
{
23
27
class
KDCHART_EXPORT
LeveyJenningsGridAttributes
28
{
29
public
:
30
LeveyJenningsGridAttributes
();
31
LeveyJenningsGridAttributes
(
const
LeveyJenningsGridAttributes
&);
32
LeveyJenningsGridAttributes
&operator=(
const
LeveyJenningsGridAttributes
&);
33
34
~LeveyJenningsGridAttributes
();
35
36
enum
GridType
37
{
38
Expected
,
39
Calculated
40
};
41
42
enum
Range
43
{
44
NormalRange
,
45
CriticalRange
,
46
OutOfRange
47
};
48
49
void
setGridVisible(GridType type,
bool
visible);
50
bool
isGridVisible(GridType type)
const
;
51
52
void
setGridPen(GridType type,
const
QPen
&pen);
53
QPen
gridPen(GridType type)
const
;
54
55
void
setRangeBrush(Range range,
const
QBrush
&brush);
56
QBrush
rangeBrush(Range range)
const
;
57
58
bool
operator==
(
const
LeveyJenningsGridAttributes
&)
const
;
59
inline
bool
operator!=
(
const
LeveyJenningsGridAttributes
&other)
const
60
{
61
return
!
operator==
(other);
62
}
63
64
private
:
65
KDCHART_DECLARE_PRIVATE_BASE_VALUE
(
LeveyJenningsGridAttributes
)
66
};
// End of class GridAttributes
67
}
68
69
KDCHART_DECLARE_SWAP_SPECIALISATION
(
KDChart::LeveyJenningsGridAttributes
)
70
71
QT_BEGIN_NAMESPACE
72
Q_DECLARE_TYPEINFO
(
KDChart::LeveyJenningsGridAttributes
, Q_MOVABLE_TYPE);
73
QT_END_NAMESPACE
74
75
Q_DECLARE_METATYPE(
KDChart::LeveyJenningsGridAttributes
)
76
77
#endif
// KDCHARTLEVEYJENNINGSGRIDATTRIBUTES_H
KDChartEnums.h
Definition of global enums.
KDChartGlobal.h
Contains KDChart macros.
KDCHART_DECLARE_SWAP_SPECIALISATION
#define KDCHART_DECLARE_SWAP_SPECIALISATION(X)
Definition
KDChartGlobal.h:192
KDCHART_DECLARE_PRIVATE_BASE_VALUE
#define KDCHART_DECLARE_PRIVATE_BASE_VALUE(X)
Definition
KDChartGlobal.h:65
Q_DECLARE_TYPEINFO
QT_BEGIN_NAMESPACE Q_DECLARE_TYPEINFO(KDChart::LeveyJenningsGridAttributes, Q_MOVABLE_TYPE)
KDChart::LeveyJenningsGridAttributes
A set of attributes controlling the appearance of grids.
Definition
KDChartLeveyJenningsGridAttributes.h:28
KDChart::LeveyJenningsGridAttributes::Range
Range
Definition
KDChartLeveyJenningsGridAttributes.h:43
KDChart::LeveyJenningsGridAttributes::NormalRange
@ NormalRange
Definition
KDChartLeveyJenningsGridAttributes.h:44
KDChart::LeveyJenningsGridAttributes::CriticalRange
@ CriticalRange
Definition
KDChartLeveyJenningsGridAttributes.h:45
KDChart::LeveyJenningsGridAttributes::GridType
GridType
Definition
KDChartLeveyJenningsGridAttributes.h:37
KDChart::LeveyJenningsGridAttributes::Expected
@ Expected
Definition
KDChartLeveyJenningsGridAttributes.h:38
KDChart::LeveyJenningsGridAttributes::operator!=
bool operator!=(const LeveyJenningsGridAttributes &other) const
Definition
KDChartLeveyJenningsGridAttributes.h:59
KDChart
Definition
CartesianCoordinateTransformation.h:23
KDChart::operator==
bool operator==(const TickInfo &, const TickInfo &)
Definition
KDChartTernaryGrid.cpp:36
QBrush
QPen
© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated on Wed May 1 2024 00:01:10 for KD Chart API Documentation by doxygen 1.9.8