Salome HOME
add python method HYDROData_PolylineXY.ImportShapesFromFile('name')
[modules/hydro.git] / src / HYDROPy / HYDROData_PolylineXY.sip
index a32e3f180e48180cd71b26e1a66545975a37630a..11c10909eb083065c1a5fa07a6c33369623daf45 100644 (file)
@@ -125,6 +125,19 @@ public:
    */
   virtual QPainterPath GetPainterPath() const;
 
+  /**
+   * import polylines from .shp or .xyz files
+   */
+  static bool ImportShapesFromFile( const QString& theFileName /In/ )
+  [bool ( const QString& )];
+  %MethodCode
+    QString aString(*a0);
+    Py_BEGIN_ALLOW_THREADS
+    sipRes = HYDROData_PolylineXY::ImportShapesFromFile( aString );
+    Py_END_ALLOW_THREADS
+  %End
+
+
 protected:
 
   /**