CMS 3D CMS Logo

VisTrackerMapBox Class Reference

#include <CommonTools/TrackerMap/interface/VisTrackerMapBox.h>

List of all members.

Public Slots

void emitModSel (int id)

Signals

void moduleSelected (int)

Public Member Functions

int getSelectedModule ()
TrackerMapgetTrackerMap ()
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
VisTrackerMapv_tk

Private Attributes

int selectedModule
TrackerMaptrackerMap


Detailed Description

Definition at line 7 of file VisTrackerMapBox.h.


Constructor & Destructor Documentation

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 12 of file VisTrackerMapBox.h.

00012 {}


Member Function Documentation

void VisTrackerMapBox::emitModSel ( int  id  )  [slot]

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;}

void VisTrackerMapBox::moduleSelected ( int   )  [signal]

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 }


Member Data Documentation

QLabel* VisTrackerMapBox::labelinfo

Definition at line 17 of file VisTrackerMapBox.h.

Referenced by VisTrackerMapBox().

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 28 of file VisTrackerMapBox.h.

Referenced by getTrackerMap().

VisTrackerMap* VisTrackerMapBox::v_tk

Definition at line 18 of file VisTrackerMapBox.h.

Referenced by setPaintOptions(), update(), and VisTrackerMapBox().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:35:41 2009 for CMSSW by  doxygen 1.5.4