KD Chart API Documentation 3.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
KDChart::MarkerAttributes Class Reference

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
 
MarkerAttributesoperator= (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
 

Detailed Description

A set of attributes controlling the appearance of data set markers.

Definition at line 32 of file KDChartMarkerAttributes.h.

Member Typedef Documentation

◆ MarkerStylesMap

Definition at line 59 of file KDChartMarkerAttributes.h.

Member Enumeration Documentation

◆ MarkerStyle

Enumerator
MarkerCircle 
MarkerSquare 
MarkerDiamond 
Marker1Pixel 
Marker4Pixels 
MarkerRing 
MarkerCross 
MarkerFastCross 
NoMarker 
PainterPathMarker 
StartCustomMarkers 

Definition at line 41 of file KDChartMarkerAttributes.h.

Constructor & Destructor Documentation

◆ MarkerAttributes() [1/2]

MarkerAttributes::MarkerAttributes ( )

Definition at line 48 of file KDChartMarkerAttributes.cpp.

◆ MarkerAttributes() [2/2]

MarkerAttributes::MarkerAttributes ( const MarkerAttributes r)

Definition at line 53 of file KDChartMarkerAttributes.cpp.

◆ ~MarkerAttributes()

MarkerAttributes::~MarkerAttributes ( )

Definition at line 65 of file KDChartMarkerAttributes.cpp.

Member Function Documentation

◆ customMarkerPath()

QPainterPath MarkerAttributes::customMarkerPath ( ) const

Definition at line 154 of file KDChartMarkerAttributes.cpp.

References d.

Referenced by operator<<(), operator==(), and KDChart::AbstractDiagram::paintMarker().

◆ isVisible()

bool MarkerAttributes::isVisible ( ) const

Definition at line 94 of file KDChartMarkerAttributes.cpp.

References d.

Referenced by operator<<(), and operator==().

◆ markerColor()

QColor MarkerAttributes::markerColor ( ) const

Definition at line 144 of file KDChartMarkerAttributes.cpp.

References d.

Referenced by operator<<(), and operator==().

◆ markerSize()

QSizeF MarkerAttributes::markerSize ( ) const

Definition at line 134 of file KDChartMarkerAttributes.cpp.

References d.

Referenced by operator==(), and KDChart::MarkerLayoutItem::paintIntoRect().

◆ markerStyle()

uint MarkerAttributes::markerStyle ( ) const

Definition at line 124 of file KDChartMarkerAttributes.cpp.

References d.

Referenced by operator<<(), operator==(), and KDChart::AbstractDiagram::paintMarker().

◆ markerStylesMap()

MarkerAttributes::MarkerStylesMap MarkerAttributes::markerStylesMap ( ) const

Definition at line 114 of file KDChartMarkerAttributes.cpp.

References d.

Referenced by operator<<(), and operator==().

◆ operator!=()

bool KDChart::MarkerAttributes::operator!= ( const MarkerAttributes other) const
inline

Definition at line 104 of file KDChartMarkerAttributes.h.

References operator==().

◆ operator=()

MarkerAttributes & MarkerAttributes::operator= ( const MarkerAttributes r)

Definition at line 58 of file KDChartMarkerAttributes.cpp.

◆ operator==()

bool MarkerAttributes::operator== ( const MarkerAttributes r) const

◆ pen()

QPen MarkerAttributes::pen ( ) const

Definition at line 164 of file KDChartMarkerAttributes.cpp.

References d.

Referenced by operator<<(), operator==(), and setPen().

◆ setCustomMarkerPath()

void MarkerAttributes::setCustomMarkerPath ( const QPainterPath path)

Definition at line 149 of file KDChartMarkerAttributes.cpp.

References d.

◆ setMarkerColor()

void MarkerAttributes::setMarkerColor ( const QColor color)

Definition at line 139 of file KDChartMarkerAttributes.cpp.

References d.

◆ setMarkerSize()

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.

◆ setMarkerStyle()

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().

◆ setMarkerStylesMap()

void MarkerAttributes::setMarkerStylesMap ( const MarkerStylesMap map)

Definition at line 109 of file KDChartMarkerAttributes.cpp.

References d.

◆ setPen()

void MarkerAttributes::setPen ( const QPen pen)

Definition at line 159 of file KDChartMarkerAttributes.cpp.

References d, and pen().

◆ setThreeD()

void MarkerAttributes::setThreeD ( bool  value)

Definition at line 99 of file KDChartMarkerAttributes.cpp.

References d, and threeD().

◆ setVisible()

void MarkerAttributes::setVisible ( bool  visible)

Definition at line 89 of file KDChartMarkerAttributes.cpp.

References d.

Referenced by KDChart::TernaryLineDiagram::TernaryLineDiagram().

◆ threeD()

bool MarkerAttributes::threeD ( ) const

Definition at line 104 of file KDChartMarkerAttributes.cpp.

References d.

Referenced by KDChart::AbstractDiagram::paintMarker(), and setThreeD().


The documentation for this class was generated from the following files:

© 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 Feb 23 2024 00:03:01 for KD Chart API Documentation by doxygen 1.9.8