+ else if ( thePredicate )
+ myGroupDS = new SMESHDS_GroupOnFilter (theID,
+ const_cast<SMESH_Mesh*>(theMesh)->GetMeshDS(),
+ theType,
+ thePredicate);
+ else
+ myGroupDS = new SMESHDS_Group (theID,
+ const_cast<SMESH_Mesh*>(theMesh)->GetMeshDS(),
+ theType);
+ myGroupDS->SetStoreName( theName );
+}
+
+//================================================================================
+/*!
+ * \brief Constructor accessible to SMESH_Mesh only
+ */
+//================================================================================
+
+SMESH_Group::SMESH_Group (SMESHDS_GroupBase* groupDS): myGroupDS( groupDS )
+{
+ if ( myGroupDS )
+ myName = myGroupDS->GetStoreName();