Salome HOME
Correction for hydro_test
[modules/hydro.git] / src / HYDROPy / HYDROData_Bathymetry.sip
index 9f316d7c4bb71fca3b90125e619bc4eaf31e17d3..d1cb1eac83c332895b674bb4bdee3379dd302000 100644 (file)
@@ -53,13 +53,41 @@ public:
   virtual void SetAltitudePoints( const HYDROData_Bathymetry::AltitudePoints& );
   HYDROData_Bathymetry::AltitudePoints GetAltitudePoints() const;
 
+  NCollection_Sequence<double> GetAltitudesForPoints( const NCollection_Sequence<double>& theCoordsX,
+                                                      const NCollection_Sequence<double>& theCoordsY,
+                                                      int                                 theMethod = 0) const
+  [NCollection_Sequence<double> ( const NCollection_Sequence<gp_XY>&, int)];
+  %MethodCode
+
+    NCollection_Sequence<gp_XY> aPnts;
+
+    int aLen = qMin( a0->Length(), a1->Length() );
+    for ( int i = 1; i <= aLen; ++i )
+    {
+      gp_XY aPnt( a0->Value( i ), a1->Value( i ) );
+      aPnts.Append( aPnt );
+    }
+
+    int aMethod = a2;
+    
+    NCollection_Sequence<double> aRes;
+    Py_BEGIN_ALLOW_THREADS
+    aRes = sipSelfWasArg ? sipCpp->HYDROData_Bathymetry::GetAltitudesForPoints( aPnts, aMethod ) : 
+                           sipCpp->GetAltitudesForPoints( aPnts, aMethod );
+    Py_END_ALLOW_THREADS
+    
+    sipRes = new NCollection_Sequence<double>( aRes );
+  %End
+
+
   void RemoveAltitudePoints();
 
 public:
   void SetAltitudesInverted( const bool theIsInverted, const bool theIsUpdate = true );
   bool IsAltitudesInverted() const;
 
-  bool ImportFromFile( const TCollection_AsciiString& theFileName );
+  bool ImportFromFiles( const QStringList& theFileNames );
+  bool ImportFromFile( const QString& theFileName );
 
 protected:
   HYDROData_Bathymetry();