X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH%2FSMESH_Mesh.hxx;h=84086a3ea730fb50cde1542afe500adbdea0ac8f;hp=6c25414e2e115a9bc9ad04dcaa7c02f928405765;hb=a3ee66b0371b361bf97d6261c61a35995b4595bb;hpb=b0a908c0d20341651771d0249fb10882f54b2aad diff --git a/src/SMESH/SMESH_Mesh.hxx b/src/SMESH/SMESH_Mesh.hxx index 6c25414e2..84086a3ea 100644 --- a/src/SMESH/SMESH_Mesh.hxx +++ b/src/SMESH/SMESH_Mesh.hxx @@ -182,8 +182,8 @@ public: */ void NotifySubMeshesHypothesisModification(const SMESH_Hypothesis* theChangedHyp); - const std::list < SMESH_subMesh * >& - GetSubMeshUsingHypothesis(SMESHDS_Hypothesis * anHyp) throw(SALOME_Exception); + // const std::list < SMESH_subMesh * >& + // GetSubMeshUsingHypothesis(SMESHDS_Hypothesis * anHyp) throw(SALOME_Exception); /*! * \brief Return True if anHyp is used to mesh aSubShape */ @@ -236,7 +236,8 @@ public: bool theAutoGroups = true, int theVersion = 0, const SMESHDS_Mesh* theMeshPart = 0, - bool theAutoDimension = false) + bool theAutoDimension = false, + bool theAddODOnVertices = false) throw(SALOME_Exception); void ExportDAT(const char * file, @@ -321,7 +322,7 @@ public: const TListOfListOfInt& GetMeshOrder() const; // sort submeshes according to stored mesh order - bool SortByMeshOrder(std::list& theListToSort) const; + bool SortByMeshOrder(std::vector& theListToSort) const; // return true if given order of sub-meshes is OK bool IsOrderOK( const SMESH_subMesh* smBefore, @@ -332,8 +333,8 @@ public: private: void fillAncestorsMap(const TopoDS_Shape& theShape); - std::list getAncestorsSubMeshes - (const TopoDS_Shape& theSubShape) const; + void getAncestorsSubMeshes(const TopoDS_Shape& theSubShape, + std::vector< SMESH_subMesh* >& theSubMeshes) const; protected: int _id; // id given by creator (unique within the creator instance) @@ -341,12 +342,14 @@ protected: int _groupId; // id generator for group objects int _nbSubShapes; // initial nb of subshapes in the shape to mesh bool _isShapeToMesh;// set to true when a shape is given (only once) - std::list _subMeshesUsingHypothesisList; + //std::list _subMeshesUsingHypothesisList; SMESHDS_Document * _myDocument; SMESHDS_Mesh * _myMeshDS; SMESH_Gen * _gen; - std::map _mapSubMesh; - std::map _mapGroup; + std::map _mapGroup; + + class SubMeshHolder; + SubMeshHolder* _subMeshHolder; bool _isAutoColor; bool _isModified; //!< modified since last total re-compute, issue 0020693 @@ -355,11 +358,13 @@ protected: TopTools_IndexedDataMapOfShapeListOfShape _mapAncestors; + mutable std::vector _ancestorSubMeshes; // to speed up GetHypothes[ei]s() + TListOfListOfInt _mySubMeshOrder; // Struct calling methods at CORBA API implementation level, used to - // 1) make an upper level be consistent with a lower one when group removal - // is invoked by hyp modification (issue 0020918) + // 1) make an upper level (SMESH_I) be consistent with a lower one (SMESH) + // when group removal is invoked by hyp modification (issue 0020918) // 2) to forget not loaded mesh data at hyp modification TCallUp* _callUp;