KChart
KChartLineDiagram.cpp
248 return d->attributesModel->data( KChart::ThreeDLineAttributesRole ).value<ThreeDLineAttributes>();
299 d->compressor.setResolution( static_cast<int>( this->size().width() * coordinatePlane()->zoomFactorX() ),
344 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
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
int datasetDimension() const
The dataset dimension of a diagram determines how many value dimensions it expects each datapoint to ...
Definition KChartAbstractDiagram.cpp:1138
static bool isBoundariesValid(const QRectF &r)
Checks whether both coordinates of r are valid according to isValueValid.
Definition KChartAbstractGrid.cpp:58
Cartesian coordinate plane.
Definition KChartCartesianCoordinatePlane.h:26
Set of attributes for changing the appearance of line charts.
Definition KChartLineAttributes.h:21
void setType(const LineType type)
Sets the line diagram's type to type.
Definition KChartLineDiagram.cpp:87
LineAttributes lineAttributes() const
Definition KChartLineDiagram.cpp:194
bool centerDataPoints() const
Definition KChartLineDiagram.cpp:139
void setLineAttributes(const LineAttributes &a)
Sets the global line attributes to la.
Definition KChartLineDiagram.cpp:154
void setCenterDataPoints(bool center)
If centerDataPoints() is true, all data points are moved by an offset of 0.5 to the right.
Definition KChartLineDiagram.cpp:124
void setValueTrackerAttributes(const QModelIndex &index, const ValueTrackerAttributes &a)
Sets the value tracker attributes of the model index index to va.
Definition KChartLineDiagram.cpp:276
qreal threeDItemDepth(const QModelIndex &index) const override
Definition KChartLineDiagram.cpp:266
void setThreeDLineAttributes(const ThreeDLineAttributes &a)
Sets the global 3D line attributes to la.
Definition KChartLineDiagram.cpp:215
virtual LineDiagram * clone() const
Creates an exact copy of this diagram.
Definition KChartLineDiagram.cpp:65
void resize(const QSizeF &area) override
Called by the widget's sizeEvent.
Definition KChartLineDiagram.cpp:342
ThreeDLineAttributes threeDLineAttributes() const
Definition KChartLineDiagram.cpp:246
const QPair< QPointF, QPointF > calculateDataBoundaries() const override
\reimpl
Definition KChartLineDiagram.cpp:297
void resetLineAttributes(int column)
Resets the line attributes of data set column.
Definition KChartLineDiagram.cpp:170
void setReverseDatasetOrder(bool reverse)
With this property set to true, data sets in a normal line diagram are drawn in reversed order.
Definition KChartLineDiagram.cpp:144
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 KChartLineDiagram.cpp:322
ValueTrackerAttributes valueTrackerAttributes(const QModelIndex &index) const
Returns the value tracker attributes of the model index index.
Definition KChartLineDiagram.cpp:285
bool reverseDatasetOrder() const
Definition KChartLineDiagram.cpp:149
bool compare(const LineDiagram *other) const
Returns true if both diagrams have the same settings.
Definition KChartLineDiagram.cpp:73
Cell-specific attributes regarding value tracking.
Definition KChartValueTrackerAttributes.h:29
QCA_EXPORT void init()
QAbstractItemModel * model() const const
QModelIndex rootIndex() const const
QWidget * viewport() const const
Q_EMITQ_EMIT
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 Mon Nov 18 2024 12:09:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.