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

A set of attributes controlling the appearance of pie charts. More...

#include <KDChartPieAttributes.h>

Public Member Functions

 PieAttributes ()
 
 PieAttributes (const PieAttributes &)
 
 ~PieAttributes ()
 
bool explode () const
 
qreal explodeFactor () const
 
qreal gapFactor (bool circular) const
 
bool operator!= (const PieAttributes &other) const
 
PieAttributesoperator= (const PieAttributes &)
 
bool operator== (const PieAttributes &) const
 
void setExplode (bool explode)
 Enable or disable exploding the respective pie piece(s).
 
void setExplodeFactor (qreal factor)
 
void setGapFactor (bool circular, qreal factor)
 

Detailed Description

A set of attributes controlling the appearance of pie charts.

Definition at line 23 of file KDChartPieAttributes.h.

Constructor & Destructor Documentation

◆ PieAttributes() [1/2]

PieAttributes::PieAttributes ( )

Definition at line 26 of file KDChartPieAttributes.cpp.

◆ PieAttributes() [2/2]

PieAttributes::PieAttributes ( const PieAttributes r)

Definition at line 31 of file KDChartPieAttributes.cpp.

◆ ~PieAttributes()

PieAttributes::~PieAttributes ( )

Definition at line 46 of file KDChartPieAttributes.cpp.

Member Function Documentation

◆ explode()

bool PieAttributes::explode ( ) const
Returns
whether the respective pie piece(s) will be exploded.

Definition at line 66 of file KDChartPieAttributes.cpp.

References d.

◆ explodeFactor()

qreal PieAttributes::explodeFactor ( ) const
Returns
the explode factor set by setExplode or by setExplodeFactor.

Definition at line 76 of file KDChartPieAttributes.cpp.

References d.

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

◆ gapFactor()

qreal PieAttributes::gapFactor ( bool  circular) const

Definition at line 89 of file KDChartPieAttributes.cpp.

References d.

Referenced by operator==().

◆ operator!=()

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

Definition at line 63 of file KDChartPieAttributes.h.

References KDChart::operator==().

◆ operator=()

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

Definition at line 36 of file KDChartPieAttributes.cpp.

References d.

◆ operator==()

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

Definition at line 52 of file KDChartPieAttributes.cpp.

References explodeFactor(), and gapFactor().

◆ setExplode()

void PieAttributes::setExplode ( bool  explode)

Enable or disable exploding the respective pie piece(s).

The default explode factor is 10 percent; use setExplodeFactor to specify a different factor.

Note
This is a convenience function: Calling setExplode( true ) does the same as calling setExplodeFactor( 0.1 ), and calling setExplode( false ) does the same as calling setExplodeFactor( 0.0 ).
See also
setExplodeFactor

Definition at line 61 of file KDChartPieAttributes.cpp.

References d.

◆ setExplodeFactor()

void PieAttributes::setExplodeFactor ( qreal  factor)

Set the explode factor. The explode factor is a qreal between 0 and 1, and is interpreted as a percentage of the total available radius of the pie.

See also
setExplode

Definition at line 71 of file KDChartPieAttributes.cpp.

References d.

◆ setGapFactor()

void PieAttributes::setGapFactor ( bool  circular,
qreal  factor 
)

Definition at line 81 of file KDChartPieAttributes.cpp.

References d.


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 Apr 26 2024 00:04:57 for KD Chart API Documentation by doxygen 1.9.8