Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Plot2d_QwtPlotCurve Class Reference

#include <Plot2d_PlotItems.h>

Inheritance diagram for Plot2d_QwtPlotCurve:
Inheritance graph

Classes

class  Plot2d_DeviationData
 

Public Member Functions

 Plot2d_QwtPlotCurve (const QString &, QwtPlot::Axis=QwtPlot::yLeft)
 
virtual ~Plot2d_QwtPlotCurve ()
 
virtual void setYAxisIdentifierEnabled (const bool)
 
virtual void drawSeries (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const
 
void setDeviationData (const double *min, const double *max, const QList< int > &idx)
 
bool hasDeviationData () const
 
void clearDeviationData ()
 
- Public Member Functions inherited from Plot2d_SelectableItem
 Plot2d_SelectableItem ()
 
 ~Plot2d_SelectableItem ()
 
void setSelected (const bool)
 
bool isSelected () const
 
void setLegendPen (const QPen &)
 
QPen legendPen () const
 
void setLegendSymbol (const QwtSymbol *)
 
QwtSymbol * legendSymbol () const
 

Protected Member Functions

virtual void updateLegend (const QwtPlotItem *, const QList< QwtLegendData > &)
 
virtual void itemChanged ()
 
QColor deviationMarkerColor () const
 
int deviationMarkerLineWidth () const
 
int deviationMarkerTickSize () const
 

Private Attributes

QwtPlot::Axis myYAxis
 
bool myYAxisIdentifierEnabled
 
Plot2d_DeviationDatamyDeviationData
 

Constructor & Destructor Documentation

Plot2d_QwtPlotCurve::Plot2d_QwtPlotCurve ( const QString &  title,
QwtPlot::Axis  yAxis = QwtPlot::yLeft 
)

Constructor of Plot2d_QwtPlotCurve

Plot2d_QwtPlotCurve::~Plot2d_QwtPlotCurve ( )
virtual

Destructor of Plot2d_QwtPlotCurve

References clearDeviationData().

Member Function Documentation

void Plot2d_QwtPlotCurve::clearDeviationData ( )

Remove deviation data from the plot item.

References myDeviationData.

QColor Plot2d_QwtPlotCurve::deviationMarkerColor ( ) const
protected

Return color of the deviation marker.

References PLOT2D_DEVIATION_COLOR.

int Plot2d_QwtPlotCurve::deviationMarkerLineWidth ( ) const
protected

Return line width of the deviation marker.

References PLOT2D_DEVIATION_LW.

int Plot2d_QwtPlotCurve::deviationMarkerTickSize ( ) const
protected

Return tick size of the deviation marker.

References PLOT2D_DEVIATION_TS.

void Plot2d_QwtPlotCurve::drawSeries ( QPainter *  painter,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
const QRectF &  canvasRect,
int  from,
int  to 
) const
virtual
bool Plot2d_QwtPlotCurve::hasDeviationData ( ) const

Return true if deviation is assigned to the plot item, false otherwise.

References myDeviationData.

void Plot2d_QwtPlotCurve::itemChanged ( )
protectedvirtual

Redefined method, which updates and calls QwtPlot::autoRefresh() for the parent plot

References updateLegend().

void Plot2d_QwtPlotCurve::setDeviationData ( const double *  min,
const double *  max,
const QList< int > &  idx 
)

Sets deviation data for the plot item.

References clearDeviationData(), and myDeviationData.

void Plot2d_QwtPlotCurve::setYAxisIdentifierEnabled ( const bool  on)
virtual

Enable / disable Y axis identifier

References myYAxisIdentifierEnabled.

void Plot2d_QwtPlotCurve::updateLegend ( const QwtPlotItem thePlotItem,
const QList< QwtLegendData > &  theLegendData 
)
protectedvirtual

Member Data Documentation

Plot2d_DeviationData* Plot2d_QwtPlotCurve::myDeviationData
private
QwtPlot::Axis Plot2d_QwtPlotCurve::myYAxis
private
bool Plot2d_QwtPlotCurve::myYAxisIdentifierEnabled
private

The documentation for this class was generated from the following files: