X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FDriverMED%2FDriverMED_Family.h;h=944b9bc828e4b0b81f60ef18c5f8e1ffb37dd60a;hp=cca2bf0756ee8309b60276bc14556279ff6a9890;hb=65482a36f681e66ec4f04213b83453adbc36a281;hpb=c3bf92bd87b770fd81631a3853f7f5bb1ac6a4e8 diff --git a/src/DriverMED/DriverMED_Family.h b/src/DriverMED/DriverMED_Family.h index cca2bf075..944b9bc82 100644 --- a/src/DriverMED/DriverMED_Family.h +++ b/src/DriverMED/DriverMED_Family.h @@ -29,15 +29,13 @@ #define _INCLUDE_DRIVERMED_FAMILY #include "SMDS_Mesh.hxx" -#include "SMESHDS_Group.hxx" +#include "SMESHDS_GroupBase.hxx" #include "SMESHDS_SubMesh.hxx" -#include "MEDA_Wrapper.hxx" +#include "MED_Common.hxx" #include #include -using namespace std; - #define REST_NODES_FAMILY 1 #define REST_EDGES_FAMILY -1 #define REST_FACES_FAMILY -2 @@ -54,21 +52,22 @@ class DriverMED_Family // Methods for groups storing to MED - static list MakeFamilies (const map & theSubMeshes, - const list& theGroups, - const bool doGroupOfNodes, - const bool doGroupOfEdges, - const bool doGroupOfFaces, - const bool doGroupOfVolumes); + static std::list MakeFamilies (const std::map & theSubMeshes, + const std::list& theGroups, + const bool doGroupOfNodes, + const bool doGroupOfEdges, + const bool doGroupOfFaces, + const bool doGroupOfVolumes); // Split each group from list and each sub-mesh from list // on some parts (families) on the basis of the elements membership in other groups // from and other sub-meshes from . // Resulting families have no common elements. - MEDA::PFamilyInfo GetFamilyInfo (const MEDA::PMeshInfo& theMeshInfo) const; + MED::PFamilyInfo GetFamilyInfo (const MED::PWrapper& theWrapper, + const MED::PMeshInfo& theMeshInfo) const; // Create TFamilyInfo for this family - const set& GetElements () const { return myElements; } + const std::set& GetElements () const { return myElements; } // Returns elements of this family int GetId () const { return myId; } @@ -80,22 +79,22 @@ class DriverMED_Family void AddElement (const SMDS_MeshElement* theElement) { myElements.insert(theElement); } - void AddGroupName (string theGroupName) { myGroupNames.insert(theGroupName); } + void AddGroupName (std::string theGroupName) { myGroupNames.insert(theGroupName); } void SetType (const SMDSAbs_ElementType theType) { myType = theType; } SMDSAbs_ElementType GetType () { return myType; } - bool MemberOf (string theGroupName) const + bool MemberOf (std::string theGroupName) const { return (myGroupNames.find(theGroupName) != myGroupNames.end()); } const MED::TStringSet& GetGroupNames () const { return myGroupNames; } private: - void Init (SMESHDS_Group* group); - // Initialize the tool by SMESHDS_Group + void Init (SMESHDS_GroupBase* group); + // Initialize the tool by SMESHDS_GroupBase - static list SplitByType (SMESHDS_SubMesh* theSubMesh, - const int theId); + static std::list SplitByType (SMESHDS_SubMesh* theSubMesh, + const int theId); // Split on some parts (families) // on the basis of the elements type. @@ -114,7 +113,7 @@ class DriverMED_Family private: int myId; SMDSAbs_ElementType myType; - set myElements; + std::set myElements; MED::TStringSet myGroupNames; };