KChart
KChartAbstractCoordinatePlane.cpp
88 void AbstractCoordinatePlane::replaceDiagram ( AbstractDiagram* diagram, AbstractDiagram* oldDiagram_ )
173 void KChart::AbstractCoordinatePlane::setReferenceCoordinatePlane( AbstractCoordinatePlane * plane )
300 d->rubberBand = new QRubberBand( QRubberBand::Rectangle, qobject_cast< QWidget* >( parent() ) );
354 d->rubberBandZoomConfigHistory.push( ZoomParameters( zoomFactorX(), zoomFactorY(), zoomCenter() ) );
363 const qreal centerX = qFloor( d->rubberBand->geometry().width() / 2.0 + d->rubberBand->geometry().x() );
364 const qreal centerY = qCeil( d->rubberBand->geometry().height() / 2.0 + d->rubberBand->geometry().y() );
374 const qreal newCenterX = rubberCenterX / myWidth / zoomFactorX() + zoomCenter().x() - 0.5 / zoomFactorX();
375 const qreal newCenterY = rubberCenterY / myHeight / zoomFactorY() + zoomCenter().y() - 0.5 / zoomFactorY();
442 << " calcMode=" << ( r.calcMode == AbstractCoordinatePlane::Logarithmic ? "Logarithmic" : "Linear" )
void setCornerSpacersEnabled(bool enable)
Enables or disables the use of spacers in the plane corners.
Definition: KChartAbstractCoordinatePlane.cpp:282
Helper class for one dimension of data, e.g.
Definition: KChartAbstractCoordinatePlane.h:375
DataDimensionsList gridDimensionsList()
Returns the dimensions used for drawing the grid lines.
Definition: KChartAbstractCoordinatePlane.cpp:163
QSize maximumSize() const override
pure virtual in QLayoutItem
Definition: KChartAbstractCoordinatePlane.cpp:211
Class only listed here to document inheritance of some KChart classes.
void modelDataChanged()
This signal is emitted, when the model data is changed.
AbstractDiagram defines the interface for diagram classes.
Definition: KChartAbstractDiagram.h:47
bool isEmpty() const override
pure virtual in QLayoutItem
Definition: KChartAbstractCoordinatePlane.cpp:199
void push_back(const T &value)
bool isCornerSpacersEnabled() const
Definition: KChartAbstractCoordinatePlane.cpp:290
void update()
Calling update() on the plane triggers the global KChart::Chart::update()
Definition: KChartAbstractCoordinatePlane.cpp:248
LeftButton
int height() const const
int x() const const
int y() const const
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void setParent(QWidget *parent)
virtual void mouseReleaseEvent(QMouseEvent *event) override
void update()
void setGridNeedsRecalculate()
Used by the chart to clear the cached grid data.
Definition: KChartAbstractCoordinatePlane.cpp:168
const QRect & geometry() const const
void layoutPlanes()
Calling layoutPlanes() on the plane triggers the global KChart::Chart::slotLayoutPlanes() ...
Definition: KChartAbstractCoordinatePlane.cpp:260
GridAttributes globalGridAttributes() const
Definition: KChartAbstractCoordinatePlane.cpp:158
QSize minimumSize() const override
pure virtual in QLayoutItem
Definition: KChartAbstractCoordinatePlane.cpp:218
void setRubberBandZoomingEnabled(bool enable)
Enables or disables zooming with a rubber band using the mouse.
Definition: KChartAbstractCoordinatePlane.cpp:266
void setParent(Chart *parent)
Called internally by KChart::Chart.
Definition: KChartAbstractCoordinatePlane.cpp:183
AbstractCoordinatePlane * referenceCoordinatePlane() const
There are two ways, in which planes can be caused to interact, in where they are put layouting wise: ...
Definition: KChartAbstractCoordinatePlane.cpp:178
virtual void takeDiagram(AbstractDiagram *diagram)
Removes the diagram from the plane, without deleting it.
Definition: KChartAbstractCoordinatePlane.cpp:109
void setReferenceCoordinatePlane(AbstractCoordinatePlane *plane)
Set another coordinate plane to be used as the reference plane for this one.
Definition: KChartAbstractCoordinatePlane.cpp:173
Qt::MouseButton button() const const
bool isVisiblePoint(const QPointF &point) const
Tests, if a point is visible on the coordinate plane.
Definition: KChartAbstractCoordinatePlane.cpp:421
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane, TernaryCoordinatePlane.
Definition: KChartAbstractCoordinatePlane.h:41
ZoomParameters stores the center and the factor of zooming internally.
Definition: KChartZoomParameters.h:39
Definition: KChartPosition.h:33
void hide()
QRect geometry() const override
pure virtual in QLayoutItem
Definition: KChartAbstractCoordinatePlane.cpp:243
virtual void setCoordinatePlane(AbstractCoordinatePlane *plane)
Set the coordinate plane associated with the diagram.
Definition: KChartAbstractDiagram.cpp:231
QSize sizeHint() const override
pure virtual in QLayoutItem
Definition: KChartAbstractCoordinatePlane.cpp:223
An area in the chart with a background, a frame, etc.
Definition: KChartAbstractArea.h:44
virtual void replaceDiagram(AbstractDiagram *diagram, AbstractDiagram *oldDiagram=nullptr)
Replaces the old diagram, or appends the diagram, it there is none yet.
Definition: KChartAbstractCoordinatePlane.cpp:88
virtual void addDiagram(AbstractDiagram *diagram)
Adds a diagram to this coordinate plane.
Definition: KChartAbstractCoordinatePlane.cpp:68
Qt::Orientations expandingDirections() const override
pure virtual in QLayoutItem
Definition: KChartAbstractCoordinatePlane.cpp:206
virtual void mouseMoveEvent(QMouseEvent *event) override
QSize maximumSize() const const
void modelsChanged()
This signal is emitted when either the model or the AttributesModel is replaced.
static QString granularitySequenceToString(GranularitySequence sequence)
Converts the specified granularity sequence enum to a string representation.
Definition: KChartEnums.h:106
virtual bool event(QEvent *event) override
void setGeometry(const QRect &r) override
pure virtual in QLayoutItem
Definition: KChartAbstractCoordinatePlane.cpp:230
void setGlobalGridAttributes(const GridAttributes &)
Set the grid attributes to be used by this coordinate plane.
Definition: KChartAbstractCoordinatePlane.cpp:152
int width() const const
Definition of global enums.
virtual void mousePressEvent(QMouseEvent *event) override
AbstractDiagram * diagram()
Definition: KChartAbstractCoordinatePlane.cpp:125
A set of attributes controlling the appearance of grids.
Definition: KChartGridAttributes.h:36
virtual void layoutPlanes()
Triggers layouting of all coordinate planes on the current chart.
Definition: KChartAbstractCartesianDiagram.cpp:105
bool isRubberBandZoomingEnabled() const
Definition: KChartAbstractCoordinatePlane.cpp:277
void boundariesChanged()
Emitted upon change of a data boundary.
typedef Orientations
QPoint pos() const const
void relayout()
Calling relayout() on the plane triggers the global KChart::Chart::slotRelayout() ...
Definition: KChartAbstractCoordinatePlane.cpp:254
QueuedConnection
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
T qobject_cast(QObject *object)
QObject * parent() const const
virtual void mouseDoubleClickEvent(QMouseEvent *event) override
Q_EMITQ_EMIT
Rectangle
AbstractDiagramList diagrams()
Definition: KChartAbstractCoordinatePlane.cpp:135
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Apr 10 2021 22:36:39 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Apr 10 2021 22:36:39 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.