KDChart::ThreeDPieAttributes Class Reference

#include <KDChartThreeDPieAttributes.h>

Inheritance diagram for KDChart::ThreeDPieAttributes:

Inheritance graph
[legend]
Collaboration diagram for KDChart::ThreeDPieAttributes:

Collaboration graph
[legend]

List of all members.


Detailed Description

A set of 3D pie attributes.

Definition at line 38 of file KDChartThreeDPieAttributes.h.


Public Member Functions

double depth () const
bool isEnabled () const
bool operator!= (const AbstractThreeDAttributes &other) const
bool operator!= (const ThreeDPieAttributes &other) const
ThreeDPieAttributesoperator= (const ThreeDPieAttributes &)
bool operator== (const AbstractThreeDAttributes &) const
bool operator== (const ThreeDPieAttributes &) const
void setDepth (double depth)
void setEnabled (bool enabled)
void setUseShadowColors (bool useShadowColors)
 ThreeDPieAttributes (const ThreeDPieAttributes &)
 ThreeDPieAttributes ()
bool useShadowColors () const
double validDepth () const
 ~ThreeDPieAttributes ()

Constructor & Destructor Documentation

ThreeDPieAttributes::ThreeDPieAttributes (  ) 

Definition at line 43 of file KDChartThreeDPieAttributes.cpp.

00044     : AbstractThreeDAttributes( new Private() )
00045 {
00046 
00047 }

ThreeDPieAttributes::ThreeDPieAttributes ( const ThreeDPieAttributes r  ) 

Definition at line 49 of file KDChartThreeDPieAttributes.cpp.

00050     : AbstractThreeDAttributes( new Private( *r.d) )
00051 {
00052 }

ThreeDPieAttributes::~ThreeDPieAttributes (  ) 

Definition at line 64 of file KDChartThreeDPieAttributes.cpp.

00065 {
00066 }


Member Function Documentation

double AbstractThreeDAttributes::depth (  )  const [inherited]

Definition at line 103 of file KDChartAbstractThreeDAttributes.cpp.

References d.

Referenced by StockDiagram::Private::drawCandlestick(), StockDiagram::Private::drawLine(), operator<<(), KDChart::AbstractThreeDAttributes::operator==(), and KDChart::PieDiagram::paintInternal().

00104 {
00105     return d->depth;
00106 }

bool AbstractThreeDAttributes::isEnabled (  )  const [inherited]

Definition at line 92 of file KDChartAbstractThreeDAttributes.cpp.

References d.

Referenced by StockDiagram::Private::drawCandlestick(), StockDiagram::Private::drawLine(), StockDiagram::Private::drawOHLCBar(), operator<<(), KDChart::AbstractThreeDAttributes::operator==(), KDChart::PieDiagram::paintInternal(), and KDChart::AbstractThreeDAttributes::validDepth().

00093 {
00094     return d->enabled;
00095 }

bool KDChart::AbstractThreeDAttributes::operator!= ( const AbstractThreeDAttributes other  )  const [inherited]

Definition at line 60 of file KDChartAbstractThreeDAttributes.h.

References KDGantt::operator==().

00060 { return !operator==(other); }

bool KDChart::ThreeDPieAttributes::operator!= ( const ThreeDPieAttributes other  )  const

Definition at line 52 of file KDChartThreeDPieAttributes.h.

References KDGantt::operator==().

00052 { return !operator==(other); }

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

Definition at line 54 of file KDChartThreeDPieAttributes.cpp.

References d.

00055 {
00056     if( this == &r )
00057         return *this;
00058 
00059     *d = *r.d;
00060 
00061     return *this;
00062 }

bool AbstractThreeDAttributes::operator== ( const AbstractThreeDAttributes r  )  const [inherited]

Definition at line 72 of file KDChartAbstractThreeDAttributes.cpp.

References KDChart::AbstractThreeDAttributes::depth(), and KDChart::AbstractThreeDAttributes::isEnabled().

00073 {
00074     if( isEnabled() == r.isEnabled() &&
00075         depth() == r.depth() )
00076         return true;
00077     else
00078         return false;
00079 }

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

Definition at line 73 of file KDChartThreeDPieAttributes.cpp.

References KDGantt::operator==(), and useShadowColors().

00074 {
00075     return ( useShadowColors() == r.useShadowColors() &&
00076              AbstractThreeDAttributes::operator==(r));
00077 }

void AbstractThreeDAttributes::setDepth ( double  depth  )  [inherited]

Definition at line 97 of file KDChartAbstractThreeDAttributes.cpp.

References d.

00098 {
00099     d->depth = depth;
00100 }

void AbstractThreeDAttributes::setEnabled ( bool  enabled  )  [inherited]

Definition at line 87 of file KDChartAbstractThreeDAttributes.cpp.

References d.

00088 {
00089     d->enabled = enabled;
00090 }

void ThreeDPieAttributes::setUseShadowColors ( bool  useShadowColors  ) 

Definition at line 81 of file KDChartThreeDPieAttributes.cpp.

References d.

00082 {
00083     d->useShadowColors = shadowColors;
00084 }

bool ThreeDPieAttributes::useShadowColors (  )  const

Definition at line 86 of file KDChartThreeDPieAttributes.cpp.

References d.

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

00087 {
00088     return d->useShadowColors;
00089 }

double AbstractThreeDAttributes::validDepth (  )  const [inherited]

Definition at line 109 of file KDChartAbstractThreeDAttributes.cpp.

References d, and KDChart::AbstractThreeDAttributes::isEnabled().

Referenced by KDChart::Plotter::threeDItemDepth(), KDChart::LineDiagram::threeDItemDepth(), and KDChart::BarDiagram::threeDItemDepth().

00110 {
00111     return isEnabled() ? d->depth : 0.0;
00112 }


The documentation for this class was generated from the following files:
Generated on Thu Mar 4 23:26:53 2010 for KD Chart 2 by  doxygen 1.5.4