- //! Join range of sections to one section (join all sections if -1 is passed in one of arguments)
- HYDRODATA_EXPORT virtual bool join( const int theISectionTo = -1,
- const int theISectionFrom = -1 );
-
- //! Get number of sections
- HYDRODATA_EXPORT virtual int getNbSections() const;
-
- //! Add a new section.
- HYDRODATA_EXPORT virtual int addSection( const std::string& theName,
- const CurveCreator::SectionType theType,
- const bool theIsClosed );
+ /**
+ * Returns the depth for given distance.
+ */
+ HYDRODATA_EXPORT static double GetDepthFromDistance( const PointsList& thePoints,
+ const double& theDistance );