Salome HOME
Refs #289 - Spline profile is represented in OCC view as polyline profile
[modules/hydro.git] / src / HYDROCurveCreator / CurveCreator_Profile.cxx
index 69e60486ed65e3cc66c7913f42db6a1be7b12c3c..bcfc8fb0f816e884bc5ab8e63daa6fd24a4b7228 100644 (file)
@@ -71,19 +71,19 @@ bool CurveCreator_Profile::clearInternal()
     myDisplayer->eraseAll( true );
 
   // Delete all allocated data.
-  mySections[ 0 ]->myPoints.clear();
+  CurveCreator_Section* aSection = getSection( 0 );
+  if ( aSection )
+    aSection->myPoints.clear();
 
   return true;
 }
 
-bool CurveCreator_Profile::joinInternal( const int theISectionTo, 
-                                         const int theISectionFrom )
+bool CurveCreator_Profile::joinInternal( const std::list<int>& theSections )
 {
   return false;
 }
 
-bool CurveCreator_Profile::join( const int theISectionTo, 
-                                 const int theISectionFrom )
+bool CurveCreator_Profile::join( const std::list<int>& theSections )
 {
   return false;
 }
@@ -137,7 +137,7 @@ bool CurveCreator_Profile::addPointsInternal( const CurveCreator::SectionsMap &t
 {
   bool res = false;
 
-  CurveCreator_Section* aSection = mySections.at( 0 );
+  CurveCreator_Section* aSection = getSection( 0 );
   if( !aSection )
     return res;
 
@@ -211,7 +211,7 @@ bool CurveCreator_Profile::setPointInternal( const CurveCreator::SectionsMap &th
   }
 
   int anISection = 0;
-  CurveCreator_Section* aSection = mySections.at( anISection );
+  CurveCreator_Section* aSection = getSection( anISection );
   if( !aSection )
     return aRes;