KD Chart API Documentation  3.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
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 
17 QT_BEGIN_NAMESPACE
18 class QColor;
19 class QSizeF;
20 class QPen;
21 class QPainterPath;
22 class QDebug;
23 template<typename T, typename K>
24 class QMap;
25 QT_END_NAMESPACE
26 
27 namespace KDChart {
28 
32 class KDCHART_EXPORT MarkerAttributes
33 {
34 public:
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 
100 private:
102 }; // End of class MarkerAttributes
103 
104 inline bool MarkerAttributes::operator!=(const MarkerAttributes &other) const
105 {
106  return !operator==(other);
107 }
108 }
109 
110 #ifndef QT_NO_DEBUG_STREAM
111 KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::MarkerAttributes &);
112 #endif
113 
115 
116 QT_BEGIN_NAMESPACE
118 QT_END_NAMESPACE
119 
120 Q_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)
Definition: KDChartGlobal.h:65
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 &)
bool operator!=(const Span &s1, const Span &s2)

© 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 by doxygen 1.9.1