33 for (
int i=0;i<_sizeArray;i++){
48 double counter,counter2=0;
49 double cosinus,angle,sinus,sinus2x,tangens=0.0;
60 cosinus+=cos(_angle*
PI/180);
61 sinus2x+=sin(_angle*2*
PI/180);
62 sinus+=sin(_angle*
PI/180);
63 tangens+=tan(_angle*
PI/180);
71 double time=(_angle)*
PI/1800;
72 tmp << QPointF(time,sinus/10) << QPointF(time,cosinus/10) << QPointF(time,tangens/10) << QPointF(time,sinus2x/10);
74 privateSamples->append(tmp);
85 if (privateSamples->size() >= 20) {
86 QVector<QVector<QPointF> > sampleVector = *privateSamples;
88 privateSamples->clear();
109 delete privateSamples;
113 void EcgMock::init(){
115 privateSamples =
new QVector<QVector<QPointF> >;
116 sampleData =
new QVector<QVector<double> >;
void sendSampleVector(QVector< QVector< QPointF > >)
virtual void getData(DataStream &)
virtual void reconnect()
sets state=true
void updateStatus(QString)
Abstract Interface that should be used for storing data in the memory.
Struct to store Biosignal data from a specific time, combined with DataStream it will store a sequenc...
EcgMock(DataStream &inputStream)
virtual void close()
sets state=false
Abstract interface for all devices.
virtual bool connected()
true as long as close() isn't called.