]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #493: add data model methods stubs
authormzn <mzn@opencascade.com>
Mon, 30 Mar 2015 06:38:16 +0000 (09:38 +0300)
committermzn <mzn@opencascade.com>
Mon, 30 Mar 2015 06:38:16 +0000 (09:38 +0300)
src/HYDROData/HYDROData_IProfilesInterpolator.cxx
src/HYDROData/HYDROData_IProfilesInterpolator.h
src/HYDROData/HYDROData_Stream.cxx
src/HYDROData/HYDROData_Stream.h

index 6a5ef3b4e9e16eb6c6264e92c2f38bf398f1f3c3..f0c8d42027730a4e6f2d50aef8897d3bc2ff2112 100644 (file)
@@ -71,6 +71,11 @@ void HYDROData_IProfilesInterpolator::SetResultProfilesNumber( const int theNumb
   myResultProfilesNumber = theNumber;
 }
 
+int HYDROData_IProfilesInterpolator::GetCalculatedProfilesNumber() const
+{
+  return myResultProfiles.size();
+}
+
 std::vector<double> HYDROData_IProfilesInterpolator::GetResultProfile( const int theProfileIndex ) const
 {
   std::vector<double> aResultProfile;
index da91b2da7c56f094c6cc0e9590fbbe7a0dcde235..1b4ec9cd0fdc9d28d81cfc9fdae9f15d44a00858 100644 (file)
@@ -108,6 +108,8 @@ public:
    */
   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>]
index 656e1b02b63be1012b24b7a7dcd7b670eb001c20..bf517b24aaff52ad5f92fe495056e6122d597043 100644 (file)
@@ -1121,3 +1121,9 @@ Handle(HYDROData_Polyline3D) HYDROData_Stream::GetBottomPolyline() const
   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
index 4af7d1c6e73e18606c90c23bf3d2ad5a7caf0712..800438fe5962d63ef85dd2625ad6a6b0f7aba353 100644 (file)
@@ -35,8 +35,10 @@ DEFINE_STANDARD_HANDLE(HYDROData_Stream, HYDROData_NaturalObject)
 class Handle(HYDROData_PolylineXY);
 class Handle(HYDROData_Polyline3D);
 class Handle(HYDROData_Profile);
+class HYDROData_IProfilesInterpolator;
 class TColStd_Array1OfReal;
 
+
 /**\class HYDROData_Stream
  * \brief 
  *
@@ -242,6 +244,13 @@ public:
    * 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: