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

Radar coordinate plane. More...

#include <KDChartRadarCoordinatePlane.h>

Inheritance diagram for KDChart::RadarCoordinatePlane:
KDChart::PolarCoordinatePlane KDChart::AbstractCoordinatePlane KDChart::AbstractArea KDChart::AbstractAreaBase KDChart::AbstractLayoutItem

Public Member Functions

 RadarCoordinatePlane (Chart *parent=nullptr)
 
 ~RadarCoordinatePlane () override
 
void setTextAttributes (const TextAttributes &attr)
 
const TextAttributes textAttributes () const
 
- Public Member Functions inherited from KDChart::PolarCoordinatePlane
 PolarCoordinatePlane (Chart *parent=nullptr)
 
 ~PolarCoordinatePlane () override
 
void addDiagram (AbstractDiagram *diagram) override
 
qreal angleUnit () const
 
const GridAttributes gridAttributes (bool circular) const
 
bool hasOwnGridAttributes (bool circular) const
 
void paint (QPainter *) override
 
qreal radiusUnit () const
 
void resetGridAttributes (bool circular)
 
void setGridAttributes (bool circular, const GridAttributes &)
 
void setStartPosition (qreal degrees)
 Specify the rotation of the coordinate plane. More...
 
void setZoomCenter (const QPointF &center) override
 
void setZoomFactors (qreal factorX, qreal factorY) override
 
void setZoomFactorX (qreal factor) override
 
void setZoomFactorY (qreal factor) override
 
qreal startPosition () const
 
const QPointF translate (const QPointF &diagramPoint) const override
 
const QPointF translatePolar (const QPointF &diagramPoint) const
 
QPointF zoomCenter () const override
 
qreal zoomFactorX () const override
 
qreal zoomFactorY () const override
 
- Public Member Functions inherited from KDChart::AbstractCoordinatePlane
 ~AbstractCoordinatePlane () override
 
AbstractDiagramdiagram ()
 
AbstractDiagramList diagrams ()
 
ConstAbstractDiagramList diagrams () const
 
Qt::Orientations expandingDirections () const override
 
QRect geometry () const override
 
GridAttributes globalGridAttributes () const
 
DataDimensionsList gridDimensionsList ()
 
bool isCornerSpacersEnabled () const
 
bool isEmpty () const override
 
bool isRubberBandZoomingEnabled () const
 
bool isVisiblePoint (const QPointF &point) const
 
QSize maximumSize () const override
 
QSize minimumSize () const override
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
Chartparent ()
 
const Chartparent () const
 
AbstractCoordinatePlanereferenceCoordinatePlane () const
 
virtual void replaceDiagram (AbstractDiagram *diagram, AbstractDiagram *oldDiagram=nullptr)
 
void setCornerSpacersEnabled (bool enable)
 
void setGeometry (const QRect &r) override
 
void setGlobalGridAttributes (const GridAttributes &)
 
void setParent (Chart *parent)
 
void setReferenceCoordinatePlane (AbstractCoordinatePlane *plane)
 
void setRubberBandZoomingEnabled (bool enable)
 
virtual AbstractCoordinatePlanesharedAxisMasterPlane (QPainter *p=nullptr)
 
QSize sizeHint () const override
 
virtual void takeDiagram (AbstractDiagram *diagram)
 
- Public Member Functions inherited from KDChart::AbstractArea
 ~AbstractArea () override
 
virtual int bottomOverlap (bool doNotRecalculate=false) const
 
virtual int leftOverlap (bool doNotRecalculate=false) const
 
void paintAll (QPainter &painter) override
 
virtual void paintIntoRect (QPainter &painter, const QRect &rect)
 Draws the background and frame, then calls paint(). More...
 
virtual int rightOverlap (bool doNotRecalculate=false) const
 
virtual int topOverlap (bool doNotRecalculate=false) const
 
- Public Member Functions inherited from KDChart::AbstractAreaBase
void alignToReferencePoint (const RelativePosition &position)
 
BackgroundAttributes backgroundAttributes () const
 
bool compare (const AbstractAreaBase *other) const
 
FrameAttributes frameAttributes () const
 
void getFrameLeadings (int &left, int &top, int &right, int &bottom) const
 
virtual void paintBackground (QPainter &painter, const QRect &rectangle)
 
virtual void paintFrame (QPainter &painter, const QRect &rectangle)
 
void setBackgroundAttributes (const BackgroundAttributes &a)
 
