Salome HOME
refs #1331: automatic test for profiles points in GUI
[modules/hydro.git] / src / HYDROPy / HYDROData_CalculationCase.sip
index 5f7d254dc628c3d657fb8aea836461952543d2c9..52c09e4f954aa47742ceb3502fa2b00ab380fc3f 100644 (file)
@@ -87,7 +87,7 @@ public:
   /**
    * Add new one reference geometry object for calculation case.
    */
-  bool AddGeometryObject( HYDROData_Object theObject ) [bool ( const Handle_HYDROData_Object& )];
+  bool AddGeometryObject( HYDROData_Object theObject ) [bool ( const opencascade::handle<HYDROData_Object>& )];
   %MethodCode
     Handle(HYDROData_Object) aRef =
       Handle(HYDROData_Object)::DownCast( createHandle( a0 ) );
@@ -109,7 +109,7 @@ public:
    * Removes reference geometry object from calculation case.
    */
   void RemoveGeometryObject( HYDROData_Object theObject )
-  [void ( const Handle_HYDROData_Object& )];
+  [void ( const opencascade::handle<HYDROData_Object>& )];
   %MethodCode
     Handle(HYDROData_Object) aRef =
       Handle(HYDROData_Object)::DownCast( createHandle( a0 ) );
@@ -134,7 +134,7 @@ public:
   /**
    * Add new one reference geometry group for calculation case.
    */
-  bool AddGeometryGroup( HYDROData_ShapesGroup theGroup ) [bool ( const Handle_HYDROData_ShapesGroup& )];
+  bool AddGeometryGroup( HYDROData_ShapesGroup theGroup ) [bool ( const opencascade::handle<HYDROData_ShapesGroup>& )];
   %MethodCode
     Handle(HYDROData_ShapesGroup) aRef =
       Handle(HYDROData_ShapesGroup)::DownCast( createHandle( a0 ) );
@@ -155,7 +155,7 @@ public:
   /**
    * Removes reference geometry group from calculation case.
    */
-  void RemoveGeometryGroup( HYDROData_ShapesGroup theGroup ) [void ( const Handle_HYDROData_ShapesGroup& )];
+  void RemoveGeometryGroup( HYDROData_ShapesGroup theGroup ) [void ( opencascade::handle<HYDROData_ShapesGroup>& )];
   %MethodCode
     Handle(HYDROData_ShapesGroup) aRef =
       Handle(HYDROData_ShapesGroup)::DownCast( createHandle( a0 ) );
@@ -180,7 +180,7 @@ public:
   /**
    * Sets reference boundary polyline object for calculation case.
    */
-  void SetBoundaryPolyline( HYDROData_PolylineXY thePolyline ) [void ( const Handle_HYDROData_PolylineXY& )];
+  void SetBoundaryPolyline( HYDROData_PolylineXY thePolyline ) [void ( opencascade::handle<HYDROData_PolylineXY>& )];
   %MethodCode
     Handle(HYDROData_PolylineXY) aRef =
       Handle(HYDROData_PolylineXY)::DownCast( createHandle( a0 ) );
@@ -199,7 +199,7 @@ public:
   /**
    * Returns reference boundary polyline object of calculation case.
    */
-  HYDROData_PolylineXY GetBoundaryPolyline() const [Handle_HYDROData_PolylineXY ()];
+  HYDROData_PolylineXY GetBoundaryPolyline() const [opencascade::handle<HYDROData_PolylineXY> ()];
   %MethodCode
     Handle(HYDROData_PolylineXY) aRef;
     
@@ -216,7 +216,7 @@ public:
    */
   void RemoveBoundaryPolyline();
   
-  void SetLandCoverMap( HYDROData_LandCoverMap theLandCoverMap ) [void ( const Handle_HYDROData_LandCoverMap& )];
+  void SetLandCoverMap( HYDROData_LandCoverMap theLandCoverMap ) [void ( const opencascade::handle<HYDROData_LandCoverMap>& )];
   %MethodCode
     Handle(HYDROData_LandCoverMap) aRef =
       Handle(HYDROData_LandCoverMap)::DownCast( createHandle( a0 ) );
@@ -232,7 +232,7 @@ public:
     }
   %End
 
-  void SetStricklerTable( HYDROData_StricklerTable theStricklerTable ) [void ( const Handle_HYDROData_StricklerTable& )];
+  void SetStricklerTable( HYDROData_StricklerTable theStricklerTable ) [void ( const opencascade::handle<HYDROData_StricklerTable>& )];
    %MethodCode
     Handle(HYDROData_StricklerTable) aRef =
       Handle(HYDROData_StricklerTable)::DownCast( createHandle( a0 ) );
@@ -254,7 +254,7 @@ public:
    * The label of theZone is changed during this operation
    * because of new region becomes the new parent for this zone.
    */
-  HYDROData_Region AddNewRegion( HYDROData_Zone theZone ) [Handle_HYDROData_Region ( const Handle_HYDROData_Zone& )];
+  HYDROData_Region AddNewRegion( HYDROData_Zone theZone ) [opencascade::handle<HYDROData_Region> ( opencascade::handle<HYDROData_Zone>& )];
   %MethodCode
     Handle(HYDROData_Zone) aRef =
       Handle(HYDROData_Zone)::DownCast( createHandle( a0 ) );
@@ -275,7 +275,7 @@ public:
    * Add new one reference region for calculation case.
    * The label of theRegion is changed in case if old parent is not this calculation.
    */
