42 for ( axisId = 0; axisId <
axisCnt; axisId++ )
61 QFont fscl( fontInfo().family(), 10 );
62 QFont fttl( fontInfo().family(), 12, QFont::Bold );
65 for ( axisId = 0; axisId <
axisCnt; axisId++ )
102 for (
int axisId = 0; axisId <
axisCnt; axisId++ )
144 if (
axisValid( axisId ) && scaleEngine != NULL )
557 maxMinor = qBound( 0, maxMinor, 100 );
581 maxMajor = qBound( 1, maxMajor, 10000 );
651 for ( it = itmList.begin(); it != itmList.end(); ++it )
665 if ( rect.width() >= 0.0 )
668 if ( rect.height() >= 0.0 )
675 for (
int axisId = 0; axisId <
axisCnt; axisId++ )
691 minValue, maxValue, stepSize );
704 int startDist, endDist;
709 for ( it = itmList.begin(); it != itmList.end(); ++it )
void setAxisFont(int axisId, const QFont &)
Change the font of an axis.
enum MQTTPropertyCodes value
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)
A class representing an interval.
int xAxis() const
Return xAxis.
void setAxisMaxMajor(int axisId, int maxMajor)
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 *)
void setAxisScale(int axisId, double min, double max, double stepSize=0)
Disable autoscaling and specify a fixed scale for a selected axis.
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
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