QwtPlotRescaler(3) | Qwt User's Guide | QwtPlotRescaler(3) |
QwtPlotRescaler -
#include <qwt_plot_rescaler.h>
enum ExpandingDirection { ExpandUp,
ExpandDown, ExpandBoth }
enum RescalePolicy { Fixed, Expanding, Fitting }
QwtPlotRescaler (QwtPlotCanvas *, int
referenceAxis=QwtPlot::xBottom, RescalePolicy=Expanding)
virtual ~QwtPlotRescaler ()
double aspectRatio (int axis) const
QwtPlotCanvas * canvas ()
const QwtPlotCanvas * canvas () const
virtual bool eventFilter (QObject *, QEvent *)
ExpandingDirection expandingDirection (int axis) const
QwtDoubleInterval intervalHint (int axis) const
bool isEnabled () const
QwtPlot * plot ()
const QwtPlot * plot () const
int referenceAxis () const
void rescale () const
RescalePolicy rescalePolicy () const
void setAspectRatio (double ratio)
void setAspectRatio (int axis, double ratio)
void setEnabled (bool)
void setExpandingDirection (ExpandingDirection)
void setExpandingDirection (int axis, ExpandingDirection)
void setIntervalHint (int axis, const QwtDoubleInterval &)
void setReferenceAxis (int axis)
void setRescalePolicy (RescalePolicy)
virtual void canvasResizeEvent (QResizeEvent *)
QwtDoubleInterval expandInterval (const QwtDoubleInterval
&, double width, ExpandingDirection) const
virtual QwtDoubleInterval expandScale (int axis, const QSize
&oldSize, const QSize &newSize) const
QwtDoubleInterval interval (int axis) const
Qt::Orientation orientation (int axis) const
virtual void rescale (const QSize &oldSize, const QSize
&newSize) const
virtual QwtDoubleInterval syncScale (int axis, const
QwtDoubleInterval &reference, const QSize &size) const
virtual void updateScales (QwtDoubleInterval
intervals[QwtPlot::axisCnt]) const
QwtPlotRescaler takes care of fixed aspect ratios for plot scales.
QwtPlotRescaler autoadjusts the axes of a QwtPlot according to fixed aspect ratios.
Rescale Policy. The rescale policy defines how to rescale the reference axis and their depending axes.
The interval of the reference axis remains unchanged, when the geometry of the canvas changes. All other axes will be adjusted according to their aspect ratio.
The interval of the reference axis will be shrinked/expanded, when the geometry of the canvas changes. All other axes will be adjusted according to their aspect ratio.
The interval, that is represented by one pixel is fixed.
The intervals of the axes are calculated, so that all axes include their minimal interval.
Constructor
Parameters:
See also:
Return aspect ratio between an axis and the reference axis.
Parameters:
See also:
Returns:
Returns:
Return direction in which an axis should be expanded
Parameters:
See also:
Expand the interval
Parameters:
Returns:
Calculate the new scale interval of a plot axis
Parameters:
Returns:
Return interval of an axis
Parameters:
Returns:
See also:
Return orientation of an axis
Parameters:
Returns:
Returns:
Returns:
See also:
Adjust the plot axes scales
Parameters:
Returns:
See also:
Set the aspect ratio between the scale of the reference axis and the other scales. The default ratio is 1.0
Parameters:
See also:
Set the aspect ratio between the scale of the reference axis and another scale. The default ratio is 1.0
Parameters:
See also:
En/disable the rescaler. When enabled is true an event filter is installed for the canvas, otherwise the event filter is removed.
Parameters:
See also:
Set the direction in which all axis should be expanded
Parameters:
See also:
Set the direction in which an axis should be expanded
Parameters:
See also:
Set the reference axis ( see RescalePolicy )
Parameters:
See also:
Change the rescale policy
Parameters:
See also:
Synchronize an axis scale according to the scale of the reference axis
Parameters:
Update the axes scales
Parameters:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 | Version 5.2.3 |