Salome HOME
Merge branch 'BR_RIVER' of ssh://git.salome-platform.org/modules/hydro into BR_RIVER
[modules/hydro.git] / src / HYDROData / HYDROData_IProfilesInterpolator.h
index f00e5df0bac34b262a4618299e531a896049aaf0..096957270b5a64e2c4111582d21764c81c5f1730 100644 (file)
@@ -106,8 +106,12 @@ public:
   /**
    * Perform interpolation calculations.
    */
-  HYDRODATA_EXPORT virtual InterpolationError Calculate() = 0;
+  HYDRODATA_EXPORT virtual void Calculate() = 0;
 
+  /**
+   * Get number of calculated profiles ( could be less than the number of profiles to be computed set as a parameter ).
+   * @return the number of really calculated profiles
+   */
   HYDRODATA_EXPORT virtual int GetCalculatedProfilesNumber() const;
 
   /**
@@ -130,6 +134,35 @@ protected:
    */
   HYDRODATA_EXPORT virtual void SetErrorMessage( const std::string& theMessage );
 
+  /**
+   * Get the first profile.
+   * \return the first profile points
+   */
+  HYDRODATA_EXPORT std::vector<double> GetFirstProfile() const;
+
+  /**
+   * Get the second profile.
+   * \return the second profile points
+   */
+  HYDRODATA_EXPORT std::vector<double> GetSecondProfile() const;
+
+  /**
+   * Get number of profiles to compute.
+   * \return the current value of number of result profiles parameter
+   */
+  HYDRODATA_EXPORT virtual int GetNbProfilesToCompute() const;
+
+  /**
+   * Clear result data (including errors).
+   */
+  HYDRODATA_EXPORT void ClearResults();
+
+  /**
+   * Insert the calculated profile to the resuls.
+   * \param theProfile the profile to insert
+   */
+  HYDRODATA_EXPORT void InsertResultProfile( const std::vector<double>& theProfile );
+
 private:
   std::vector<double> myProfile1, myProfile2; ///< the two input profiles
   int myResultProfilesNumber; ///< the number of profiles to compute