Search for usage in LXR

KChart::PolarGrid Class Reference

#include <KChartPolarGrid.h>

Inheritance diagram for KChart::PolarGrid:

Public Member Functions

void drawGrid (PaintContext *context) override
- Public Member Functions inherited from KChart::AbstractGrid
void setNeedRecalculate ()
DataDimensionsList updateData (AbstractCoordinatePlane *plane)

Additional Inherited Members

- Static Public Member Functions inherited from KChart::AbstractGrid
static const DataDimension adjustedLowerUpperRange (const DataDimension &dim, bool adjustLower, bool adjustUpper)
static void adjustLowerUpperRange (qreal &start, qreal &end, qreal stepWidth, bool adjustLower, bool adjustUpper)
static bool isBoundariesValid (const DataDimensionsList &l)
static bool isBoundariesValid (const QPair< QPointF, QPointF > &b)
static bool isBoundariesValid (const QRectF &r)
static bool isValueValid (const qreal &r)
- Public Attributes inherited from KChart::AbstractGrid
GridAttributes gridAttributes
- Protected Attributes inherited from KChart::AbstractGrid
DataDimensionsList mDataDimensions

Detailed Description

Class for the grid in a polar plane.

The PolarGrid interface is used for calculating and for drawing the sagittal grid lines, and the circular grid lines of a polar coordinate plane.

Definition at line 30 of file KChartPolarGrid.h.

Constructor & Destructor Documentation

◆ PolarGrid()

KChart::PolarGrid::PolarGrid ( )

Definition at line 33 of file KChartPolarGrid.h.

◆ ~PolarGrid()

KChart::PolarGrid::~PolarGrid ( )

Definition at line 34 of file KChartPolarGrid.h.

Member Function Documentation

◆ drawGrid()

void PolarGrid::drawGrid ( PaintContext * context)

Doing the actual drawing.

Every derived class must implement this.

When implementing drawGrid(): Before you start drawing, make sure to call updateData(), to get the data boundaries recalculated. For an example, see the implementation of CartesianGrid:drawGrid().

Implements KChart::AbstractGrid.

Definition at line 41 of file KChartPolarGrid.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:59:21 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.