Go to the documentation of this file.
403 int index,
const QSizeF&
size )
const
423 const QBrush& brush,
const QSizeF&
size )
const
426 if ( !
size.isEmpty() )
430 QRectF r( 0, 0,
size.width(),
size.height() );
432 QPainter painter( &icon );
433 painter.fillRect( r, brush );
570 return QRectF( 1.0, 1.0, -2.0, -2.0 );
597 double&
left,
double&
top,
double&
right,
double& bottom )
const
601 Q_UNUSED( canvasRect );
634 QVariant::fromValue( label ) );
640 QVariant::fromValue( graphic ) );
668 Q_UNUSED( xScaleDiv );
669 Q_UNUSED( yScaleDiv );
708 return QRectF( xMap.
s1(), yMap.
s1(),
723 const QRectF rect( xMap.
p1(), yMap.
p1(),
Attributes of an entry on a legend.
ItemInterest
Plot Item Interests.
ItemAttribute
Plot Item Attributes.
virtual void getCanvasMarginHint(const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const
Calculate a hint for the canvas margin.
bool isYAxis(int axisPos)
void setItemInterest(ItemInterest, bool on=true)
QwtPlotItem::ItemInterests interests
virtual void legendChanged()
A paint device for scalable graphics.
void show()
Show the item.
QwtGraphic defaultIcon(const QBrush &, const QSizeF &) const
Return a default icon from a brush.
void setRenderFlags(int)
Change the render flags.
void setAxes(QwtAxisId xAxis, QwtAxisId yAxis)
@ Legend
The item is represented on the legend.
@ YLeft
Y axis left of the canvas.
void setTitle(const QString &title)
QwtAxisId xAxis() const
Return xAxis.
virtual QRectF boundingRect() const
QwtPlot * plot() const
Return attached plot.
void autoRefresh()
Replots the plot if autoReplot() is true.
QwtPlotItem::ItemAttributes attributes
span_constexpr std::size_t size(span< T, Extent > const &spn)
virtual ~QwtPlotItem()
Destroy the QwtPlotItem.
A class representing a text.
virtual QwtGraphic legendIcon(int index, const QSizeF &) const
QRectF paintRect(const QwtScaleMap &, const QwtScaleMap &) const
Calculate the bounding paint rectangle of 2 maps.
@ Rtti_PlotItem
Unspecific value, that can be used, when it doesn't matter.
void setZ(double z)
Set the z value.
void hide()
Hide the item.
Base class for items on the plot canvas.
virtual QList< QwtLegendData > legendData() const
Return all information, that is needed to represent the item on the legend.
bool isXAxis(int axisPos)
virtual void itemChanged()
QRectF scaleRect(const QwtScaleMap &, const QwtScaleMap &) const
Calculate the bounding scale rectangle of 2 maps.
int QwtAxisId
Axis identifier.
void attachItem(QwtPlotItem *, bool)
Attach/Detach a plot item.
bool testItemInterest(ItemInterest) const
void setRenderThreadCount(uint numThreads)
void setItemAttribute(ItemAttribute, bool on=true)
QwtPlotItem::RenderHints renderHints
virtual void updateScaleDiv(const QwtScaleDiv &, const QwtScaleDiv &)
Update the item to changes of the axes scale division.
virtual void updateLegend(const QwtPlotItem *, const QList< QwtLegendData > &)
Update the item to changes of the legend info.
A class representing a scale division.
virtual void setVisible(bool)
void setRenderHint(RenderHint, bool on=true)
void attach(QwtPlot *plot)
Attach the item to a plot.
bool testRenderHint(RenderHint) const
void setLegendIconSize(const QSize &)
void detach()
This method detaches a QwtPlotItem from any QwtPlot it has been associated with.
void setDefaultSize(const QSizeF &)
Set a default size.
bool testItemAttribute(ItemAttribute) const
QwtAxisId yAxis() const
Return yAxis.
const QwtText & title() const
QSize legendIconSize() const
uint renderThreadCount() const
@ XBottom
X axis below the canvas.
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46