GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
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.
Fixed
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.
Expanding
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.
Fitting
The intervals of the axes are calculated, so that all axes include their minimal interval.

Constructor
Parameters:
canvas Canvas
 
referenceAxis Reference axis, see RescalePolicy
 
policy Rescale policy
See also:
setRescalePolicy(), setReferenceAxis()

Return aspect ratio between an axis and the reference axis.
Parameters:
axis Axis index ( see QwtPlot::AxisId )
See also:
setAspectRatio()

Returns:
plot canvas

Returns:
plot canvas

Return direction in which an axis should be expanded
Parameters:
axis Axis index ( see QwtPlot::AxisId )
See also:
setExpandingDirection()

Expand the interval
Parameters:
interval Interval to be expanded
 
width Distance to be added to the interval
 
direction Direction of the expand operation
Returns:
Expanded interval

Calculate the new scale interval of a plot axis
Parameters:
axis Axis index ( see QwtPlot::AxisId )
 
oldSize Previous size of the canvas
 
newSize New size of the canvas
Returns:
Calculated new interval for the axis

Return interval of an axis
Parameters:
axis Axis index ( see QwtPlot::AxisId )

Returns:
true when enabled, false otherwise
See also:
setEnabled, eventFilter()

Return orientation of an axis
Parameters:
axis Axis index ( see QwtPlot::AxisId )

Returns:
plot widget

Returns:
plot widget

Returns:
Reference axis ( see RescalePolicy )
See also:
setReferenceAxis()

Adjust the plot axes scales
Parameters:
oldSize Previous size of the canvas
 
newSize New size of the canvas

Returns:
Rescale policy
See also:
setRescalePolicy()

Set the aspect ratio between the scale of the reference axis and the other scales. The default ratio is 1.0
Parameters:
ratio Aspect ratio
See also:
aspectRatio()

Set the aspect ratio between the scale of the reference axis and another scale. The default ratio is 1.0
Parameters:
axis Axis index ( see QwtPlot::AxisId )
 
ratio Aspect ratio
See also:
aspectRatio()

En/disable the rescaler. When enabled is true an event filter is installed for the canvas, otherwise the event filter is removed.
Parameters:
on true or false
See also:
isEnabled(), eventFilter()

Set the direction in which all axis should be expanded
Parameters:
direction Direction
See also:
expandingDirection()

Set the direction in which an axis should be expanded
Parameters:
axis Axis index ( see QwtPlot::AxisId )
 
direction Direction
See also:
expandingDirection()

Set the reference axis ( see RescalePolicy )
Parameters:
axis Axis index ( QwtPlot::Axis )
See also:
referenceAxis()

Change the rescale policy
Parameters:
policy Rescale policy
See also:
rescalePolicy()

Synchronize an axis scale according to the scale of the reference axis
Parameters:
axis Axis index ( see QwtPlot::AxisId )
 
reference Interval of the reference axis
 
size Size of the canvas

Update the axes scales
Parameters:
intervals Scale intervals

Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 Version 5.2.3

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.