X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_Stream.sip;h=b4b78c40a93e1d6e18809b714086de3fb2ab2ff7;hb=3bece499e83cc9ca95536228c7f6740030e9d5d8;hp=4bb209e6f2f8897e0951f8afc07ef352c553f498;hpb=2396bb1dcf012a09bb9492c69da1f30c84c76fe7;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_Stream.sip b/src/HYDROPy/HYDROData_Stream.sip index 4bb209e6..b4b78c40 100644 --- a/src/HYDROPy/HYDROData_Stream.sip +++ b/src/HYDROPy/HYDROData_Stream.sip @@ -27,11 +27,6 @@ class HYDROData_Stream : public HYDROData_NaturalObject %End public: - /** - * Update the shape presentations of stream. - */ - void UpdatePrs(); - /** * Returns default filling color for new stream. */ @@ -45,7 +40,7 @@ public: /** * Returns true if given polyline can be used as stream axis. */ - static bool IsValidAsAxis( HYDROData_PolylineXY theAxis ) + static bool IsValidAsAxis( HYDROData_PolylineXY theAxis ) [bool ( const Handle_HYDROData_PolylineXY& )]; %MethodCode Handle(HYDROData_PolylineXY) aRef = @@ -58,14 +53,14 @@ public: } %End -public: +public: // Public methods to work with Stream data fields /** * Sets reference hydraulic axis object for stream. */ bool SetHydraulicAxis( HYDROData_PolylineXY theAxis ) - [bool ( const Handle_HYDROData_PolylineXY& )]; + [bool ( const opencascade::handle& )]; %MethodCode Handle(HYDROData_PolylineXY) aRef = Handle(HYDROData_PolylineXY)::DownCast( createHandle( a0 ) ); @@ -82,15 +77,15 @@ public: * Returns reference hydraulic axis object of stream. */ HYDROData_PolylineXY GetHydraulicAxis() const - [Handle_HYDROData_PolylineXY ()]; + [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 @@ -103,7 +98,7 @@ public: * Add new one reference profile object for stream. */ bool AddProfile( HYDROData_Profile theProfile ) - [bool ( const Handle_HYDROData_Profile& )]; + [bool ( const opencascade::handle& )]; %MethodCode Handle(HYDROData_Profile) aRef = Handle(HYDROData_Profile)::DownCast( createHandle( a0 ) ); @@ -125,7 +120,7 @@ public: * Removes reference profile object from stream. */ bool RemoveProfile( HYDROData_Profile theProfile ) - [bool ( const Handle_HYDROData_Profile& )]; + [bool ( const opencascade::handle& )]; %MethodCode Handle(HYDROData_Profile) aRef = Handle(HYDROData_Profile)::DownCast( createHandle( a0 ) ); @@ -152,23 +147,23 @@ public: * Returns reference bottom polyline object of stream. */ HYDROData_Polyline3D GetBottomPolyline() const - [Handle_HYDROData_Polyline3D ()]; + [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. */ bool SetBottomPolyline( HYDROData_Polyline3D theBottom ) - [bool ( const Handle_HYDROData_Polyline3D& )]; + [bool ( const opencascade::handle& )]; %MethodCode Handle(HYDROData_Polyline3D) aRef = Handle(HYDROData_Polyline3D)::DownCast( createHandle( a0 ) ); @@ -181,6 +176,72 @@ public: } %End + /** + * Sets the left bank object for stream. (LISM method only) + */ + void SetLeftBank( HYDROData_PolylineXY theBank ) + [void ( const opencascade::handle& )]; + %MethodCode + Handle(HYDROData_PolylineXY) aRef = + Handle(HYDROData_PolylineXY)::DownCast( createHandle( a0 ) ); + if ( !aRef.IsNull() ) + { + Py_BEGIN_ALLOW_THREADS + sipSelfWasArg ? sipCpp->HYDROData_Stream::SetLeftBank( aRef ): + sipCpp->SetLeftBank( aRef ); + Py_END_ALLOW_THREADS + } + %End + + /** + * Returns the left bank object of stream. (LISM method only) + */ + HYDROData_PolylineXY GetLeftBank() const + [opencascade::handle ()]; + %MethodCode + Handle(HYDROData_PolylineXY) aRef; + + Py_BEGIN_ALLOW_THREADS + aRef = sipSelfWasArg ? sipCpp->HYDROData_Stream::GetLeftBank() : + sipCpp->GetLeftBank(); + Py_END_ALLOW_THREADS + + sipRes = (HYDROData_PolylineXY*)createPointer( aRef ); + %End + + /** + * Sets the right bank object for stream. (LISM method only) + */ + void SetRightBank( HYDROData_PolylineXY theBank ) + [void ( const opencascade::handle& )]; + %MethodCode + Handle(HYDROData_PolylineXY) aRef = + Handle(HYDROData_PolylineXY)::DownCast( createHandle( a0 ) ); + if ( !aRef.IsNull() ) + { + Py_BEGIN_ALLOW_THREADS + sipSelfWasArg ? sipCpp->HYDROData_Stream::SetRightBank( aRef ): + sipCpp->SetRightBank( aRef ); + Py_END_ALLOW_THREADS + } + %End + + /** + * Returns the right bank object of stream. (LISM method only) + */ + HYDROData_PolylineXY GetRightBank() const + [opencascade::handle ()]; + %MethodCode + Handle(HYDROData_PolylineXY) aRef; + + Py_BEGIN_ALLOW_THREADS + aRef = sipSelfWasArg ? sipCpp->HYDROData_Stream::GetRightBank() : + sipCpp->GetRightBank(); + Py_END_ALLOW_THREADS + + sipRes = (HYDROData_PolylineXY*)createPointer( aRef ); + %End + /** * Add interpolated profiles into the stream. * \param theInterpolator the interpolator @@ -188,9 +249,34 @@ public: */ virtual bool Interpolate( HYDROData_IProfilesInterpolator* theInterpolator ); + /** + * Set vertical slicing step for profiles interpolation. (DTM method only) + */ + void SetDDZ( double theDDZ ); + + /** + * Set horizontal step for profiles interpolation. (DTM method only) + */ + void SetSpatialStep( double theSpatialStep ); + + /** + * Set interpolation method (DTM or LISM). + */ + void SetInterpolationMethod( int theMode ); + + /** + * Set horizontal step on hydr. axis for profiles interpolation. (LISM method) + */ + void SetHaxStep( double theHaxStep ); + + /** + * Set number of points on profiles to insert (LISM method) + */ + void SetNbProfilePoints( int theNbPoints ); + 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();