X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDMEM%2FMEDMEM_DriverTools.hxx;h=e75f22d32eceaf0441aa7183e48bd62a6fac45c6;hb=d5f570a507f393d4bc424c30de4e7bd75e7005cc;hp=7ea40d0e13bc7e9a2167fce66416234746527b0a;hpb=f67b742b82cccd18591e4d03538617a16e7d057b;p=modules%2Fmed.git diff --git a/src/MEDMEM/MEDMEM_DriverTools.hxx b/src/MEDMEM/MEDMEM_DriverTools.hxx index 7ea40d0e1..e75f22d32 100644 --- a/src/MEDMEM/MEDMEM_DriverTools.hxx +++ b/src/MEDMEM/MEDMEM_DriverTools.hxx @@ -11,11 +11,11 @@ #include #include +namespace MEDMEM { class MESH; class CONNECTIVITY; class COORDINATE; class GROUP; - struct _noeud { mutable int number; @@ -27,8 +27,11 @@ struct _maille typedef std::map::iterator iter; MED_EN::medGeometryElement geometricType; std::vector< iter > sommets; - mutable unsigned ordre; // l'ordre est fixé après insertion dans le set, et ne change ni l'état, ni l'ordre -> mutable + mutable unsigned ordre; // l'ordre est fixé après insertion dans le set, et ne change ni l'état, ni l'ordre -> mutable + _maille() : geometricType(MED_EN::MED_NONE),ordre(0) + { + }; _maille(MED_EN::medGeometryElement _geometricType, size_t nelem) : geometricType(_geometricType),ordre(0) { sommets.reserve(nelem); @@ -54,7 +57,7 @@ struct _groupe typedef std::set< std::set<_maille>::iterator>::const_iterator mailleIter; std::string nom; std::set< std::set<_maille>::iterator, _mailleIteratorCompare > mailles; // iterateurs sur les mailles composant le groupe - std::list groupes; // indices des sous-groupes composant le groupe + std::vector groupes; // indices des sous-groupes composant le groupe }; /*! @@ -74,8 +77,10 @@ struct _intermediateMED std::map< int, _noeud > points; CONNECTIVITY * getConnectivity(); // set MED connectivity from the intermediate structure - COORDINATE * getCoordinate(); // set MED coordinate from the intermediate structure - void getGroups(std::vector & _groupCell, std::vector & _groupFace, std::vector & _groupEdge, std::vector & _groupNode, MESH * _ptrMesh); + COORDINATE * getCoordinate(const string & coordinateSystem="CARTESIAN"); // set MED coordinate from the + // intermediate structure + void getGroups(std::vector & _groupCell, std::vector & _groupFace, + std::vector & _groupEdge, std::vector & _groupNode, MESH * _ptrMesh); // used by previous functions to renumber points & mesh. void numerotationMaillage(); @@ -88,4 +93,5 @@ std::ostream& operator << (std::ostream& , const _groupe& ); std::ostream& operator << (std::ostream& , const _noeud& ); std::ostream& operator << (std::ostream& , const _intermediateMED& ); +}; #endif /* DRIVERTOOLS_HXX */