KChart
KChartLineDiagram.cpp
248 return d->attributesModel->data( KChart::ThreeDLineAttributesRole ).value<ThreeDLineAttributes>();
299 d->compressor.setResolution( static_cast<int>( this->size().width() * coordinatePlane()->zoomFactorX() ),
302 if ( !checkInvariants( true ) ) return QPair<QPointF, QPointF>( QPointF( 0, 0 ), QPointF( 0, 0 ) );
344 d->compressor.setResolution( static_cast<int>( size.width() * coordinatePlane()->zoomFactorX() ),
bool isValid() const const
QVariant fromValue(const T &value)
Q_EMITQ_EMIT
void setLineAttributes(const LineAttributes &a)
Sets the global line attributes to la.
Definition: KChartLineDiagram.cpp:154
void resetLineAttributes(int column)
Resets the line attributes of data set column.
Definition: KChartLineDiagram.cpp:170
QAbstractItemModel * model() const const
T value() const const
Cell-specific attributes regarding value tracking.
Definition: KChartValueTrackerAttributes.h:28
bool compare(const LineDiagram *other) const
Returns true if both diagrams have the same settings.
Definition: KChartLineDiagram.cpp:73
Class only listed here to document inheritance of some KChart classes.
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Definition: KChartAbstractCoordinatePlane.h:30
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 propertiesChanged()
Emitted upon change of a property of the Diagram.
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 setThreeDLineAttributes(const ThreeDLineAttributes &a)
Sets the global 3D line attributes to la.
Definition: KChartLineDiagram.cpp:215
void setValueTrackerAttributes(const QModelIndex &index, const ValueTrackerAttributes &a)
Sets the value tracker attributes of the model index index to va.
Definition: KChartLineDiagram.cpp:276
Cartesian coordinate plane.
Definition: KChartCartesianCoordinatePlane.h:25
AbstractCoordinatePlane * coordinatePlane() const
The coordinate plane associated with the diagram.
Definition: KChartAbstractDiagram.cpp:96
void setType(const LineType type)
Sets the line diagram's type to type.
Definition: KChartLineDiagram.cpp:87
Set of attributes for changing the appearance of line charts.
Definition: KChartLineAttributes.h:20
const QPair< QPointF, QPointF > calculateDataBoundaries() const override
\reimpl
Definition: KChartLineDiagram.cpp:297
qreal threeDItemDepth(const QModelIndex &index) const override
Definition: KChartLineDiagram.cpp:266
void init(KXmlGuiWindow *window, KgDifficulty *difficulty=nullptr)
QModelIndex attributesModelRootIndex() const
Definition: KChartAbstractDiagram.cpp:212
QModelIndex rootIndex() const const
ThreeDLineAttributes threeDLineAttributes() const
Definition: KChartLineDiagram.cpp:246
int datasetDimension() const
The dataset dimension of a diagram determines how many value dimensions it expects each datapoint to ...
Definition: KChartAbstractDiagram.cpp:1138
virtual LineDiagram * clone() const
Creates an exact copy of this diagram.
Definition: KChartLineDiagram.cpp:65
ValueTrackerAttributes valueTrackerAttributes(const QModelIndex &index) const
Returns the value tracker attributes of the model index index.
Definition: KChartLineDiagram.cpp:285
height
static bool isBoundariesValid(const QRectF &r)
Checks whether both coordinates of r are valid according to isValueValid.
Definition: KChartAbstractGrid.cpp:58
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
bool centerDataPoints() const
Definition: KChartLineDiagram.cpp:139
void setPercentMode(bool percent)
Deprecated method that turns the percent mode of this diagram on or off.
Definition: KChartAbstractDiagram.cpp:369
virtual void resize(const QSizeF &area)
Called by the widget's sizeEvent.
Definition: KChartAbstractDiagram.cpp:116
bool reverseDatasetOrder() const
Definition: KChartLineDiagram.cpp:149
width
LineAttributes lineAttributes() const
Definition: KChartLineDiagram.cpp:194
QWidget * viewport() const const
size
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
void layoutChanged(KChart::AbstractDiagram *)
Diagrams are supposed to emit this signal, when the layout of one of their element changes.
void resize(const QSizeF &area) override
Called by the widget's sizeEvent.
Definition: KChartLineDiagram.cpp:342
Base class for diagrams based on a cartesian coordianate system.
Definition: KChartAbstractCartesianDiagram.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 03:51:38 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 03:51:38 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.