#include <VisReco/VisCustomTracker/interface/VisCuTkMapWindow.h>
Definition at line 35 of file VisCuTkMapWindow.h.
VisCuTkMapWindow::VisCuTkMapWindow | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 , |
|||
WFlags | fl = 0 , |
|||
IgRepresentable * | igparent = 0 , |
|||
VisCuTrackerSimHit * | simhitdraw = 0 , |
|||
VisCuTrackerDigi * | digidraw = 0 , |
|||
VisCuTrackerCluster * | clusterdraw = 0 , |
|||
VisCuTrackerRecHit * | rechitdraw = 0 | |||
) |
Definition at line 41 of file VisCuTkMapWindow.cc.
References acc, bGrid, drawallf, drawcluster, drawdigi, drawrechit, drawsimhits, igp, initbGrid(), inittGrid(), mainGrid, selectedModuleInfo, separatef, VisCuTrackerSimHit::setMap(), VisCuTrackerRecHit::setMap(), sv, and toolbar.
00042 : QWidget( parent, name, fl ) 00043 { 00044 if ( !name ) 00045 setName( "VisCuTkMapWindow" ); 00046 igp = igparent; 00047 resize( 630, 630 ); 00048 setCaption( trUtf8( "2D Visualisation of Tracker" ) ); 00049 00050 QGridLayout *mainGrid = new QGridLayout( this, 4, 1, 2 ); 00051 00052 VisCuTkScrollView* sv = new VisCuTkScrollView(this); 00053 sv->setGeometry( QRect( 0, 1, 600, 600 ) ); 00054 map = new VisCuTkMap2D(sv->viewport(),"Tracker Map",simhitdraw, digidraw, clusterdraw, rechitdraw); 00055 map->setGeometry( QRect( 0, 1, 600, 600 ) ); 00056 map->setParent(this ); 00057 sv->addChild(map); 00058 00059 simhitdraw->setMap(map); 00060 digidraw->setMap(map); 00061 clusterdraw->setMap(map); 00062 rechitdraw->setMap(map); 00063 00064 initbGrid(); 00065 inittGrid(); 00066 00067 drawallf=false; 00068 separatef=false; 00069 drawsimhits=false; 00070 drawdigi=false; 00071 drawcluster=false; 00072 drawrechit=false; 00073 acc=false; 00074 00075 mainGrid->addWidget( toolbar,0 , 0 ); 00076 mainGrid->addWidget( selectedModuleInfo,1 , 0 ); 00077 mainGrid->addWidget( sv, 2, 0 ); 00078 mainGrid->addWidget( bGrid, 3, 0 ); 00079 }
VisCuTkMapWindow::~VisCuTkMapWindow | ( | ) |
void VisCuTkMapWindow::drawall | ( | ) | [slot] |
Definition at line 153 of file VisCuTkMapWindow.cc.
References drawallf, PushButton1, zoominButton, and zoomoutButton.
Referenced by initbGrid(), and VisCuTkGeometryTwig::onNewEvent().
00154 { 00155 if(drawallf){ 00156 drawallf=false; 00157 PushButton1->setText( trUtf8( "all tracker" ) ); 00158 zoominButton->setEnabled(true); 00159 zoomoutButton->setEnabled(true); 00160 }else { 00161 drawallf=true; 00162 PushButton1->setText( trUtf8( "single layer" ) ); 00163 zoominButton->setEnabled(false); 00164 zoomoutButton->setEnabled(false); 00165 } 00166 map-> drawAllTracker(); 00167 }
void VisCuTkMapWindow::drawCluster | ( | ) | [slot] |
Definition at line 194 of file VisCuTkMapWindow.cc.
References drawcluster, igp, IgRepSet::invalidate(), PushButton6, and IgTwig::SELF_MASK.
Referenced by initbGrid(), and VisCuTkGeometryTwig::onNewEvent().
00195 { 00196 if(drawcluster)drawcluster=false;else drawcluster=true; 00197 if(drawcluster)PushButton6->setText( trUtf8( "no Cluster" ) ); 00198 else PushButton6->setText( trUtf8( "drawCluster" ) ); 00199 map-> drawCluster(); 00200 IgRepSet::invalidate (igp, IgTwig::SELF_MASK); 00201 }
void VisCuTkMapWindow::drawDigi | ( | ) | [slot] |
Definition at line 186 of file VisCuTkMapWindow.cc.
References drawdigi, igp, IgRepSet::invalidate(), PushButton4, and IgTwig::SELF_MASK.
Referenced by initbGrid(), and VisCuTkGeometryTwig::onNewEvent().
00187 { 00188 if(drawdigi)drawdigi=false;else drawdigi=true; 00189 if(drawdigi)PushButton4->setText( trUtf8( "no Digi" ) ); 00190 else PushButton4->setText( trUtf8( "drawDigi" ) ); 00191 map-> drawDigi(); 00192 IgRepSet::invalidate (igp, IgTwig::SELF_MASK); 00193 }
void VisCuTkMapWindow::drawRechit | ( | ) | [slot] |
Definition at line 202 of file VisCuTkMapWindow.cc.
References drawrechit, igp, IgRepSet::invalidate(), PushButton7, and IgTwig::SELF_MASK.
Referenced by initbGrid().
00203 { 00204 if(drawrechit)drawrechit=false;else drawrechit=true; 00205 if(drawrechit)PushButton7->setText( trUtf8( "no RecHit" ) ); 00206 else PushButton7->setText( trUtf8( "drawRecHit" ) ); 00207 map-> drawRechit(); 00208 IgRepSet::invalidate (igp, IgTwig::SELF_MASK); 00209 }
void VisCuTkMapWindow::drawSimHits | ( | ) | [slot] |
Definition at line 177 of file VisCuTkMapWindow.cc.
References drawsimhits, igp, IgRepSet::invalidate(), PushButton3, and IgTwig::SELF_MASK.
Referenced by initbGrid().
00178 { 00179 if(drawsimhits)drawsimhits=false;else drawsimhits=true; 00180 if(drawsimhits)PushButton3->setText( trUtf8( "no SimHits" ) ); 00181 else PushButton3->setText( trUtf8( "drawSimHits" ) ); 00182 map-> drawSimHits(); 00183 IgRepSet::invalidate (igp, IgTwig::SELF_MASK); 00184 }
void VisCuTkMapWindow::initbGrid | ( | ) | [protected] |
Definition at line 81 of file VisCuTkMapWindow.cc.
References bGrid, HLT_VtxMuL3::connect, drawall(), drawCluster(), drawDigi(), drawRechit(), drawSimHits(), integSign(), PushButton1, PushButton2, PushButton3, PushButton4, PushButton5, PushButton6, PushButton7, and separate().
Referenced by VisCuTkMapWindow().
00082 { 00083 bGrid = new QGrid(7, this); 00084 PushButton1 = new QPushButton( bGrid, "PushButton1" ); 00085 PushButton1->setText( trUtf8( "all tracker" ) ); 00086 connect( PushButton1, SIGNAL(clicked()), this, SLOT( drawall())); 00087 00088 PushButton2 = new QPushButton( bGrid, "PushButton2" ); 00089 PushButton2->setText( trUtf8( "separate modules" ) ); 00090 connect( PushButton2, SIGNAL(clicked()), this, SLOT( separate())); 00091 00092 PushButton5 = new QPushButton( bGrid, "PushButton5" ); 00093 PushButton5->setText( trUtf8( "IntegratedSignal" ) ); 00094 connect( PushButton5, SIGNAL(clicked()), this, SLOT( integSign())); 00095 00096 PushButton3 = new QPushButton( bGrid, "PushButton3" ); 00097 PushButton3->setText( trUtf8( "SimHits" ) ); 00098 connect( PushButton3, SIGNAL(clicked()), this, SLOT( drawSimHits())); 00099 00100 PushButton4 = new QPushButton( bGrid, "PushButton4" ); 00101 PushButton4->setText( trUtf8( "Digi" ) ); 00102 connect( PushButton4, SIGNAL(clicked()), this, SLOT( drawDigi())); 00103 00104 PushButton6 = new QPushButton( bGrid, "PushButton6" ); 00105 PushButton6->setText( trUtf8( "Cluster" ) ); 00106 connect( PushButton6, SIGNAL(clicked()), this, SLOT( drawCluster())); 00107 00108 PushButton7 = new QPushButton( bGrid, "PushButton7" ); 00109 PushButton7->setText( trUtf8( "RecHit" ) ); 00110 connect( PushButton7, SIGNAL(clicked()), this, SLOT( drawRechit())); 00111 00112 }
void VisCuTkMapWindow::inittGrid | ( | ) | [protected] |
Definition at line 114 of file VisCuTkMapWindow.cc.
References print(), printButton, selectedModuleInfo, toolbar, zoominButton, and zoomoutButton.
Referenced by VisCuTkMapWindow().
00115 { 00116 toolbar = new QToolBar(0, 0, this); 00117 toolbar->setFixedWidth( 180 ); 00118 printButton = new QToolButton(QPixmap(fileprint), "print", QString::null,map,SLOT(print()), toolbar ,0 ); 00119 printButton = new QToolButton(QPixmap(filesave), "save", QString::null,map,SLOT(save()), toolbar ,0 ); 00120 zoominButton = new QToolButton(QPixmap(zoom_plus_xpm), "zoomIn", QString::null,map,SLOT(zoomIn()), toolbar ,0 ); 00121 zoominButton->setEnabled(true); 00122 zoomoutButton = new QToolButton(QPixmap(zoom_minus_xpm), "zoomOut", QString::null,map,SLOT(zoomOut()), toolbar ,0 ); 00123 zoomoutButton->setEnabled(true); 00124 selectedModuleInfo = new QLabel(this); 00125 selectedModuleInfo->setText( trUtf8( "selected module:" ) ); 00126 }
void VisCuTkMapWindow::integSign | ( | ) | [slot] |
Definition at line 211 of file VisCuTkMapWindow.cc.
References acc, and PushButton5.
Referenced by initbGrid(), and VisCuTkGeometryTwig::onNewEvent().
00212 { 00213 if(acc)acc=false;else acc=true; 00214 if(acc)PushButton5->setText( trUtf8( "Single Event" ) ); 00215 else PushButton5->setText( trUtf8( "Integrated Signal" ) ); 00216 map-> integratedSignal(acc); 00217 }
Definition at line 219 of file VisCuTkMapWindow.cc.
Referenced by VisCuTkScrollView::contentsMouseReleaseEvent().
00220 { 00221 map->pan(pos,dx,dy); 00222 }
void VisCuTkMapWindow::separate | ( | ) | [slot] |
Definition at line 169 of file VisCuTkMapWindow.cc.
References PushButton2, and separatef.
Referenced by initbGrid(), and VisCuTkGeometryTwig::onNewEvent().
00170 { 00171 if(separatef)separatef=false;else separatef=true; 00172 if(separatef)PushButton2->setText( trUtf8( "overlayed modules" ) ); 00173 else PushButton2->setText( trUtf8( "separate modules" ) ); 00174 map->separateModules(); 00175 }
void VisCuTkMapWindow::setEvent | ( | const edm::Event & | iEvent, | |
const edm::EventSetup & | eventSetup | |||
) |
Definition at line 147 of file VisCuTkMapWindow.cc.
Referenced by VisCuTkGeometryTwig::onNewEvent().
void VisCuTkMapWindow::setTracker | ( | VisCuCmsTracker * | tr | ) |
Definition at line 136 of file VisCuTkMapWindow.cc.
References ASSERT, and tracker.
Referenced by VisCuTkGeometryTwig::onNewEvent().
bool VisCuTkMapWindow::acc [private] |
Definition at line 87 of file VisCuTkMapWindow.h.
Referenced by integSign(), and VisCuTkMapWindow().
QGrid* VisCuTkMapWindow::bGrid [private] |
Definition at line 70 of file VisCuTkMapWindow.h.
Referenced by initbGrid(), and VisCuTkMapWindow().
bool VisCuTkMapWindow::drawallf [private] |
Definition at line 49 of file VisCuTkMapWindow.h.
Referenced by drawCluster(), VisCuTkGeometryTwig::update(), and VisCuTkMapWindow().
Definition at line 48 of file VisCuTkMapWindow.h.
Referenced by drawDigi(), VisCuTkGeometryTwig::update(), and VisCuTkMapWindow().
Definition at line 50 of file VisCuTkMapWindow.h.
Referenced by drawRechit(), VisCuTkGeometryTwig::update(), and VisCuTkMapWindow().
Definition at line 47 of file VisCuTkMapWindow.h.
Referenced by drawSimHits(), VisCuTkGeometryTwig::update(), and VisCuTkMapWindow().
IgRepresentable* VisCuTkMapWindow::igp [private] |
Definition at line 82 of file VisCuTkMapWindow.h.
Referenced by drawCluster(), drawDigi(), drawRechit(), drawSimHits(), and VisCuTkMapWindow().
QGridLayout* VisCuTkMapWindow::mainGrid [private] |
int VisCuTkMapWindow::numModifiche [private] |
Definition at line 84 of file VisCuTkMapWindow.h.
QToolButton* VisCuTkMapWindow::printButton [private] |
QPushButton* VisCuTkMapWindow::PushButton1 [private] |
QPushButton* VisCuTkMapWindow::PushButton2 [private] |
QPushButton* VisCuTkMapWindow::PushButton3 [private] |
QPushButton* VisCuTkMapWindow::PushButton4 [private] |
QPushButton* VisCuTkMapWindow::PushButton5 [private] |
QPushButton* VisCuTkMapWindow::PushButton6 [private] |
QPushButton* VisCuTkMapWindow::PushButton7 [private] |
QScrollBar* VisCuTkMapWindow::ScrollBar1 [private] |
Definition at line 81 of file VisCuTkMapWindow.h.
Definition at line 51 of file VisCuTkMapWindow.h.
Referenced by inittGrid(), VisCuTkMap2D::pan(), and VisCuTkMapWindow().
bool VisCuTkMapWindow::separatef [private] |
QToolBar* VisCuTkMapWindow::toolbar [private] |
Definition at line 67 of file VisCuTkMapWindow.h.
Referenced by inittGrid(), and VisCuTkMapWindow().
VisCuCmsTracker* VisCuTkMapWindow::tracker [private] |
QToolButton* VisCuTkMapWindow::zoominButton [private] |
QToolButton* VisCuTkMapWindow::zoomoutButton [private] |