KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
KDChartMarkerAttributes.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 KDCHARTMARKERATTRIBUTES_H
12#define KDCHARTMARKERATTRIBUTES_H
13
14#include "KDChartGlobal.h"
15#include <QMetaType>
16
17QT_BEGIN_NAMESPACE
18class QColor;
19class QSizeF;
20class QPen;
21class QPainterPath;
22class QDebug;
23template<typename T, typename K>
24class QMap;
25QT_END_NAMESPACE
26
27namespace KDChart {
28
32class KDCHART_EXPORT MarkerAttributes
33{
34public:
37 MarkerAttributes &operator=(const MarkerAttributes &);
38
40
42 {
43 MarkerCircle = 0,
44 MarkerSquare = 1,
45 MarkerDiamond = 2,
46 Marker1Pixel = 3,
47 Marker4Pixels = 4,
48 MarkerRing = 5,
49 MarkerCross = 6,
50 MarkerFastCross = 7,
51 NoMarker = 8,
52 PainterPathMarker = 9,
53 StartCustomMarkers = 10
54 };
55
56 void setVisible(bool visible);
57 bool isVisible() const;
58
60 void setMarkerStylesMap(const MarkerStylesMap &map);
61 MarkerStylesMap markerStylesMap() const;
62
63 void setThreeD(bool value);
64 bool threeD() const;
65
75 void setMarkerStyle(uint style);
76 uint markerStyle() const;
77
85 void setMarkerSize(const QSizeF &size);
86 QSizeF markerSize() const;
87
88 void setMarkerColor(const QColor &color);
89 QColor markerColor() const;
90
91 void setCustomMarkerPath(const QPainterPath &path);
92 QPainterPath customMarkerPath() const;
93
94 void setPen(const QPen &pen);
95 QPen pen() const;
96
97 bool operator==(const MarkerAttributes &) const;
98 bool operator!=(const MarkerAttributes &) const;
99
100private:
102}; // End of class MarkerAttributes
103
104inline bool MarkerAttributes::operator!=(const MarkerAttributes &other) const
105{
106 return !operator==(other);
107}
108}
109
110#ifndef QT_NO_DEBUG_STREAM
111KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::MarkerAttributes &);
112#endif
113
115
116QT_BEGIN_NAMESPACE
118QT_END_NAMESPACE
119
120Q_DECLARE_METATYPE(KDChart::MarkerAttributes)
121
122#endif // KDCHARTMARKERATTRIBUTES_H
Contains KDChart macros.
#define KDCHART_DECLARE_SWAP_SPECIALISATION(X)
#define KDCHART_DECLARE_PRIVATE_BASE_VALUE(X)
QT_BEGIN_NAMESPACE Q_DECLARE_TYPEINFO(KDChart::MarkerAttributes, Q_MOVABLE_TYPE)
KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::MarkerAttributes &)
A set of attributes controlling the appearance of data set markers.
bool operator!=(const MarkerAttributes &) const
bool operator==(const MarkerAttributes &) const
bool operator==(const TickInfo &, const TickInfo &)

© 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 Fri Jun 14 2024 00:12:03 for KD Chart API Documentation by doxygen 1.9.8