24 #ifndef _vtkQtChartContentsSpace_h
25 #define _vtkQtChartContentsSpace_h
28 #include "vtkQtChartExport.h"
31 class vtkQtChartContentsSpaceInternal;
54 float getXOffset()
const {
return this->OffsetX;}
82 float getContentsWidth()
const;
88 float getContentsHeight()
const;
97 void translateToLayerContents(QPointF &
point)
const;
107 void translateToLayerContents(QRectF &area)
const;
112 float getChartWidth()
const {
return this->Width;}
132 void setChartSize(
float width,
float height);
137 void getChartLayerBounds(QRectF &bounds)
const;
142 void setChartLayerBounds(
const QRectF &bounds);
147 float getXZoomFactor()
const {
return this->ZoomFactorX;}
163 void zoomToFactor(
float factor);
180 void zoomToFactor(
float xFactor,
float yFactor);
186 void zoomToFactorX(
float factor);
192 void zoomToFactorY(
float factor);
197 void startInteraction();
213 bool isInInteraction()
const;
218 void finishInteraction();
223 bool isHistoryPreviousAvailable()
const;
233 bool isHistoryNextAvailable()
const;
240 void setXOffset(
float offset);
245 void setYOffset(
float offset);
250 void setMaximumXOffset(
float maximum);
255 void setMaximumYOffset(
float maximum);
276 void historyPrevious();
283 static float getZoomFactorStep();
288 static void setZoomFactorStep(
float step);
298 static float getPanStep();
303 static void setPanStep(
float step);
309 void xOffsetChanged(
float offset);
314 void yOffsetChanged(
float offset);
324 void maximumChanged(
float xMaximum,
float yMaximum);
330 void historyPreviousAvailabilityChanged(
bool available);
336 void historyNextAvailabilityChanged(
bool available);
344 vtkQtChartContentsSpaceInternal *Internal;
354 static float ZoomFactorStep;
355 static float PanStep;