00001 00002 #include <qobject.h> 00003 #include "midobasic.h" 00004 00005 class Wave : public QObject 00006 { 00007 Q_OBJECT 00008 public: 00009 Wave(int type, double freq, double mV, double sim, bool noise, int numCh); 00010 ~Wave() {} 00011 00012 void reset(); 00013 DValueList* captureDate(); 00014 00015 private: 00016 void creaQuadra(double freq, double mV, double sim, bool noise, int* pointStartTa, int* pointStartTb); 00017 void creaSinusoidale(double freq, double mV, bool noise, int* pointStartTa); 00018 void creaTriangolare(double freq, double mV, double sim, bool noise, int* pointStartTa, int* pointStartTb); 00019 00020 DValueList *arrayValue; 00021 Dato Value; 00022 00023 double frequency, mVpp, simmetry, sR, tD, timePassed; 00024 int typeWave, pointStartTa, pointStartTb, numChannel; 00025 bool Noise; 00026 00027 }; 00028