myResultProfilesNumber = theNumber;
}
+int HYDROData_IProfilesInterpolator::GetCalculatedProfilesNumber() const
+{
+ return myResultProfiles.size();
+}
+
std::vector<double> HYDROData_IProfilesInterpolator::GetResultProfile( const int theProfileIndex ) const
{
std::vector<double> aResultProfile;
*/
HYDRODATA_EXPORT virtual InterpolationError Calculate() = 0;
+ HYDRODATA_EXPORT virtual int GetCalculatedProfilesNumber() const;
+
/**
* Get result profile by index.
* \param theProfileIndex the profile index [0, <number of profiles to compute>]
return Handle(HYDROData_Polyline3D)::DownCast(
GetReferenceObject( DataTag_BottomPolyline ) );
}
+
+bool HYDROData_Stream::Interpolate( const HYDROData_IProfilesInterpolator* theInterpolator )
+{
+ ///< \todo this is just a stub
+ return true;
+}
\ No newline at end of file
class Handle(HYDROData_PolylineXY);
class Handle(HYDROData_Polyline3D);
class Handle(HYDROData_Profile);
+class HYDROData_IProfilesInterpolator;
class TColStd_Array1OfReal;
+
/**\class HYDROData_Stream
* \brief
*
* Returns reference bottom polyline object of stream.
*/
HYDRODATA_EXPORT virtual Handle(HYDROData_Polyline3D) GetBottomPolyline() const;
+
+ /**
+ * Add interpolated profiles into the stream.
+ * \param theInterpolator the interpolator
+ * \return true in case of success
+ */
+ HYDRODATA_EXPORT virtual bool Interpolate( const HYDROData_IProfilesInterpolator* theInterpolator );
protected: