91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 237KB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2021-06-14
  • 語言: C/C++
  • 標(biāo)簽: qt??ecg??monitor??

資源簡介

這個(gè)是基于qt的心電監(jiān)護(hù)軟件系統(tǒng)設(shè)計(jì)。qt是以C++為基礎(chǔ)的軟件。

資源截圖

代碼片段和文件信息

#include?“device.h“
#include?“ui_device.h“
device::device(QWidget?*parent)?:
????QWidget(parent)
????ui(new?Ui::device)
{
????ui->setupUi(this);
????ydata=QVector(6500000);
????xdata=QVector(6500000);
????subdata=QVector(6500000);
????rdata=QVector(650000);
????HR=0;
????i=0;
????j=0;
????k=0;
????Flags=1;
????p=0;
????file=new?QFile(this);
????savefile=new?QFile(this);
????time=new?QTimer(this);
????connect(timeSIGNAL(timeout())thisSLOT(getdataSlot()));

}

device::~device()
{
????delete?ui;
????delete?file;
????delete?savefile;
}
void?device::getdataSlot()
{
????if(in->atEnd())
????{
????????savedata();
????????emit?overSignal();
????????return;
????}

????ydata[i]=(double)(((in->readLine())).toDouble());
????i++;
????if(Flags)
????{
?????????wavedisplay();
????}
????if(i!=1&&i!=2)
????{
?????????HRcal();
????}
}
void?device::wavedisplay()
{
????xdata[p]=k;
????k=k+0.004;
????emit?wavedataSignal(xdata[p]ydata[i-1]);
????p++;
????return;
}

void?device::HRcal()
{
????//subdata[i]=ydata[i-1]-ydata[i-3];
????subdata[i]=ydata[i-1]-2*ydata[i-2]+ydata[i-3];
????if(subdata[i]>=15)
????{
????????rdata[j]=i;
????????if(j>=1&&(rdata[j]-rdata[j-1])<20)
????????{
????????????return;
????????}
????????if(j>=1)
????????{
????????????HR=60/((rdata[j]-rdata[j-1])*0.004);
????????????qDebug()<<“HR=“<????????????emit?HRdataSignal(HR);
????????}
????????j++;
????}
????return;
}
void?device::setFlags(int?value)
{
????Flags=value;
}
void?device::openfile()
{
????ydata.clear();
????xdata.clear();
????subdata.clear();
????rdata.clear();
????ydata=QVector(6500000);
????xdata=QVector(6500000);
????subdata=QVector(6500000);
????rdata=QVector(650000);
????HR=0;
????i=0;
????j=0;
????k=0;
????Flags=1;
????p=0;
????file->setFileName(“ECG.txt“);
????file->open(QIODevice::ReadOnly?|?QIODevice::Text);
????in=new?QTextStream(file);
????time->start(4);
}
void?device::shutdown()
{
????time->stop();
????file->close();
}
void?device::savedata()
{
????if(ydata.isEmpty())
????{
????????QMessageBox::information(this“ERROR““Sorry?No?Data“);
????????return;
????}
????QString?saveFileName=QFileDialog::getSaveFileName(this“Save?File“QDir::currentPath());
????if(saveFileName.isEmpty())
????{
????????QMessageBox::information(this“Error““Please?Text?A?Name“);
????????return;
????}
????savefile->setFileName(saveFileName);
????bool?ok=savefile->open(QIODevice::WriteOnly?|?QIODevice::Text);
????if(ok)
????{
????????QTextStream?out(savefile);
????????for(int?z=0;z????????{
????????????out<????????????out<????????}
????????savefile->close();

????}
????else
????{
????????QMessageBox::information(this“Error““Save?File?Error“);
????????return;
????}
}

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件???????2898??2018-06-05?15:13??try-4\device.cpp

?????文件????????998??2018-05-15?17:00??try-4\device.h

?????文件????????403??2018-04-29?15:14??try-4\device.ui

?????文件????????175??2018-05-06?18:39??try-4\main.cpp

?????文件????1118717??2017-09-04?08:02??try-4\qcustomplot.cpp

?????文件?????266925??2017-09-04?08:02??try-4\qcustomplot.h

?????文件????????441??2018-05-08?21:43??try-4\try-4.pro

?????文件??????13527??2018-06-05?15:44??try-4\try-4.pro.user

?????文件??????13499??2018-05-06?13:11??try-4\try-4.pro.user.2.1pre1

?????文件???????5603??2018-06-05?15:07??try-4\widget.cpp

?????文件???????1004??2018-05-17?16:07??try-4\widget.h

?????文件???????2856??2018-05-08?21:44??try-4\widget.ui

?????目錄??????????0??2018-09-16?19:41??try-4

-----------?---------??----------?-----??----

??????????????1427046????????????????????13


評(píng)論

共有 條評(píng)論