#include <CommonTools/TrackerMap/interface/VisTrackerMapBox.h>
Public Slots | |
void | emitModSel (int id) |
Signals | |
void | moduleSelected (int) |
Public Member Functions | |
int | getSelectedModule () |
TrackerMap * | getTrackerMap () |
void | setPaintOptions (bool print_total, float minval=0., float maxval=0.) |
void | update () |
VisTrackerMapBox (QWidget *parent=0, const char *name=0) | |
~VisTrackerMapBox () | |
Public Attributes | |
QLabel * | labelinfo |
VisTrackerMap * | v_tk |
Private Attributes | |
int | selectedModule |
TrackerMap * | trackerMap |
Definition at line 7 of file VisTrackerMapBox.h.
VisTrackerMapBox::VisTrackerMapBox | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 | |||
) |
Definition at line 5 of file VisTrackerMapBox.cc.
References HLT_VtxMuL3::connect, emitModSel(), labelinfo, moduleSelected(), selectedModule, sv, and v_tk.
00006 : QWidget( parent, name ) 00007 { 00008 selectedModule = 0; 00009 00010 setCaption( "TrackerMap" ); 00011 resize( 500, 500 ); 00012 00013 QGridLayout *mainGrid = new QGridLayout( this, 2, 1, 2 ); 00014 labelinfo = new QLabel(this); 00015 labelinfo->setText( trUtf8( " " ) ); 00016 00017 QScrollView* sv = new QScrollView(this); 00018 sv->setGeometry( QRect( 0, 1, 600, 600 ) ); 00019 v_tk = new VisTrackerMap(sv->viewport(),"Tracker Map",labelinfo); 00020 sv->addChild(v_tk); 00021 00022 connect(v_tk, SIGNAL(moduleSelected(int)), this, SLOT(emitModSel(int))); 00023 00024 mainGrid->addWidget( sv, 0, 0 ); 00025 mainGrid->addWidget( labelinfo, 1, 0 ); 00026 }
VisTrackerMapBox::~VisTrackerMapBox | ( | ) | [inline] |
Definition at line 33 of file VisTrackerMapBox.cc.
References moduleSelected(), and selectedModule.
Referenced by VisTrackerMapBox().
00034 { 00035 selectedModule = id; 00036 emit moduleSelected(id); 00037 }
int VisTrackerMapBox::getSelectedModule | ( | ) | [inline] |
Definition at line 19 of file VisTrackerMapBox.h.
References selectedModule.
00019 {return selectedModule; selectedModule = 0;}
TrackerMap* VisTrackerMapBox::getTrackerMap | ( | ) | [inline] |
Definition at line 15 of file VisTrackerMapBox.h.
References trackerMap.
Referenced by TmTestWidget::TmTestWidget().
00015 {return trackerMap;}
Referenced by emitModSel(), and VisTrackerMapBox().
void VisTrackerMapBox::setPaintOptions | ( | bool | print_total, | |
float | minval = 0. , |
|||
float | maxval = 0. | |||
) | [inline] |
Definition at line 16 of file VisTrackerMapBox.h.
References VisTrackerMap::setPaintOptions(), and v_tk.
Referenced by TmTestWidget::TmTestWidget().
00016 {v_tk->setPaintOptions(print_total, minval, maxval);}
void VisTrackerMapBox::update | ( | ) |
Definition at line 28 of file VisTrackerMapBox.cc.
References v_tk.
Referenced by TmTestWidget::TmTestWidget().
00029 { 00030 v_tk->repaint(); 00031 }
QLabel* VisTrackerMapBox::labelinfo |
int VisTrackerMapBox::selectedModule [private] |
Definition at line 29 of file VisTrackerMapBox.h.
Referenced by emitModSel(), getSelectedModule(), and VisTrackerMapBox().
TrackerMap* VisTrackerMapBox::trackerMap [private] |
Definition at line 18 of file VisTrackerMapBox.h.
Referenced by setPaintOptions(), update(), and VisTrackerMapBox().