Salome HOME
Using stl container instead of Qt.
[modules/hydro.git] / src / HYDROCurveCreator / CurveCreator_Operation.cxx
index e24e2dcaa5290c8b313a2f3a3a33501845142d7a..ce73d1ccfe4abe52c9b046c0952a2aa2da5c8a15 100644 (file)
@@ -304,31 +304,31 @@ void CurveCreator_Operation::apply(CurveCreator_Curve *theCurve)
         {
           const CurveCreator::SectionType aType = (CurveCreator::SectionType) pInt[0];
 
-          theCurve->setSectionType( pInt[1], aType );
+          theCurve->setSectionTypeInternal( pInt[1], aType );
         }
         break;
       case CurveCreator_Operation::Clear:
-        theCurve->clear();
+        theCurve->clearInternal();
         break;
       case CurveCreator_Operation::SetCoordinates:
         {
           CurveCreator::Coordinates aCoords;
 
           getCoords(&pInt[2], aCoords);
-          theCurve->setPoint(pInt[0], pInt[1], aCoords);
+          theCurve->setPointInternal(pInt[0], pInt[1], aCoords);
         }
         break;
       case CurveCreator_Operation::SetClosed:
-        theCurve->setClosed((pInt[0] != 0), pInt[1]);
+        theCurve->setClosedInternal((pInt[0] != 0), pInt[1]);
+        break;
+      case CurveCreator_Operation::MoveSection:
+        theCurve->moveSectionInternal(pInt[0], pInt[1]);
         break;
-/*      case CurveCreator_Operation::MoveSection:
-        theCurve->moveSection(pInt[0], pInt[1]);
-        break;*/
       case CurveCreator_Operation::Join:
         if (myPData == NULL) {
-          theCurve->join();
+          theCurve->joinInternal();
         } else {
-          theCurve->join(pInt[0], pInt[1]);
+          theCurve->joinInternal(pInt[0], pInt[1]);
         }
         break;
       case CurveCreator_Operation::AddSection:
@@ -351,7 +351,7 @@ void CurveCreator_Operation::apply(CurveCreator_Curve *theCurve)
       case CurveCreator_Operation::RenameSection:
         {
             std::string aName = std::string((char*)&pInt[1]);
-            theCurve->setSectionName(pInt[0], aName);
+            theCurve->setSectionNameInternal(pInt[0], aName);
         }
         break;
       default: