KChart
KChartLeveyJenningsGrid.cpp
24DataDimensionsList LeveyJenningsGrid::calculateGrid( const DataDimensionsList& rawDataDimensions ) const
74 //qDebug() << "CartesianGrid::calculateGrid() final grid y-range:" << l.last().end - l.last().start << " step width:" << l.last().stepWidth << endl;
85 //qDebug() << "CartesianGrid::calculateGrid() final grid Y-range:" << l.last().end - l.last().start << " step width:" << l.last().stepWidth;
86 //qDebug() << "CartesianGrid::calculateGrid() final grid X-range:" << l.first().end - l.first().start << " step width:" << l.first().stepWidth;
143 //qDebug("-----------------------------------\nstart: %f end: %f power-of-ten: %i", start_, end_, power);
167 //qDebug( "start: %f end: %f step width: %f steps: %f distance: %f", start, end, stepWidth, steps, distance);
245 //qDebug("LeveyJenningsGrid::calculateStepWidth() found stepWidth %f (%f steps) and sub-stepWidth %f", stepWidth, steps, subStepWidth);
294 QPointF bottomRight = plane->translate( QPointF( dimX.end, meanValue + 2 * standardDeviation ) );
295 context->painter()->fillRect( QRectF( topLeft, QSizeF( bottomRight.x() - topLeft.x(), bottomRight.y() - topLeft.y() ) ),
301 context->painter()->fillRect( QRectF( topLeft, QSizeF( bottomRight.x() - topLeft.x(), bottomRight.y() - topLeft.y() ) ),
306 context->painter()->fillRect( QRectF( topLeft, QSizeF( bottomRight.x() - topLeft.x(), bottomRight.y() - topLeft.y() ) ),
312 context->painter()->fillRect( QRectF( topLeft, QSizeF( bottomRight.x() - topLeft.x(), bottomRight.y() - topLeft.y() ) ),
317 context->painter()->fillRect( QRectF( topLeft, QSizeF( bottomRight.x() - topLeft.x(), bottomRight.y() - topLeft.y() ) ),
326 context->painter()->drawLine( plane->translate( QPointF( dimX.start, meanValue + 2 * standardDeviation ) ),
328 context->painter()->drawLine( plane->translate( QPointF( dimX.start, meanValue + 3 * standardDeviation ) ),
330 context->painter()->drawLine( plane->translate( QPointF( dimX.start, meanValue + 4 * standardDeviation ) ),
332 context->painter()->drawLine( plane->translate( QPointF( dimX.start, meanValue - 2 * standardDeviation ) ),
334 context->painter()->drawLine( plane->translate( QPointF( dimX.start, meanValue - 3 * standardDeviation ) ),
336 context->painter()->drawLine( plane->translate( QPointF( dimX.start, meanValue - 4 * standardDeviation ) ),
346 context->painter()->drawLine( plane->translate( QPointF( dimX.start, calcMeanValue + 2 * calcStandardDeviation ) ),
348 context->painter()->drawLine( plane->translate( QPointF( dimX.start, calcMeanValue + 3 * calcStandardDeviation ) ),
350 context->painter()->drawLine( plane->translate( QPointF( dimX.start, calcMeanValue - 2 * calcStandardDeviation ) ),
QRect geometry() const override
pure virtual in QLayoutItem
Definition KChartAbstractCoordinatePlane.cpp:232
AbstractDiagram * diagram()
Definition KChartAbstractCoordinatePlane.cpp:114
DataDimensionsList updateData(AbstractCoordinatePlane *plane)
Returns the cached result of data calculation.
Definition KChartAbstractGrid.cpp:43
static void adjustLowerUpperRange(qreal &start, qreal &end, qreal stepWidth, bool adjustLower, bool adjustUpper)
Adjusts start and/or end so that they are a multiple of stepWidth.
Definition KChartAbstractGrid.cpp:82
static bool isBoundariesValid(const QRectF &r)
Checks whether both coordinates of r are valid according to isValueValid.
Definition KChartAbstractGrid.cpp:58
const QPointF translate(const QPointF &diagramPoint) const override
Translate the given point in value space coordinates to a position in pixel space.
Definition KChartCartesianCoordinatePlane.cpp:442
qreal zoomFactorX() const override
Definition KChartCartesianCoordinatePlane.cpp:543
bool autoAdjustGridToZoom() const
Return the status of the built-in grid adjusting feature.
Definition KChartCartesianCoordinatePlane.cpp:763
qreal zoomFactorY() const override
Definition KChartCartesianCoordinatePlane.cpp:548
Helper class for one dimension of data, e.g.
Definition KChartAbstractCoordinatePlane.h:364
Levey Jennings coordinate plane This is actually nothing real more than a plain cartesian coordinate ...
Definition KChartLeveyJenningsCoordinatePlane.h:28
LeveyDiagram defines a Levey Jennings chart.
Definition KChartLeveyJenningsDiagram.h:31
float expectedStandardDeviation() const
Returns the expected standard deviation over all QC values.
Definition KChartLeveyJenningsDiagram.cpp:217
float calculatedStandardDeviation() const
Returns the calculated standard deviation over all QC values.
Definition KChartLeveyJenningsDiagram.cpp:227
float expectedMeanValue() const
Returns the expected mean values over all QC values.
Definition KChartLeveyJenningsDiagram.cpp:202
float calculatedMeanValue() const
Returns the calculated mean values over all QC values.
Definition KChartLeveyJenningsDiagram.cpp:222
A set of attributes controlling the appearance of grids.
Definition KChartLeveyJenningsGridAttributes.h:26
void drawGrid(PaintContext *context) override
Doing the actual drawing.
Definition KChartLeveyJenningsGrid.cpp:248
Q_SCRIPTABLE Q_NOREPLY void start()
KIOCORE_EXPORT QStringList list(const QString &fileClass)
const QList< QKeySequence > & end()
KOSM_EXPORT double distance(const std::vector< const OSM::Node * > &path, Coordinate coord)
const_reference at(qsizetype i) const const
iterator begin()
qsizetype count() const const
iterator end()
T & first()
T & last()
void drawLine(const QLine &line)
void fillRect(const QRect &rectangle, QGradient::Preset preset)
void setPen(Qt::PenStyle style)
qreal x() const const
qreal y() const const
QPoint bottomLeft() const const
QPoint topRight() const const
int width() const const
Horizontal
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.