X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_Mesh_i.hxx;h=0b010c474cfe1cf5c2adcf16511467a0acd8ad20;hp=ad960f5034be3cfe33bae0521b93cf9038e12f59;hb=5ce23baf3aaec1507f239da8595afa38c7842836;hpb=0febe018bcde111dc7aca1f3e44d4aa2995b59a2;ds=sidebyside diff --git a/src/SMESH_I/SMESH_Mesh_i.hxx b/src/SMESH_I/SMESH_Mesh_i.hxx index ad960f503..0b010c474 100644 --- a/src/SMESH_I/SMESH_Mesh_i.hxx +++ b/src/SMESH_I/SMESH_Mesh_i.hxx @@ -44,7 +44,7 @@ #include "SALOME_GenericObj_i.hh" class SMESH_Gen_i; -class SMESH_Group_i; +class SMESH_GroupBase_i; #include @@ -65,6 +65,9 @@ public: void SetShape( GEOM::GEOM_Object_ptr theShapeObject ) throw (SALOME::SALOME_Exception); + GEOM::GEOM_Object_ptr GetShapeToMesh() + throw (SALOME::SALOME_Exception); + SMESH::Hypothesis_Status AddHypothesis(GEOM::GEOM_Object_ptr aSubShapeObject, SMESH::SMESH_Hypothesis_ptr anHyp) throw (SALOME::SALOME_Exception); @@ -85,29 +88,30 @@ public: SMESH::SMESH_Group_ptr CreateGroup( SMESH::ElementType theElemType, const char* theName ) throw (SALOME::SALOME_Exception); - SMESH::SMESH_Group_ptr CreateGroupFromGEOM( SMESH::ElementType theElemType, const char* theName, - GEOM::GEOM_Object_ptr theGEOMGroup ) - throw (SALOME::SALOME_Exception); + SMESH::SMESH_GroupOnGeom_ptr CreateGroupFromGEOM(SMESH::ElementType theElemType, + const char* theName, + GEOM::GEOM_Object_ptr theGeomObj ) + throw (SALOME::SALOME_Exception); - void RemoveGroup( SMESH::SMESH_Group_ptr theGroup ) + void RemoveGroup( SMESH::SMESH_GroupBase_ptr theGroup ) throw (SALOME::SALOME_Exception); - void RemoveGroupWithContents( SMESH::SMESH_Group_ptr theGroup ) + void RemoveGroupWithContents( SMESH::SMESH_GroupBase_ptr theGroup ) throw (SALOME::SALOME_Exception); - SMESH::SMESH_Group_ptr UnionGroups( SMESH::SMESH_Group_ptr theGroup1, - SMESH::SMESH_Group_ptr theGroup2, + SMESH::SMESH_Group_ptr UnionGroups( SMESH::SMESH_GroupBase_ptr theGroup1, + SMESH::SMESH_GroupBase_ptr theGroup2, const char* theName ) throw (SALOME::SALOME_Exception); - SMESH::SMESH_Group_ptr IntersectGroups( SMESH::SMESH_Group_ptr theGroup1, - SMESH::SMESH_Group_ptr theGroup2, + SMESH::SMESH_Group_ptr IntersectGroups( SMESH::SMESH_GroupBase_ptr theGroup1, + SMESH::SMESH_GroupBase_ptr theGroup2, const char* theName ) throw (SALOME::SALOME_Exception); - SMESH::SMESH_Group_ptr CutGroups( SMESH::SMESH_Group_ptr theGroup1, - SMESH::SMESH_Group_ptr theGroup2, - const char* theName ) + SMESH::SMESH_Group_ptr CutGroups( SMESH::SMESH_GroupBase_ptr theGroup1, + SMESH::SMESH_GroupBase_ptr theGroup2, + const char* theName ) throw (SALOME::SALOME_Exception); // SMESH::string_array* GetLog(CORBA::Boolean clearAfterGet) @@ -201,18 +205,27 @@ public: SMESH_Hypothesis::Hypothesis_Status removeHypothesis(GEOM::GEOM_Object_ptr aSubShapeObject, SMESH::SMESH_Hypothesis_ptr anHyp); - bool setShape( GEOM::GEOM_Object_ptr theShapeObject ); - int importMEDFile( const char* theFileName, const char* theMeshName ); SMESH::SMESH_subMesh_ptr createSubMesh( GEOM::GEOM_Object_ptr theSubShapeObject ); - void removeSubMesh( SMESH::SMESH_subMesh_ptr theSubMesh, GEOM::GEOM_Object_ptr theSubShapeObject ); + void removeSubMesh(SMESH::SMESH_subMesh_ptr theSubMesh, + GEOM::GEOM_Object_ptr theSubShapeObject ); - SMESH::SMESH_Group_ptr createGroup( SMESH::ElementType theElemType, const char* theName ); + SMESH::SMESH_GroupBase_ptr createGroup(SMESH::ElementType theElemType, + const char* theName, + const TopoDS_Shape& theShape = TopoDS_Shape()); void removeGroup( const int theId ); + SMESH::SMESH_subMesh_ptr getSubMesh(int shapeID); + // return an existing subMesh object for the shapeID. shapeID == submeshID. + + const map& getGroups() { return _mapGroups; } + // return an existing group object. + + virtual SMESH::long_array* GetIDs(); + map _mapSubMesh_i; //NRI map _mapSubMesh; //NRI @@ -223,7 +236,7 @@ private: int _id; // id given by creator (unique within the creator instance) int _studyId; map _mapSubMeshIor; - map _mapGroups; + map _mapGroups; map _mapHypo; };