CMS 3D CMS Logo

VisG4GeomContent Class Reference

Data proxy to create the event twig. More...

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

Inheritance diagram for VisG4GeomContent:

VisContent IgExtension IgStateElement

List of all members.

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.


Detailed Description

Data proxy to create the event twig.

Definition at line 16 of file VisG4GeomContent.h.


Constructor & Destructor Documentation

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


Member Function Documentation

VisG4GeomContent::IG_DECLARE_STATE_ELEMENT ( VisG4GeomContent   )  [private]

void VisG4GeomContent::init ( void   )  [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 }


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