KChart
KChartAbstractCartesianDiagram.cpp
42AbstractCartesianDiagram::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*)),
134void 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.
183 // However, this would change the outside interface of AbstractCartesianDiagram which would be bad.
void deleteObserver(AbstractDiagram *diagram)
Definition KChartAbstractAxis.cpp:158
void createObserver(AbstractDiagram *diagram)
Definition KChartAbstractAxis.cpp:153
Base class for diagrams based on a cartesian coordianate system.
Definition KChartAbstractCartesianDiagram.h:28
virtual KChart::CartesianAxisList axes() const
Definition KChartAbstractCartesianDiagram.cpp:90
virtual void addAxis(CartesianAxis *axis)
Add the axis to the diagram.
Definition KChartAbstractCartesianDiagram.cpp:71
virtual QPointF referenceDiagramOffset() const
Definition KChartAbstractCartesianDiagram.cpp:145
void setAttributesModel(AttributesModel *model) override
Associate an AttributesModel with this diagram.
Definition KChartAbstractCartesianDiagram.cpp:164
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
virtual AbstractCartesianDiagram * referenceDiagram() const
Definition KChartAbstractCartesianDiagram.cpp:140
virtual void takeAxis(CartesianAxis *axis)
Removes the axis from the diagram, without deleting it.
Definition KChartAbstractCartesianDiagram.cpp:80
bool compare(const AbstractCartesianDiagram *other) const
Returns true if both diagrams have the same settings.
Definition KChartAbstractCartesianDiagram.cpp:26
virtual void layoutPlanes()
Triggers layouting of all coordinate planes on the current chart.
Definition KChartAbstractCartesianDiagram.cpp:95
void setCoordinatePlane(AbstractCoordinatePlane *plane) override
\reimpl
Definition KChartAbstractCartesianDiagram.cpp:103
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Definition KChartAbstractCoordinatePlane.h:31
void layoutPlanes()
Calling layoutPlanes() on the plane triggers the global KChart::Chart::slotLayoutPlanes()
Definition KChartAbstractCoordinatePlane.cpp:249
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
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 attributesModelAboutToChange(KChart::AttributesModel *newModel, KChart::AttributesModel *oldModel)
This signal is emitted just before the new attributes model is connected internally.
void layoutChanged(KChart::AbstractDiagram *)
Diagrams are supposed to emit this signal, when the layout of one of their element changes.
virtual void setAttributesModel(AttributesModel *model)
Associate an AttributesModel with this diagram.
Definition KChartAbstractDiagram.cpp:162
virtual void setCoordinatePlane(AbstractCoordinatePlane *plane)
Set the coordinate plane associated with the diagram.
Definition KChartAbstractDiagram.cpp:219
void viewportCoordinateSystemChanged()
Emitted upon change of the view coordinate system.
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
A proxy model used for decorating data with attributes.
Definition KChartAttributesModel.h:33
Cartesian coordinate plane.
Definition KChartCartesianCoordinatePlane.h:26
QAbstractItemModel * model() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
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.