X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Feature.h;h=9f989074b57cccc560b49814218b7ef6d51ee945;hb=96ff1d1fb2acb842cee193f15492de81060a1d58;hp=2305044edd546e0905e5e07d2d6b8daff88dba3f;hpb=0587f3c266ecbdb95ee2cbc72b4238eab3789be4;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Feature.h b/src/ModelAPI/ModelAPI_Feature.h index 2305044ed..9f989074b 100644 --- a/src/ModelAPI/ModelAPI_Feature.h +++ b/src/ModelAPI/ModelAPI_Feature.h @@ -2,8 +2,8 @@ // Created: 21 Mar 2014 // Author: Mikhail PONIKAROV -#ifndef ModelAPI_Feature_HeaderFile -#define ModelAPI_Feature_HeaderFile +#ifndef ModelAPI_Feature_H_ +#define ModelAPI_Feature_H_ #include "ModelAPI_Object.h" #include "ModelAPI_PluginManager.h" @@ -48,6 +48,9 @@ public: MODELAPI_EXPORT boost::shared_ptr firstResult(); /// sets the alone result MODELAPI_EXPORT void setResult(const boost::shared_ptr& theResult); + /// sets the result by index (zero based), results before this must be set before + MODELAPI_EXPORT void setResult( + const boost::shared_ptr& theResult, const int theIndex); /// Returns true if this feature must not be created: this is just an action /// that is not stored in the features history and data model (like "delete part"). @@ -59,6 +62,9 @@ public: /// To virtually destroy the fields of successors MODELAPI_EXPORT virtual ~ModelAPI_Feature(); + + MODELAPI_EXPORT static boost::shared_ptr feature(ObjectPtr theObject); + }; //! Pointer on feature object