00001 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, 00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 00005 // 00006 // This library is free software; you can redistribute it and/or 00007 // modify it under the terms of the GNU Lesser General Public 00008 // License as published by the Free Software Foundation; either 00009 // version 2.1 of the License. 00010 // 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 // Lesser General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU Lesser General Public 00017 // License along with this library; if not, write to the Free Software 00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 // 00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00021 // 00022 00023 // VISU OBJECT : interactive object for VISU entities implementation 00024 // File : VISU_PrsObject_i.hxx 00025 // Author : Alexey PETROV 00026 // Module : VISU 00027 // 00028 #ifndef VISU_PrsObject_i_HeaderFile 00029 #define VISU_PrsObject_i_HeaderFile 00030 00031 #include "VISUConfig.hh" 00032 00033 namespace VISU 00034 { 00035 //---------------------------------------------------------------------------- 00036 class VISU_I_EXPORT RemovableObject_i : public virtual POA_VISU::RemovableObject, 00037 public virtual Storable 00038 { 00039 public: 00040 typedef Storable TSuperClass; 00041 00042 virtual 00043 ~RemovableObject_i(); 00044 00045 SALOMEDS::Study_var 00046 GetStudyDocument() const; 00047 00048 SalomeApp_Study* 00049 GetGUIStudy() const; 00050 00051 virtual 00052 std::string 00053 GetEntry(); 00054 00055 virtual 00056 std::string 00057 GetName() const; 00058 00059 virtual 00060 void 00061 SetName(const std::string& theName, 00062 bool theIsUpdateStudyAttr); 00063 00064 protected: 00065 RemovableObject_i(); 00066 00067 void 00068 SetStudyDocument(SALOMEDS::Study_ptr theStudy); 00069 00070 private: 00071 std::string myName; 00072 SalomeApp_Study* myGUIStudy; 00073 SALOMEDS::Study_var myStudyDocument; 00074 00075 RemovableObject_i(const RemovableObject_i&); 00076 }; 00077 00078 00079 //---------------------------------------------------------------------------- 00080 class VISU_I_EXPORT PrsObject_i : public virtual POA_VISU::PrsObject, 00081 public virtual RemovableObject_i 00082 { 00083 PrsObject_i(const PrsObject_i&); 00084 00085 public: 00086 typedef RemovableObject_i TSuperClass; 00087 00088 PrsObject_i(SALOMEDS::Study_ptr theStudy = SALOMEDS::Study::_nil()); 00089 }; 00090 } 00091 00092 #endif