Main Page   Class Hierarchy   Compound List   File List   Compound Members  

midotrigger.h

00001 #ifndef _MIDOTRIGGER_H
00002 #define _MIDOTRIGGER_H
00003 
00004 #include <qobject.h>
00005 
00006 class MidoTrigger : public QObject
00007 {
00008   Q_OBJECT
00009 public:
00010   MidoTrigger();
00011   
00012   void setEnableTrig(bool enable);  
00013 
00014   void setEnablePreTrigger(bool enable);
00015   bool getEnablePreTrigger() { return enPreTrigger; }
00016 
00017   void setEnableAutoTrigger(bool enable);
00018   bool getEnableAutoTrigger() { return enAutoTrigger; }    
00019 
00020   void setSliderTrig(double value);
00021   double getSliderTrig() { return sliderTrig; }
00022 
00023   void setTrig(bool on);
00024   bool getTrig() { return activeTrig; }
00025 
00026   void setChannelTrig(int numChannel);
00027   int getChannelTrig() { return numCh; }
00028 
00029   void setFrontTrig(bool ascent);
00030   bool getFrontTrig() { return ascentTrig; }
00031   
00032   void setFuncTrigger(bool single);
00033   bool getFuncTrig() { return Single; }
00034   
00035   void setPreTrig(int points);
00036   int getPreTrig() { return preTrigger; }
00037 
00038   void setAutoTrig(double value);
00039   double getAutoTrig() { return autoTrigger; }
00040 
00041   void setLevelTrigger(double lT);
00042   double getLevelTrig() { return levelTrigger; }
00043   
00044   bool waitTrigger();
00045   void setWaitTrigger(bool wait);
00046   
00047   void setPosTrigger(int pos);
00048   int getPosTrigger() { return posTrigger; }
00049   
00050   // Controllo se e' giunto il momento di lettura automatica
00051   void readDateAutoTrigger(bool read) { readDateAuto = read; }
00052   bool getReadAutoTrigger() { return readDateAuto; }
00053 
00054   // Da significato ai dati. True i dati sono dati da visualizzare, false altrimenti
00055   void setValueGoodCh1(bool state) { valueGoodCh1 = state; }
00056   void setValueGoodCh2(bool state) { valueGoodCh2 = state; }
00057   bool getValueGoodCh1() { return valueGoodCh1; }
00058   bool getValueGoodCh2() { return valueGoodCh2; }
00059   
00060   void setExtTrigger(bool extTr);
00061  
00062 
00063 signals:  
00064   void enableTrigger(bool enable);
00065   void enablePreTrigger(bool enable);
00066   void enableAutoTrigger(bool enable);
00067  
00068   void changeSliderTrig(double value);
00069   void changeFuncTrig(bool single);
00070   void changeTrig(bool on);
00071   void changeChannelTrig(int numChannel);
00072   void changeFrontTrig(bool ascent);
00073   void changePreTrigger(double num);
00074   void changeAutoTrigger(double num);
00075 
00076   void stopStartButton();
00077   void changeExtTrigger(bool extTr);
00078   
00079   void viewDate();
00080   
00081 private:
00082   double sliderTrig, autoTrigger, levelTrigger;
00083   bool Single,activeTrig, ascentTrig, enPreTrigger, enAutoTrigger, waitTrig, readDateAuto;
00084   int numCh, preTrigger, posTrigger;
00085   bool extTrigger, valueGoodCh1, valueGoodCh2;
00086 
00087 };
00088 
00089 extern MidoTrigger *mtrig;
00090 
00091 #endif

Generated at Tue Mar 18 13:49:45 2003 for MIDO by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000