myResultProfilesNumber = theNumber;
}
+int HYDROData_IProfilesInterpolator::GetCalculatedProfilesNumber() const
+{
+ return myResultProfiles.size();
+}
+
std::vector<double> HYDROData_IProfilesInterpolator::GetResultProfile( const int theProfileIndex ) const
{
std::vector<double> aResultProfile;
- if ( theProfileIndex > 0 && theProfileIndex < (int) myResultProfiles.size() ) {
+ if ( theProfileIndex >= 0 && theProfileIndex < (int) myResultProfiles.size() ) {
aResultProfile = myResultProfiles.at( theProfileIndex );
}
void HYDROData_IProfilesInterpolator::Reset()
{
+ // Reset input parameters
myProfile1.clear();
myProfile2.clear();
myParameters.clear();
SetResultProfilesNumber( DEFAULT_RESULT_PROFILES_NB );
+ // Reset result data
+ ClearResults();
+}
+
+std::vector<double> HYDROData_IProfilesInterpolator::GetFirstProfile() const
+{
+ return myProfile1;
+}
+
+std::vector<double> HYDROData_IProfilesInterpolator::GetSecondProfile() const
+{
+ return myProfile2;
+}
+
+void HYDROData_IProfilesInterpolator::ClearResults()
+{
+ // Clear result data
myResultProfiles.clear();
+ // Reset errors
SetErrorCode( OK );
SetErrorMessage( "" );
+}
+
+int HYDROData_IProfilesInterpolator::GetNbProfilesToCompute() const
+{
+ return myResultProfilesNumber;
+}
+
+void HYDROData_IProfilesInterpolator::InsertResultProfile( const std::vector<double>& theProfile )
+{
+ myResultProfiles.push_back( theProfile );
}
\ No newline at end of file