KChart
KChartAbstractDiagram.h
174 void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles = QVector<int>()) override;
694 void attributesModelAboutToChange( KChart::AttributesModel* newModel, KChart::AttributesModel* oldModel );
Contains KChart macros.
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Definition KChartAbstractCoordinatePlane.h:31
AbstractDiagram defines the interface for diagram classes.
Definition KChartAbstractDiagram.h:37
void setModel(QAbstractItemModel *model) override
Associate a model with the diagram.
Definition KChartAbstractDiagram.cpp:122
void setDataValueAttributes(const QModelIndex &index, const DataValueAttributes &a)
Set the DataValueAttributes for the given index.
Definition KChartAbstractDiagram.cpp:291
virtual void paintDataValueTexts(QPainter *painter)
Definition KChartAbstractDiagram.cpp:390
virtual AttributesModel * attributesModel() const
Returns the AttributesModel, that is used by this diagram.
Definition KChartAbstractDiagram.cpp:187
bool compare(const AbstractDiagram *other) const
Returns true if both diagrams have the same settings.
Definition KChartAbstractDiagram.cpp:54
void setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags command) override
\reimpl
Definition KChartAbstractDiagram.cpp:1014
void modelsChanged()
This signal is emitted when either the model or the AttributesModel is replaced.
void setUnitPrefix(const QString &prefix, int column, Qt::Orientation orientation)
Set the unit prefix to be used on axes for one specific column.
Definition KChartAbstractDiagram.cpp:909
void setPen(const QModelIndex &index, const QPen &pen)
Set the pen to be used, for painting the datapoint at the given index.
Definition KChartAbstractDiagram.cpp:822
void aboutToBeDestroyed()
This signal is emitted when this diagram is being destroyed, but before all the data,...
virtual void resize(const QSizeF &area)
Called by the widget's sizeEvent.
Definition KChartAbstractDiagram.cpp:116
QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override
\reimpl
Definition KChartAbstractDiagram.cpp:1002
DataValueAttributes dataValueAttributes() const
Retrieve the DataValueAttributes specified globally.
Definition KChartAbstractDiagram.cpp:306
void setAntiAliasing(bool enabled)
Set whether anti-aliasing is to be used while rendering this diagram.
Definition KChartAbstractDiagram.cpp:358
QStringList datasetLabels() const
The set of dataset labels currently displayed, for use in legends, etc.
Definition KChartAbstractDiagram.cpp:1074
QRect visualRect(const QModelIndex &index) const override
\reimpl
Definition KChartAbstractDiagram.cpp:992
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 attributesModelAboutToChange(KChart::AttributesModel *newModel, KChart::AttributesModel *oldModel)
This signal is emitted just before the new attributes model is connected internally.
void scrollTo(const QModelIndex &index, ScrollHint hint=EnsureVisible) override
\reimpl
Definition KChartAbstractDiagram.cpp:997
QPen pen() const
Retrieve the pen to be used for painting datapoints globally.
Definition KChartAbstractDiagram.cpp:843
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles=QVector< int >()) override
\reimpl
Definition KChartAbstractDiagram.cpp:233
void layoutChanged(KChart::AbstractDiagram *)
Diagrams are supposed to emit this signal, when the layout of one of their element changes.
QList< QBrush > datasetBrushes() const
The set of dataset brushes currently used, for use in legends, etc.
Definition KChartAbstractDiagram.cpp:1087
virtual void setAttributesModel(AttributesModel *model)
Associate an AttributesModel with this diagram.
Definition KChartAbstractDiagram.cpp:162
qreal valueForCell(int row, int column) const
Helper method, retrieving the data value (DisplayRole) for a given row and column.
Definition KChartAbstractDiagram.cpp:1162
QString unitPrefix(int column, Qt::Orientation orientation, bool fallback=false) const
Retrieves the axis unit prefix for a specific column.
Definition KChartAbstractDiagram.cpp:952
bool allowOverlappingDataValueTexts() const
Definition KChartAbstractDiagram.cpp:353
virtual void paint(PaintContext *paintContext)=0
Draw the diagram contents to the rectangle and painter, that are passed in as part of the paint conte...
AbstractCoordinatePlane * coordinatePlane() const
The coordinate plane associated with the diagram.
Definition KChartAbstractDiagram.cpp:96
void setHidden(const QModelIndex &index, bool hidden)
Hide (or unhide, resp.) a data cell.
Definition KChartAbstractDiagram.cpp:245
void useDefaultColors()
Set the palette to be used, for painting datasets to the default palette.
Definition KChartAbstractDiagram.cpp:1043
bool isIndexHidden(const QModelIndex &index) const override
\reimpl
Definition KChartAbstractDiagram.cpp:1011
QList< QPen > datasetPens() const
The set of dataset pens currently used, for use in legends, etc.
Definition KChartAbstractDiagram.cpp:1100
void setUnitSuffix(const QString &suffix, int column, Qt::Orientation orientation)
Set the unit prefix to be used on axes for one specific column.
Definition KChartAbstractDiagram.cpp:930
void setBrush(const QModelIndex &index, const QBrush &brush)
Set the brush to be used, for painting the datapoint at the given index.
Definition KChartAbstractDiagram.cpp:863
void setPercentMode(bool percent)
Deprecated method that turns the percent mode of this diagram on or off.
Definition KChartAbstractDiagram.cpp:369
void setAllowOverlappingDataValueTexts(bool allow)
Set whether data value labels are allowed to overlap.
Definition KChartAbstractDiagram.cpp:344
QStringList itemRowLabels() const
The set of item row labels currently displayed, for use in Abscissa axes, etc.
Definition KChartAbstractDiagram.cpp:1058
bool percentMode() const
Returns whether this diagram is drawn in percent mode.
Definition KChartAbstractDiagram.cpp:375
void setSelectionModel(QItemSelectionModel *selectionModel) override
Associate a seleection model with the diagrom.
Definition KChartAbstractDiagram.cpp:139
void setDatasetDimension(int dimension)
Definition KChartAbstractDiagram.cpp:1143
virtual bool usesExternalAttributesModel() const
Returns whether the diagram is using its own built-in attributes model or an attributes model that wa...
Definition KChartAbstractDiagram.cpp:182
QBrush brush() const
Retrieve the brush to be used for painting datapoints globally.
Definition KChartAbstractDiagram.cpp:884
int datasetDimension() const
The dataset dimension of a diagram determines how many value dimensions it expects each datapoint to ...
Definition KChartAbstractDiagram.cpp:1138
virtual void setCoordinatePlane(AbstractCoordinatePlane *plane)
Set the coordinate plane associated with the diagram.
Definition KChartAbstractDiagram.cpp:219
QModelIndex indexAt(const QPoint &point) const override
\reimpl
Definition KChartAbstractDiagram.cpp:1179
void modelDataChanged()
This signal is emitted, when the model data is changed.
void viewportCoordinateSystemChanged()
Emitted upon change of the view coordinate system.
bool antiAliasing() const
Definition KChartAbstractDiagram.cpp:364
void dataHidden()
This signal is emitted, when the hidden status of at least one data cell was (un)set.
QModelIndexList indexesAt(const QPoint &point) const
This method is added alongside with indexAt from QAIM, since in KChart multiple indexes can be displa...
Definition KChartAbstractDiagram.cpp:1184
void setRootIndex(const QModelIndex &idx) override
Set the root index in the model, where the diagram starts referencing data for display.
Definition KChartAbstractDiagram.cpp:199
void useSubduedColors()
Set the palette to be used, for painting datasets to the subdued palette.
Definition KChartAbstractDiagram.cpp:1048
virtual void paintMarkers(QPainter *painter)
Definition KChartAbstractDiagram.cpp:796
QList< MarkerAttributes > datasetMarkers() const
The set of dataset markers currently used, for use in legends, etc.
Definition KChartAbstractDiagram.cpp:1113
QString unitSuffix(int column, Qt::Orientation orientation, bool fallback=false) const
Retrieves the axis unit suffix for a specific column.
Definition KChartAbstractDiagram.cpp:975
bool isHidden() const
Retrieve the hidden status specified globally.
Definition KChartAbstractDiagram.cpp:266
void setAttributesModelRootIndex(const QModelIndex &)
Definition KChartAbstractDiagram.cpp:205
void useRainbowColors()
Set the palette to be used, for painting datasets to the rainbow palette.
Definition KChartAbstractDiagram.cpp:1053
void boundariesChanged()
Emitted upon change of a data boundary.
QRegion visualRegionForSelection(const QItemSelection &selection) const override
\reimpl
Definition KChartAbstractDiagram.cpp:1025
QModelIndex parent(const QModelIndex &index) const override
Definition KChartAbstractProxyModel.cpp:77
A proxy model used for decorating data with attributes.
Definition KChartAttributesModel.h:33
Diagram attributes dealing with data value labels.
Definition KChartDataValueAttributes.h:42
A set of attributes controlling the appearance of data set markers.
Definition KChartMarkerAttributes.h:30
CursorAction
QAbstractItemView(QWidget *parent)
ScrollHint
QAbstractItemModel * model() const const
QItemSelectionModel * selectionModel() const const
typedef SelectionFlags
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
typedef KeyboardModifiers
Orientation
enabled
pos
rect
size
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.