QIGUIChannelCut.hh

00001 #ifndef _QIGUI_CHANNELCUT__H_
00002 #define _QIGUI_CHANNELCUT__H_
00003 #include <QObject>
00004 
00005 #include <QIGUICut.hh>
00006 #include <QIGUIChannelSet.hh>
00007 #include <set>
00008 
00009 // Cut in channel number. It can be a single channel (fChannel>=0),
00010 // a set of channels (fChannel==-2) or all the channels (fChannel==-1)
00011 class QIGUIChannelCut: public QIGUICut
00012 {
00013   Q_OBJECT
00014 
00015   public:
00016     QIGUIChannelCut (QObject * parent = 0);
00017     QIGUIChannelCut (QString name, QObject * parent= 0);
00018     QIGUIChannelCut (QString name, QString title, QObject * parent= 0);
00019     QIGUIChannelCut (const QIGUIChannelCut &chcut);
00020     const QIGUIChannelCut& operator=(const QIGUIChannelCut& chcut);
00021     virtual ~QIGUIChannelCut();
00022 
00023   void Init();
00024 
00025   int GetChannel() {return fChannel;} 
00026   //void SetSetOfChannels(std::set<int>& setOfChannels, QString& name);
00027   void SetChannelSet(QIGUIChannelSet & channelSet);
00028   void SetChannel(int channel);
00029 
00030   public slots:
00031 
00032   private:
00033     int fChannel; // -1 -> All channels, -2 -> set of channels
00034     //std::set<int> fChannelSet;
00035     QIGUIChannelSet fChannelSet;
00036     
00037 };
00038 
00039 #endif

Generated on Tue Nov 16 10:49:59 2010 for CUORE Software by  doxygen 1.5.6