24 #include "KDChartAbstractThreeDAttributes_p.h" 28 #include <KDABLibFakes> 36 AbstractThreeDAttributes::Private::Private()
39 threeDBrushEnabled( false )
44 AbstractThreeDAttributes::AbstractThreeDAttributes()
50 : _d( new Private( *r.
d ) )
78 void AbstractThreeDAttributes::init( )
112 return d->threeDBrushEnabled;
117 d->threeDBrushEnabled = enabled;
123 QLinearGradient gr(rect.topLeft(), rect.bottomRight());
124 gr.setColorAt(0.0, brush.color());
125 gr.setColorAt(0.5, brush.color().lighter(180));
126 gr.setColorAt(1.0, brush.color());
132 #if !defined(QT_NO_DEBUG_STREAM) 136 <<
"depth="<<a.
depth();
bool isThreeDBrushEnabled() const
Base class for 3D attributes.
AbstractThreeDAttributes & operator=(const AbstractThreeDAttributes &)
AbstractThreeDAttributes()
void setEnabled(bool enabled)
void setThreeDBrushEnabled(bool enabled)
virtual ~AbstractThreeDAttributes()=0
virtual QBrush threeDBrush(const QBrush &brush, const QRectF &rect) const
void setDepth(qreal depth)
QDebug operator<<(QDebug stream, const DataDimension &r)
bool operator==(const AbstractThreeDAttributes &) const