Salome HOME
Issue #271: referencing between documents is implemented (the issue for filtering...
[modules/shaper.git] / src / Model / Model_ResultConstruction.cpp
index 8d230ab37c13f2881717dced37421cfd825fbe6c..750d0e27d370443ddff3abd629cdf2e96570a482 100644 (file)
@@ -4,22 +4,23 @@
 
 #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()
+void Model_ResultConstruction::setIsInHistory(const bool isInHistory)
 {
+  myIsInHistory = isInHistory;
 }