]> SALOME platform Git repositories - modules/gui.git/blob - src/LightApp/LightApp_RootObject.h
Salome HOME
38ca460f9a2864ba84dce75ada921c3d769ebaa7
[modules/gui.git] / src / LightApp / LightApp_RootObject.h
1 #ifndef LIGHTAPP_ROOTOBJECT_H
2 #define LIGHTAPP_ROOTOBJECT_H
3
4 #include "LightApp.h"
5 #include "SUIT_DataObject.h"
6
7 class LightApp_Study;
8
9 /*!
10   LightApp_RootObject - class to be instanciated by only one object - 
11   root object of LightApp data object tree.  This object is not shown
12   in object browser (invisible), so it has no re-definition of name(), icon(),
13   etc. methods.  The goal of this class is to provide a unified access
14   to LightApp_Study object from LightApp_DataObject instances.
15 */
16 class LIGHTAPP_EXPORT LightApp_RootObject : public SUIT_DataObject
17 {
18 public:
19   LightApp_RootObject( LightApp_Study* study )
20    : myStudy( study ) 
21   {}
22
23   virtual ~LightApp_RootObject() {}
24     
25   void                   setStudy( LightApp_Study* study ) { myStudy = study; }
26   LightApp_Study*        study() const                     { return myStudy;  } 
27   
28 private:
29   LightApp_Study*            myStudy;
30
31 };
32
33 #endif