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

QwtPlotItem Class Reference

Inheritance diagram for QwtPlotItem:

Inheritance graph
[legend]
List of all members.

Detailed Description

Base class for items on the plot canvas.

Definition at line 28 of file qwt_plot_item.h.

Public Types

enum  RttiValues {
  Rtti_PlotItem = 0,
  Rtti_PlotGrid,
  Rtti_PlotMarker,
  Rtti_PlotCurve,
  Rtti_PlotHistogram,
  Rtti_PlotUserItem = 1000
}
enum  ItemAttribute {
  Legend = 1,
  AutoScale = 2
}

Public Member Functions

 QwtPlotItem ()
virtual ~QwtPlotItem ()
void attach (QwtPlot *plot)
void detach ()
QwtPlotplot () const
virtual int rtti () const
void setItemAttribute (ItemAttribute, bool on=true)
bool testItemAttribute (ItemAttribute) const
double z () const
void setZ (double z)
void show ()
void hide ()
virtual void setVisible (bool)
bool isVisible () const
void setAxis (int xAxis, int yAxis)
void setXAxis (int axis)
int xAxis () const
void setYAxis (int axis)
int yAxis () const
virtual void itemChanged ()
virtual void draw (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRect &rect) const =0
virtual QwtDoubleRect boundingRect () const
virtual void updateLegend (QwtLegend *) const
virtual void updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &)
virtual QWidget * legendItem () const


Constructor & Destructor Documentation

QwtPlotItem::QwtPlotItem  )  [explicit]
 

Constructor.

Definition at line 45 of file qwt_plot_item.cpp.

QwtPlotItem::~QwtPlotItem  )  [virtual]
 

Destroy the QwtPlotItem.

Definition at line 51 of file qwt_plot_item.cpp.

References attach().


Member Function Documentation

void QwtPlotItem::attach QwtPlot plot  ) 
 

Attach the item to a plot

Definition at line 60 of file qwt_plot_item.cpp.

References itemChanged(), and legendItem().

Referenced by ~QwtPlotItem().

bool QwtPlotItem::isVisible  )  const
 

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

Definition at line 184 of file qwt_plot_item.cpp.

Referenced by QwtPlot::drawItems().

void QwtPlotItem::itemChanged  )  [virtual]
 

Call QwtPlot::autoRefresh for the parent plot.

Definition at line 190 of file qwt_plot_item.cpp.

References updateLegend().

Referenced by attach(), QwtPlotCurve::copy(), QwtPlotGrid::gridChanged(), QwtPlotMarker::operator=(), setAxis(), QwtPlotCurve::setBaseline(), QwtPlotCurve::setBrush(), QwtPlotCurve::setCurveAttribute(), QwtPlotCurve::setData(), setItemAttribute(), QwtPlotMarker::setLabel(), QwtPlotMarker::setLinePen(), QwtPlotMarker::setLineStyle(), QwtPlotCurve::setPen(), QwtPlotCurve::setRawData(), QwtPlotCurve::setSplineSize(), QwtPlotCurve::setStyle(), QwtPlotMarker::setSymbol(), QwtPlotCurve::setSymbol(), QwtPlotCurve::setTitle(), QwtPlotMarker::setValue(), setVisible(), setXAxis(), setYAxis(), and setZ().

QwtPlot * QwtPlotItem::plot  )  const
 

Return attached plot.

Definition at line 99 of file qwt_plot_item.cpp.

Referenced by QwtPlotCurve::closestPoint(), and QwtPlotCurve::draw().

void QwtPlotItem::setAxis int  xAxis,
int  yAxis
 

Set x and y axis.

Definition at line 202 of file qwt_plot_item.cpp.

References itemChanged().

void QwtPlotItem::setVisible bool  on  )  [virtual]
 

See also:
QwtPlotItem::setVisible

Definition at line 171 of file qwt_plot_item.cpp.

References itemChanged().

Referenced by hide(), and show().

void QwtPlotItem::setXAxis int  axis  ) 
 

Set y axis.

Definition at line 214 of file qwt_plot_item.cpp.

References itemChanged().

void QwtPlotItem::setYAxis int  axis  ) 
 

Set y axis.

Definition at line 224 of file qwt_plot_item.cpp.

References itemChanged().

int QwtPlotItem::xAxis  )  const
 

Return xAxis.

Definition at line 234 of file qwt_plot_item.cpp.

Referenced by QwtPlotCurve::closestPoint(), QwtPlotCurve::draw(), QwtPlot::drawItems(), and QwtPlot::updateAxes().

int QwtPlotItem::yAxis  )  const
 

Return yAxis.

Definition at line 240 of file qwt_plot_item.cpp.

Referenced by QwtPlotCurve::closestPoint(), QwtPlotCurve::draw(), QwtPlot::drawItems(), and QwtPlot::updateAxes().


Generated on Mon Jan 30 22:17:29 2006 for Qwt User's Guide by  doxygen 1.4.4