void setFrameAttributes (const FrameAttributes &a)
 
- Public Member Functions inherited from KDChart::AbstractLayoutItem
 AbstractLayoutItem (Qt::Alignment itemAlignment={})
 
virtual void paintCtx (PaintContext *context)
 
QLayout * parentLayout ()
 
void removeFromParentLayout ()
 
void setParentLayout (QLayout *lay)
 
virtual void setParentWidget (QWidget *widget)
 
virtual void sizeHintChanged () const
 

Additional Inherited Members

- Public Types inherited from KDChart::PolarCoordinatePlane
typedef QList< CoordinateTransformationCoordinateTransformationList
 
- Public Types inherited from KDChart::AbstractCoordinatePlane
enum  AxesCalcMode { Linear , Logarithmic }
 
- Public Slots inherited from KDChart::AbstractCoordinatePlane
void layoutPlanes ()
 
void relayout ()
 
void setGridNeedsRecalculate ()
 
void update ()
 
- Signals inherited from KDChart::AbstractCoordinatePlane
void boundariesChanged ()
 
void destroyedCoordinatePlane (AbstractCoordinatePlane *)
 
void geometryChanged (QRect, QRect)
 
void internal_geometryChanged (QRect, QRect)
 
void needLayoutPlanes ()
 
void needRelayout ()
 
void needUpdate ()
 
void propertiesChanged ()
 
void viewportCoordinateSystemChanged ()
 
- Signals inherited from KDChart::AbstractArea
void positionChanged (AbstractArea *)
 
- Static Public Member Functions inherited from KDChart::AbstractAreaBase
static void paintBackgroundAttributes (QPainter &painter, const QRect &rectangle, const KDChart::BackgroundAttributes &attributes)
 
static void paintFrameAttributes (QPainter &painter, const QRect &rectangle, const KDChart::FrameAttributes &attributes)
 
- Protected Slots inherited from KDChart::PolarCoordinatePlane
void adjustZoomAndRepaint ()
 
void slotLayoutChanged (AbstractDiagram *diagram)
 
- Protected Member Functions inherited from KDChart::PolarCoordinatePlane
DataDimensionsList getDataDimensionsList () const override
 
void layoutDiagrams () override
 
void paintEvent (QPaintEvent *)
 
void resizeEvent (QResizeEvent *)
 
- Protected Member Functions inherited from KDChart::AbstractCoordinatePlane
 AbstractCoordinatePlane (Chart *parent=nullptr)
 
- Protected Member Functions inherited from KDChart::AbstractArea
 AbstractArea ()
 
QRect areaGeometry () const override
 
void positionHasChanged () override
 
- Protected Member Functions inherited from KDChart::AbstractAreaBase
 AbstractAreaBase ()
 
virtual ~AbstractAreaBase ()
 
QRect innerRect () const
 
- Protected Attributes inherited from KDChart::AbstractLayoutItem
QWidget * mParent = nullptr
 
QLayout * mParentLayout = nullptr
 

Detailed Description

Radar coordinate plane.

Definition at line 23 of file KDChartRadarCoordinatePlane.h.

Constructor & Destructor Documentation

◆ RadarCoordinatePlane()

KDChart::RadarCoordinatePlane::RadarCoordinatePlane ( Chart parent = nullptr)
explicit

Definition at line 18 of file KDChartRadarCoordinatePlane.cpp.

◆ ~RadarCoordinatePlane()

KDChart::RadarCoordinatePlane::~RadarCoordinatePlane ( )
override

Definition at line 22 of file KDChartRadarCoordinatePlane.cpp.

Member Function Documentation

◆ setTextAttributes()

void KDChart::RadarCoordinatePlane::setTextAttributes ( const TextAttributes attr)

Set the attributes to be used for axis captions.

To disable axis captions, for example, your code should like this:

TextAttributes ta = plane->textAttributes();
ta.setVisible( false );
plane-setTextAttributes( ta );
void setTextAttributes(const TextAttributes &attr)

Definition at line 26 of file KDChartRadarCoordinatePlane.cpp.

References d.

◆ textAttributes()

const KDChart::TextAttributes RadarCoordinatePlane::textAttributes ( ) const
Returns
The attributes used for axis.
Note
This function always returns a valid set of text attributes: If no special text attributes was set a default one is returned.
See also
setTextAttributes

Definition at line 31 of file KDChartRadarCoordinatePlane.cpp.

References d.


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