KChart
KChartRadarDiagram.cpp
93static qreal fitFontSizeToGeometry( const QString& text, const QFont& font, const QRectF& geometry, const TextAttributes& ta )
119static QPointF scaleToRealPosition( const QPointF& origin, const QRectF& sourceRect, const QRectF& destRect, const AbstractCoordinatePlane& plane )
143 Polygon(const QPolygonF &polygon, const QBrush &brush, const QPen &pen) : polygon(polygon), brush(brush), pen(pen) {}
169 const qreal labelFontSize = fitFontSizeToGeometry( QString::fromLatin1( "TestXYWQgqy" ), ta.font(), fontRect, ta );
192 QPointF point = scaleToRealPosition( QPointF( value, iRow ), ctx->rectangle(), destRect, *ctx->coordinatePlane() );
231 QPointF point = scaleToRealPosition( QPointF( value, d->reverseData ? ( rowCount - iRow ) : iRow ), ctx->rectangle(), destRect, *ctx->coordinatePlane() );
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Definition KChartAbstractCoordinatePlane.h:31
virtual const QPointF translate(const QPointF &diagramPoint) const =0
Translate the given point in value space coordinates to a position in pixel space.
QRect geometry() const override
pure virtual in QLayoutItem
Definition KChartAbstractCoordinatePlane.cpp:232
virtual qreal zoomFactorY() const
Definition KChartAbstractCoordinatePlane.h:132
virtual qreal zoomFactorX() const
Definition KChartAbstractCoordinatePlane.h:126
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
AbstractCoordinatePlane * coordinatePlane() const
The coordinate plane associated with the diagram.
Definition KChartAbstractDiagram.cpp:96
QBrush brush() const
Retrieve the brush to be used for painting datapoints globally.
Definition KChartAbstractDiagram.cpp:884
Base class for diagrams based on a polar coordinate system.
Definition KChartAbstractPolarDiagram.h:23
Stores the absolute target points of a Position.
Definition KChartPosition.h:132
const TextAttributes textAttributes() const
Definition KChartRadarCoordinatePlane.cpp:30
virtual RadarDiagram * clone() const
Creates an exact copy of this diagram.
Definition KChartRadarDiagram.cpp:47
void setReverseData(bool val)
if val is true the diagram will mirror the diagram datapoints
Definition KChartRadarDiagram.cpp:129
qreal fillAlpha() const
Fill the areas of the radar chart with there respective color defined via KChart::DatasetBrushRole.
Definition KChartRadarDiagram.cpp:308
const QPair< QPointF, QPointF > calculateDataBoundaries() const override
\reimpl
Definition KChartRadarDiagram.cpp:55
void setCloseDatasets(bool closeDatasets)
Close each of the data series by connecting the last point to its respective start point.
Definition KChartRadarDiagram.cpp:298
virtual int columnCount(const QModelIndex &parent) const const=0
virtual QVariant data(const QModelIndex &index, int role) const const=0
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const=0
virtual int rowCount(const QModelIndex &parent) const const=0
QAbstractItemModel * model() const const
QModelIndex rootIndex() const const
QWidget * viewport() const const
const QColor & color() const const
void setColor(Qt::GlobalColor color)
void setAlphaF(float alpha)
qreal pointSizeF() const const
void setPointSizeF(qreal pointSize)
void append(QList< T > &&value)
Antialiasing
void drawPolygon(const QPoint *points, int pointCount, Qt::FillRule fillRule)
void drawPolyline(const QPoint *points, int pointCount)
void restore()
void save()
void setBrush(Qt::BrushStyle style)
void setPen(Qt::PenStyle style)
void setRenderHint(RenderHint hint, bool on)
void setX(qreal x)
void setY(qreal y)
qreal x() const const
qreal y() const const
int bottom() const const
int height() const const
int left() const const
int right() const const
int top() const const
int width() const const
qreal height() const const
QRectF normalized() const const
void setHeight(qreal height)
void setSize(const QSizeF &size)
void setY(qreal y)
QSizeF size() const const
QRect toRect() const const
QPointF topLeft() const const
qreal width() const const
qreal y() const const
qreal height() const const
bool isNull() const const
qreal width() const const
QString fromLatin1(QByteArrayView str)
NoPen
qreal toReal(bool *ok) const const
height
virtual int metric(PaintDeviceMetric m) const const override
void resize(const QSize &)
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:04:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:04:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.