+ /**
+ * Update the shape presentations of stream.
+ * Call this method whenever you made changes for stream data.
+ */
+ HYDRODATA_EXPORT virtual void Update();
+
+
+public:
+ // Public methods to work with Stream
+
+ /**
+ * Sets reference hydraulic axis object for stream.
+ */
+ HYDRODATA_EXPORT virtual bool SetHydraulicAxis( const Handle(HYDROData_PolylineXY)& theAxis );
+
+ /**
+ * Returns reference hydraulic axis object of stream.
+ */
+ HYDRODATA_EXPORT virtual Handle(HYDROData_PolylineXY) GetHydraulicAxis() const;
+
+ /**
+ * Remove reference hydraulic axis object from stream.
+ */
+ HYDRODATA_EXPORT virtual void RemoveHydraulicAxis();
+
+
+ /**
+ * Returns true if profile has the intersection with reference hydraulic axis.
+ */
+ HYDRODATA_EXPORT virtual bool HasIntersection( const Handle(HYDROData_Profile)& theProfile ) const;
+
+
+ /**
+ * Add new one reference profile object for stream.
+ */
+ HYDRODATA_EXPORT virtual bool AddProfile( const Handle(HYDROData_Profile)& theProfile );
+
+ /**
+ * Returns all reference profile objects of stream.
+ */
+ HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetProfiles() const;
+
+ /**
+ * Removes reference profile object from stream.
+ */
+ HYDRODATA_EXPORT virtual bool RemoveProfile( const Handle(HYDROData_Profile)& theProfile );
+
+ /**
+ * Removes all reference profile objects from stream.
+ */
+ HYDRODATA_EXPORT virtual void RemoveProfiles();
+
+
+protected:
+
+ /**
+ * Insert one profile in to the stream profiles order.
+ */
+ void insertProfileInToOrder( const Handle(HYDROData_Profile)& theProfile );
+
+ /**
+ * Fully recompute the order of all profiles in accordance with reference hydraulic axis.
+ * If hydraulic axis is not set all profiles will be removed from order.
+ */
+ void updateProfilesOrder();
+