X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_Document.sip;h=c2a71f9404956ac20ae7544cc359bac126ef5869;hb=aef25fd825d5add8a8cc2cdf43db3f24e5d4a90f;hp=5b2e2e19bbee48164bed296a7f38840d6d88f159;hpb=f099487960a20a21078c317f00981335daeafed2;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_Document.sip b/src/HYDROPy/HYDROData_Document.sip index 5b2e2e19..c2a71f94 100644 --- a/src/HYDROPy/HYDROData_Document.sip +++ b/src/HYDROPy/HYDROData_Document.sip @@ -162,6 +162,11 @@ class HYDROData_Document aRes = new HYDROData_ObstacleAltitude( *dynamic_cast( theObject ) ); break; } + case KIND_STREAM_ALTITUDE: + { + aRes = new HYDROData_StreamAltitude( *dynamic_cast( theObject ) ); + break; + } } return aRes; @@ -275,6 +280,26 @@ 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 ); + + void SetLocalCS( double, double ); + protected: //! Creates new document: private because "Document" method must be used instead of direct creation.