/*
- UserCurve
Styles >= UserCurve are reserved for derived
classes of QwtPlotCurve that overload drawCurve() with
additional application specific curve types.
*/
enum CurveStyle
{
NoCurve,
Lines,
Sticks,
Steps,
Dots,
UserCurve = 100
};
/*
- UserCurve
Styles >= UserCurve are reserved for derived
classes of QwtPlotCurve that overload drawCurve() with
additional application specific curve types.
*/
enum CurveStyle
{
NoCurve,
Lines,
Sticks,
Steps,
Dots,
UserCurve = 100
};
To copy to clipboard, switch view to plain text mode
int from, int to) const
{
switch (style)
{
case Lines:
if ( testCurveAttribute(Fitted) )
{
// we always need the complete
// curve for fitting
from = 0;
to = dataSize() - 1;
}
drawLines(painter, xMap, yMap, from, to);
break;
case Sticks:
drawSticks(painter, xMap, yMap, from, to);
break;
case Steps:
drawSteps(painter, xMap, yMap, from, to);
break;
case Dots:
drawDots(painter, xMap, yMap, from, to);
break;
case DottedLines:
drawDottedLines(painter, xMap, yMap, from, to);
break;
case NoCurve:
default:
break;
}
}
void QwtPlotCurve::drawCurve(QPainter *painter, int style,
const QwtScaleMap &xMap, const QwtScaleMap &yMap,
int from, int to) const
{
switch (style)
{
case Lines:
if ( testCurveAttribute(Fitted) )
{
// we always need the complete
// curve for fitting
from = 0;
to = dataSize() - 1;
}
drawLines(painter, xMap, yMap, from, to);
break;
case Sticks:
drawSticks(painter, xMap, yMap, from, to);
break;
case Steps:
drawSteps(painter, xMap, yMap, from, to);
break;
case Dots:
drawDots(painter, xMap, yMap, from, to);
break;
case DottedLines:
drawDottedLines(painter, xMap, yMap, from, to);
break;
case NoCurve:
default:
break;
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks