![]() |
KD Chart API Documentation
3.1
|
Ternary coordinate plane. More...
#include <KDChartTernaryCoordinatePlane.h>
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 | |
| AbstractDiagram * | diagram () |
| 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) |
| Chart * | parent () |
| const Chart * | parent () const |
| AbstractCoordinatePlane * | referenceCoordinatePlane () 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 ¢er) |
| virtual void | setZoomFactors (qreal factorX, qreal factorY) |
| virtual void | setZoomFactorX (qreal factor) |
| virtual void | setZoomFactorY (qreal factor) |
| virtual AbstractCoordinatePlane * | sharedAxisMasterPlane (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 |
Ternary coordinate plane.
Definition at line 23 of file KDChartTernaryCoordinatePlane.h.
|
explicit |
Definition at line 33 of file KDChartTernaryCoordinatePlane.cpp.
|
override |
Definition at line 38 of file KDChartTernaryCoordinatePlane.cpp.
|
overridevirtual |
Adds a diagram to this coordinate plane.
| diagram | The diagram to add. |
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 46 of file KDChartTernaryCoordinatePlane.cpp.
References KDChart::AbstractCoordinatePlane::addDiagram(), and KDChart::AbstractCoordinatePlane::diagram().
|
overridevirtual |
Implements KDChart::AbstractCoordinatePlane.
Definition at line 168 of file KDChartTernaryCoordinatePlane.cpp.
|
overridevirtual |
Distribute the available space among the diagrams and axes.
Implements KDChart::AbstractCoordinatePlane.
Definition at line 54 of file KDChartTernaryCoordinatePlane.cpp.
References KDChart::AbstractArea::areaGeometry(), d, KDChart::AbstractCoordinatePlane::diagram(), KDChart::AbstractCoordinatePlane::diagrams(), KDChart::TernaryGrid::requiredMargins(), TriangleHeight, and TriangleWidth.
| QSize TernaryCoordinatePlane::minimumSizeHint | ( | ) | const |
Reimplemented for internal purposes.
Definition at line 130 of file KDChartTernaryCoordinatePlane.cpp.
|
overridevirtual |
Implements KDChart::AbstractLayoutItem.
Definition at line 142 of file KDChartTernaryCoordinatePlane.cpp.
References KDChart::AbstractArea::areaGeometry(), d, KDChart::AbstractCoordinatePlane::diagrams(), KDChart::PaintContext::setCoordinatePlane(), KDChart::PaintContext::setPainter(), and KDChart::PaintContext::setRectangle().
| QSizePolicy TernaryCoordinatePlane::sizePolicy | ( | ) | const |
Reimplemented for internal purposes.
Definition at line 136 of file KDChartTernaryCoordinatePlane.cpp.
|
overridevirtual |
Translate the given point in value space coordinates to a position in pixel space.
| diagramPoint | The point in value coordinates. |
Implements KDChart::AbstractCoordinatePlane.
Definition at line 124 of file KDChartTernaryCoordinatePlane.cpp.
References d.