#include <VisSimulation/VisSimBase/interface/VisG4EventTwig.h>
Public Member Functions | |
virtual void | update (IgTextRep *rep) |
VisG4EventTwig (IgState *state, IgTwig *parent) | |
Private Member Functions | |
virtual void | update (const BeginOfEvent *item) |
This routine will be called when the appropriate signal arrives. | |
Private Attributes | |
const G4Event * | m_event |
Definition at line 20 of file VisG4EventTwig.h.
Definition at line 20 of file VisG4EventTwig.cc.
00021 : VisQueuedTwig (state, parent, "Event"), 00022 m_event (0) 00023 { //init (); 00024 }
void VisG4EventTwig::update | ( | const BeginOfEvent * | ) | [private, virtual] |
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfEvent * >.
Definition at line 52 of file VisG4EventTwig.cc.
References m_event.
00053 { 00054 // Let base class do the hard work 00055 // onBaseUpDate (); 00056 00057 // recover G4 pointer 00058 m_event = (*event) (); 00059 }
Reimplemented from VisQueuedTwig.
Definition at line 27 of file VisG4EventTwig.cc.
References event(), m_event, IgTextRep::setText(), and VisQueuedTwig::update().
00028 { 00029 // Get debugging dump. 00030 VisQueuedTwig::update (rep); 00031 00032 // Prepare property description. 00033 const G4Event *event = m_event; 00034 std::ostringstream text; 00035 00036 text << "<table width='100%'><tr><td>Event Nr</td><td>"; 00037 00038 if (event) 00039 text << event->GetEventID (); 00040 else 00041 text << "(no event)"; 00042 00043 text << "</td></tr></table>" << '\0'; 00044 00045 // Send it over. 00046 qApp->lock (); 00047 rep->setText (text.str ()); 00048 qApp->unlock (false); 00049 }
const G4Event* VisG4EventTwig::m_event [private] |