#include <VisExamples/VisMagFieldDemo/src/VisMagFieldDemoMain.h>
Public Member Functions | |
virtual bool | setup (IgStudioDriver *into) |
VisMagFieldDemoMain (IgState *state) | |
Private Member Functions | |
IG_DECLARE_STATE_ELEMENT (VisMagFieldDemoMain) | |
Private Attributes | |
IgDocument * | m_document |
IgState * | m_state |
IgStudioDriver * | m_studio |
Definition at line 20 of file VisMagFieldDemoMain.h.
VisMagFieldDemoMain::VisMagFieldDemoMain | ( | IgState * | state | ) |
Definition at line 29 of file VisMagFieldDemoMain.cc.
References ASSERT, m_state, and IgState::put().
00030 : m_state (state), 00031 m_studio (0), 00032 m_document (0) 00033 { ASSERT (m_state); m_state->put (s_key, this); }
VisMagFieldDemoMain::IG_DECLARE_STATE_ELEMENT | ( | VisMagFieldDemoMain | ) | [private] |
bool VisMagFieldDemoMain::setup | ( | IgStudioDriver * | into | ) | [virtual] |
Reimplemented from IgStudioSetupExtension.
Definition at line 36 of file VisMagFieldDemoMain.cc.
References IgDocument::addContentProxy(), ASSERT, IgDocument::data(), IgRepSet::invalidate(), IgDocument::load(), m_document, m_state, m_studio, IgDocumentData::root(), IgDocument::setName(), and IgTwig::STRUCTURE_MASK.
00037 { 00038 ASSERT (m_state); 00039 ASSERT (! m_studio); 00040 00041 ASSERT (into); 00042 m_studio = into; 00043 00044 // Create document 00045 ASSERT (! m_document); 00046 m_document = new IgDocument (m_studio); 00047 00048 // Change window caption. 00049 m_document->setName ("CMSSW Visualisation Magnetic Field Demo"); 00050 00051 // Fill document 00052 IgPage *page = new IgPage (m_document); 00053 00054 new IgMDIView (page); 00055 00056 // Load all data proxies 00057 m_document->addContentProxy ("Framework/Core"); 00058 m_document->load ("Services/Framework/GUI/", true); 00059 00060 m_document->addContentProxy ("Reco/CMS Magnetic Field"); 00061 m_document->addContentProxy ("Reco/Detector"); 00062 00063 IgRepSet::invalidate (m_document->data ()->root (), IgTwig::STRUCTURE_MASK); 00064 return true; 00065 }
IgDocument* VisMagFieldDemoMain::m_document [private] |
IgState* VisMagFieldDemoMain::m_state [private] |
Definition at line 31 of file VisMagFieldDemoMain.h.
Referenced by setup(), and VisMagFieldDemoMain().
IgStudioDriver* VisMagFieldDemoMain::m_studio [private] |