Go to the documentation of this file.
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 );
458 const QRectF canvasRect = plt->
canvas()->contentsRect();
virtual void draw(QPainter *, const QPalette &) const
Draw the scale.
int borderDistance() const
A class for drawing scales.
Alignment alignment() const
@ RightScale
The scale is right.
@ Rtti_PlotScale
For QwtPlotScaleItem.
void setItemInterest(ItemInterest, bool on=true)
void setTransformation(QwtTransform *)
void setBorderDistance(int)
Align the scale to the canvas.
double invTransform(double p) const
QwtPlotScaleItem(QwtScaleDraw::Alignment=QwtScaleDraw::BottomScale, const double pos=0.0)
Constructor for scale item at the position pos.
const QwtScaleDiv & scaleDiv() const
virtual void legendChanged()
void setScaleDiv(const QwtScaleDiv &)
Assign a scale division.
const QwtScaleDraw * scaleDraw() const
void setScaleDiv(const QwtScaleDiv &)
Qt::Orientation orientation() const
const QwtScaleDiv & scaleDiv() const
void setInterval(double lowerBound, double upperBound)
QwtInterval scaleInterval(const QRectF &, const QwtScaleMap &, const QwtScaleMap &) const
QwtAxisId xAxis() const
Return xAxis.
QwtPlot * plot() const
Return attached plot.
virtual ~QwtPlotScaleItem()
Destructor.
A class representing an interval.
A class representing a text.
void setPosition(double pos)
void setZ(double z)
Set the z value.
virtual int rtti() const QWT_OVERRIDE
void setScaleDraw(QwtScaleDraw *)
Set a scale draw.
Base class for items on the plot canvas.
void move(double x, double y)
double transform(double s) const
virtual void itemChanged()
const QwtScaleDiv & axisScaleDiv(QwtAxisId) const
Return the scale division of a specified axis.
void setPalette(const QPalette &)
virtual void draw(QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const QWT_OVERRIDE
Draw the scale.
@ BottomScale
The scale is below.
void setScaleDivFromAxis(bool on)
bool isScaleDivFromAxis() const
A class representing a scale division.
const QwtTransform * transformation() const
Get the transformation.
virtual void updateScaleDiv(const QwtScaleDiv &, const QwtScaleDiv &) QWT_OVERRIDE
Update the item to changes of the axes scale division.
void setAlignment(QwtScaleDraw::Alignment)
virtual QwtScaleMap canvasMap(QwtAxisId) const
void setFont(const QFont &)
void setAlignment(Alignment)
QwtAxisId yAxis() const
Return yAxis.
QwtInterval interval() const
void setLength(double length)
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46