212 if ( scaleDraw == NULL )
346 const QRectF &canvasRect )
const 363 QPen pen = painter->pen();
364 pen.setStyle( Qt::SolidLine );
365 painter->setPen( pen );
385 if ( y < canvasRect.top() || y > canvasRect.bottom() )
388 sd->
move( canvasRect.left(), y );
413 if ( x < canvasRect.left() || x > canvasRect.right() )
416 sd->
move( x, canvasRect.top() );
417 sd->
setLength( canvasRect.height() - 1 );
451 scaleDraw->
orientation() == Qt::Horizontal ? xScaleDiv : yScaleDiv;
456 const QRectF canvasRect = plt->
canvas()->contentsRect();
virtual void updateScaleDiv(const QwtScaleDiv &, const QwtScaleDiv &)
Update the item to changes of the axes scale division.
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.
const QwtScaleDraw * scaleDraw() const
void setScaleDraw(QwtScaleDraw *)
Set a scale draw.
void setPalette(const QPalette &)
A class representing a scale division.
QwtPlot * plot() const
Return attached plot.
TFSIMD_FORCE_INLINE const tfScalar & y() const
void setAlignment(QwtScaleDraw::Alignment)
bool isScaleDivFromAxis() const
void setInterval(double lowerBound, double upperBound)
virtual void draw(QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &rect) const
Draw the scale.
Alignment alignment() const
const QwtScaleDiv & scaleDiv() const
void setBorderDistance(int numPixels)
Align the scale to the canvas.
A class representing a text.
virtual QwtScaleMap canvasMap(int axisId) const
void setZ(double z)
Set the z value.
void setFont(const QFont &)
int yAxis() const
Return yAxis.
TFSIMD_FORCE_INLINE const tfScalar & x() const
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 setScaleDiv(const QwtScaleDiv &s)
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)