372 int index,
const QSizeF &size )
const 392 const QBrush &brush,
const QSizeF &size )
const 395 if ( !size.isEmpty() )
399 QRectF r( 0, 0, size.width(), size.height() );
401 QPainter painter( &icon );
402 painter.fillRect( r, brush );
539 return QRectF( 1.0, 1.0, -2.0, -2.0 );
566 double &left,
double &top,
double &right,
double &bottom )
const 570 Q_UNUSED( canvasRect );
573 left = top = right = bottom = 0.0;
603 qVariantSetValue( titleValue, label );
610 qVariantSetValue( iconValue, graphic );
614 QList<QwtLegendData> list;
639 Q_UNUSED( xScaleDiv );
640 Q_UNUSED( yScaleDiv );
662 const QList<QwtLegendData> &data )
679 return QRectF( xMap.
s1(), yMap.
s1(),
694 const QRectF rect( xMap.
p1(), yMap.
p1(),
virtual void legendChanged()
virtual QList< QwtLegendData > legendData() const
Return all information, that is needed to represent the item on the legend.
ItemAttribute
Plot Item Attributes.
QFlags< RenderHint > RenderHints
Render hints.
void show()
Show the item.
int xAxis() const
Return xAxis.
void autoRefresh()
Replots the plot if autoReplot() is true.
Y axis right of the canvas.
QFlags< ItemAttribute > ItemAttributes
Plot Item Attributes.
A class representing a scale division.
QwtGraphic defaultIcon(const QBrush &, const QSizeF &) const
Return a default icon from a brush.
QwtPlot * plot() const
Return attached plot.
Y axis left of the canvas.
QwtPlotItem::ItemInterests interests
QSize legendIconSize() const
QFlags< ItemInterest > ItemInterests
Plot Item Interests.
void setTitle(const QString &title)
void setDefaultSize(const QSizeF &)
Set a default size.
The item is represented on the legend.
bool testItemAttribute(ItemAttribute) const
void setRenderFlags(int flags)
Change the render flags.
bool testRenderHint(RenderHint) const
A class representing a text.
void setZ(double z)
Set the z value.
void attachItem(QwtPlotItem *, bool)
Attach/Detach a plot item.
A paint device for scalable graphics.
int yAxis() const
Return yAxis.
virtual QwtGraphic legendIcon(int index, const QSizeF &) const
virtual ~QwtPlotItem()
Destroy the QwtPlotItem.
QRectF paintRect(const QwtScaleMap &, const QwtScaleMap &) const
Calculate the bounding paint rectangle of 2 maps.
virtual void itemChanged()
void hide()
Hide the item.
uint renderThreadCount() const
virtual void setVisible(bool)
bool testItemInterest(ItemInterest) const
QwtPlotItem::RenderHints renderHints
void attach(QwtPlot *plot)
Attach the item to a plot.
QwtPlotItem::ItemAttributes attributes
void setValue(int role, const QVariant &)
QwtPlotItem(const QwtText &title=QwtText())
virtual void updateScaleDiv(const QwtScaleDiv &, const QwtScaleDiv &)
Update the item to changes of the axes scale division.
void setRenderHint(RenderHint, bool on=true)
void setRenderThreadCount(uint numThreads)
virtual void updateLegend(const QwtPlotItem *, const QList< QwtLegendData > &)
Update the item to changes of the legend info.
Base class for items on the plot canvas.
void setItemAttribute(ItemAttribute, bool on=true)
void setLegendIconSize(const QSize &)
void setAxes(int xAxis, int yAxis)
empty_struct data[sizeof(T)/sizeof(empty_struct)]
void setItemInterest(ItemInterest, bool on=true)
QRectF scaleRect(const QwtScaleMap &, const QwtScaleMap &) const
Calculate the bounding scale rectangle of 2 maps.
virtual void getCanvasMarginHint(const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasSize, double &left, double &top, double &right, double &bottom) const
Calculate a hint for the canvas margin.
ItemInterest
Plot Item Interests.
Attributes of an entry on a legend.
Unspecific value, that can be used, when it doesn't matter.
const QwtText & title() const
void detach()
This method detaches a QwtPlotItem from any QwtPlot it has been associated with.
virtual QRectF boundingRect() const