KChart
KChartAbstractCartesianDiagram.cpp
42 AbstractCartesianDiagram::AbstractCartesianDiagram ( QWidget* parent, CartesianCoordinatePlane* plane )
59 // NOTE: These signals are disconnected elsewhere (e.g: Plotter) so be careful to make any changes.
62 connect( this, SIGNAL(attributesModelAboutToChange(KChart::AttributesModel*,KChart::AttributesModel*)),
134 void AbstractCartesianDiagram::setReferenceDiagram( AbstractCartesianDiagram* diagram, const QPointF& offset )
174 // The compressor must receive model signals before the diagram because the diagram will ask the
181 // ### A better design would be to properly recognize that the compressor is the real data interface
182 // for Cartesian diagrams and make diagrams listen to updates from the *compressor*, not the model.
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
virtual void setParentWidget(QWidget *widget)
Inform the item about its widget: This enables the item, to trigger that widget's update,...
Definition: KChartLayoutItems.cpp:35
bool compare(const AbstractCartesianDiagram *other) const
Returns true if both diagrams have the same settings.
Definition: KChartAbstractCartesianDiagram.cpp:26
virtual QPointF referenceDiagramOffset() const
Definition: KChartAbstractCartesianDiagram.cpp:145
virtual void takeAxis(CartesianAxis *axis)
Removes the axis from the diagram, without deleting it.
Definition: KChartAbstractCartesianDiagram.cpp:80
virtual void layoutPlanes()
Triggers layouting of all coordinate planes on the current chart.
Definition: KChartAbstractCartesianDiagram.cpp:95
virtual void setReferenceDiagram(AbstractCartesianDiagram *diagram, const QPointF &offset=QPointF())
Makes this diagram use another diagram diagram as reference diagram with relative offset offset.
Definition: KChartAbstractCartesianDiagram.cpp:134
QAbstractItemModel * model() const const
Class only listed here to document inheritance of some KChart classes.
virtual AttributesModel * attributesModel() const
Returns the AttributesModel, that is used by this diagram.
Definition: KChartAbstractDiagram.cpp:187
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Definition: KChartAbstractCoordinatePlane.h:30
virtual void setCoordinatePlane(AbstractCoordinatePlane *plane)
Set the coordinate plane associated with the diagram.
Definition: KChartAbstractDiagram.cpp:219
Definition: KChartPosition.h:22
void viewportCoordinateSystemChanged()
Emitted upon change of the view coordinate system.
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Cartesian coordinate plane.
Definition: KChartCartesianCoordinatePlane.h:25
void setCoordinatePlane(AbstractCoordinatePlane *plane) override
\reimpl
Definition: KChartAbstractCartesianDiagram.cpp:103
virtual KChart::CartesianAxisList axes() const
Definition: KChartAbstractCartesianDiagram.cpp:90
void deleteObserver(AbstractDiagram *diagram)
Definition: KChartAbstractAxis.cpp:158
virtual AbstractCartesianDiagram * referenceDiagram() const
Definition: KChartAbstractCartesianDiagram.cpp:140
A proxy model used for decorating data with attributes.
Definition: KChartAttributesModel.h:32
void createObserver(AbstractDiagram *diagram)
Definition: KChartAbstractAxis.cpp:153
void layoutPlanes()
Calling layoutPlanes() on the plane triggers the global KChart::Chart::slotLayoutPlanes()
Definition: KChartAbstractCoordinatePlane.cpp:249
virtual void addAxis(CartesianAxis *axis)
Add the axis to the diagram.
Definition: KChartAbstractCartesianDiagram.cpp:71
void attributesModelAboutToChange(KChart::AttributesModel *newModel, KChart::AttributesModel *oldModel)
This signal is emitted just before the new attributes model is connected internally.
AbstractDiagram defines the interface for diagram classes.
Definition: KChartAbstractDiagram.h:36
void setModel(QAbstractItemModel *model) override
Associate a model with the diagram.
Definition: KChartAbstractDiagram.cpp:122
virtual void setAttributesModel(AttributesModel *model)
Associate an AttributesModel with this diagram.
Definition: KChartAbstractDiagram.cpp:162
void layoutChanged(KChart::AbstractDiagram *)
Diagrams are supposed to emit this signal, when the layout of one of their element changes.
void setAttributesModel(AttributesModel *model) override
Associate an AttributesModel with this diagram.
Definition: KChartAbstractCartesianDiagram.cpp:164
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 Thu Sep 21 2023 03:54:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 03:54:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.