]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
SIP: HYDROData_ProfileUZ is completed.
authorrkv <rkv@opencascade.com>
Mon, 13 Jan 2014 11:21:16 +0000 (11:21 +0000)
committerrkv <rkv@opencascade.com>
Mon, 13 Jan 2014 11:21:16 +0000 (11:21 +0000)
src/HYDROPy/HYDROData_PolylineXY.sip
src/HYDROPy/HYDROData_Profile.sip
src/HYDROPy/HYDROData_ProfileUZ.sip

index 082269e8e828778c5b27386fdc97205fc93b763c..6408ae63defdc4f5a219689d798944e20331d492 100644 (file)
@@ -97,7 +97,7 @@ public:
    * \param thePoints new points
    */
   void SetPoints( const int         theSectionIndex,
-                  const PointsList& thePoints );
+                  const HYDROData_IPolyline::PointsList& thePoints );
 
   /**
    * Returns the painter path.
index d94a1c9d9480df897513e8fdd544f52b65b36478..41ec2f786f4bfaf63a1c8fb66e5646dad204482a 100644 (file)
@@ -129,13 +129,13 @@ public:
    * Replace current profile parametric points by new one.
    * \param thePoints the list with new points in parametric form
    */
-  void SetParametricPoints( const HYDROData_ProfileUZ::PointsList& thePoints );
+  void SetParametricPoints( const HYDROData_IPolyline::PointsList& thePoints );
 
   /**
    * Returns profile points in parametric form.
    * \return points list
    */
-  HYDROData_ProfileUZ::PointsList GetParametricPoints() const;
+  HYDROData_IPolyline::PointsList GetParametricPoints() const;
 
 
   /**
index f46209bd8161666feb73555c6cfb9cf11f2ef8b5..2e6f244e5209dcc6b2f723ef1235808f5e8c1a0f 100644 (file)
 #include <HYDROData_ProfileUZ.h>
 %End
 
-class HYDROData_ProfileUZ : HYDROData_IPolyline
+class HYDROData_ProfileUZ : public HYDROData_IPolyline
 {
 
-  typedef gp_XY                       Point;
-  typedef NCollection_Sequence<gp_XY> PointsList;
-
 %TypeHeaderCode
 #include <HYDROData_ProfileUZ.h>
 %End
@@ -49,6 +46,13 @@ class HYDROData_ProfileUZ : HYDROData_IPolyline
 
 public:      
 
+  /**
+   * Returns the depth for given distance.
+   */
+  static double GetDepthFromDistance( const HYDROData_IPolyline::PointsList& thePoints,
+                                      const double&     theDistance );
+
+
 protected:
 
   /**