Salome HOME
Minor changes.
[modules/hydro.git] / src / HYDROCurveCreator / CurveCreator_ICurve.hxx
index 229256ce082e333c8e9d92b9fe42bd84886b871c..9effa478a0db3ef2ae5107ac27d1a389a7d7e8c6 100644 (file)
@@ -27,6 +27,7 @@
 #include <deque>
 #include <vector>
 #include <string>
+#include <list>
 
 class Handle_AIS_InteractiveObject;
 
@@ -88,9 +89,9 @@ public:
   //! Clear the polyline (remove all sections)
   virtual bool clear() = 0;
 
-  //! Join range of sections to one section (join all sections if -1 is passed in one of arguments)
-  virtual bool join( const int theISectionTo = -1, 
-                     const int theISectionFrom = -1 ) = 0;
+  //! Join list of sections to one section (join all if the list is empty)
+  // The first section in the list is a leader, another sections are joined to it
+  virtual bool join( const std::list<int>& theSections ) = 0;
 
   //! Get number of sections
   virtual int getNbSections() const = 0;
@@ -152,7 +153,8 @@ public:
                          const std::deque<float>& theNewCoords ) = 0;
   
   //! Set coordinates of specified points from different sections
-  virtual bool setSeveralPoints( const SectionToPointCoordsList &theSectionToPntCoords) = 0;
+  virtual bool setSeveralPoints( const SectionToPointCoordsList &theSectionToPntCoords,
+                                 const bool theIsToSaveDiff = true ) = 0;
 
   //! Remove point with given id
   virtual bool removePoint( const int theISection, const int theIPnt = -1 ) = 0;
@@ -184,6 +186,12 @@ public:
    */
   virtual bool canPointsBeSorted() = 0;
 
+  /**
+   * Saves points coordinates difference.
+   * \param theOldCoords the old points coordinates
+   */
+  virtual void saveCoordDiff( const SectionToPointCoordsList &theOldCoords ) = 0;
+
   /***********************************************/
   /***       Presentation methods              ***/
   /***********************************************/