Salome HOME
Lot 2: change bathy associated to natural object propagated to all cases without...
[modules/hydro.git] / src / HYDROData / HYDROData_ProfileUZ.h
index c485e944b5bc20a0f1861b368fe1e7bf81daa628..7e889c6b6978af19896fc62015683d941a8d43ce 100644 (file)
@@ -1,10 +1,28 @@
+// Copyright (C) 2014-2015  EDF-R&D
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 #ifndef HYDROData_ProfileUZ_HeaderFile
 #define HYDROData_ProfileUZ_HeaderFile
 
 #include "HYDROData_IPolyline.h"
 
-DEFINE_STANDARD_HANDLE(HYDROData_ProfileUZ, HYDROData_IPolyline)
+class gp_XYZ;
+class HYDROData_PolylineXY;
 
 /**\class HYDROData_ProfileUZ
  * \brief Class that stores/retreives information about the 
@@ -22,7 +40,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_ProfileUZ);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_ProfileUZ, HYDROData_IPolyline);
 
 
   /**
@@ -35,12 +53,13 @@ public:
   /**
    * Returns the 3D presentation of all points.
    */
-  HYDRODATA_EXPORT virtual TopoDS_Shape GetShape();
+  HYDRODATA_EXPORT virtual TopoDS_Shape GetShape() const;
 
   /**
-   * Returns the 3D presentation of all points.
+   * Returns the depth for given distance.
    */
-  HYDRODATA_EXPORT virtual double GetDepthFromDistance( const double& theDistance ) const;
+  HYDRODATA_EXPORT static double GetDepthFromDistance( const PointsList& thePoints,
+                                                       const double&     theDistance );
 
 
   /**
@@ -147,7 +166,10 @@ public:
    *                        only for section with this index
    * \return list of points
    */
-  HYDRODATA_EXPORT virtual PointsList GetPoints( const int theSectionIndex = -1 ) const;
+  HYDRODATA_EXPORT virtual PointsList GetPoints( const int theSectionIndex = -1, bool IsConvertToGlobal = false ) const;
+
+  HYDRODATA_EXPORT virtual void CalculateAndAddPoints(const NCollection_Sequence<gp_XYZ>& theXYZPoints,
+     Handle(HYDROData_PolylineXY)& thePolylineXY, bool fillPolyXY);
 
 protected: