Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

QwtPlotItem Class Reference

Base class for items on the plot canvas. More...

#include <qwt_plot_item.h>

Inheritance diagram for QwtPlotItem:

QwtPlotMappedItem QwtPlotCurve QwtPlotGrid QwtPlotMarker List of all members.

Public Member Functions

 QwtPlotItem (QwtPlot *parent, bool nbl=TRUE)
virtual ~QwtPlotItem ()
void reparent (QwtPlot *plot)
QwtPlotparentPlot ()
const QwtPlotparentPlot () const
virtual void setEnabled (bool)
bool enabled () const
virtual void itemChanged ()

Private Attributes

bool d_enabled
QwtPlotd_parent

Detailed Description

Base class for items on the plot canvas.

Definition at line 21 of file qwt_plot_item.h.


Constructor & Destructor Documentation

QwtPlotItem::QwtPlotItem QwtPlot parent,
bool  nbl = TRUE
 

Constructor.

Definition at line 14 of file qwt_plot_item.cpp.

References d_enabled, and d_parent.

QwtPlotItem::~QwtPlotItem  )  [virtual]
 

Destroy the QwtPlotItem.

Definition at line 21 of file qwt_plot_item.cpp.


Member Function Documentation

bool QwtPlotItem::enabled  )  const
 

Returns:
TRUE if enabled
See also:
QwtPlotItem::setEnabled

Definition at line 48 of file qwt_plot_item.cpp.

Referenced by QwtPlot::drawCanvasItems().

void QwtPlotItem::itemChanged  )  [virtual]
 

Call QwtPlot::autoRefresh for the parent plot.

Definition at line 54 of file qwt_plot_item.cpp.

References QwtPlot::autoRefresh(), and d_parent.

Referenced by QwtPlotCurve::curveChanged(), QwtPlotGrid::gridChanged(), QwtPlotMarker::markerChanged(), QwtPlotMappedItem::setAxis(), setEnabled(), QwtPlotMappedItem::setXAxis(), and QwtPlotMappedItem::setYAxis().

const QwtPlot* QwtPlotItem::parentPlot  )  const [inline]
 

Returns:
parent plot

Definition at line 33 of file qwt_plot_item.h.

QwtPlot* QwtPlotItem::parentPlot  )  [inline]
 

Returns:
parent plot

Definition at line 30 of file qwt_plot_item.h.

void QwtPlotItem::reparent QwtPlot plot  ) 
 

reparent the item

Definition at line 26 of file qwt_plot_item.cpp.

References d_parent.

Referenced by QwtPlot::insertCurve(), and QwtPlot::insertMarker().

void QwtPlotItem::setEnabled bool  tf  )  [virtual]
 

enables the item

See also:
QwtPlotItem::setEnabled

Definition at line 35 of file qwt_plot_item.cpp.

References d_enabled, and itemChanged().


Member Data Documentation

bool QwtPlotItem::d_enabled [private]
 

Definition at line 41 of file qwt_plot_item.h.

Referenced by QwtPlotItem(), and setEnabled().

QwtPlot* QwtPlotItem::d_parent [private]
 

Definition at line 42 of file qwt_plot_item.h.

Referenced by itemChanged(), QwtPlotItem(), and reparent().


The documentation for this class was generated from the following files:
Generated on Fri Nov 7 14:11:49 2003 for Qwt Developer's Guide by doxygen 1.3.2