X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Stream.h;h=d0f6202894ccdaaed6bc2eab19bd4ad190603b58;hb=refs%2Ftags%2FBR_hydro_v_0_4;hp=c65e319360abf23e2ccc34a5666efdf3041b106e;hpb=d1fb3cba49689a5773aaab41d638513026757fae;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Stream.h b/src/HYDROData/HYDROData_Stream.h index c65e3193..d0f62028 100644 --- a/src/HYDROData/HYDROData_Stream.h +++ b/src/HYDROData/HYDROData_Stream.h @@ -3,11 +3,12 @@ #define HYDROData_Stream_HeaderFile #include "HYDROData_NaturalObject.h" - +#include DEFINE_STANDARD_HANDLE(HYDROData_Stream, HYDROData_NaturalObject) class Handle(HYDROData_PolylineXY); class Handle(HYDROData_Profile); +class TColStd_Array1OfReal; /**\class HYDROData_Stream * \brief @@ -24,6 +25,7 @@ protected: DataTag_First = HYDROData_NaturalObject::DataTag_First + 100, ///< first tag, to reserve DataTag_HydraulicAxis, ///< reference hydraulic axis DataTag_Profile, ///< reference profiles + DataTag_ParamsArray ///< parameters array }; public: @@ -39,6 +41,11 @@ public: */ HYDRODATA_EXPORT virtual QStringList DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const; + /** + * Returns the list of all reference objects of this object. + */ + HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetAllReferenceObjects() const; + /** * Returns the top shape of the object. */ @@ -77,9 +84,16 @@ public: /** * Returns true if profile has the intersection with reference hydraulic axis. + * Returns the parameter of inresection point on axis if axis is presented by one curve, + * if axis presented by set of edges the returns a common length of segments till the intersection point. */ - HYDRODATA_EXPORT virtual bool HasIntersection( const Handle(HYDROData_Profile)& theProfile ) const; + HYDRODATA_EXPORT virtual bool HasIntersection( const Handle(HYDROData_Profile)& theProfile, const TopoDS_Face& thePlane, + Standard_Real& outPar) const; + /** + * Builds a planar face + */ + HYDRODATA_EXPORT virtual bool BuildFace( const Handle(HYDROData_PolylineXY)& theHydAxis, TopoDS_Face& thePlane) const; /** * Add new one reference profile object for stream. @@ -107,7 +121,8 @@ protected: /** * Insert one profile in to the stream profiles order. */ - void insertProfileInToOrder( const Handle(HYDROData_Profile)& theProfile ); + void insertProfileInToOrder( const Handle(HYDROData_Profile)& theProfile, + const int theBeforeIndex = -1 ); /** * Fully recompute the order of all profiles in accordance with reference hydraulic axis. @@ -115,6 +130,18 @@ protected: */ void updateProfilesOrder(); +private: + + void setParametersArray( const TColStd_Array1OfReal& theArray ); + + TColStd_Array1OfReal* getParametersArray() const; + + void removeParametersArray(); + + int insertParameter( const Standard_Real& theParam ); + + void removeParameter( const int& theIndex ); + protected: friend class HYDROData_Iterator;