CMS 3D CMS Logo

VisG4EventStatus Class Reference

#include <VisSimulation/VisSimBase/interface/VisG4EventStatus.h>

Inheritance diagram for VisG4EventStatus:

IgStateElement Observer< const BeginOfEvent * >

List of all members.

Public Member Functions

 VisG4EventStatus (IgState *state)
 Construct the event status monitor.
 ~VisG4EventStatus (void)
 Destruct the object and detach it from the state.

Protected Member Functions

virtual void update (const BeginOfEvent *event)
 Early notification of a new event.

Protected Attributes

IgStatem_state

Private Member Functions

 IG_DECLARE_STATE_ELEMENT (VisG4EventStatus)


Detailed Description

Definition at line 19 of file VisG4EventStatus.h.


Constructor & Destructor Documentation

VisG4EventStatus::VisG4EventStatus ( IgState state  ) 

Construct the event status monitor.

Definition at line 25 of file VisG4EventStatus.cc.

References ASSERT, m_state, and IgState::put().

00026     : m_state (state)
00027 { 
00028     ASSERT (m_state); 
00029     m_state->put (s_key, this); 
00030     //    init (); 
00031 }

VisG4EventStatus::~VisG4EventStatus ( void   ) 

Destruct the object and detach it from the state.

Definition at line 34 of file VisG4EventStatus.cc.

References ASSERT, IgState::detach(), and m_state.

00035 { 
00036     ASSERT (m_state); 
00037     m_state->detach (s_key); 
00038 }


Member Function Documentation

VisG4EventStatus::IG_DECLARE_STATE_ELEMENT ( VisG4EventStatus   )  [private]

void VisG4EventStatus::update ( const BeginOfEvent event  )  [protected, virtual]

Early notification of a new event.

Update the status bar if there is one. (FIXME: Other event-related controls?)

Implements Observer< const BeginOfEvent * >.

Definition at line 43 of file VisG4EventStatus.cc.

References arg, DBSPlugin::get(), and m_state.

00044 {
00045     // Update the GUI, being careful to lock it while we access it.
00046     qApp->lock ();
00047 
00048     // Show the event number on the status bar.
00049     if (IgQtAppStatusBarService *statusBar = IgQtAppStatusBarService::get (m_state))
00050         statusBar->setMessage (QString ("Event #%1").arg ((*event) ()->GetEventID ()));
00051     
00052     qApp->unlock (false);
00053 }


Member Data Documentation

IgState* VisG4EventStatus::m_state [protected]

Definition at line 32 of file VisG4EventStatus.h.

Referenced by update(), VisG4EventStatus(), and ~VisG4EventStatus().


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