#include <VisSimulation/VisSimBase/interface/VisG4EventStatus.h>
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 | |
IgState * | m_state |
Private Member Functions | |
IG_DECLARE_STATE_ELEMENT (VisG4EventStatus) |
Definition at line 19 of file VisG4EventStatus.h.
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.
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 }
IgState* VisG4EventStatus::m_state [protected] |
Definition at line 32 of file VisG4EventStatus.h.
Referenced by update(), VisG4EventStatus(), and ~VisG4EventStatus().