QwtPlotRescaler(3) | Qwt User's Guide | QwtPlotRescaler(3) |
QwtPlotRescaler - QwtPlotRescaler takes care of fixed aspect ratios for plot scales.
#include <qwt_plot_rescaler.h>
Inherits QObject.
enum RescalePolicy { Fixed, Expanding,
Fitting }
enum ExpandingDirection { ExpandUp, ExpandDown,
ExpandBoth }
QwtPlotRescaler (QWidget *canvas, int
referenceAxis=QwtPlot::xBottom,
RescalePolicy=Expanding)
virtual ~QwtPlotRescaler ()
Destructor. void setEnabled (bool)
En/disable the rescaler. bool isEnabled () const
void setRescalePolicy (RescalePolicy)
RescalePolicy rescalePolicy () const
void setExpandingDirection (ExpandingDirection)
void setExpandingDirection (int axis, ExpandingDirection)
ExpandingDirection expandingDirection (int axis) const
void setReferenceAxis (int axis)
int referenceAxis () const
void setAspectRatio (double ratio)
void setAspectRatio (int axis, double ratio)
double aspectRatio (int axis) const
void setIntervalHint (int axis, const QwtInterval &)
QwtInterval intervalHint (int axis) const
QWidget * canvas ()
const QWidget * canvas () const
QwtPlot * plot ()
const QwtPlot * plot () const
virtual bool eventFilter (QObject *, QEvent *)
Event filter for the plot canvas. void rescale () const
Adjust the plot axes scales.
virtual void canvasResizeEvent (QResizeEvent *)
virtual void rescale (const QSize &oldSize, const QSize
&newSize) const
virtual QwtInterval expandScale (int axis, const QSize
&oldSize, const QSize &newSize) const
virtual QwtInterval syncScale (int axis, const
QwtInterval &reference, const QSize &size) const
virtual void updateScales (QwtInterval
intervals[QwtPlot::axisCnt]) const
Qt::Orientation orientation (int axis) const
QwtInterval interval (int axis) const
QwtInterval expandInterval (const QwtInterval &,
double width, ExpandingDirection) const
QwtPlotRescaler takes care of fixed aspect ratios for plot scales.
QwtPlotRescaler auto adjusts the axes of a QwtPlot according to fixed aspect ratios.
When rescalePolicy() is set to Expanding its direction depends on ExpandingDirection
Enumerator
The rescale policy defines how to rescale the reference axis and their depending axes.
See also:
Enumerator
The interval, that is represented by one pixel is fixed.
Constructor
Parameters:
See also:
Returns:
Parameters:
See also:
Returns:
Returns:
Event handler for resize events of the plot canvas
Parameters:
See also:
Returns:
Parameters:
See also:
Expand the interval
Parameters:
Returns:
Calculate the new scale interval of a plot axis
Parameters:
Returns:
Parameters:
Returns:
Parameters:
Returns:
See also:
Returns:
See also:
Returns:
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 an interval hint for an axis
In Fitting mode, the hint is used as minimal interval that always needs to be displayed.
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:
Returns:
Update the axes scales
Parameters:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |