X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_Stream.sip;h=cb233c5c8f03c41143c9cc5766f7dbae654ecdca;hb=5c4e50dc9c57c22ea5d7422ca12ce95e45010950;hp=7963b776caa4dc2310a23d4932d4db6a620f302f;hpb=ad4482443835973ac9ee0ce2024f60f91adff716;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_Stream.sip b/src/HYDROPy/HYDROData_Stream.sip index 7963b776..cb233c5c 100644 --- a/src/HYDROPy/HYDROData_Stream.sip +++ b/src/HYDROPy/HYDROData_Stream.sip @@ -40,8 +40,8 @@ public: /** * Returns true if given polyline can be used as stream axis. */ - static bool IsValidAsAxis( HYDROData_PolylineXY theAxis ) - [bool ( const opencascade::handle& )]; + static bool IsValidAsAxis( HYDROData_PolylineXY theAxis ) + [bool ( const Handle_HYDROData_PolylineXY& )]; %MethodCode Handle(HYDROData_PolylineXY) aRef = Handle(HYDROData_PolylineXY)::DownCast( createHandle( a0 ) ); @@ -53,7 +53,7 @@ public: } %End -public: +public: // Public methods to work with Stream data fields /** @@ -80,12 +80,12 @@ public: [opencascade::handle ()]; %MethodCode Handle(HYDROData_PolylineXY) aRef; - + Py_BEGIN_ALLOW_THREADS - aRef = sipSelfWasArg ? sipCpp->HYDROData_Stream::GetHydraulicAxis() : + aRef = sipSelfWasArg ? sipCpp->HYDROData_Stream::GetHydraulicAxis() : sipCpp->GetHydraulicAxis(); Py_END_ALLOW_THREADS - + sipRes = (HYDROData_PolylineXY*)createPointer( aRef ); %End @@ -150,15 +150,15 @@ public: [opencascade::handle ()]; %MethodCode Handle(HYDROData_Polyline3D) aRef; - + Py_BEGIN_ALLOW_THREADS - aRef = sipSelfWasArg ? sipCpp->HYDROData_Stream::GetBottomPolyline() : + aRef = sipSelfWasArg ? sipCpp->HYDROData_Stream::GetBottomPolyline() : sipCpp->GetBottomPolyline(); Py_END_ALLOW_THREADS - + sipRes = (HYDROData_Polyline3D*)createPointer( aRef ); %End - + /** * Sets reference bottom polyline object for stream. */ @@ -183,9 +183,19 @@ public: */ virtual bool Interpolate( HYDROData_IProfilesInterpolator* theInterpolator ); + /** + * Set vertical slicing step for profiles interpolation. + */ + void SetDDZ( double theDDZ ); + + /** + * Set horizontal step for profiles interpolation. + */ + void SetSpatialStep( double theSpatialStep ); + protected: /** - * Creates new object in the internal data structure. Use higher level objects + * Creates new object in the internal data structure. Use higher level objects * to create objects with real content. */ HYDROData_Stream();