-  bool AddRegion( HYDROData_Region theRegion ) [bool ( const Handle_HYDROData_Region& )];
+  bool AddRegion( HYDROData_Region theRegion ) [bool ( opencascade::handle<HYDROData_Region>& )];
   %MethodCode
     Handle(HYDROData_Region) aRef =
       Handle(HYDROData_Region)::DownCast( createHandle( a0 ) );
@@ -301,7 +301,7 @@ public:
   /**
    * Removes reference region from calculation case.
    */
-  void RemoveRegion( HYDROData_Region theRegion ) [void ( const Handle_HYDROData_Region& )];
+  void RemoveRegion( HYDROData_Region theRegion ) [void ( opencascade::handle<HYDROData_Region>& )];
   %MethodCode
     Handle(HYDROData_Region) aRef =
       Handle(HYDROData_Region)::DownCast( createHandle( a0 ) );
@@ -389,7 +389,7 @@ public:
   double GetAltitudeForPoint( const double     theCoordX,
                               const double     theCoordY,
                               HYDROData_Region theRegion ) const
-  [double ( const gp_XY&, const Handle_HYDROData_Region& )];
+  [double ( const gp_XY&, opencascade::handle<HYDROData_Region>& )];
   %MethodCode
     gp_XY aPnt( a0, a1 );
     Handle(HYDROData_Region) aRefRegion =
@@ -410,7 +410,7 @@ public:
   double GetAltitudeForPoint( const double theCoordX,
                               const double theCoordY,
                               HYDROData_Zone theZone ) const
-  [double ( const gp_XY&, const Handle_HYDROData_Zone& )];
+  [double ( const gp_XY&, opencascade::handle<HYDROData_Zone>& )];
   %MethodCode
     gp_XY aPnt( a0, a1 );
     Handle(HYDROData_Zone) aRefZone =
@@ -432,7 +432,7 @@ public:
                                                       const NCollection_Sequence<double>& theCoordsY,
                                                       HYDROData_Region                    theRegion,
                                                       int                                 theMethod = 0) const
-  [NCollection_Sequence<double> ( const NCollection_Sequence<gp_XY>&, const Handle_HYDROData_Region&, int)];
+  [NCollection_Sequence<double> ( const NCollection_Sequence<gp_XY>&, opencascade::handle<HYDROData_Region>&, int)];
   %MethodCode
 
     NCollection_Sequence<gp_XY> aPnts;
@@ -509,7 +509,7 @@ public:
                                                       const NCollection_Sequence<double>& theCoordsY,
                                                       HYDROData_Zone                      theZone,
                                                       int                                 theMethod = 0) const
-  [NCollection_Sequence<double> ( const NCollection_Sequence<gp_XY>&, const Handle_HYDROData_Zone&, int )];
+  [NCollection_Sequence<double> ( const NCollection_Sequence<gp_XY>&, opencascade::handle<HYDROData_Zone>&, int )];
   %MethodCode
 
     NCollection_Sequence<gp_XY> aPnts;
@@ -541,7 +541,7 @@ public:
    */
   HYDROData_Region GetRegionFromPoint( const double theCoordX,
                                        const double theCoordY ) const
-  [Handle_HYDROData_Region ( const gp_XY& )];
+  [opencascade::handle<HYDROData_Region> ( const gp_XY& )];
   %MethodCode
     Handle(HYDROData_Region) aRes;
     
@@ -562,7 +562,7 @@ public:
    */
   HYDROData_Zone GetZoneFromPoint( const double theCoordX,
                                    const double theCoordY ) const
-  [Handle_HYDROData_Zone ( const gp_XY& )];
+  [opencascade::handle<HYDROData_Zone> ( const gp_XY& )];
   %MethodCode
     Handle(HYDROData_Zone) aRes;
     
@@ -585,7 +585,7 @@ public:
   PointClassification GetPointClassification( const double theCoordX,
                                               const double theCoordY,
                                               HYDROData_Zone theZone ) const 
-  [PointClassification ( const gp_XY&, const Handle_HYDROData_Zone& )];    
+  [PointClassification ( const gp_XY&, opencascade::handle<HYDROData_Zone>& )];    
   %MethodCode
     gp_XY aPnt( a0, a1 );
 
@@ -606,12 +606,10 @@ public:
                 HYDROData_Entity                   theObject2,
                 HYDROData_Zone::MergeType          theMergeType,
                                HYDROData_CalculationCase::DataTag theDataTag )
-  [void ( const Handle_HYDROData_Entity&, HYDROData_PriorityType, const Handle_HYDROData_Entity&, HYDROData_Zone::MergeType, HYDROData_CalculationCase::DataTag )];
+  [void ( const opencascade::handle<HYDROData_Entity>&, HYDROData_PriorityType, opencascade::handle<HYDROData_Entity>&, HYDROData_Zone::MergeType, HYDROData_CalculationCase::DataTag )];
   %MethodCode
-    Handle(HYDROData_Entity) anObject1 =
-      Handle(HYDROData_Entity)::DownCast( createHandle( a0 ) );
-    Handle(HYDROData_Entity) anObject2 =
-      Handle(HYDROData_Entity)::DownCast( createHandle( a2 ) );
+    Handle(HYDROData_Entity) anObject1 = createHandle( a0 );
+    Handle(HYDROData_Entity) anObject2 = createHandle( a2 );
 
     Py_BEGIN_ALLOW_THREADS
     sipSelfWasArg ? sipCpp->HYDROData_CalculationCase::AddRule( anObject1, a1, anObject2, a3, a4 ) :