X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FHYDROData%2FHYDROData_IProfilesInterpolator.h;h=096957270b5a64e2c4111582d21764c81c5f1730;hb=ca0608cb7f006c4c53ab5990c37be86457935b05;hp=1b4ec9cd0fdc9d28d81cfc9fdae9f15d44a00858;hpb=9cbe8a1e6a60dfdb0554901eda8299f880c1c012;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_IProfilesInterpolator.h b/src/HYDROData/HYDROData_IProfilesInterpolator.h index 1b4ec9cd..09695727 100644 --- a/src/HYDROData/HYDROData_IProfilesInterpolator.h +++ b/src/HYDROData/HYDROData_IProfilesInterpolator.h @@ -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; /** @@ -115,7 +119,7 @@ public: * \param theProfileIndex the profile index [0, ] * \return the profile with the given index or empty vector if the index is out of range */ - std::vector GetResultProfile( const int theProfileIndex ) const; + HYDRODATA_EXPORT std::vector GetResultProfile( const int theProfileIndex ) const; protected: /** @@ -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 GetFirstProfile() const; + + /** + * Get the second profile. + * \return the second profile points + */ + HYDRODATA_EXPORT std::vector 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& theProfile ); + private: std::vector myProfile1, myProfile2; ///< the two input profiles int myResultProfilesNumber; ///< the number of profiles to compute @@ -138,7 +171,7 @@ private: InterpolationError myErrorCode; ///< the last error code std::string myErrorMessage; ///< the last error message - std::vector> myResultProfiles; ///< the list of result profiles + std::vector< std::vector > myResultProfiles; ///< the list of result profiles }; #endif