From d398a8be8e0b0259b476b358d53d234ce4c82379 Mon Sep 17 00:00:00 2001 From: isn Date: Thu, 15 Sep 2016 16:44:11 +0300 Subject: [PATCH] ImportFromFile() --- src/HYDROData/HYDROData_Bathymetry.cxx | 5 +++++ src/HYDROData/HYDROData_Bathymetry.h | 2 ++ src/HYDROPy/HYDROData_Bathymetry.sip | 1 + 3 files changed, 8 insertions(+) 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(); -- 2.39.2