Salome HOME
Bug #334: Different behavior in Edit calculation case input panel.
[modules/hydro.git] / src / HYDROData / HYDROData_Stream.h
index 4f3644060af53742c1ba0a8d8c70b5043a903d6c..b1ee6f48ae1a929fa36ae1612d936a30c5c2921d 100644 (file)
@@ -58,11 +58,16 @@ public:
   HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const;
 
   /**
-   * Update the shape presentations of stream.
+   * Update the profiles order and shape presentations of stream.
    * Call this method whenever you made changes for stream data.
    */
   HYDRODATA_EXPORT virtual void Update();
 
+  /**
+   * Update the shape presentations of stream.
+   */
+  HYDRODATA_EXPORT virtual void UpdatePrs();
+
   /**
    * Returns default filling color for new stream.
    */
@@ -73,10 +78,38 @@ public:
    */
   HYDRODATA_EXPORT static QColor DefaultBorderColor();
 
+  /**
+   * Returns true if given polyline can be used as stream axis.
+   */
+  HYDRODATA_EXPORT static bool IsValidAsAxis( const Handle(HYDROData_PolylineXY)& theAxis );
 
 public:      
-  // Public methods to work with Stream
+  // Public methods to work with Stream presentation
   
+  /**
+   * Returns the left edge of the stream.
+   */
+  HYDRODATA_EXPORT virtual TopoDS_Shape GetLeftShape() const;
+
+  /**
+   * Returns the right edge of the stream.
+   */
+  HYDRODATA_EXPORT virtual TopoDS_Shape GetRightShape() const;
+
+  /**
+   * Returns the inlet edge of the stream.
+   */
+  HYDRODATA_EXPORT virtual TopoDS_Shape GetInletShape() const;
+
+  /**
+   * Returns the outlet edge of the stream.
+   */
+  HYDRODATA_EXPORT virtual TopoDS_Shape GetOutletShape() const;
+
+
+public:      
+  // Public methods to work with Stream data fields
+
   /**
    * Sets reference hydraulic axis object for stream.
    */
@@ -148,16 +181,11 @@ protected:
    */
   void updateProfilesOrder();
   
-  /**
-   * Create all necessary child group objects.
-   */
-  virtual void createGroupObjects();
-
   /**
    * Returns the type of child altitude object.
    * Reimplemented to create stream altitude object.
    */
-  virtual ObjectKind getAltitudeObjectType() const;
+  HYDRODATA_EXPORT virtual ObjectKind getAltitudeObjectType() const;
 
   /**
    * Builds b-spline using interpolation algorithm.
@@ -167,12 +195,12 @@ protected:
   /**
    * Returns default filling color for new object.
    */
-  virtual QColor getDefaultFillingColor() const;
+  HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const;
 
   /**
    * Returns default border color for new object.
    */
-  virtual QColor getDefaultBorderColor() const;
+  HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const;
 
 private: