From: rnc Date: Thu, 22 Aug 2013 09:46:21 +0000 (+0000) Subject: IMP: DriverGMF/SizeMaps: Added a method to get the name of the size map files (with... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3d3ea93b445b1b51b4db75c0139fab9d72f2c43f;p=modules%2Fsmesh.git IMP: DriverGMF/SizeMaps: Added a method to get the name of the size map files (with their extensions). --- diff --git a/src/DriverGMF/DriverGMF_Write.cxx b/src/DriverGMF/DriverGMF_Write.cxx index 49f3ff00c..4192119a2 100644 --- a/src/DriverGMF/DriverGMF_Write.cxx +++ b/src/DriverGMF/DriverGMF_Write.cxx @@ -369,12 +369,10 @@ Driver_Mesh::Status DriverGMF_Write::PerformSizeMap( const std::vector DriverGMF_Write::GetSizeMapFiles() +{ + std::vector files; + files.push_back(myVerticesFile); + files.push_back(mySolFile); + return files; +} + //================================================================================ /*! * \brief Returns an iterator on elements of a certain type diff --git a/src/DriverGMF/DriverGMF_Write.hxx b/src/DriverGMF/DriverGMF_Write.hxx index f92f1706a..b6b41bced 100644 --- a/src/DriverGMF/DriverGMF_Write.hxx +++ b/src/DriverGMF/DriverGMF_Write.hxx @@ -74,8 +74,10 @@ public: Status PerformSizeMap( const std::vector& points ); void SetSizeMapPrefix( std::string prefix ) { - mySizeMapPrefix = prefix; + myVerticesFile = prefix + ".mesh"; + mySolFile = prefix + ".sol"; }; + std::vector GetSizeMapFiles(); private: @@ -84,7 +86,8 @@ public: SMDS_ElemIteratorPtr elementIterator(SMDSAbs_GeometryType type); bool _exportRequiredGroups; - std::string mySizeMapPrefix; + std::string myVerticesFile; + std::string mySolFile; }; #endif