CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | List of all members
jocassview::PlotCurve Class Reference

an alternative curve plot More...

#include <curve_plot.h>

+ Inheritance diagram for jocassview::PlotCurve:
+ Collaboration diagram for jocassview::PlotCurve:

Public Member Functions

 PlotCurve ()
 default constructor More...
 
 PlotCurve (const QString &title)
 constructor More...
 
void drawSeries (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const
 draw the curve More...
 

Detailed Description

an alternative curve plot

is an qwt plot curve but evaluates whether the point to be drawn is invalid if so it just skips these parts of the curve.

Author
Stephan Kassemeyer
Lutz Foucar

Definition at line 26 of file curve_plot.h.

Constructor & Destructor Documentation

PlotCurve::PlotCurve ( )

default constructor

Definition at line 19 of file curve_plot.cpp.

PlotCurve::PlotCurve ( const QString title)

constructor

Parameters
titleThe title of the curve

Definition at line 24 of file curve_plot.cpp.

Member Function Documentation

void PlotCurve::drawSeries ( QPainter painter,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
const QRectF canvasRect,
int  from,
int  to 
) const

draw the curve

uses the base class draw, but only for areas hat have valid values

Parameters
painter
xMap
yMap
canvasRect
from
to

find the first point that is valid

find the last point that is valid

plot that valid subrange

Definition at line 48 of file curve_plot.cpp.

References data, and validate().


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