KChart
KChartBarDiagram.cpp
212 d->attributesModel->setModelData( QVariant::fromValue( threeDAttrs ), ThreeDBarAttributesRole );
225void BarDiagram::setThreeDBarAttributes( const QModelIndex& index, const ThreeDBarAttributes& threeDAttrs )
238 return d->attributesModel->data( KChart::ThreeDBarAttributesRole ).value<ThreeDBarAttributes>();
273 d->compressor.setResolution( static_cast<int>( this->size().width() * coordinatePlane()->zoomFactorX() ),
326 d->compressor.setResolution( static_cast< int >( size.width() * coordinatePlane()->zoomFactorX() ),
Base class for diagrams based on a cartesian coordianate system.
Definition KChartAbstractCartesianDiagram.h:28
bool compare(const AbstractCartesianDiagram *other) const
Returns true if both diagrams have the same settings.
Definition KChartAbstractCartesianDiagram.cpp:26
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Definition KChartAbstractCoordinatePlane.h:31
virtual AttributesModel * attributesModel() const
Returns the AttributesModel, that is used by this diagram.
Definition KChartAbstractDiagram.cpp:187
QModelIndex attributesModelRootIndex() const
Definition KChartAbstractDiagram.cpp:212
const QPair< QPointF, QPointF > dataBoundaries() const
Return the bottom left and top right data point, that the diagram will display (unless the grid adjus...
Definition KChartAbstractDiagram.cpp:101
void propertiesChanged()
Emitted upon change of a property of the Diagram.
void layoutChanged(KChart::AbstractDiagram *)
Diagrams are supposed to emit this signal, when the layout of one of their element changes.
AbstractCoordinatePlane * coordinatePlane() const
The coordinate plane associated with the diagram.
Definition KChartAbstractDiagram.cpp:96
void setPercentMode(bool percent)
Deprecated method that turns the percent mode of this diagram on or off.
Definition KChartAbstractDiagram.cpp:369
static bool isBoundariesValid(const QRectF &r)
Checks whether both coordinates of r are valid according to isValueValid.
Definition KChartAbstractGrid.cpp:58
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::DisplayRole) override
\reimpl
Definition KChartAttributesModel.cpp:382
Set of attributes for changing the appearance of bar charts.
Definition KChartBarAttributes.h:21
void setThreeDBarAttributes(const ThreeDBarAttributes &a)
Sets the global 3D bar attributes to threeDAttrs.
Definition KChartBarDiagram.cpp:209
ThreeDBarAttributes threeDBarAttributes() const
Definition KChartBarDiagram.cpp:236
BarAttributes barAttributes() const
Definition KChartBarDiagram.cpp:189
const QPair< QPointF, QPointF > calculateDataBoundaries() const override
\reimpl
Definition KChartBarDiagram.cpp:271
bool compare(const BarDiagram *other) const
Returns true if both diagrams have the same settings.
Definition KChartBarDiagram.cpp:135
Qt::Orientation orientation() const
Definition KChartBarDiagram.cpp:163
virtual BarDiagram * clone() const
Creates an exact copy of this diagram.
Definition KChartBarDiagram.cpp:127
void setBarAttributes(const BarAttributes &a)
Sets the global bar attributes to ba.
Definition KChartBarDiagram.cpp:168
void paint(PaintContext *paintContext) override
Draw the diagram contents to the rectangle and painter, that are passed in as part of the paint conte...
Definition KChartBarDiagram.cpp:296
void setOrientation(Qt::Orientation orientation)
Sets the orientation of the bar diagram.
Definition KChartBarDiagram.cpp:158
void resize(const QSizeF &area) override
Called by the widget's sizeEvent.
Definition KChartBarDiagram.cpp:324
void setType(const BarType type)
Sets the bar diagram's type to type.
Definition KChartBarDiagram.cpp:148
qreal threeDItemDepth(const QModelIndex &index) const override
Definition KChartBarDiagram.cpp:256
Cartesian coordinate plane.
Definition KChartCartesianCoordinatePlane.h:26
QCA_EXPORT void init()
QAbstractItemModel * model() const const
QModelIndex rootIndex() const const
QWidget * viewport() const const
Q_EMITQ_EMIT
Vertical
QVariant fromValue(T &&value)
bool isValid() const const
T value() const const
height
size
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.