X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultConstruction.h;h=a9683cdcf52d3f7ce3287b6e253405c6edc308dc;hb=0fcae5b2e143e67306603d26f0b5e01cbe33d2bb;hp=e312f6fdab9e4bed0c14aeadbdcbef63fab614a1;hpb=3985b767e74385e51d1b503d2c97d3bb1e3f6faa;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultConstruction.h b/src/Model/Model_ResultConstruction.h index e312f6fda..a9683cdcf 100644 --- a/src/Model/Model_ResultConstruction.h +++ b/src/Model/Model_ResultConstruction.h @@ -2,8 +2,8 @@ // 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 @@ -17,17 +17,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" -public: + boost::shared_ptr myOwner; ///< owner of this result + boost::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; + } + /// Sets the result MODEL_EXPORT virtual void setShape(boost::shared_ptr theShape); /// Returns the shape-result produced by this feature - MODEL_EXPORT virtual boost::shared_ptr& shape(); - /// Returns the source feature of this result - //MODEL_EXPORT virtual boost::shared_ptr owner(); + MODEL_EXPORT virtual boost::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();