KD Chart API Documentation  3.1
Public Member Functions | List of all members
KDChart::PolarGrid Class Reference

#include <KDChartPolarGrid.h>

Inheritance diagram for KDChart::PolarGrid:
KDChart::AbstractGrid

Public Member Functions

 PolarGrid ()
 
 ~PolarGrid () override
 
void drawGrid (PaintContext *context) override
 
- Public Member Functions inherited from KDChart::AbstractGrid
virtual ~AbstractGrid ()
 
void setNeedRecalculate ()
 
DataDimensionsList updateData (AbstractCoordinatePlane *plane)
 Returns the cached result of data calculation. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from KDChart::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 KDChart::AbstractGrid
GridAttributes gridAttributes
 
- Protected Member Functions inherited from KDChart::AbstractGrid
 AbstractGrid ()
 
- Protected Attributes inherited from KDChart::AbstractGrid
DataDimensionsList mDataDimensions
 
AbstractCoordinatePlanemPlane = nullptr
 

Detailed Description

Definition at line 32 of file KDChartPolarGrid.h.

Constructor & Destructor Documentation

◆ PolarGrid()

KDChart::PolarGrid::PolarGrid ( )
inline

Definition at line 35 of file KDChartPolarGrid.h.

◆ ~PolarGrid()

KDChart::PolarGrid::~PolarGrid ( )
inlineoverride

Definition at line 39 of file KDChartPolarGrid.h.

Member Function Documentation

◆ drawGrid()

void PolarGrid::drawGrid ( PaintContext context)
overridevirtual

Doing the actual drawing.

Every derived class must implement this.

Note
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 KDChart::AbstractGrid.

Definition at line 41 of file KDChartPolarGrid.cpp.

References KDChart::PaintContext::coordinatePlane(), KDChart::AbstractDiagram::dataBoundaries(), KDChart::GridAttributes::isGridVisible(), KDChart::AbstractPolarDiagram::numberOfGridRings(), KDChart::PaintContext::painter(), KDChart::PaintContext::rectangle(), and KDChart::PrintingParameters::scalePen().


The documentation for this class was generated from the following files:

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated by doxygen 1.9.1