9#include "KChartMarkerAttributes.h"
11#include "KChartMath_p.h"
16#include <QPainterPath>
25 friend class ::KChart::MarkerAttributes;
33 MarkerSizeMode markerSizeMode;
40MarkerAttributes::Private::Private()
43 markerStyle( MarkerSquare ),
51MarkerAttributes::MarkerAttributes()
58 : _d( new Private( *r._d ) )
70MarkerAttributes::~MarkerAttributes()
72 delete _d; _d =
nullptr;
90 return ( isVisible() == r.isVisible() &&
91 markerStylesMap() == r.markerStylesMap() &&
92 markerStyle() == r.markerStyle() &&
93 markerStyle() == r.markerStyle() &&
94 markerSizeMode() == r.markerSizeMode() &&
95 markerColor() == r.markerColor() &&
96 customMarkerPath() == r.customMarkerPath() &&
102void MarkerAttributes::setVisible(
bool visible )
104 d->visible = visible;
107bool MarkerAttributes::isVisible()
const
112void MarkerAttributes::setThreeD(
bool value )
117bool MarkerAttributes::threeD()
const
122void MarkerAttributes::setMarkerStylesMap(
const MarkerStylesMap & map )
124 d->markerStylesMap =
map;
129 return d->markerStylesMap;
134 d->markerStyle = style;
137uint MarkerAttributes::markerStyle()
const
139 return d->markerStyle;
144 d->markerSize = size;
147QSizeF MarkerAttributes::markerSize()
const
149 return d->markerSize;
154 d->markerSizeMode = mode;
159 return d->markerSizeMode;
163void MarkerAttributes::setMarkerColor(
const QColor& color )
165 d->markerColor = color;
168QColor MarkerAttributes::markerColor()
const
170 return d->markerColor;
173void MarkerAttributes::setCustomMarkerPath(
const QPainterPath& path )
175 d->customMarkerPath =
path;
180 return d->customMarkerPath;
183void MarkerAttributes::setPen(
const QPen& pen )
188QPen MarkerAttributes::pen()
const
195#ifndef QT_NO_DEBUG_STREAM
197 return dbg <<
"KChart::MarkerAttributes("
198 <<
"visible=" << ma.isVisible()
199 <<
"markerStylesMap=" << ma.markerStylesMap()
200 <<
"markerStyle=" << ma.markerStyle()
201 <<
"markerColor=" << ma.markerColor()
202 <<
"customMarkerPath=" << ma.customMarkerPath()
203 <<
"pen=" << ma.pen()
A set of attributes controlling the appearance of data set markers.
void setMarkerStyle(uint style)
Set the marker-style to use.
void setMarkerSizeMode(MarkerSizeMode mode)
With this method you can change the way the actual marker size is calculated.
void setMarkerSize(const QSizeF &size)
Normally you need to specify a valid QSizeF here, but for Legends you can use the invalid size QSizeF...
QString path(const QString &relativePath)
QAction * copy(const QObject *recvr, const char *slot, QObject *parent)
KTEXTEDITOR_EXPORT QDebug operator<<(QDebug s, const MovingCursor &cursor)
QFuture< void > map(Iterator begin, Iterator end, MapFunctor &&function)