KD Chart 2
[rev.2.7]
|
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane, TernaryCoordinatePlane. More...
#include <KDChartAbstractCoordinatePlane.h>
Public Types | |
enum | AxesCalcMode { Linear, Logarithmic } |
Public Slots | |
void | layoutPlanes () |
Calling layoutPlanes() on the plane triggers the global KDChart::Chart::slotLayoutPlanes() More... | |
void | relayout () |
Calling relayout() on the plane triggers the global KDChart::Chart::slotRelayout() More... | |
void | setGridNeedsRecalculate () |
Used by the chart to clear the cached grid data. More... | |
void | update () |
Calling update() on the plane triggers the global KDChart::Chart::update() More... | |
Signals | |
void | boundariesChanged () |
void | destroyedCoordinatePlane (AbstractCoordinatePlane *) |
Emitted when this coordinate plane is destroyed. More... | |
void | geometryChanged (QRect, QRect) |
Emitted after the geometry of the Coordinate Plane has been changed. More... | |
void | internal_geometryChanged (QRect, QRect) |
void | needLayoutPlanes () |
Emitted when plane needs to trigger the Chart's layouting of the coord. More... | |
void | needRelayout () |
Emitted when plane needs to trigger the Chart's layouting. More... | |
void | needUpdate () |
Emitted when plane needs to update its drawings. More... | |
void | positionChanged (AbstractArea *) |
void | propertiesChanged () |
Emitted upon change of a property of the Coordinate Plane or any of its components. More... | |
void | viewportCoordinateSystemChanged () |
Emitted upon change of the view coordinate system. More... | |
Public Member Functions | |
virtual void | addDiagram (AbstractDiagram *diagram) |
Adds a diagram to this coordinate plane. More... | |
void | alignToReferencePoint (const RelativePosition &position) |
BackgroundAttributes | backgroundAttributes () const |
virtual int | bottomOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart:AutoSpacerLayoutItem::sizeHint(). More... | |
bool | compare (const AbstractAreaBase *other) const |
Returns true if both areas have the same settings. More... | |
AbstractDiagram * | diagram () |
AbstractDiagramList | diagrams () |
ConstAbstractDiagramList | diagrams () const |
Qt::Orientations | expandingDirections () const override |
pure virtual in QLayoutItem More... | |
FrameAttributes | frameAttributes () const |
QRect | geometry () const override |
pure virtual in QLayoutItem More... | |
void | getFrameLeadings (int &left, int &top, int &right, int &bottom) const |
GridAttributes | globalGridAttributes () const |
DataDimensionsList | gridDimensionsList () |
Returns the dimensions used for drawing the grid lines. More... | |
bool | isCornerSpacersEnabled () const |
bool | isEmpty () const override |
pure virtual in QLayoutItem More... | |
bool | isRubberBandZoomingEnabled () const |
const bool | isVisiblePoint (const QPointF &point) const |
Tests, if a point is visible on the coordinate plane. More... | |
virtual void | layoutDiagrams ()=0 |
Distribute the available space among the diagrams and axes. More... | |
virtual int | leftOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint(). More... | |
QSize | maximumSize () const override |
pure virtual in QLayoutItem More... | |
QSize | minimumSize () const override |
pure virtual in QLayoutItem More... | |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | mousePressEvent (QMouseEvent *event) |
virtual void | mouseReleaseEvent (QMouseEvent *event) |
virtual void | paint (QPainter *)=0 |
void | paintAll (QPainter &painter) override |
Call paintAll, if you want the background and the frame to be drawn before the normal paint() is invoked automatically. More... | |
virtual void | paintBackground (QPainter &painter, const QRect &rectangle) |
virtual void | paintCtx (PaintContext *context) |
Default impl: Paint the complete item using its layouted position and size. More... | |
virtual void | paintFrame (QPainter &painter, const QRect &rectangle) |
virtual void | paintIntoRect (QPainter &painter, const QRect &rect) |
Draws the background and frame, then calls paint(). More... | |
Chart * | parent () |
const Chart * | parent () const |
QLayout * | parentLayout () |
AbstractCoordinatePlane * | referenceCoordinatePlane () const |
There are two ways, in which planes can be caused to interact, in where they are put layouting wise: The first is the reference plane. More... | |
void | removeFromParentLayout () |
virtual void | replaceDiagram (AbstractDiagram *diagram, AbstractDiagram *oldDiagram=0) |
Replaces the old diagram, or appends the diagram, it there is none yet. More... | |
virtual int | rightOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint(). More... | |
void | setBackgroundAttributes (const BackgroundAttributes &a) |
void | setCornerSpacersEnabled (bool enable) |
Enables or disables the use of spacers in the plane corners. More... | |
void | setFrameAttributes (const FrameAttributes &a) |
void | setGeometry (const QRect &r) override |
pure virtual in QLayoutItem More... | |
void | setGlobalGridAttributes (const GridAttributes &) |
Set the grid attributes to be used by this coordinate plane. More... | |
void | setParent (Chart *parent) |
Called internally by KDChart::Chart. More... | |
void | setParentLayout (QLayout *lay) |
virtual void | setParentWidget (QWidget *widget) |
Inform the item about its widget: This enables the item, to trigger that widget's update, whenever the size of the item's contents has changed. More... | |
void | setReferenceCoordinatePlane (AbstractCoordinatePlane *plane) |
Set another coordinate plane to be used as the reference plane for this one. More... | |
void | setRubberBandZoomingEnabled (bool enable) |
Enables or disables zooming with a rubber band using the mouse. More... | |
virtual void | setZoomCenter (const QPointF ¢er) |
Set the point (in value coordinates) to be used as the center point in zoom operations. More... | |
virtual void | setZoomFactors (qreal factorX, qreal factorY) |
Sets both zoom factors in one go. More... | |
virtual void | setZoomFactorX (qreal factor) |
Sets the zoom factor in horizontal direction, that is applied to all coordinate transformations. More... | |
virtual void | setZoomFactorY (qreal factor) |
Sets the zoom factor in vertical direction, that is applied to all coordinate transformations. More... | |
virtual AbstractCoordinatePlane * | sharedAxisMasterPlane (QPainter *p=0) |
QSize | sizeHint () const override |
pure virtual in QLayoutItem More... | |
virtual void | sizeHintChanged () const |
Report changed size hint: ask the parent widget to recalculate the layout. More... | |
virtual void | takeDiagram (AbstractDiagram *diagram) |
Removes the diagram from the plane, without deleting it. More... | |
virtual int | topOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint(). More... | |
virtual const QPointF | translate (const QPointF &diagramPoint) const =0 |
Translate the given point in value space coordinates to a position in pixel space. More... | |
virtual QPointF | zoomCenter () const |
virtual qreal | zoomFactorX () const |
virtual qreal | zoomFactorY () const |
~AbstractCoordinatePlane () override | |
Static Public Member Functions | |
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 | |
AbstractCoordinatePlane (Chart *parent=0) | |
QRect | areaGeometry () const override |
virtual DataDimensionsList | getDataDimensionsList () const =0 |
QRect | innerRect () const |
void | positionHasChanged () override |
Protected Attributes | |
QWidget * | mParent |
QLayout * | mParentLayout |
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane, TernaryCoordinatePlane.
Definition at line 44 of file KDChartAbstractCoordinatePlane.h.
Enumerator | |
---|---|
Linear | |
Logarithmic |
Definition at line 53 of file KDChartAbstractCoordinatePlane.h.
|
explicitprotected |
Definition at line 53 of file KDChartAbstractCoordinatePlane.cpp.
|
override |
Definition at line 60 of file KDChartAbstractCoordinatePlane.cpp.
References d, destroyedCoordinatePlane(), geometryChanged(), and internal_geometryChanged().
|
virtual |
Adds a diagram to this coordinate plane.
diagram | The diagram to add. |
Reimplemented in KDChart::CartesianCoordinatePlane, KDChart::LeveyJenningsCoordinatePlane, KDChart::PolarCoordinatePlane, and KDChart::TernaryCoordinatePlane.
Definition at line 73 of file KDChartAbstractCoordinatePlane.cpp.
References boundariesChanged(), d, layoutDiagrams(), layoutPlanes(), relayout(), KDChart::AbstractDiagram::setCoordinatePlane(), and update().
Referenced by KDChart::TernaryCoordinatePlane::addDiagram(), KDChart::PolarCoordinatePlane::addDiagram(), KDChart::CartesianCoordinatePlane::addDiagram(), and replaceDiagram().
|
inherited |
Definition at line 81 of file KDChartAbstractAreaBase.cpp.
|
overrideprotectedvirtualinherited |
Implements KDChart::AbstractAreaBase.
Definition at line 151 of file KDChartAbstractArea.cpp.
Referenced by KDChart::CartesianCoordinatePlane::drawingArea(), KDChart::TernaryCoordinatePlane::layoutDiagrams(), KDChart::PolarCoordinatePlane::layoutDiagrams(), KDChart::TernaryCoordinatePlane::paint(), KDChart::CartesianAxis::paint(), KDChart::AbstractArea::paintAll(), and KDChart::CartesianAxis::paintCtx().
|
inherited |
Definition at line 111 of file KDChartAbstractAreaBase.cpp.
References d.
Referenced by KDChart::AbstractAreaBase::compare(), and updateCommonBrush().
|
virtualinherited |
This is called at layout time by KDChart:AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the bottom edge of the area.
Definition at line 98 of file KDChartAbstractArea.cpp.
References d.
Referenced by KDChart::AutoSpacerLayoutItem::sizeHint().
|
signal |
|
inherited |
Returns true if both areas have the same settings.
Definition at line 71 of file KDChartAbstractAreaBase.cpp.
References KDChart::AbstractAreaBase::backgroundAttributes(), and KDChart::AbstractAreaBase::frameAttributes().
Referenced by KDChart::Legend::compare().
|
signal |
Emitted when this coordinate plane is destroyed.
Referenced by ~AbstractCoordinatePlane().
AbstractDiagram * AbstractCoordinatePlane::diagram | ( | ) |
Definition at line 130 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by contains(), KDChart::Widget::diagram(), findSharingAxisDiagrams(), KDChart::CartesianCoordinatePlane::getRawDataBoundingRectFromDiagrams(), KDChart::TernaryCoordinatePlane::layoutDiagrams(), KDChart::PolarCoordinatePlane::layoutDiagrams(), numSignificantDecimalPlaces(), KDChart::CartesianCoordinatePlane::setGeometry(), KDChart::PolarCoordinatePlane::setStartPosition(), KDChart::Widget::setType(), and KDChart::CartesianCoordinatePlane::sharedAxisMasterPlane().
AbstractDiagramList AbstractCoordinatePlane::diagrams | ( | ) |
Definition at line 140 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by allAxisAnnotations(), KDChart::Chart::event(), findSharingAxisDiagrams(), KDChart::CartesianCoordinatePlane::getDataDimensionsList(), KDChart::CartesianCoordinatePlane::getRawDataBoundingRectFromDiagrams(), KDChart::TernaryCoordinatePlane::layoutDiagrams(), KDChart::PolarCoordinatePlane::layoutDiagrams(), KDChart::Chart::mouseDoubleClickEvent(), KDChart::Chart::mouseMoveEvent(), KDChart::Chart::mousePressEvent(), KDChart::Chart::mouseReleaseEvent(), KDChart::TernaryCoordinatePlane::paint(), KDChart::PolarCoordinatePlane::paint(), KDChart::CartesianCoordinatePlane::paint(), KDChart::CartesianCoordinatePlane::setAxesCalcModes(), and KDChart::CartesianCoordinatePlane::setGeometry().
ConstAbstractDiagramList AbstractCoordinatePlane::diagrams | ( | ) | const |
Definition at line 145 of file KDChartAbstractCoordinatePlane.cpp.
References d.
|
override |
pure virtual in QLayoutItem
Definition at line 211 of file KDChartAbstractCoordinatePlane.cpp.
|
inherited |
Definition at line 97 of file KDChartAbstractAreaBase.cpp.
References d.
Referenced by KDChart::Legend::clone(), KDChart::AbstractAreaBase::compare(), and updateCommonBrush().
|
override |
pure virtual in QLayoutItem
Definition at line 248 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by KDChart::Chart::mouseDoubleClickEvent(), mouseMoveEvent(), KDChart::Chart::mouseMoveEvent(), KDChart::Chart::mousePressEvent(), mouseReleaseEvent(), KDChart::Chart::mouseReleaseEvent(), KDChart::RadarDiagram::paint(), KDChart::PolarDiagram::paint(), KDChart::PolarCoordinatePlane::paint(), and KDChart::CartesianCoordinatePlane::setGeometry().
|
signal |
Emitted after the geometry of the Coordinate Plane has been changed.
and control has returned to the event loop.
Parameters are the old geometry, the new geometry.
Referenced by ~AbstractCoordinatePlane().
|
protectedpure virtual |
Implemented in KDChart::CartesianCoordinatePlane, KDChart::PolarCoordinatePlane, and KDChart::TernaryCoordinatePlane.
|
inherited |
Definition at line 213 of file KDChartAbstractAreaBase.cpp.
References d.
Referenced by KDChart::AbstractAreaBase::innerRect(), and KDChart::AbstractAreaWidget::paintAll().
GridAttributes KDChart::AbstractCoordinatePlane::globalGridAttributes | ( | ) | const |
Definition at line 163 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by KDChart::PolarCoordinatePlane::gridAttributes(), and KDChart::CartesianCoordinatePlane::gridAttributes().
KDChart::DataDimensionsList KDChart::AbstractCoordinatePlane::gridDimensionsList | ( | ) |
Returns the dimensions used for drawing the grid lines.
Returned data is the result of (cached) grid calculations, so - if you need that information for your own tasks - make sure to call again this function after every data modification that has changed the data range, since grid calculation is based upon the data range, thus the grid start/end might have changed if the data was changed.
Definition at line 168 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::layoutDiagrams(), KDChart::CartesianAxis::maximumSize(), numSignificantDecimalPlaces(), and KDChart::PaintingHelpers::paintValueTracker().
|
protectedinherited |
Definition at line 225 of file KDChartAbstractAreaBase.cpp.
References KDChart::AbstractAreaBase::areaGeometry(), and KDChart::AbstractAreaBase::getFrameLeadings().
Referenced by KDChart::AbstractArea::paintAll(), and KDChart::TextArea::paintAll().
|
signal |
Referenced by setGeometry(), and ~AbstractCoordinatePlane().
bool KDChart::AbstractCoordinatePlane::isCornerSpacersEnabled | ( | ) | const |
Definition at line 295 of file KDChartAbstractCoordinatePlane.cpp.
References d.
|
override |
pure virtual in QLayoutItem
Definition at line 204 of file KDChartAbstractCoordinatePlane.cpp.
bool KDChart::AbstractCoordinatePlane::isRubberBandZoomingEnabled | ( | ) | const |
Definition at line 282 of file KDChartAbstractCoordinatePlane.cpp.
References d.
const bool KDChart::AbstractCoordinatePlane::isVisiblePoint | ( | const QPointF & | point | ) | const |
Tests, if a point is visible on the coordinate plane.
Definition at line 426 of file KDChartAbstractCoordinatePlane.cpp.
References d.
|
pure virtual |
Distribute the available space among the diagrams and axes.
Implemented in KDChart::CartesianCoordinatePlane, KDChart::PolarCoordinatePlane, and KDChart::TernaryCoordinatePlane.
Referenced by addDiagram(), findSharingAxisDiagrams(), replaceDiagram(), and takeDiagram().
|
slot |
Calling layoutPlanes() on the plane triggers the global KDChart::Chart::slotLayoutPlanes()
Definition at line 265 of file KDChartAbstractCoordinatePlane.cpp.
References needLayoutPlanes().
Referenced by addDiagram(), findSharingAxisDiagrams(), invalidateLayoutTree(), KDChart::AbstractCartesianDiagram::layoutPlanes(), KDChart::CartesianAxis::layoutPlanes(), replaceDiagram(), and takeDiagram().
|
virtualinherited |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the left edge of the area.
Definition at line 74 of file KDChartAbstractArea.cpp.
References d.
Referenced by KDChart::AutoSpacerLayoutItem::sizeHint().
|
override |
pure virtual in QLayoutItem
Definition at line 216 of file KDChartAbstractCoordinatePlane.cpp.
Referenced by sizeHint().
|
override |
pure virtual in QLayoutItem
Definition at line 223 of file KDChartAbstractCoordinatePlane.cpp.
|
virtual |
Definition at line 340 of file KDChartAbstractCoordinatePlane.cpp.
References d, and mousePressEvent().
Referenced by KDChart::Chart::mouseDoubleClickEvent().
|
virtual |
Definition at line 407 of file KDChartAbstractCoordinatePlane.cpp.
References d, and geometry().
Referenced by KDChart::Chart::mouseMoveEvent().
|
virtual |
Definition at line 300 of file KDChartAbstractCoordinatePlane.cpp.
References KDChart::ZoomParameters::center(), d, parent(), setZoomCenter(), setZoomFactorX(), setZoomFactorY(), KDChart::ZoomParameters::xFactor, and KDChart::ZoomParameters::yFactor.
Referenced by mouseDoubleClickEvent(), and KDChart::Chart::mousePressEvent().
|
virtual |
Definition at line 354 of file KDChartAbstractCoordinatePlane.cpp.
References d, geometry(), setZoomCenter(), setZoomFactorX(), setZoomFactorY(), zoomCenter(), zoomFactorX(), and zoomFactorY().
Referenced by KDChart::Chart::mouseReleaseEvent().
|
signal |
Emitted when plane needs to trigger the Chart's layouting of the coord.
planes.
Referenced by layoutPlanes().
|
signal |
Emitted when plane needs to trigger the Chart's layouting.
Referenced by relayout(), and setCornerSpacersEnabled().
|
signal |
Emitted when plane needs to update its drawings.
Referenced by update().
|
pure virtualinherited |
Implemented in KDChart::AutoSpacerLayoutItem, KDChart::CartesianCoordinatePlane, KDChart::VerticalLineLayoutItem, KDChart::HorizontalLineLayoutItem, KDChart::LineWithMarkerLayoutItem, KDChart::LineLayoutItem, KDChart::MarkerLayoutItem, KDChart::TextBubbleLayoutItem, KDChart::PolarCoordinatePlane, KDChart::TextLayoutItem, KDChart::CartesianAxis, KDChart::TernaryAxis, and KDChart::TernaryCoordinatePlane.
Referenced by KDChart::Legend::paint(), KDChart::AbstractLayoutItem::paintAll(), KDChart::AbstractArea::paintAll(), and KDChart::AbstractLayoutItem::paintCtx().
|
overridevirtualinherited |
Call paintAll, if you want the background and the frame to be drawn before the normal paint() is invoked automatically.
Reimplemented from KDChart::AbstractLayoutItem.
Reimplemented in KDChart::TernaryAxis.
Definition at line 120 of file KDChartAbstractArea.cpp.
References KDChart::AbstractArea::areaGeometry(), d, KDChart::AbstractAreaBase::innerRect(), KDChart::AbstractLayoutItem::paint(), KDChart::AbstractAreaBase::paintBackground(), and KDChart::AbstractAreaBase::paintFrame().
Referenced by KDChart::AbstractArea::paintIntoRect().
|
virtualinherited |
Definition at line 189 of file KDChartAbstractAreaBase.cpp.
References d, and KDChart::AbstractAreaBase::paintBackgroundAttributes().
Referenced by KDChart::AbstractArea::paintAll(), KDChart::TextArea::paintAll(), and KDChart::AbstractAreaWidget::paintAll().
|
staticinherited |
Definition at line 118 of file KDChartAbstractAreaBase.cpp.
References KDChart::BackgroundAttributes::BackgroundPixmapModeCentered, KDChart::BackgroundAttributes::BackgroundPixmapModeNone, KDChart::BackgroundAttributes::BackgroundPixmapModeScaled, KDChart::BackgroundAttributes::BackgroundPixmapModeStretched, KDChart::BackgroundAttributes::brush(), KDChart::BackgroundAttributes::isVisible(), KDChart::BackgroundAttributes::pixmap(), and KDChart::BackgroundAttributes::pixmapMode().
Referenced by findSharingAxisDiagrams(), and KDChart::AbstractAreaBase::paintBackground().
|
virtualinherited |
Default impl: Paint the complete item using its layouted position and size.
Reimplemented in KDChart::CartesianAxis, KDChart::LeveyJenningsAxis, and KDChart::TernaryAxis.
Definition at line 72 of file KDChartLayoutItems.cpp.
References KDChart::AbstractLayoutItem::paint(), and KDChart::PaintContext::painter().
|
virtualinherited |
Definition at line 205 of file KDChartAbstractAreaBase.cpp.
References d, and KDChart::AbstractAreaBase::paintFrameAttributes().
Referenced by KDChart::AbstractArea::paintAll(), KDChart::TextArea::paintAll(), and KDChart::AbstractAreaWidget::paintAll().
|
staticinherited |
Definition at line 168 of file KDChartAbstractAreaBase.cpp.
References KDChart::FrameAttributes::cornerRadius(), KDChart::FrameAttributes::isVisible(), KDChart::FrameAttributes::pen(), and KDChart::PrintingParameters::scalePen().
Referenced by findSharingAxisDiagrams(), and KDChart::AbstractAreaBase::paintFrame().
|
virtualinherited |
Draws the background and frame, then calls paint().
In most cases there is no need to overwrite this method in a derived class, but you would overwrite AbstractLayoutItem::paint() instead.
Definition at line 108 of file KDChartAbstractArea.cpp.
References KDChart::AbstractArea::paintAll().
KDChart::Chart * KDChart::AbstractCoordinatePlane::parent | ( | ) |
Definition at line 198 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by AbstractCoordinatePlane(), KDChart::CartesianAxis::maximumSize(), mousePressEvent(), KDChart::LeveyJenningsAxis::paintAsAbscissa(), KDChart::LeveyJenningsAxis::paintAsOrdinate(), setParent(), and KDChart::CartesianAxis::titleSize().
const KDChart::Chart * KDChart::AbstractCoordinatePlane::parent | ( | ) | const |
Definition at line 193 of file KDChartAbstractCoordinatePlane.cpp.
References d.
|
inherited |
Definition at line 77 of file KDChartLayoutItems.h.
|
signalinherited |
Referenced by KDChart::AbstractArea::positionHasChanged().
|
overrideprotectedvirtualinherited |
Reimplemented from KDChart::AbstractAreaBase.
Definition at line 156 of file KDChartAbstractArea.cpp.
References KDChart::AbstractArea::positionChanged().
|
signal |
Emitted upon change of a property of the Coordinate Plane or any of its components.
Referenced by KDChart::CartesianCoordinatePlane::addDiagram(), KDChart::CartesianCoordinatePlane::adjustHorizontalRangeToData(), KDChart::CartesianCoordinatePlane::adjustRangesToData(), KDChart::CartesianCoordinatePlane::adjustVerticalRangeToData(), KDChart::PolarCoordinatePlane::gridAttributes(), KDChart::CartesianCoordinatePlane::gridAttributes(), KDChart::CartesianCoordinatePlane::handleFixedDataCoordinateSpaceRelation(), KDChart::CartesianCoordinatePlane::setAutoAdjustGridToZoom(), KDChart::CartesianCoordinatePlane::setAutoAdjustHorizontalRangeToData(), KDChart::CartesianCoordinatePlane::setAutoAdjustVerticalRangeToData(), KDChart::CartesianCoordinatePlane::setAxesCalcModes(), KDChart::CartesianCoordinatePlane::setAxesCalcModeX(), KDChart::CartesianCoordinatePlane::setAxesCalcModeY(), KDChart::PolarCoordinatePlane::setGridAttributes(), KDChart::CartesianCoordinatePlane::setGridAttributes(), KDChart::CartesianCoordinatePlane::setHorizontalRange(), KDChart::CartesianCoordinatePlane::setHorizontalRangeReversed(), KDChart::CartesianCoordinatePlane::setIsometricScaling(), KDChart::CartesianCoordinatePlane::setVerticalRange(), KDChart::CartesianCoordinatePlane::setVerticalRangeReversed(), KDChart::CartesianCoordinatePlane::setZoomCenter(), KDChart::CartesianCoordinatePlane::setZoomFactors(), KDChart::CartesianCoordinatePlane::setZoomFactorX(), and KDChart::CartesianCoordinatePlane::setZoomFactorY().
AbstractCoordinatePlane * KDChart::AbstractCoordinatePlane::referenceCoordinatePlane | ( | ) | const |
There are two ways, in which planes can be caused to interact, in where they are put layouting wise: The first is the reference plane.
If such a reference plane is set, on a plane, it will use the same cell in the layout as that one. In addition to this, planes can share an axis. In that case they will be laid out in relation to each other as suggested by the position of the axis. If, for example Plane1 and Plane2 share an axis at position Left, that will result in the layout: Axis Plane1 Plane 2, vertically. If Plane1 also happens to be Plane2's reference plane, both planes are drawn over each other. The reference plane concept allows two planes to share the same space even if neither has any axis, and in case there are shared axis, it is used to decided, whether the planes should be painted on top of each other or laid out vertically or horizontally next to each other.
Definition at line 183 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by findSharingAxisDiagrams(), and invalidateLayoutTree().
|
slot |
Calling relayout() on the plane triggers the global KDChart::Chart::slotRelayout()
Definition at line 259 of file KDChartAbstractCoordinatePlane.cpp.
References needRelayout().
Referenced by addDiagram(), and takeDiagram().
|
inherited |
Definition at line 81 of file KDChartLayoutItems.h.
Referenced by findSharingAxisDiagrams(), KDChart::Chart::takeCoordinatePlane(), and KDChart::Chart::takeHeaderFooter().
|
virtual |
Replaces the old diagram, or appends the diagram, it there is none yet.
diagram | The diagram to be used instead of the old diagram. This parameter must not be zero, or the method will do nothing. |
oldDiagram | The diagram to be removed by the new diagram. This diagram will be deleted automatically. If the parameter is omitted, the very first diagram will be replaced. In case, there was no diagram yet, the new diagram will just be added. |
Definition at line 93 of file KDChartAbstractCoordinatePlane.cpp.
References addDiagram(), d, layoutDiagrams(), layoutPlanes(), takeDiagram(), and update().
Referenced by KDChart::Widget::setType().
|
virtualinherited |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the right edge of the area.
Definition at line 82 of file KDChartAbstractArea.cpp.
References d.
Referenced by KDChart::AutoSpacerLayoutItem::sizeHint().
|
inherited |
Definition at line 102 of file KDChartAbstractAreaBase.cpp.
References d, and KDChart::AbstractAreaBase::positionHasChanged().
void KDChart::AbstractCoordinatePlane::setCornerSpacersEnabled | ( | bool | enable | ) |
Enables or disables the use of spacers in the plane corners.
Definition at line 287 of file KDChartAbstractCoordinatePlane.cpp.
References d, and needRelayout().
|
inherited |
Definition at line 88 of file KDChartAbstractAreaBase.cpp.
References d, and KDChart::AbstractAreaBase::positionHasChanged().
Referenced by KDChart::Legend::clone(), and KDChart::Legend::~Legend().
|
override |
pure virtual in QLayoutItem
Definition at line 235 of file KDChartAbstractCoordinatePlane.cpp.
References d, and internal_geometryChanged().
Referenced by KDChart::CartesianCoordinatePlane::setGeometry().
void KDChart::AbstractCoordinatePlane::setGlobalGridAttributes | ( | const GridAttributes & | a | ) |
Set the grid attributes to be used by this coordinate plane.
To disable grid painting, for example, your code should like this:
Definition at line 157 of file KDChartAbstractCoordinatePlane.cpp.
|
slot |
Used by the chart to clear the cached grid data.
Definition at line 173 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by findSharingAxisDiagrams(), and KDChart::CartesianCoordinatePlane::setAxesCalcModeY().
void KDChart::AbstractCoordinatePlane::setParent | ( | KDChart::Chart * | parent | ) |
Called internally by KDChart::Chart.
Definition at line 188 of file KDChartAbstractCoordinatePlane.cpp.
Referenced by KDChart::Chart::insertCoordinatePlane(), and KDChart::Chart::takeCoordinatePlane().
|
inherited |
Definition at line 73 of file KDChartLayoutItems.h.
Referenced by KDChart::Chart::addHeaderFooter(), findSharingAxisDiagrams(), and KDChart::Chart::takeHeaderFooter().
|
virtualinherited |
Inform the item about its widget: This enables the item, to trigger that widget's update, whenever the size of the item's contents has changed.
Thus, you need to call setParentWidget on every item, that has a non-fixed size.
Definition at line 59 of file KDChartLayoutItems.cpp.
References KDChart::AbstractLayoutItem::mParent.
Referenced by KDChart::HeaderFooter::setParent(), KDChart::AbstractCartesianDiagram::takeAxis(), and updateToplevelLayout().
void KDChart::AbstractCoordinatePlane::setReferenceCoordinatePlane | ( | AbstractCoordinatePlane * | plane | ) |
Set another coordinate plane to be used as the reference plane for this one.
plane | The coordinate plane to be used the reference plane for this one. |
Definition at line 178 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by invalidateLayoutTree().
void KDChart::AbstractCoordinatePlane::setRubberBandZoomingEnabled | ( | bool | enable | ) |
Enables or disables zooming with a rubber band using the mouse.
Definition at line 271 of file KDChartAbstractCoordinatePlane.cpp.
References d.
|
virtual |
Set the point (in value coordinates) to be used as the center point in zoom operations.
center | The point to use. |
Reimplemented in KDChart::CartesianCoordinatePlane, and KDChart::PolarCoordinatePlane.
Definition at line 179 of file KDChartAbstractCoordinatePlane.h.
Referenced by mousePressEvent(), and mouseReleaseEvent().
|
virtual |
Sets both zoom factors in one go.
Reimplemented in KDChart::CartesianCoordinatePlane, and KDChart::PolarCoordinatePlane.
Definition at line 152 of file KDChartAbstractCoordinatePlane.h.
|
virtual |
Sets the zoom factor in horizontal direction, that is applied to all coordinate transformations.
factor | The new zoom factor |
Reimplemented in KDChart::CartesianCoordinatePlane, and KDChart::PolarCoordinatePlane.
Definition at line 159 of file KDChartAbstractCoordinatePlane.h.
Referenced by mousePressEvent(), and mouseReleaseEvent().
|
virtual |
Sets the zoom factor in vertical direction, that is applied to all coordinate transformations.
factor | The new zoom factor |
Reimplemented in KDChart::CartesianCoordinatePlane, and KDChart::PolarCoordinatePlane.
Definition at line 166 of file KDChartAbstractCoordinatePlane.h.
Referenced by mousePressEvent(), and mouseReleaseEvent().
|
virtual |
Reimplemented in KDChart::CartesianCoordinatePlane.
Definition at line 431 of file KDChartAbstractCoordinatePlane.cpp.
Referenced by KDChart::BarDiagram::paint(), KDChart::LeveyJenningsDiagram::paint(), KDChart::Plotter::paint(), and KDChart::LineDiagram::paint().
|
override |
pure virtual in QLayoutItem
Definition at line 228 of file KDChartAbstractCoordinatePlane.cpp.
References maximumSize().
Referenced by KDChart::CartesianCoordinatePlane::sizeHint().
|
virtualinherited |
Report changed size hint: ask the parent widget to recalculate the layout.
Definition at line 81 of file KDChartLayoutItems.cpp.
References KDChart::AbstractLayoutItem::mParent.
Referenced by KDChart::TextLayoutItem::sizeHint().
|
virtual |
Removes the diagram from the plane, without deleting it.
The plane no longer owns the diagram, so it is the caller's responsibility to delete the diagram.
Definition at line 114 of file KDChartAbstractCoordinatePlane.cpp.
References d, layoutDiagrams(), layoutPlanes(), relayout(), KDChart::AbstractDiagram::setCoordinatePlane(), and update().
Referenced by replaceDiagram().
|
virtualinherited |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the top edge of the area.
Definition at line 90 of file KDChartAbstractArea.cpp.
References d.
Referenced by KDChart::AutoSpacerLayoutItem::sizeHint().
|
pure virtual |
Translate the given point in value space coordinates to a position in pixel space.
diagramPoint | The point in value coordinates. |
Implemented in KDChart::CartesianCoordinatePlane, KDChart::PolarCoordinatePlane, and KDChart::TernaryCoordinatePlane.
Referenced by KDChart::LeveyJenningsDiagram::drawDataPointSymbol(), KDChart::LeveyJenningsDiagram::drawFluidicsPackChangedSymbol(), KDChart::LeveyJenningsDiagram::drawLotChangeSymbol(), KDChart::LeveyJenningsDiagram::drawSensorChangedSymbol(), KDChart::PolarDiagram::paint(), KDChart::LeveyJenningsDiagram::paint(), KDChart::PaintingHelpers::paintValueTracker(), and scaleToRealPosition().
|
slot |
Calling update() on the plane triggers the global KDChart::Chart::update()
Definition at line 253 of file KDChartAbstractCoordinatePlane.cpp.
References needUpdate().
Referenced by addDiagram(), KDChart::PolarCoordinatePlane::adjustZoomAndRepaint(), KDChart::PolarCoordinatePlane::layoutDiagrams(), KDChart::CartesianCoordinatePlane::layoutDiagrams(), replaceDiagram(), KDChart::PolarCoordinatePlane::resetGridAttributes(), KDChart::CartesianCoordinatePlane::resetGridAttributes(), setGlobalGridAttributes(), KDChart::PolarCoordinatePlane::setGridAttributes(), KDChart::CartesianCoordinatePlane::setGridAttributes(), and takeDiagram().
|
signal |
Emitted upon change of the view coordinate system.
Referenced by KDChart::CartesianCoordinatePlane::setAxesCalcModes(), KDChart::CartesianCoordinatePlane::setAxesCalcModeX(), and KDChart::CartesianCoordinatePlane::setAxesCalcModeY().
|
virtual |
Reimplemented in KDChart::CartesianCoordinatePlane, and KDChart::PolarCoordinatePlane.
Definition at line 172 of file KDChartAbstractCoordinatePlane.h.
Referenced by mouseReleaseEvent().
|
virtual |
Reimplemented in KDChart::PolarCoordinatePlane, and KDChart::CartesianCoordinatePlane.
Definition at line 140 of file KDChartAbstractCoordinatePlane.h.
Referenced by mouseReleaseEvent(), KDChart::RadarDiagram::paint(), KDChart::CartesianAxis::paint(), KDChart::PolarDiagram::paint(), KDChart::BarDiagram::resize(), and KDChart::LineDiagram::resize().
|
virtual |
Reimplemented in KDChart::CartesianCoordinatePlane, and KDChart::PolarCoordinatePlane.
Definition at line 146 of file KDChartAbstractCoordinatePlane.h.
Referenced by mouseReleaseEvent(), KDChart::RadarDiagram::paint(), KDChart::CartesianAxis::paint(), KDChart::PolarDiagram::paint(), KDChart::BarDiagram::resize(), and KDChart::LineDiagram::resize().
|
protectedinherited |
|
protectedinherited |
Definition at line 92 of file KDChartLayoutItems.h.
Referenced by KDChart::AutoSpacerLayoutItem::paint().