41 for ( axisId = 0; axisId <
axisCnt; axisId++ )
60 QFont fscl( fontInfo().family(), 10 );
61 QFont fttl( fontInfo().family(), 12, QFont::Bold );
64 for ( axisId = 0; axisId <
axisCnt; axisId++ )
101 for (
int axisId = 0; axisId <
axisCnt; axisId++ )
143 if (
axisValid( axisId ) && scaleEngine != NULL )
556 maxMinor = qBound( 0, maxMinor, 100 );
580 maxMajor = qBound( 1, maxMajor, 10000 );
650 for ( it = itmList.begin(); it != itmList.end(); ++it )
664 if ( rect.width() >= 0.0 )
667 if ( rect.height() >= 0.0 )
674 for (
int axisId = 0; axisId <
axisCnt; axisId++ )
690 minValue, maxValue, stepSize );
703 int startDist, endDist;
708 for ( it = itmList.begin(); it != itmList.end(); ++it )
const QwtScaleDiv & axisScaleDiv(int axisId) const
Return the scale division of a specified axis.
QFont axisFont(int axisId) const
void setFont(const QFont &)
void setAxisLabelRotation(int axisId, double rotation)
void setAxisFont(int axisId, const QFont &f)
Change the font of an axis.
A class representing an interval.
int xAxis() const
Return xAxis.
void setAxisMaxMajor(int axisId, int maxMajor)
QList< QwtPlotItem * > QwtPlotItemList
See QT 4.x assistant documentation for QList.
void setAxisScaleDraw(int axisId, QwtScaleDraw *)
Set a scale draw.
const QwtPlotItemList & itemList() const
A QwtPlotItemList of all attached plot items.
void autoRefresh()
Replots the plot if autoReplot() is true.
Y axis right of the canvas.
A class representing a scale division.
double invTransform(int axisId, int pos) const
bool axisEnabled(int axisId) const
QwtTransform * transformation() const
Y axis left of the canvas.
void setAxisScaleDiv(int axisId, const QwtScaleDiv &)
Disable autoscaling and specify a fixed scale for a selected axis.
QList< QwtPlotItem * >::ConstIterator QwtPlotItemIterator
static bool axisValid(int axisId)
const QwtScaleWidget * axisWidget(int axisId) const
void setAxisLabelAlignment(int axisId, Qt::Alignment)
bool testItemAttribute(ItemAttribute) const
void setAxisTitle(int axisId, const QString &)
Change the title of a specified axis.
virtual void updateLayout()
Adjust plot content to its current size.
void setAxisAutoScale(int axisId, bool on=true)
Enable autoscaling for a specified axis.
void enableAxis(int axisId, bool tf=true)
Enable or disable a specified axis.
int axisMaxMinor(int axisId) const
void initAxesData()
Initialize axes.
A class representing a text.
virtual QwtScaleMap canvasMap(int axisId) const
double axisStepSize(int axisId) const
Return the step size parameter that has been set in setAxisScale.
bool axisAutoScale(int axisId) const
int yAxis() const
Return yAxis.
void setAxisScaleEngine(int axisId, QwtScaleEngine *)
QwtScaleEngine * scaleEngine
bool testItemInterest(ItemInterest) const
const QwtScaleDraw * axisScaleDraw(int axisId) const
Return the scale draw of a specified axis.
AxisData * d_axisData[axisCnt]
double transform(int axisId, double value) const
Transform a value into a coordinate in the plotting region.
virtual void autoScale(int maxNumSteps, double &x1, double &x2, double &stepSize) const =0
int axisMaxMajor(int axisId) const
QwtInterval interval() const
QwtScaleEngine * axisScaleEngine(int axisId)
virtual void updateScaleDiv(const QwtScaleDiv &, const QwtScaleDiv &)
Update the item to changes of the axes scale division.
QwtText axisTitle(int axisId) const
A class for drawing scales.
A scale engine for linear scales.
Base class for items on the plot canvas.
virtual QwtScaleDiv divideScale(double x1, double x2, int maxMajorSteps, int maxMinorSteps, double stepSize=0.0) const =0
Calculate a scale division.
QwtScaleWidget * scaleWidget
void setAxisScale(int axisId, double min, double max, double step=0)
Disable autoscaling and specify a fixed scale for a selected axis.
QwtInterval axisInterval(int axisId) const
Return the current interval of the specified axis.
void updateAxes()
Rebuild the axes scales.
void setAxisMaxMinor(int axisId, int maxMinor)
Base class for scale engines.
virtual QRectF boundingRect() const