Salome HOME
Merge branch 'Dev_0.6.1' of newgeom:newgeom into Dev_0.6.1
[modules/shaper.git] / src / Model / Model_ResultConstruction.cpp
index a5e1ccc9bad7f3ec07530f19dc01e724bcf5a846..aaade70ff23d3364b2fb930b5c1bc61081d5eac2 100644 (file)
@@ -1,26 +1,28 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        ModelAPI_ResultConstruction.cpp
 // Created:     07 Jul 2014
 // Author:      Mikhail PONIKAROV
 
 #include <Model_ResultConstruction.h>
 
-void Model_ResultConstruction::setShape(boost::shared_ptr<GeomAPI_Shape> theShape)
+void Model_ResultConstruction::setShape(std::shared_ptr<GeomAPI_Shape> theShape)
 {
   myShape = theShape;
 }
 
-boost::shared_ptr<GeomAPI_Shape>& Model_ResultConstruction::shape()
+std::shared_ptr<GeomAPI_Shape> Model_ResultConstruction::shape()
 {
   return myShape;
 }
 
-boost::shared_ptr<ModelAPI_Feature> Model_ResultConstruction::owner()
+Model_ResultConstruction::Model_ResultConstruction()
 {
-  return myOwner;
+  myIsInHistory = true;
+  setIsConcealed(false);
 }
 
-Model_ResultConstruction::Model_ResultConstruction(
-  const boost::shared_ptr<ModelAPI_Feature>& theFeature)
-  : myOwner(theFeature)
+void Model_ResultConstruction::setIsInHistory(const bool isInHistory)
 {
+  myIsInHistory = isInHistory;
 }