Salome HOME
Bug 158: Crash in profile edition
[modules/hydro.git] / src / HYDROCurveCreator / CurveCreator_Curve.hxx
index 24a216cf6d0a4f2f06aada35384b9ca330dc3b9f..3c41e711c760d2e8428d70f54395ba9bf45b69e0 100644 (file)
@@ -110,9 +110,6 @@ public: // TODO: remove public
 protected:  // TODO: remove public
   void redisplayCurve();
 
-  void convert( const SectionToPointList &thePoints,
-                std::map<int, std::list<int> > &theConvPoints );
-
 public:
   /************   Implementation of INTERFACE methods   ************/
 
@@ -266,6 +263,23 @@ public:
    */
   virtual Handle_AIS_InteractiveObject getAISObject( const bool theNeedToBuild = false ) const;
 
+protected:
+  /**
+   *  Removes the points from the section. It sortes the points and remove them
+   * in the decreasing order
+   * \param theSectionId a section index
+   * \param thePointIds a list of section points
+   */
+  bool removeSectionPoints( const int theSectionId,
+                            const std::list<int>& thePointIds );
+  /**
+   * Converts the list of pairs of section to point into map of a section to list of points
+   * \param thePoints an source list
+   * \param theConvPoints a converted map
+   */
+  void convert( const SectionToPointList &thePoints,
+                std::map<int, std::list<int> > &theConvPoints );
+
 protected:
   virtual void constructAISObject();