X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_Document.sip;h=6aeddf8904d4232e2341258c9fa69ac951452742;hb=f2cd9ebfca8f8f58c6e98e30d2ebb387488016cc;hp=ca96f19da58306296fd61507922caffdb9ba7d96;hpb=b60a48c43d8cce2dffe69ae6fb825379ab988f9b;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_Document.sip b/src/HYDROPy/HYDROData_Document.sip index ca96f19d..6aeddf89 100644 --- a/src/HYDROPy/HYDROData_Document.sip +++ b/src/HYDROPy/HYDROData_Document.sip @@ -67,29 +67,54 @@ class HYDROData_Document aRes = new HYDROData_Image( *dynamic_cast( theObject ) ); break; } + case KIND_POLYLINE: + { + aRes = new HYDROData_Polyline3D( *dynamic_cast( theObject ) ); + break; + } case KIND_BATHYMETRY: { aRes = new HYDROData_Bathymetry( *dynamic_cast( theObject ) ); break; } -/* case KIND_ALTITUDE: + case KIND_ALTITUDE: { aRes = new HYDROData_AltitudeObject( *dynamic_cast( theObject ) ); break; - }*/ - case KIND_OBSTACLE_ALTITUDE: - { - aRes = new HYDROData_ObstacleAltitude( *dynamic_cast( theObject ) ); - break; } case KIND_IMMERSIBLE_ZONE: { aRes = new HYDROData_ImmersibleZone( *dynamic_cast( theObject ) ); break; } - case KIND_POLYLINE: + case KIND_RIVER: { - aRes = new HYDROData_Polyline3D( *dynamic_cast( theObject ) ); + aRes = new HYDROData_River( *dynamic_cast( theObject ) ); + break; + } + case KIND_STREAM: + { + aRes = new HYDROData_Stream( *dynamic_cast( theObject ) ); + break; + } + case KIND_CONFLUENCE: + { + aRes = new HYDROData_Confluence( *dynamic_cast( theObject ) ); + break; + } + case KIND_CHANNEL: + { + aRes = new HYDROData_Channel( *dynamic_cast( theObject ) ); + break; + } + case KIND_OBSTACLE: + { + aRes = new HYDROData_Obstacle( *dynamic_cast( theObject ) ); + break; + } + case KIND_DIGUE: + { + aRes = new HYDROData_Digue( *dynamic_cast( theObject ) ); break; } case KIND_PROFILE: @@ -112,11 +137,6 @@ class HYDROData_Document aRes = new HYDROData_CalculationCase( *dynamic_cast( theObject ) ); break; } - case KIND_OBSTACLE: - { - aRes = new HYDROData_Obstacle( *dynamic_cast( theObject ) ); - break; - } case KIND_REGION: { aRes = new HYDROData_Region( *dynamic_cast( theObject ) ); @@ -127,6 +147,21 @@ class HYDROData_Document aRes = new HYDROData_Zone( *dynamic_cast( theObject ) ); break; } + case KIND_SHAPES_GROUP: + { + aRes = new HYDROData_ShapesGroup( *dynamic_cast( theObject ) ); + break; + } + case KIND_SPLITTED_GROUP: + { + aRes = new HYDROData_SplittedShapesGroup( *dynamic_cast( theObject ) ); + break; + } + case KIND_OBSTACLE_ALTITUDE: + { + aRes = new HYDROData_ObstacleAltitude( *dynamic_cast( theObject ) ); + break; + } } return aRes; @@ -240,6 +275,24 @@ public: %End + HYDROData_Entity FindObjectByName( const QString& theName, + const ObjectKind theKind = KIND_UNKNOWN ) + [Handle_HYDROData_Entity (const QString&, const ObjectKind)] ; + %MethodCode + + Handle(HYDROData_Entity) anObject; + Py_BEGIN_ALLOW_THREADS + anObject = sipSelfWasArg ? sipCpp->HYDROData_Document::FindObjectByName( *a0, a1 ) : + sipCpp->FindObjectByName( *a0, a1 ); + Py_END_ALLOW_THREADS + + sipRes = createPointer( anObject ); + + %End + + HYDROData_SequenceOfObjects FindObjectsByNames( const QStringList& theNames, + const ObjectKind theKind = KIND_UNKNOWN ); + protected: //! Creates new document: private because "Document" method must be used instead of direct creation.