CMS 3D CMS Logo

IgCommonViewPropertiesCategory Class Reference

#include <Iguana/GLBrowsers/interface/IgCommonViewPropertiesCategory.h>

Inheritance diagram for IgCommonViewPropertiesCategory:

IgStateElement

List of all members.

Public Member Functions

IgCommonViewCategorygetCategory (const QString &name) const
IgCommonViewCategorygetCategory (unsigned int index) const
 IgCommonViewPropertiesCategory (IgState *state)
void registerBrowser (IgState *state, Ig3DBaseBrowser *browser)
IgStatestate (void)
 ~IgCommonViewPropertiesCategory ()

Private Member Functions

 IG_DECLARE_STATE_ELEMENT (IgCommonViewPropertiesCategory)

Private Attributes

std::vector
< IgCommonViewCategory * > 
m_categories
IgStatem_state


Detailed Description

Definition at line 23 of file IgCommonViewPropertiesCategory.h.


Constructor & Destructor Documentation

IgCommonViewPropertiesCategory::IgCommonViewPropertiesCategory ( IgState state  ) 

Definition at line 26 of file IgCommonViewPropertiesCategory.cc.

References ASSERT, category, DBSPlugin::get(), m_categories, m_state, and IgState::put().

00027 {
00028     ASSERT (state);
00029     m_state =  state;
00030     IgCommonViewCategory* category = 0;
00031     
00032     category = IgExaminerViewerCategory::get (state);
00033     if (!category)
00034     {
00035         category = 
00036             new IgExaminerViewerCategory (state);
00037     }
00038     m_categories.push_back (category);
00039 
00040     category = IgGL2PSPrintCategory::get (state);
00041     if (!category)
00042     {
00043         category = 
00044             new IgGL2PSPrintCategory (state);
00045     }
00046     m_categories.push_back (category);
00047     
00048     category = IgGLRenderCategory::get (state);
00049     if (!category)
00050     {
00051         category = 
00052             new IgGLRenderCategory (state);
00053     }
00054     m_categories.push_back (category);
00055 
00056     category = IgQtApplicationCategory::get (state);
00057     if (!category)
00058     {
00059         category = 
00060             new IgQtApplicationCategory (state);
00061     }
00062     m_categories.push_back (category);
00063 
00064     category = IgSceneManagerCategory::get (state);
00065     if (!category)
00066     {
00067         category = 
00068             new IgSceneManagerCategory (state);
00069     }
00070     m_categories.push_back (category);
00071     
00072     state->put (s_key, this);
00073 }

IgCommonViewPropertiesCategory::~IgCommonViewPropertiesCategory (  ) 

Definition at line 75 of file IgCommonViewPropertiesCategory.cc.

References IgState::detach(), m_categories, and state().

00076 {
00077     while(!m_categories.empty ())
00078     {
00079       delete m_categories[0];
00080       m_categories.erase (m_categories.begin ());
00081     }
00082     state()->detach (s_key);
00083 }


Member Function Documentation

IgCommonViewCategory* IgCommonViewPropertiesCategory::getCategory ( const QString &  name  )  const

IgCommonViewCategory* IgCommonViewPropertiesCategory::getCategory ( unsigned int  index  )  const

IgCommonViewPropertiesCategory::IG_DECLARE_STATE_ELEMENT ( IgCommonViewPropertiesCategory   )  [private]

void IgCommonViewPropertiesCategory::registerBrowser ( IgState state,
Ig3DBaseBrowser browser 
)

Definition at line 86 of file IgCommonViewPropertiesCategory.cc.

References i, and m_categories.

Referenced by Ig3DBaseWindow::initCategories().

00088 {
00089     for(unsigned int i = 0; i < m_categories.size (); i++)
00090       m_categories[i]->registerBrowser (state, browser);
00091 }

IgState* IgCommonViewPropertiesCategory::state ( void   )  [inline]

Definition at line 32 of file IgCommonViewPropertiesCategory.h.

Referenced by ~IgCommonViewPropertiesCategory().

00032 { return m_state; }


Member Data Documentation

std::vector<IgCommonViewCategory*> IgCommonViewPropertiesCategory::m_categories [private]

Definition at line 40 of file IgCommonViewPropertiesCategory.h.

Referenced by IgCommonViewPropertiesCategory(), registerBrowser(), and ~IgCommonViewPropertiesCategory().

IgState* IgCommonViewPropertiesCategory::m_state [private]

Definition at line 41 of file IgCommonViewPropertiesCategory.h.

Referenced by IgCommonViewPropertiesCategory().


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