Salome HOME
Update Help for VISU module.
[modules/visu.git] / src / VISU_I / VISU_Mesh_i.hh
index 5ae8a364d1d07966112cac4ce5e1cec2f92c6b8b..6f7ffd5f2bce994717ad775d33a5a36d2b87d75d 100644 (file)
@@ -1,23 +1,23 @@
 //  VISU OBJECT : interactive object for VISU entities implementation
 //
 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+//  This library is free software; you can redistribute it and/or
+//  modify it under the terms of the GNU Lesser General Public
+//  License as published by the Free Software Foundation; either
+//  version 2.1 of the License.
+//
+//  This library is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+//  Lesser General Public License for more details.
+//
+//  You should have received a copy of the GNU Lesser General Public
+//  License along with this library; if not, write to the Free Software
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
 //
 //
 //  File   : VISU_PrsObject_i.hxx
@@ -39,7 +39,11 @@ namespace VISU{
     Mesh_i();
     Mesh_i(const Mesh_i&);
   public:
-    Mesh_i(Result_i* theResult, SALOMEDS::SObject_ptr theSObject = SALOMEDS::SObject::_nil());
+    explicit
+    Mesh_i(Result_i* theResult);
+    explicit
+    Mesh_i(Result_i* theResult,
+          SALOMEDS::SObject_ptr theSObject);
     virtual void SameAs(const Mesh_i* theOrigin);
     virtual ~Mesh_i();
     virtual void RemoveFromStudy();
@@ -66,25 +70,30 @@ namespace VISU{
 
     VISU_MeshPL* myMeshPL;
 
-    string myMeshName;
-    TEntity myEntity;
-    string mySubMeshName;
+    // std::string myMeshName; move it to Prs3d_i
+    int myEntity;//jfa IPAL9284: TEntity myEntity;
+    std::string mySubMeshName;
     VISU::VISUType myType;
 
     VISU::PresentationType myPresentType;
     struct SALOMEDS::Color myCellColor, myNodeColor, myLinkColor;
 
   public:
-    static int IsPossible(Result_i* theResult, const char* theMeshName, Entity theEntity, const char* theFamilyName = "");
+    static int IsPossible(Result_i* theResult, const char* theMeshName,
+                         Entity theEntity, const char* theFamilyName = "");
     virtual Storable* Create(const char* theMeshName, Entity theEntity, const char* theFamilyName = "");
-    
+
     static int IsPossible(Result_i* theResult, const char* theMeshName, const char* theGroupName);
     virtual Storable* Create(const char* theMeshName, const char* theGroupName);
 
+    const std::string& GetMeshName() const { return myMeshName;}
+    VISU::Entity GetEntity() const { return VISU::Entity(myEntity);}
+    const string& GetSubMeshName() const { return mySubMeshName;}
+
     virtual void ToStream(std::ostringstream& theStr);
 
     virtual const char* GetComment() const;
-    static const string myComment;
+    static const std::string myComment;
     virtual QString GenerateName();
 
     virtual Storable* Restore(const Storable::TRestoringMap& theMap);
@@ -96,5 +105,3 @@ namespace VISU{
 }
 
 #endif
-
-