Salome HOME
dumping to py, sip, translations
[modules/hydro.git] / src / HYDROPy / HYDROData_CalculationCase.sip
index 52c09e4f954aa47742ceb3502fa2b00ab380fc3f..dac4e0d40f026c2e4ad101f581c3cebfb3b1dc6d 100644 (file)
@@ -176,6 +176,47 @@ public:
    */
   void RemoveGeometryGroups();
 
+     
+  /**
+   * Add new boundary polygon to calculation case.
+   */
+  bool AddBoundaryPolygon( HYDROData_BCPolygon theObject ) [bool ( const opencascade::handle<HYDROData_BCPolygon>& )];
+  %MethodCode
+    Handle(HYDROData_BCPolygon) aRef =
+      Handle(HYDROData_BCPolygon)::DownCast( createHandle( a0 ) );
+    if ( !aRef.IsNull() )
+    {
+      Py_BEGIN_ALLOW_THREADS
+      sipRes = sipSelfWasArg ? sipCpp->HYDROData_CalculationCase::AddBoundaryPolygon( aRef ):
+                               sipCpp->AddBoundaryPolygon( aRef );
+      Py_END_ALLOW_THREADS
+    }
+  %End
+
+  /**
+   * Returns all boundary polygons of calculation case.
+   */
+  HYDROData_SequenceOfObjects GetBoundaryPolygons() const;
+
+  /**
+   * Removes boundary polygon from calculation case.
+   */
+  void RemoveBoundaryPolygon( HYDROData_BCPolygon theObject )
+  [void ( const opencascade::handle<HYDROData_BCPolygon>& )];
+  %MethodCode
+    Handle(HYDROData_BCPolygon) aRef =
+      Handle(HYDROData_BCPolygon)::DownCast( createHandle( a0 ) );
+    if ( !aRef.IsNull() )
+    {
+      Py_BEGIN_ALLOW_THREADS
+      if ( sipSelfWasArg ) {
+        sipCpp->HYDROData_CalculationCase::RemoveBoundaryPolygon( aRef );
+      } else {
+        sipCpp->RemoveBoundaryPolygon( aRef );
+      }
+      Py_END_ALLOW_THREADS
+    }
+  %End
 
   /**
    * Sets reference boundary polyline object for calculation case.