CMS 3D CMS Logo

VisMagFieldDemoMain Class Reference

#include <VisExamples/VisMagFieldDemo/src/VisMagFieldDemoMain.h>

Inheritance diagram for VisMagFieldDemoMain:

IgStudioSetupExtension IgExtension IgStateElement

List of all members.

Public Member Functions

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

Private Member Functions

 IG_DECLARE_STATE_ELEMENT (VisMagFieldDemoMain)

Private Attributes

IgDocumentm_document
IgStatem_state
IgStudioDriverm_studio


Detailed Description

Definition at line 20 of file VisMagFieldDemoMain.h.


Constructor & Destructor Documentation

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); }


Member Function Documentation

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 }


Member Data Documentation

IgDocument* VisMagFieldDemoMain::m_document [private]

Definition at line 33 of file VisMagFieldDemoMain.h.

Referenced by setup().

IgState* VisMagFieldDemoMain::m_state [private]

Definition at line 31 of file VisMagFieldDemoMain.h.

Referenced by setup(), and VisMagFieldDemoMain().

IgStudioDriver* VisMagFieldDemoMain::m_studio [private]

Definition at line 32 of file VisMagFieldDemoMain.h.

Referenced by setup().


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