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

Ternary coordinate plane. More...

#include <KDChartTernaryCoordinatePlane.h>

Inheritance diagram for KDChart::TernaryCoordinatePlane:
KDChart::AbstractCoordinatePlane KDChart::AbstractArea KDChart::AbstractAreaBase KDChart::AbstractLayoutItem

Public Member Functions

 TernaryCoordinatePlane (Chart *parent=nullptr)
 
 ~TernaryCoordinatePlane () override
 
void addDiagram (AbstractDiagram *diagram) override
 
DataDimensionsList getDataDimensionsList () const override
 
void layoutDiagrams () override
 
QSize minimumSizeHint () const
 
void paint (QPainter *) override
 
QSizePolicy sizePolicy () const
 
const QPointF translate (const QPointF &diagramPoint) 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 void setZoomCenter (const QPointF &center)
 
virtual void setZoomFactors (qreal factorX, qreal factorY)
 
virtual void setZoomFactorX (qreal factor)
 
virtual void setZoomFactorY (qreal factor)
 
virtual AbstractCoordinatePlanesharedAxisMasterPlane (QPainter *p=nullptr)
 
QSize sizeHint () const override
 
virtual void takeDiagram (AbstractDiagram *diagram)
 
virtual QPointF zoomCenter () const
 
virtual qreal zoomFactorX () const
 
virtual qreal zoomFactorY () const
 
- 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::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 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

Ternary coordinate plane.

Definition at line 23 of file KDChartTernaryCoordinatePlane.h.

Constructor & Destructor Documentation

◆ TernaryCoordinatePlane()

TernaryCoordinatePlane::TernaryCoordinatePlane ( Chart parent = nullptr)
explicit

Definition at line 33 of file KDChartTernaryCoordinatePlane.cpp.

◆ ~TernaryCoordinatePlane()

TernaryCoordinatePlane::~TernaryCoordinatePlane ( )
override

Definition at line 38 of file KDChartTernaryCoordinatePlane.cpp.

Member Function Documentation

◆ addDiagram()

void TernaryCoordinatePlane::addDiagram ( AbstractDiagram diagram)
overridevirtual

Adds a diagram to this coordinate plane.

Parameters
diagramThe diagram to add.
See also
replaceDiagram, takeDiagram

Reimplemented from KDChart::AbstractCoordinatePlane.

Definition at line 46 of file KDChartTernaryCoordinatePlane.cpp.

References KDChart::AbstractCoordinatePlane::addDiagram(), and KDChart::AbstractCoordinatePlane::diagram().

◆ getDataDimensionsList()

DataDimensionsList TernaryCoordinatePlane::getDataDimensionsList ( ) const
overridevirtual

◆ layoutDiagrams()

void TernaryCoordinatePlane::layoutDiagrams ( )
overridevirtual

◆ minimumSizeHint()

QSize TernaryCoordinatePlane::minimumSizeHint ( ) const

Reimplemented for internal purposes.

Definition at line 130 of file KDChartTernaryCoordinatePlane.cpp.

◆ paint()

void TernaryCoordinatePlane::paint ( QPainter *  painter)
overridevirtual

◆ sizePolicy()

QSizePolicy TernaryCoordinatePlane::sizePolicy ( ) const

Reimplemented for internal purposes.

Definition at line 136 of file KDChartTernaryCoordinatePlane.cpp.

◆ translate()

const QPointF TernaryCoordinatePlane::translate ( const QPointF &  diagramPoint) const
overridevirtual

Translate the given point in value space coordinates to a position in pixel space.

Parameters
diagramPointThe point in value coordinates.
Returns
The translated point.

Implements KDChart::AbstractCoordinatePlane.

Definition at line 124 of file KDChartTernaryCoordinatePlane.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