X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH%2FSMESH_Mesh.hxx;h=313fbad50d58934ff3be93990d0c3f41d84efed7;hp=91ae67eda4fb1ccfe496f9c93922f268bb8a91fe;hb=333415e6c9f744a167d1779d9e74e073f122e88c;hpb=0635c9fc80f67d1e5dc0e94ec85f487286a92070 diff --git a/src/SMESH/SMESH_Mesh.hxx b/src/SMESH/SMESH_Mesh.hxx index 91ae67eda..313fbad50 100644 --- a/src/SMESH/SMESH_Mesh.hxx +++ b/src/SMESH/SMESH_Mesh.hxx @@ -55,10 +55,10 @@ class SMESH_EXPORT SMESH_Mesh { public: SMESH_Mesh(int theLocalId, - int theStudyId, - SMESH_Gen* theGen, - bool theIsEmbeddedMode, - SMESHDS_Document* theDocument); + int theStudyId, + SMESH_Gen* theGen, + bool theIsEmbeddedMode, + SMESHDS_Document* theDocument); virtual ~SMESH_Mesh(); @@ -162,7 +162,7 @@ public: * \brief Return True if anHyp is used to mesh aSubShape */ bool IsUsedHypothesis(SMESHDS_Hypothesis * anHyp, - const SMESH_subMesh * aSubMesh); + const SMESH_subMesh * aSubMesh); /*! * \brief check if a hypothesis alowing notconform mesh is present */ @@ -191,9 +191,9 @@ public: bool HasDuplicatedGroupNamesMED(); void ExportMED(const char *file, - const char* theMeshName = NULL, - bool theAutoGroups = true, - int theVersion = 0) + const char* theMeshName = NULL, + bool theAutoGroups = true, + int theVersion = 0) throw(SALOME_Exception); void ExportDAT(const char *file) throw(SALOME_Exception); @@ -202,6 +202,8 @@ public: int NbNodes() throw(SALOME_Exception); + int Nb0DElements() throw(SALOME_Exception); + int NbEdges(SMDSAbs_ElementOrder order = ORDER_ANY) throw(SALOME_Exception); int NbFaces(SMDSAbs_ElementOrder order = ORDER_ANY) throw(SALOME_Exception); @@ -229,8 +231,8 @@ public: int NbGroup() const { return _mapGroup.size(); } SMESH_Group* AddGroup (const SMDSAbs_ElementType theType, - const char* theName, - int& theId, + const char* theName, + int& theId, const TopoDS_Shape& theShape=TopoDS_Shape()); typedef boost::shared_ptr< SMDS_Iterator > GroupIteratorPtr; @@ -246,6 +248,9 @@ public: SMDSAbs_ElementType GetElementType( const int id, const bool iselem ); + void SetParameters(const std::list& theParameters); + std::list GetParameters() const; + // ostream& Dump(ostream & save); @@ -257,6 +262,7 @@ protected: int _studyId; int _idDoc; // id given by SMESHDS_Document 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; SMESHDS_Document * _myDocument; @@ -271,6 +277,9 @@ protected: TopTools_IndexedDataMapOfShapeListOfShape _mapAncestors; +private: + std::list _parameters; + protected: SMESH_Mesh() {}; SMESH_Mesh(const SMESH_Mesh&) {};