23 #ifndef KDCHARTABSTRACTCOORDINATEPLANE_H 24 #define KDCHARTABSTRACTCOORDINATEPLANE_H 50 friend class AbstractGrid;
116 virtual void layoutDiagrams() = 0;
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); }
219 DataDimensionsList gridDimensionsList();
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();
333 void needLayoutPlanes();
336 void propertiesChanged();
338 void boundariesChanged();
345 void geometryChanged( QRect, QRect );
352 void internal_geometryChanged( QRect, QRect );
354 void viewportCoordinateSystemChanged();
357 virtual DataDimensionsList getDataDimensionsList()
const = 0;
383 , isCalculated( false )
387 , subStepWidth( 0.0 )
394 qreal stepWidth_=0.0,
395 qreal subStepWidth_=0.0 )
398 , isCalculated( isCalculated_ )
399 , calcMode( calcMode_ )
400 , sequence( sequence_ )
401 , stepWidth( stepWidth_ )
402 , subStepWidth( subStepWidth_ )
419 (start == r.
start) &&
441 #if !defined(QT_NO_DEBUG_STREAM) Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane, TernaryCoordinatePlane.
Project global class providing some enums needed both by KDChartParams and by KDChartCustomBox.
bool operator==(const Span &s1, const Span &s2)
An area in the chart with a background, a frame, etc.
A chart with one or more diagrams.
Definition of global enums.
DataDimension(qreal start_, qreal end_, bool isCalculated_, AbstractCoordinatePlane::AxesCalcMode calcMode_, KDChartEnums::GranularitySequence sequence_, qreal stepWidth_=0.0, qreal subStepWidth_=0.0)
bool operator!=(const DataDimension &other) const
KDChartEnums::GranularitySequence sequence
virtual QPointF zoomCenter() const
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.
GranularitySequence
GranularitySequence specifies the values, that may be applied, to determine a step width within a giv...
QList< DataDimension > DataDimensionsList
virtual void setZoomFactorY(qreal factor)
Sets the zoom factor in vertical direction, that is applied to all coordinate transformations.
bool operator==(const DataDimension &r) const
QPointF translate(const TernaryPoint &point)
virtual qreal zoomFactorY() const
A set of attributes controlling the appearance of grids.
qreal distance() const
Returns the size of the distance, equivalent to the width() (or height(), resp.) of a QRectF...
QDebug operator<<(QDebug stream, const DataDimension &r)
virtual void setZoomFactors(qreal factorX, qreal factorY)
Sets both zoom factors in one go.
AbstractCoordinatePlane::AxesCalcMode calcMode
Helper class for one dimension of data, e.g.
virtual void setZoomCenter(const QPointF ¢er)
Set the point (in value coordinates) to be used as the center point in zoom operations.
virtual qreal zoomFactorX() const
#define KDCHART_DECLARE_PRIVATE_DERIVED_PARENT(X, ParentType)