Salome HOME
Task 2.1. Creation of ellipses and arcs of ellipse.
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_MakeSweep.cpp
index 0cb97621f73e2353d505695c8023af045d5deca6..7a59ae3444b604ce52c340899320f50a9d357378 100644 (file)
@@ -4,16 +4,40 @@
 // Created:     23 November 2015
 // Author:      Dmitry Bobylev
 
-#include <GeomAlgoAPI_MakeSweep.h>
+#include "GeomAlgoAPI_MakeSweep.h"
 
 //=================================================================================================
-const ListOfShape& GeomAlgoAPI_MakeSweep::fromFaces() const
+const ListOfShape& GeomAlgoAPI_MakeSweep::fromShapes() const
 {
-  return myFromFaces;
+  return myFromShapes;
 }
 
 //=================================================================================================
-const ListOfShape& GeomAlgoAPI_MakeSweep::toFaces() const
+const ListOfShape& GeomAlgoAPI_MakeSweep::toShapes() const
 {
-  return myToFaces;
+  return myToShapes;
+}
+
+//=================================================================================================
+void GeomAlgoAPI_MakeSweep::addFromShape(const std::shared_ptr<GeomAPI_Shape> theFace)
+{
+  myFromShapes.push_back(theFace);
+}
+
+//=================================================================================================
+void GeomAlgoAPI_MakeSweep::setFromShapes(const ListOfShape& theListOfFaces)
+{
+  myFromShapes = theListOfFaces;
+}
+
+//=================================================================================================
+void GeomAlgoAPI_MakeSweep::addToShape(const std::shared_ptr<GeomAPI_Shape> theFace)
+{
+  myToShapes.push_back(theFace);
+}
+
+//=================================================================================================
+void GeomAlgoAPI_MakeSweep::setToShapes(const ListOfShape& theListOfFaces)
+{
+  myToShapes = theListOfFaces;
 }