X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_Document.sip;h=882fe167ab7cd1444c472ad7bcc15896a8810877;hb=58bb6b7459bebeeb089c9ed486c4683a8bae7288;hp=2ff3c60440c71c01291430cfcb90659cc0168fb8;hpb=743e3da9cea294eb30ea8b16e7f6992a39a8a50a;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_Document.sip b/src/HYDROPy/HYDROData_Document.sip index 2ff3c604..882fe167 100644 --- a/src/HYDROPy/HYDROData_Document.sip +++ b/src/HYDROPy/HYDROData_Document.sip @@ -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( theObject ) ); break; } - case KIND_SPLITTED_GROUP: + case KIND_SPLIT_GROUP: { - aRes = new HYDROData_SplittedShapesGroup( *dynamic_cast( theObject ) ); + aRes = new HYDROData_SplitShapesGroup( *dynamic_cast( 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 (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 (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 (const QString&, const ObjectKind)] ; %MethodCode Handle(HYDROData_Entity) anObject;