]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
ImportFromFile()
authorisn <isn@opencascade.com>
Thu, 15 Sep 2016 13:44:11 +0000 (16:44 +0300)
committerisn <isn@opencascade.com>
Thu, 15 Sep 2016 13:44:11 +0000 (16:44 +0300)
src/HYDROData/HYDROData_Bathymetry.cxx
src/HYDROData/HYDROData_Bathymetry.h
src/HYDROPy/HYDROData_Bathymetry.sip

index f848958d3454977578f6e09218fb90d4bf9db893..f7d31037c98ff71954ad8b203b6e975a10ba5736 100644 (file)
@@ -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;
index 4c8a23e64e694ade5e421e9cdb37c8645eddce37..3797f19586eee6ace4c51b6fd59a6e90f985a371 100644 (file)
@@ -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 );
index 2e6fd5ccba46a681c024c7d11198f9f828dc5edf..0c78ace313722d45a7bddb5d99a97bb9aa98a54d 100644 (file)
@@ -60,6 +60,7 @@ public:
   bool IsAltitudesInverted() const;
 
   bool ImportFromFiles( const QStringList& theFileNames );
+  bool ImportFromFile( const QString& theFileName );
 
 protected:
   HYDROData_Bathymetry();