QwtPlotIntervalCurve Class Reference

Inheritance diagram for QwtPlotIntervalCurve:
Inheritance graph
[legend]

List of all members.

Public Types

enum  CurveStyle {
  NoCurve,
  Tube,
  UserCurve = 100
}

Public Member Functions

 QwtPlotIntervalCurve (const QString &title=QString::null)
 QwtPlotIntervalCurve (const QwtText &title)
virtual ~QwtPlotIntervalCurve ()
virtual int rtti () const
void setSamples (const QVector< QwtIntervalSample > &)
void setPen (const QPen &)
const QPen & pen () const
void setBrush (const QBrush &)
const QBrush & brush () const
void setCurveStyle (CurveStyle style)
CurveStyle curveStyle () const
void setSymbol (const QwtIntervalSymbol &)
const QwtIntervalSymbolsymbol () const
virtual void drawSeries (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const
virtual QRectF boundingRect () const
virtual void drawLegendIdentifier (QPainter *, const QRectF &) const

Protected Member Functions

void init ()
virtual void drawTube (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const
virtual void drawSymbols (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const

Constructor & Destructor Documentation

QwtPlotIntervalCurve::QwtPlotIntervalCurve ( const QString &  title = QString::null  )  [explicit]

Ctor.

Parameters:
title title of the curve
QwtPlotIntervalCurve::QwtPlotIntervalCurve ( const QwtText title  )  [explicit]

Ctor.

Parameters:
title title of the curve
QwtPlotIntervalCurve::~QwtPlotIntervalCurve (  )  [virtual]

Dtor.


Member Function Documentation

QRectF QwtPlotIntervalCurve::boundingRect (  )  const [virtual]
Returns:
An invalid bounding rect: QRectF(1.0, 1.0, -2.0, -2.0)

Reimplemented from QwtPlotSeriesItem< QwtIntervalSample >.

QwtPlotIntervalCurve::CurveStyle QwtPlotIntervalCurve::curveStyle (  )  const

Return the current style.

See also:
setStyle()
void QwtPlotIntervalCurve::drawLegendIdentifier ( QPainter *  ,
const QRectF &   
) const [virtual]

QwtLegendItem can display an icon-identifier followed by a text. The icon helps to identify a plot item on the plot canvas and depends on the type of information, that is displayed.

The default implementation paints nothing.

Reimplemented from QwtLegendItemManager.

void QwtPlotIntervalCurve::init (  )  [protected]

Initialize data members.

const QPen & QwtPlotIntervalCurve::pen (  )  const

Return the pen used to draw the lines.

See also:
setPen(), brush()
int QwtPlotIntervalCurve::rtti (  )  const [virtual]

Return rtti for the specific class represented. QwtPlotItem is simply a virtual interface class, and base classes will implement this method with specific rtti values so a user can differentiate them.

The rtti value is useful for environments, where the runtime type information is disabled and it is not possible to do a dynamic_cast<...>.

Returns:
rtti value
See also:
RttiValues

Reimplemented from QwtPlotItem.

void QwtPlotIntervalCurve::setPen ( const QPen &  p  ) 

Assign a pen.

Parameters:
p New pen
See also:
pen(), brush()

Generated by  doxygen 1.6.2