Salome HOME
0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
authoreap <eap@opencascade.com>
Wed, 10 Aug 2011 10:17:44 +0000 (10:17 +0000)
committereap <eap@opencascade.com>
Wed, 10 Aug 2011 10:17:44 +0000 (10:17 +0000)
+  SMESH_Group (SMESHDS_GroupBase* groupDS);

src/SMESH/SMESH_Group.cxx
src/SMESH/SMESH_Group.hxx

index 1546940b783aaa2a215f9aa70e181c786442e8ff..96474952c43b6f97eddcc24897ed490a2b6f4b9a 100644 (file)
@@ -62,6 +62,18 @@ SMESH_Group::SMESH_Group (int                       theID,
                                    theType);
 }
 
+//================================================================================
+/*!
+ * \brief Constructor accesible to SMESH_Mesh only
+ */
+//================================================================================
+
+SMESH_Group::SMESH_Group (SMESHDS_GroupBase* groupDS): myGroupDS( groupDS )
+{
+  if ( myGroupDS )
+    myName = myGroupDS->GetStoreName();
+}
+
 //=============================================================================
 /*!
  *  
index 3f460188b63e82ff697afd3e30f01dfaccd7f04c..31bc167bff96df682ba011e81bd2d38bd38b296a 100644 (file)
@@ -49,6 +49,7 @@ class SMESH_EXPORT  SMESH_Group
                const char*               theName,
                const TopoDS_Shape&       theShape = TopoDS_Shape(),
                const SMESH_PredicatePtr& thePredicate = SMESH_PredicatePtr());
+  SMESH_Group (SMESHDS_GroupBase* groupDS);
   ~SMESH_Group ();
 
   void SetName (const char* theName) { myName = theName; }