Salome HOME
refs #1331: automatic test for profiles points in GUI
[modules/hydro.git] / src / HYDROPy / HYDROData_Document.sip
index 2ff3c60440c71c01291430cfcb90659cc0168fb8..882fe167ab7cd1444c472ad7bcc15896a8810877 100644 (file)
@@ -42,7 +42,8 @@ class HYDROData_Document
 %End
 
 %ConvertToSubClassCode
-    if ( !Handle(HYDROData_Document)::DownCast( sipCpp ).IsNull() )
+    HYDROData_Document* aDoc = dynamic_cast< HYDROData_Document*>( sipCpp );
+    if ( aDoc )
       sipClass = sipClass_HYDROData_Document;
     else
       sipClass = NULL;
@@ -148,9 +149,9 @@ class HYDROData_Document
         aRes = new HYDROData_ShapesGroup( *dynamic_cast<HYDROData_ShapesGroup*>( theObject ) );
         break;
       }
-      case KIND_SPLITTED_GROUP:
+      case KIND_SPLIT_GROUP:
       {
-        aRes = new HYDROData_SplittedShapesGroup( *dynamic_cast<HYDROData_SplittedShapesGroup*>( theObject ) );
+        aRes = new HYDROData_SplitShapesGroup( *dynamic_cast<HYDROData_SplitShapesGroup*>( theObject ) );
         break;
       }
       case KIND_OBSTACLE_ALTITUDE:
@@ -199,7 +200,7 @@ class HYDROData_Document
 public:
 
   //! Returns the existing document or creates new if it is not exist
-  static HYDROData_Document Document( const int theStudyID ) [Handle_HYDROData_Document (const int)] ;
+  static HYDROData_Document Document( const int theStudyID ) [opencascade::handle<HYDROData_Document> (const int)] ;
   %MethodCode
 
     Handle(HYDROData_Document) aDocument;
@@ -273,7 +274,7 @@ public:
   //! Creates and locates in the document a new object
   //! \param theKind kind of the created object, can not be UNKNOWN
   //! \returns the created object
-  HYDROData_Entity CreateObject( const ObjectKind theKind ) [Handle_HYDROData_Entity (const ObjectKind)] ;
+  HYDROData_Entity CreateObject( const ObjectKind theKind ) [opencascade::handle<HYDROData_Entity> (const ObjectKind)] ;
   %MethodCode
 
     Handle(HYDROData_Entity) anObject;
@@ -288,7 +289,7 @@ public:
 
   HYDROData_Entity FindObjectByName( const QString&   theName,
                                      const ObjectKind theKind = KIND_UNKNOWN ) 
-  [Handle_HYDROData_Entity (const QString&, const ObjectKind)] ;
+  [opencascade::handle<HYDROData_Entity> (const QString&, const ObjectKind)] ;
   %MethodCode
 
     Handle(HYDROData_Entity) anObject;