X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultConstruction.h;h=a66aeeb5a73eccebf1883dca7f04715774d5174b;hb=db0e21ea2f1117dd9af3320009ba8b50dc2e828b;hp=fd04f2f7c642950909027891a55dd82537178a86;hpb=10ce2de039af32bddace50d895ce7b46f610dd12;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultConstruction.h b/src/Model/Model_ResultConstruction.h index fd04f2f7c..a66aeeb5a 100644 --- a/src/Model/Model_ResultConstruction.h +++ b/src/Model/Model_ResultConstruction.h @@ -1,14 +1,16 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: ModelAPI_ResultConstruction.hxx // Created: 07 Jul 2014 // Author: Mikhail PONIKAROV -#ifndef Model_ResultConstruction_HeaderFile -#define Model_ResultConstruction_HeaderFile +#ifndef Model_ResultConstruction_H_ +#define Model_ResultConstruction_H_ #include "Model.h" #include -/**\class ModelAPI_ResultConstruction +/**\class Model_ResultConstruction * \ingroup DataModel * \brief The construction element result of a feature. * @@ -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();