From: isn Date: Thu, 15 Sep 2016 13:44:11 +0000 (+0300) Subject: ImportFromFile() X-Git-Tag: v1.6~74 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d398a8be8e0b0259b476b358d53d234ce4c82379;p=modules%2Fhydro.git ImportFromFile() --- diff --git a/src/HYDROData/HYDROData_Bathymetry.cxx b/src/HYDROData/HYDROData_Bathymetry.cxx index f848958d..f7d31037 100644 --- a/src/HYDROData/HYDROData_Bathymetry.cxx +++ b/src/HYDROData/HYDROData_Bathymetry.cxx @@ -552,6 +552,11 @@ bool HYDROData_Bathymetry::IsAltitudesInverted() const return aRes; } +bool HYDROData_Bathymetry::ImportFromFile( const QString& theFileName ) +{ + return ImportFromFiles(QStringList(theFileName)); +} + bool HYDROData_Bathymetry::ImportFromFiles( const QStringList& theFileNames ) { AltitudePoints AllPoints; diff --git a/src/HYDROData/HYDROData_Bathymetry.h b/src/HYDROData/HYDROData_Bathymetry.h index 4c8a23e6..3797f195 100644 --- a/src/HYDROData/HYDROData_Bathymetry.h +++ b/src/HYDROData/HYDROData_Bathymetry.h @@ -153,6 +153,8 @@ public: */ HYDRODATA_EXPORT virtual bool ImportFromFiles( const QStringList& theFileNames ); + HYDRODATA_EXPORT virtual bool ImportFromFile( const QString& theFileName ); + HYDRODATA_EXPORT Handle_HYDROData_PolylineXY CreateBoundaryPolyline() const; HYDRODATA_EXPORT virtual void UpdateLocalCS( double theDx, double theDy ); diff --git a/src/HYDROPy/HYDROData_Bathymetry.sip b/src/HYDROPy/HYDROData_Bathymetry.sip index 2e6fd5cc..0c78ace3 100644 --- a/src/HYDROPy/HYDROData_Bathymetry.sip +++ b/src/HYDROPy/HYDROData_Bathymetry.sip @@ -60,6 +60,7 @@ public: bool IsAltitudesInverted() const; bool ImportFromFiles( const QStringList& theFileNames ); + bool ImportFromFile( const QString& theFileName ); protected: HYDROData_Bathymetry();