214 if ( scaleDraw == NULL )
348 const QRectF &canvasRect )
const 365 QPen pen = painter->pen();
366 pen.setStyle( Qt::SolidLine );
367 painter->setPen( pen );
387 if ( y < canvasRect.top() || y > canvasRect.bottom() )
390 sd->
move( canvasRect.left(), y );
415 if ( x < canvasRect.left() || x > canvasRect.right() )
418 sd->
move( x, canvasRect.top() );
419 sd->
setLength( canvasRect.height() - 1 );
453 scaleDraw->
orientation() == Qt::Horizontal ? xScaleDiv : yScaleDiv;
458 const QRectF canvasRect = plt->
canvas()->contentsRect();
virtual void legendChanged()
void setPosition(double pos)
int borderDistance() const
void setScaleDivFromAxis(bool on)
const QwtScaleDiv & axisScaleDiv(int axisId) const
Return the scale division of a specified axis.
void setAlignment(Alignment)
void setLength(double length)
A class representing an interval.
int xAxis() const
Return xAxis.
virtual int rtti() const QWT_OVERRIDE
const QwtScaleDraw * scaleDraw() const
void setScaleDraw(QwtScaleDraw *)
Set a scale draw.
void setPalette(const QPalette &)
virtual void draw(QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const QWT_OVERRIDE
Draw the scale.
virtual void updateScaleDiv(const QwtScaleDiv &, const QwtScaleDiv &) QWT_OVERRIDE
Update the item to changes of the axes scale division.
A class representing a scale division.
QwtPlot * plot() const
Return attached plot.
void setAlignment(QwtScaleDraw::Alignment)
bool isScaleDivFromAxis() const
void setInterval(double lowerBound, double upperBound)
void setBorderDistance(int)
Align the scale to the canvas.
Alignment alignment() const
const QwtScaleDiv & scaleDiv() const
A class representing a text.
virtual QwtScaleMap canvasMap(int axisId) const
void setZ(double z)
Set the z value.
void setFont(const QFont &)
void setScaleDiv(const QwtScaleDiv &)
int yAxis() const
Return yAxis.
void setScaleDiv(const QwtScaleDiv &)
Assign a scale division.
const QwtTransform * transformation() const
Get the transformation.
double invTransform(double p) const
virtual void itemChanged()
Qt::Orientation orientation() const
QwtPlotScaleItem(QwtScaleDraw::Alignment=QwtScaleDraw::BottomScale, const double pos=0.0)
Constructor for scale item at the position pos.
virtual void draw(QPainter *, const QPalette &) const
Draw the scale.
QwtInterval scaleInterval(const QRectF &, const QwtScaleMap &, const QwtScaleMap &) const
virtual ~QwtPlotScaleItem()
Destructor.
QwtInterval interval() const
void setTransformation(QwtTransform *)
const QwtScaleDiv & scaleDiv() const
A class for drawing scales.
Base class for items on the plot canvas.
double transform(double s) const
void setItemInterest(ItemInterest, bool on=true)
void move(double x, double y)