CMS 3D CMS Logo

VisTrackerMap.h

Go to the documentation of this file.
00001 #ifndef VIS_TRACKERMAP_H
00002 #define VIS_TRACKERMAP_H
00003 
00004 #include "CommonTools/TrackerMap/interface/TrackerMap.h"
00005 #include "CommonTools/TrackerMap/interface/TmModule.h"
00006 
00007 #include <qwidget.h>
00008 #include <qdatetime.h>
00009 #include <qpointarray.h>
00010 #include <qtooltip.h>
00011 #include <qlabel.h>
00012 #include <map>
00013 
00014 
00015 class VisTrackerMap : public QWidget            
00016 {
00017   Q_OBJECT
00018       public:
00019     VisTrackerMap( QWidget *parent=0, const char *name=0 , QLabel *labelinfo=0);
00020     ~VisTrackerMap();
00021     
00022     void paintEvent(QPaintEvent* );
00023     void mousePressEvent(QMouseEvent *e);
00024     void visDrawModule(TmModule * mod, int key,int nlay, QPointArray a);
00025     void computeColor(TmModule * mod, bool print_total, QPainter* p);
00026     void setPaintOptions(bool vtk_print_total=true,float vtk_minval=0., float vtk_maxval=0.);
00027     
00028     TrackerMap* getTrackerMap(){return tk;}
00029     TrackerMap *tk;
00030     QLabel* ql;
00031 
00032  signals:
00033     void moduleSelected(int);
00034 
00035  private:
00036     
00037     float minval,maxval;
00038     bool print_total;
00039     bool posrel,horizontal_view;
00040     double xmin,xmax,ymin,ymax;
00041  
00042     QPointArray *reg_mod;
00043 };
00044 
00045 #endif 

Generated on Tue Jun 9 17:26:03 2009 for CMSSW by  doxygen 1.5.4