X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultConstruction.h;h=fa7e3f1aad99e3faa3e173584e6a1851ef5c57b5;hb=965adcb3288bda478cdd045d4b2f90c92980d099;hp=5c37e9961c05091e57676cc381059e95f6e86c84;hpb=96ff1d1fb2acb842cee193f15492de81060a1d58;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultConstruction.h b/src/Model/Model_ResultConstruction.h index 5c37e9961..fa7e3f1aa 100644 --- a/src/Model/Model_ResultConstruction.h +++ b/src/Model/Model_ResultConstruction.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: ModelAPI_ResultConstruction.hxx // Created: 07 Jul 2014 // Author: Mikhail PONIKAROV @@ -17,22 +19,25 @@ */ class Model_ResultConstruction : public ModelAPI_ResultConstruction { - boost::shared_ptr myOwner; ///< owner of this result - boost::shared_ptr myShape; ///< shape of this result created "on the fly" + std::shared_ptr myOwner; ///< owner of this result + std::shared_ptr myShape; ///< shape of this result created "on the fly" bool myIsInHistory; -public: - /// By default object is displayed in the object browser. - MODEL_EXPORT virtual bool isInHistory() {return myIsInHistory;} - + public: + /// By default object is displayed in the object browser. + MODEL_EXPORT virtual bool isInHistory() + { + return myIsInHistory; + } + /// Sets the result - MODEL_EXPORT virtual void setShape(boost::shared_ptr theShape); + MODEL_EXPORT virtual void setShape(std::shared_ptr theShape); /// Returns the shape-result produced by this feature - MODEL_EXPORT virtual boost::shared_ptr& shape(); + MODEL_EXPORT virtual std::shared_ptr shape(); /// Sets the flag that it must be displayed in history (default is true) MODEL_EXPORT virtual void setIsInHistory(const bool myIsInHistory); -protected: + protected: /// Makes a body on the given feature Model_ResultConstruction();