10 #ifndef QWT_PLOT_RESCALER_H
11 #define QWT_PLOT_RESCALER_H
84 RescalePolicy = Expanding );
88 void setEnabled(
bool );
89 bool isEnabled()
const;
91 void setRescalePolicy( RescalePolicy );
92 RescalePolicy rescalePolicy()
const;
94 void setExpandingDirection( ExpandingDirection );
95 void setExpandingDirection(
QwtAxisId, ExpandingDirection );
96 ExpandingDirection expandingDirection(
QwtAxisId )
const;
101 void setAspectRatio(
double ratio );
102 void setAspectRatio(
QwtAxisId,
double ratio );
109 const QWidget* canvas()
const;
114 virtual bool eventFilter( QObject*, QEvent* )
QWT_OVERRIDE;
116 void rescale()
const;
119 virtual void canvasResizeEvent( QResizeEvent* );
121 virtual void rescale(
const QSize& oldSize,
const QSize& newSize )
const;
123 QwtAxisId,
const QSize& oldSize,
const QSize& newSize )
const;
128 virtual void updateScales(
131 Qt::Orientation orientation(
QwtAxisId )
const;
134 double width, ExpandingDirection )
const;
137 double pixelDist(
QwtAxisId,
const QSize& )
const;