示例#1
0
SignalDisplay::SignalDisplay(QWidget *&parent):QWidget(parent)
{
    secsPerDiv = 1.0/600.0;
	voltsPerDiv = 20;
    numSig=2;
	setPointsPerPlot(10);
}
示例#2
0
SignalDisplay::SignalDisplay (QWidget *parent) : QWidget(parent)
{
    colorTrace1 = Qt::red;
    secsPerDiv = 1.0/600.0;
    voltsPerDiv = 20;
    setPointsPerPlot(10);
    traceWidth=1;
    nx = 10;
    ny = 10;
    autoScale=true;
    useSuffixs=true;
    showTextScale=true;
    showBars = true;
    showTraces = false;
    timeLine = new QTimeLine(10,0);
    timeLine->setCurveShape(QTimeLine::EaseInOutCurve);
}
示例#3
0
void SignalDisplay::setNumSig(int value)
{
    numSig = value;
    setPointsPerPlot(pointsPerPlot);
}