 |
KD Chart 2
[rev.2.7]
|
Go to the documentation of this file.
23 #ifndef KDCHARTABSTRACTCOORDINATEPLANE_H
24 #define KDCHARTABSTRACTCOORDINATEPLANE_H
50 friend class AbstractGrid;
124 virtual const QPointF
translate(
const QPointF& diagramPoint )
const = 0;
129 bool isRubberBandZoomingEnabled()
const;
134 void setRubberBandZoomingEnabled(
bool enable );
152 virtual void setZoomFactors( qreal factorX, qreal factorY ) { Q_UNUSED( factorX ); Q_UNUSED( factorY ); }
172 virtual QPointF
zoomCenter()
const {
return QPointF(0.0, 0.0); }
251 bool isCornerSpacersEnabled()
const;
256 void setCornerSpacersEnabled(
bool enable );
262 bool isEmpty()
const override;
264 Qt::Orientations expandingDirections()
const override;
266 QSize maximumSize()
const override;
268 QSize minimumSize()
const override;
270 QSize sizeHint()
const override;
277 void setGeometry(
const QRect& r )
override;
279 QRect geometry()
const override;
281 virtual void mousePressEvent( QMouseEvent* event );
282 virtual void mouseDoubleClickEvent( QMouseEvent* event );
283 virtual void mouseMoveEvent( QMouseEvent* event );
284 virtual void mouseReleaseEvent( QMouseEvent* event );
289 void setParent(
Chart* parent );
291 const Chart* parent()
const;
298 #if QT_VERSION < 0x040400 || defined(Q_COMPILER_MANGLES_RETURN_TYPE)
299 const bool isVisiblePoint(
const QPointF& point )
const;
301 bool isVisiblePoint(
const QPointF& point )
const;
320 void setGridNeedsRecalculate();
394 qreal stepWidth_=0.0,
395 qreal subStepWidth_=0.0 )
441 #if !defined(QT_NO_DEBUG_STREAM)
qreal distance() const
Returns the size of the distance, equivalent to the width() (or height(), resp.) of a QRectF.
virtual void setZoomCenter(const QPointF ¢er)
Set the point (in value coordinates) to be used as the center point in zoom operations.
QList< DataDimension > DataDimensionsList
Project global class providing some enums needed both by KDChartParams and by KDChartCustomBox.
void internal_geometryChanged(QRect, QRect)
A set of attributes controlling the appearance of grids.
void destroyedCoordinatePlane(AbstractCoordinatePlane *)
Emitted when this coordinate plane is destroyed.
DataDimension(qreal start_, qreal end_, bool isCalculated_, AbstractCoordinatePlane::AxesCalcMode calcMode_, KDChartEnums::GranularitySequence sequence_, qreal stepWidth_=0.0, qreal subStepWidth_=0.0)
GranularitySequence
GranularitySequence specifies the values, that may be applied, to determine a step width within a giv...
virtual const QPointF translate(const QPointF &diagramPoint) const =0
Translate the given point in value space coordinates to a position in pixel space.
virtual qreal zoomFactorX() const
QDebug operator<<(QDebug stream, const DataDimension &r)
virtual qreal zoomFactorY() const
virtual void setZoomFactorY(qreal factor)
Sets the zoom factor in vertical direction, that is applied to all coordinate transformations.
void viewportCoordinateSystemChanged()
Emitted upon change of the view coordinate system.
KDChartEnums::GranularitySequence sequence
virtual QPointF zoomCenter() const
Definition of global enums.
bool operator==(const DataDimension &r) const
#define KDCHART_DECLARE_PRIVATE_DERIVED_PARENT(X, ParentType)
AbstractDiagram defines the interface for diagram classes.
virtual void setZoomFactorX(qreal factor)
Sets the zoom factor in horizontal direction, that is applied to all coordinate transformations.
void needUpdate()
Emitted when plane needs to update its drawings.
An area in the chart with a background, a frame, etc.
bool operator!=(const DataDimension &other) const
void needLayoutPlanes()
Emitted when plane needs to trigger the Chart's layouting of the coord.
virtual void setZoomFactors(qreal factorX, qreal factorY)
Sets both zoom factors in one go.
void propertiesChanged()
Emitted upon change of a property of the Coordinate Plane or any of its components.
void geometryChanged(QRect, QRect)
Emitted after the geometry of the Coordinate Plane has been changed.
A chart with one or more diagrams.
AbstractCoordinatePlane::AxesCalcMode calcMode
Helper class for one dimension of data, e.g.
virtual DataDimensionsList getDataDimensionsList() const =0
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
virtual void layoutDiagrams()=0
Distribute the available space among the diagrams and axes.
void needRelayout()
Emitted when plane needs to trigger the Chart's layouting.