#include <VisSimulation/VisSimBase/interface/VisG4GeomContent.h>
Public Member Functions | |
VisG4GeomContent (IgState *state) | |
Initialise the Simulation geometry data content. | |
Private Member Functions | |
IG_DECLARE_STATE_ELEMENT (VisG4GeomContent) | |
void | init (void) |
Actual (in-event-thread) initialisation: add the geometry twig to the document data tree. |
Definition at line 16 of file VisG4GeomContent.h.
VisG4GeomContent::VisG4GeomContent | ( | IgState * | state | ) |
Initialise the Simulation geometry data content.
Definition at line 25 of file VisG4GeomContent.cc.
00026 : VisContent (state, s_key, MAIN_THREAD, 00027 lat::CreateCallback (this, &VisG4GeomContent::init)) 00028 {}
VisG4GeomContent::IG_DECLARE_STATE_ELEMENT | ( | VisG4GeomContent | ) | [private] |
Actual (in-event-thread) initialisation: add the geometry twig to the document data tree.
Definition at line 33 of file VisG4GeomContent.cc.
References ASSERT, DBSPlugin::get(), IgRepSet::invalidate(), IgTwig::lookup(), pydbsAccessor::root, IgTwig::SELF_MASK, VisContent::state(), and IgTwig::STRUCTURE_MASK.
00034 { 00035 // FIXME: need to document model registration + browsing support 00036 qApp->lock (); 00037 IgTwig *root = IgDocumentData::get (state ())->root (); 00038 if (root->lookup ("CMS Event and Detector")) 00039 new VisG4GeomTwig (state (), root->lookup ("CMS Event and Detector")); 00040 else 00041 new VisG4GeomTwig (state (), root); 00042 00043 ASSERT (IgQtObjectMenuService::get (state ())); 00044 00045 IgRepSet::invalidate (root, IgTwig::SELF_MASK | IgTwig::STRUCTURE_MASK); 00046 qApp->unlock (false); 00047 }