KChart
KChartPlotter.cpp
67 // The signal is connected to the superclass's slot at this point because the connection happened
116 connect( &d->plotterCompressor, SIGNAL(boundariesChanged()), this, SLOT(setDataBoundariesDirty()) );
262 d->attributesModel->mapFromSource( index ), KChart::LineAttributesRole ).value<LineAttributes>();
279 void Plotter::setThreeDLineAttributes( const QModelIndex& index, const ThreeDLineAttributes& la )
282 d->attributesModel->setData( d->attributesModel->mapFromSource( index ), QVariant::fromValue( la ),
289 return d->attributesModel->data( KChart::ThreeDLineAttributesRole ).value<ThreeDLineAttributes>();
304 d->attributesModel->mapFromSource( index ), KChart::ThreeDLineAttributesRole ).value<ThreeDLineAttributes>();
317 void Plotter::setValueTrackerAttributes( const QModelIndex & index, const ValueTrackerAttributes & va )
327 d->attributesModel->mapFromSource( index ), KChart::ValueTrackerAttributesRole ).value<ValueTrackerAttributes>();
405 CartesianCoordinatePlane *plane = dynamic_cast< CartesianCoordinatePlane* >( coordinatePlane() );
407 //Q_ASSERT( plane->translate( plane->translateBack( plane->visibleDiagramArea().topLeft() ) ) == plane->visibleDiagramArea().topLeft() );
410 const qreal radius = std::sqrt( ( range.x() + range.width() ) * ( range.y() + range.height() ) );
Class only listed here to document inheritance of some KChart classes.
virtual int rowCount(const QModelIndex &parent) const const =0
A set of 3D line attributes.
Definition: KChartThreeDLineAttributes.h:32
Plotter defines a diagram type plotting two-dimensional data.
Definition: KChartPlotter.h:35
qreal x() const const
qreal y() const const
static bool isBoundariesValid(const QRectF &r)
Checks whether both coordinates of r are valid according to isValueValid.
Definition: KChartAbstractGrid.cpp:69
const QPair< QPointF, QPointF > calculateDataBoundaries() const override
Definition: KChartPlotter.cpp:334
bool compare(const Plotter *other) const
Returns true if both diagrams have the same settings.
Definition: KChartPlotter.cpp:87
QModelIndex attributesModelRootIndex() const
Definition: KChartAbstractDiagram.cpp:224
T value() const const
QWidget * viewport() const const
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:113
void resize(const QSizeF &area) override
Called by the widget's sizeEvent.
Definition: KChartPlotter.cpp:381
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void setType(const PlotType type)
Sets the plotter's type to type.
Definition: KChartPlotter.cpp:173
Set of attributes for changing the appearance of line charts.
Definition: KChartLineAttributes.h:31
int width() const const
void paint(PaintContext *paintContext) override
Definition: KChartPieDiagram.cpp:128
virtual AttributesModel * attributesModel() const
Returns the AttributesModel, that is used by this diagram.
Definition: KChartAbstractDiagram.cpp:199
QSize size() const const
void propertiesChanged()
Emitted upon change of a property of the Diagram.
KGuiItem test()
Class only listed here to document inheritance of some KChart classes.
Base class for diagrams based on a cartesian coordianate system.
Definition: KChartAbstractCartesianDiagram.h:38
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane, TernaryCoordinatePlane.
Definition: KChartAbstractCoordinatePlane.h:41
void layoutChanged(AbstractDiagram *)
Diagrams are supposed to emit this signal, when the layout of one of their element changes...
ThreeDLineAttributes threeDLineAttributes() const
Definition: KChartPlotter.cpp:287
bool compare(const AbstractPieDiagram *other) const
Returns true if both diagrams have the same settings.
Definition: KChartAbstractPieDiagram.cpp:57
A proxy model used for decorating data with attributes.
Definition: KChartAttributesModel.h:43
void resetLineAttributes(int column)
Resets the line attributes of data set column.
Definition: KChartPlotter.cpp:226
ValueTrackerAttributes valueTrackerAttributes(const QModelIndex &index) const
Returns the value tracker attributes of the model index index.
Definition: KChartPlotter.cpp:324
Definition: KChartWidget.h:32
Cell-specific attributes regarding value tracking.
Definition: KChartValueTrackerAttributes.h:39
QVariant fromValue(const T &value)
QCA_EXPORT void init()
QModelIndex rootIndex() const const
virtual void resize(const QSizeF &area)
Called by the widget's sizeEvent.
Definition: KChartAbstractDiagram.cpp:128
qreal width() const const
virtual int columnCount(const QModelIndex &parent) const const =0
qreal threeDItemDepth(const QModelIndex &index) const override
Definition: KChartPlotter.cpp:307
Cartesian coordinate plane.
Definition: KChartCartesianCoordinatePlane.h:36
AbstractCoordinatePlane * coordinatePlane() const
The coordinate plane associated with the diagram.
Definition: KChartAbstractDiagram.cpp:108
void setThreeDLineAttributes(const ThreeDLineAttributes &la)
Sets the global 3D line attributes to la.
Definition: KChartPlotter.cpp:265
void attributesModelAboutToChange(AttributesModel *newModel, AttributesModel *oldModel)
This signal is emitted just before the new attributes model is connected internally.
qreal height() const const
void boundariesChanged()
Emitted upon change of a data boundary.
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: KChartPlotter.cpp:357
void setValueTrackerAttributes(const QModelIndex &index, const ValueTrackerAttributes &va)
Sets the value tracker attributes of the model index index to va.
Definition: KChartPlotter.cpp:317
QAbstractItemModel * model() const const
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const const
void setLineAttributes(const LineAttributes &la)
Sets the global line attributes to la.
Definition: KChartPlotter.cpp:214
virtual Plotter * clone() const
Creates an exact copy of this diagram.
Definition: KChartPlotter.cpp:80
int datasetDimension() const
The dataset dimension of a diagram determines how many value dimensions it expects each datapoint to ...
Definition: KChartAbstractDiagram.cpp:1144
QRectF visibleDataRange() const
Returns the currently visible data range.
Definition: KChartCartesianCoordinatePlane.cpp:854
int height() const const
Q_EMITQ_EMIT
LineAttributes lineAttributes() const
Definition: KChartPlotter.cpp:246
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 20 2021 22:39:31 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 20 2021 22:39:31 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.