![]() |
KD Chart API Documentation
3.1
|
A set of attributes controlling the appearance of data set markers. More...
#include <KDChartMarkerAttributes.h>
Public Types | |
enum | MarkerStyle { MarkerCircle = 0 , MarkerSquare = 1 , MarkerDiamond = 2 , Marker1Pixel = 3 , Marker4Pixels = 4 , MarkerRing = 5 , MarkerCross = 6 , MarkerFastCross = 7 , NoMarker = 8 , PainterPathMarker = 9 , StartCustomMarkers = 10 } |
typedef QMap< uint, uint > | MarkerStylesMap |
Public Member Functions | |
MarkerAttributes () | |
MarkerAttributes (const MarkerAttributes &) | |
~MarkerAttributes () | |
QPainterPath | customMarkerPath () const |
bool | isVisible () const |
QColor | markerColor () const |
QSizeF | markerSize () const |
uint | markerStyle () const |
MarkerStylesMap | markerStylesMap () const |
bool | operator!= (const MarkerAttributes &) const |
MarkerAttributes & | operator= (const MarkerAttributes &) |
bool | operator== (const MarkerAttributes &) const |
QPen | pen () const |
void | setCustomMarkerPath (const QPainterPath &path) |
void | setMarkerColor (const QColor &color) |
void | setMarkerSize (const QSizeF &size) |
void | setMarkerStyle (uint style) |
void | setMarkerStylesMap (const MarkerStylesMap &map) |
void | setPen (const QPen &pen) |
void | setThreeD (bool value) |
void | setVisible (bool visible) |
bool | threeD () const |
A set of attributes controlling the appearance of data set markers.
Definition at line 32 of file KDChartMarkerAttributes.h.
typedef QMap<uint, uint> KDChart::MarkerAttributes::MarkerStylesMap |
Definition at line 59 of file KDChartMarkerAttributes.h.
Enumerator | |
---|---|
MarkerCircle | |
MarkerSquare | |
MarkerDiamond | |
Marker1Pixel | |
Marker4Pixels | |
MarkerRing | |
MarkerCross | |
MarkerFastCross | |
NoMarker | |
PainterPathMarker | |
StartCustomMarkers |
Definition at line 41 of file KDChartMarkerAttributes.h.
MarkerAttributes::MarkerAttributes | ( | ) |
Definition at line 48 of file KDChartMarkerAttributes.cpp.
MarkerAttributes::MarkerAttributes | ( | const MarkerAttributes & | r | ) |
Definition at line 53 of file KDChartMarkerAttributes.cpp.
MarkerAttributes::~MarkerAttributes | ( | ) |
Definition at line 65 of file KDChartMarkerAttributes.cpp.
QPainterPath MarkerAttributes::customMarkerPath | ( | ) | const |
Definition at line 154 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::AbstractDiagram::paintMarker().
bool MarkerAttributes::isVisible | ( | ) | const |
Definition at line 94 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::AbstractDiagram::paintMarker().
QColor MarkerAttributes::markerColor | ( | ) | const |
Definition at line 144 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::AbstractDiagram::paintMarker().
QSizeF MarkerAttributes::markerSize | ( | ) | const |
Definition at line 134 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by operator==(), KDChart::MarkerLayoutItem::paintIntoRect(), and KDChart::AbstractDiagram::paintMarker().
uint MarkerAttributes::markerStyle | ( | ) | const |
Definition at line 124 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::AbstractDiagram::paintMarker().
MarkerAttributes::MarkerStylesMap MarkerAttributes::markerStylesMap | ( | ) | const |
Definition at line 114 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by operator<<(), and operator==().
|
inline |
Definition at line 104 of file KDChartMarkerAttributes.h.
References operator==().
MarkerAttributes & MarkerAttributes::operator= | ( | const MarkerAttributes & | r | ) |
Definition at line 58 of file KDChartMarkerAttributes.cpp.
bool MarkerAttributes::operator== | ( | const MarkerAttributes & | r | ) | const |
Definition at line 73 of file KDChartMarkerAttributes.cpp.
References customMarkerPath(), isVisible(), markerColor(), markerSize(), markerStyle(), markerStylesMap(), and pen().
Referenced by operator!=().
QPen MarkerAttributes::pen | ( | ) | const |
Definition at line 164 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), KDChart::AbstractDiagram::paintMarker(), and setPen().
void MarkerAttributes::setCustomMarkerPath | ( | const QPainterPath & | path | ) |
Definition at line 149 of file KDChartMarkerAttributes.cpp.
References d.
void MarkerAttributes::setMarkerColor | ( | const QColor & | color | ) |
Definition at line 139 of file KDChartMarkerAttributes.cpp.
References d.
void MarkerAttributes::setMarkerSize | ( | const QSizeF & | size | ) |
Normally you need to specify a valid QSizeF here, but for Legends you can use the invalid size QSizeF(), to enable automatic marker size calculation:
For Markers shown in a Legend this means the marker size will be equal to the font height used for the labels that are shown next to the markers.
Definition at line 129 of file KDChartMarkerAttributes.cpp.
References d.
void MarkerAttributes::setMarkerStyle | ( | uint | style | ) |
Set the marker-style to use. This could be either one of the predefined MarkerStyle or a custom one that has a value bigger or equal to StartCustomMarkers.
Such a custom marker does then allow to fetch a custom pixmap for each point (value pair) from the model using the Qt::DecorationRole .
Definition at line 119 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by KDChart::TernaryLineDiagram::TernaryLineDiagram().
void MarkerAttributes::setMarkerStylesMap | ( | const MarkerStylesMap & | map | ) |
Definition at line 109 of file KDChartMarkerAttributes.cpp.
References d.
void MarkerAttributes::setPen | ( | const QPen & | pen | ) |
Definition at line 159 of file KDChartMarkerAttributes.cpp.
void MarkerAttributes::setThreeD | ( | bool | value | ) |
Definition at line 99 of file KDChartMarkerAttributes.cpp.
References d.
void MarkerAttributes::setVisible | ( | bool | visible | ) |
Definition at line 89 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by KDChart::TernaryLineDiagram::TernaryLineDiagram().
bool MarkerAttributes::threeD | ( | ) | const |
Definition at line 104 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by KDChart::AbstractDiagram::paintMarker().