QIGUIDetectorMapViewer.hh

00001 #ifndef _QIGUI_DETECTORMAPVIEWER__H_
00002 #define _QIGUI_DETECTORMAPVIEWER__H_
00003 
00004 #include "ui_DetectorMapViewer.h"
00005 #include <QMainWindow>
00006 #include <TCanvas.h>
00007 
00008 class QIGUIDetectorMap;
00009 
00010 class QIGUIDetectorMapViewer: public QMainWindow, public Ui::DetectorMapViewer
00011 {
00012 
00013   Q_OBJECT
00014 
00015     private:
00017     TCanvas * fCanvas;
00018 
00019     QIGUIDetectorMap * fDetectorMap;
00020 
00021   public:
00022 
00023     // Ctr, Dtr and initialization
00024     QIGUIDetectorMapViewer (QWidget * parent=0);
00025     QIGUIDetectorMapViewer (std::string detMap, QWidget * parent=0);
00026     virtual ~QIGUIDetectorMapViewer();
00027 
00028     void Init();
00029     void InitDetectorMap(std::string detMap);
00030     void CreateSignals();
00031     void DestroySignals();
00032     void CreateActions();
00033 
00034     void TriggerChannels (std::vector<int> &triggered);
00035     void TriggerChannels (std::vector<std::pair<int, int> > &triggered);
00036 
00037 
00038     // Setters and Getters
00039     QIGUIDetectorMap * GetDetectorMap () {return fDetectorMap;}
00040     
00041   signals:
00042     void DoZoom();
00043 
00044   public slots:
00045     void SetTransparency (int trans);
00046     void Display();
00047     void Zoom();
00048 
00049   public:
00050 
00051 
00052 };
00053 
00054 #endif

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