Salome HOME
Fix for the bug #37: Error when import image with format not supported.
[modules/hydro.git] / src / HYDROPy / HYDROData_Calculation.sip
index f03984b4139cce5ebeae888b3bf54bff444daaf0..18264de0736a19eaebb790f9fded8cd3b095444e 100644 (file)
@@ -24,7 +24,7 @@
 #include <HYDROData_Calculation.h>
 %End
 
-class HYDROData_Calculation : HYDROData_Object
+class HYDROData_Calculation : HYDROData_Entity
 {
 
 %TypeHeaderCode
@@ -74,47 +74,6 @@ public:
 
   %End
 
-  /**
-   * Replace the geometry object for calculation case.
-   */
-  void SetGeometryObject( const int        theIndex, 
-                          HYDROData_Object theObject ) [void (const int, const Handle_HYDROData_Object&)];
-  %MethodCode
-
-    Handle(HYDROData_Object) aGeomObj =
-      Handle(HYDROData_Object)::DownCast( createHandle( a1 ) );
-    if ( !aGeomObj.IsNull() )
-    {
-      Py_BEGIN_ALLOW_THREADS
-      sipSelfWasArg ? sipCpp->HYDROData_Calculation::SetGeometryObject( a0, aGeomObj ) : 
-                      sipCpp->SetGeometryObject( a0, aGeomObj );
-      Py_END_ALLOW_THREADS
-    }
-
-  %End
-
-  /**
-   * Sets the geometry object for calculation case.
-   */
-  //void SetGeometryObjects( const HYDROData_SequenceOfObjects& theObjects );
-
-  /**
-   * Returns geometry object of calculation case by index.
-   */
-  HYDROData_Object GetGeometryObject( const int theIndex ) const [Handle_HYDROData_Object (const int)];
-  %MethodCode
-
-    Handle(HYDROData_Object) aGeomObj;
-    
-    Py_BEGIN_ALLOW_THREADS
-    aGeomObj = sipSelfWasArg ? sipCpp->HYDROData_Calculation::GetGeometryObject( a0 ) : 
-                               sipCpp->GetGeometryObject( a0 );
-    Py_END_ALLOW_THREADS
-    
-    sipRes = (HYDROData_Object*)createPointer( aGeomObj );
-  
-  %End
-
   /**
    * Returns all geometry objects of calculation case.
    */
@@ -128,7 +87,7 @@ public:
 
   /**
    * Add new one region for calculation case.
-   * The new region is not added into the list of reference regions.
+   * The new region is added into the list of reference regions.
    */
   HYDROData_Region AddNewRegion() [Handle_HYDROData_Region ()];
   %MethodCode
@@ -144,16 +103,6 @@ public:
 
   %End
 
-  /**
-   * Removes all child regions from calculation case.
-   */
-  void RemoveChildRegions();
-
-
-  /**
-   * Returns number of reference regions for calculation case.
-   */
-  int NbRegions() const;
 
   /**
    * Add new one reference region for calculation case.
@@ -173,66 +122,6 @@ public:
 
   %End
 
-  /**
-   * Replace the reference region for calculation case.
-   */
-  void SetRegion( const int        theIndex, 
-                  HYDROData_Region theRegion ) [void (const int, const Handle_HYDROData_Region&)];
-  %MethodCode
-
-    Handle(HYDROData_Region) aRegion =
-      Handle(HYDROData_Region)::DownCast( createHandle( a1 ) );
-    if ( !aRegion.IsNull() )
-    {
-      Py_BEGIN_ALLOW_THREADS
-      sipSelfWasArg ? sipCpp->HYDROData_Calculation::SetRegion( a0, aRegion ) : 
-                      sipCpp->SetRegion( a0, aRegion );
-      Py_END_ALLOW_THREADS
-    }
-
-  %End
-
-  /**
-   * Inserts the reference region for calculation case before given index.
-   */
-  void InsertRegion( const int        theBeforeIndex, 
-                     HYDROData_Region theRegion ) [void (const int, const Handle_HYDROData_Region&)];
-  %MethodCode
-
-    Handle(HYDROData_Region) aRegion =
-      Handle(HYDROData_Region)::DownCast( createHandle( a1 ) );
-    if ( !aRegion.IsNull() )
-    {
-      Py_BEGIN_ALLOW_THREADS
-      sipSelfWasArg ? sipCpp->HYDROData_Calculation::InsertRegion( a0, aRegion ) : 
-                      sipCpp->InsertRegion( a0, aRegion );
-      Py_END_ALLOW_THREADS
-    }
-
-  %End
-
-  /**
-   * Sets reference regions for calculation case.
-   */
-  //void SetRegions( const HYDROData_SequenceOfObjects& theRegions );
-
-  /**
-   * Returns reference region of calculation case by index.
-   */
-  HYDROData_Region GetRegion( const int theIndex ) const [Handle_HYDROData_Region (const int)];
-  %MethodCode
-
-    Handle(HYDROData_Region) aRefRegion;
-    
-    Py_BEGIN_ALLOW_THREADS
-    aRefRegion = sipSelfWasArg ? sipCpp->HYDROData_Calculation::GetRegion( a0 ) : 
-                                 sipCpp->GetRegion( a0 );
-    Py_END_ALLOW_THREADS
-    
-    sipRes = (HYDROData_Region*)createPointer( aRefRegion );
-  
-  %End
-
   /**
    * Returns all reference regions of calculation case.
    */
@@ -256,11 +145,6 @@ public:
 
   %End
 
-  /**
-   * Removes region from calculation case by it index.
-   */
-  void RemoveRegion( const int theIndex );
-
   /**
    * Removes all reference regions from calculation case.
    */