CMS 3D CMS Logo

VisSimMain Class Reference

#include <VisSimulation/VisSimApp/src/VisSimMain.h>

Inheritance diagram for VisSimMain:

IgStudioSetupExtension IgExtension IgStateElement

List of all members.

Public Member Functions

virtual bool setup (IgStudioDriver *into)
 VisSimMain (IgState *state)

Private Member Functions

 IG_DECLARE_STATE_ELEMENT (VisSimMain)

Private Attributes

IgDocumentm_document
IgStatem_state
IgStudioDriverm_studio


Detailed Description

Definition at line 20 of file VisSimMain.h.


Constructor & Destructor Documentation

VisSimMain::VisSimMain ( IgState state  ) 

Definition at line 30 of file VisSimMain.cc.

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

00031     : m_state (state),
00032       m_studio (0),
00033       m_document (0)
00034 { ASSERT (m_state); m_state->put (s_key, this);}


Member Function Documentation

VisSimMain::IG_DECLARE_STATE_ELEMENT ( VisSimMain   )  [private]

bool VisSimMain::setup ( IgStudioDriver into  )  [virtual]

Reimplemented from IgStudioSetupExtension.

Definition at line 38 of file VisSimMain.cc.

References IgDocument::addContentProxy(), ASSERT, IgDocument::data(), edm::ParameterSet::getUntrackedParameter(), i, IgRepSet::invalidate(), IgDocument::load(), m_document, m_state, m_studio, p, VisConfigurationService::pSet(), python::EventAnalyzer_cfg::pset, IgDocumentData::root(), IgDocument::setName(), IgTwig::STRUCTURE_MASK, and VisConfigurationService_cff::VisConfigurationService.

00039 {
00040     ASSERT (m_state);
00041     ASSERT (! m_studio);
00042 
00043     ASSERT (into);
00044     m_studio = into;
00045 
00046     // Create document
00047     ASSERT (! m_document);
00048     m_document = new IgDocument (m_studio);
00049     
00050     // Change window caption.
00051     m_document->setName ("CMSSW Simulation Visualisation");
00052     m_document->addContentProxy ("Framework/Core");
00053 
00054     const edm::ParameterSet *pset = VisConfigurationService::pSet ();
00055     if (! pset)
00056     {
00057         edm::ParameterSet p;
00058         VisConfigurationService *visServise = new VisConfigurationService (p);
00059         pset = visServise->pSet ();
00060         delete visServise;
00061     }
00062     std::vector<std::string> proxies;
00063     proxies = pset->getUntrackedParameter<std::vector<std::string> >
00064               ("ContentProxies", proxies);
00065 
00066     // Fill document
00067     IgPage *page = new IgPage (m_document);
00068     new IgMDIView (page, "3D Window");
00069 
00070     // Load all data proxies
00071     if (proxies.empty ())
00072     {
00073         proxies.push_back ("Simulation/Core");
00074         proxies.push_back ("Simulation/Data");
00075         proxies.push_back ("Simulation/Geometry");
00076         proxies.push_back ("Simulation/Hits"); 
00077     }
00078     
00079     for (unsigned int i = 0; i < proxies.size (); i++)
00080     {
00081         m_document->addContentProxy (proxies [i]);
00082     }
00083     m_document->load ("Services/Framework/GUI/", true);
00084 
00085     IgRepSet::invalidate (m_document->data ()->root (), IgTwig::STRUCTURE_MASK);
00086     return true;
00087 }


Member Data Documentation

IgDocument* VisSimMain::m_document [private]

Definition at line 34 of file VisSimMain.h.

Referenced by setup().

IgState* VisSimMain::m_state [private]

Definition at line 32 of file VisSimMain.h.

Referenced by setup(), and VisSimMain().

IgStudioDriver* VisSimMain::m_studio [private]

Definition at line 33 of file VisSimMain.h.

Referenced by setup().


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