]> SALOME platform Git repositories - modules/visu.git/blob - src/VISU_I/VISU_PrsObject_i.hh
Salome HOME
3827f496abac1bccd65b7f960b940ae5fa393062
[modules/visu.git] / src / VISU_I / VISU_PrsObject_i.hh
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //  VISU OBJECT : interactive object for VISU entities implementation
23 //  File   : VISU_PrsObject_i.hxx
24 //  Author : Alexey PETROV
25 //  Module : VISU
26 //
27 #ifndef VISU_PrsObject_i_HeaderFile
28 #define VISU_PrsObject_i_HeaderFile
29
30 #include "VISUConfig.hh"
31
32 namespace VISU
33 {
34   //----------------------------------------------------------------------------
35   class VISU_I_EXPORT RemovableObject_i : public virtual POA_VISU::RemovableObject,
36                                           public virtual Storable
37   {
38   public:
39     typedef Storable TSuperClass;
40
41     virtual 
42     ~RemovableObject_i();
43
44     SALOMEDS::Study_var
45     GetStudyDocument() const;
46
47     SalomeApp_Study* 
48     GetGUIStudy() const;
49
50     virtual
51     std::string
52     GetEntry();
53
54     virtual 
55     std::string
56     GetName() const;
57
58     virtual 
59     void
60     SetName(const std::string& theName,
61             bool theIsUpdateStudyAttr);
62
63   protected:
64     RemovableObject_i();
65
66     void
67     SetStudyDocument(SALOMEDS::Study_ptr theStudy);
68
69   private:
70     std::string myName;
71     SalomeApp_Study* myGUIStudy;
72     SALOMEDS::Study_var myStudyDocument;
73
74     RemovableObject_i(const RemovableObject_i&);
75   };
76
77
78   //----------------------------------------------------------------------------
79   class VISU_I_EXPORT PrsObject_i : public virtual POA_VISU::PrsObject,
80                                     public virtual RemovableObject_i
81   {
82     PrsObject_i(const PrsObject_i&);
83
84   public:
85     typedef RemovableObject_i TSuperClass;
86
87     PrsObject_i(SALOMEDS::Study_ptr theStudy = SALOMEDS::Study::_nil());
88   };
89 }
90
91 #endif