X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_CompositeFeature.h;h=f243cb3338bec21e2e6728846c097efc249f054b;hb=a3ee4e38876c359fdf737179605db194bca4ecbb;hp=3498b8fb1c0d714c2cde47218c9bcf12e915ca0e;hpb=7bf19255421b34594c7b0a76d0ce28166d0ce895;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_CompositeFeature.h b/src/ModelAPI/ModelAPI_CompositeFeature.h index 3498b8fb1..f243cb333 100644 --- a/src/ModelAPI/ModelAPI_CompositeFeature.h +++ b/src/ModelAPI/ModelAPI_CompositeFeature.h @@ -1,23 +1,26 @@ // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -// File: ModelAPI_CompositeFeature.hxx +// File: ModelAPI_CompositeFeature.h // Created: 20 Oct 2014 // Author: Mikhail PONIKAROV -#ifndef ModelAPI_CompositeFeature_H_ -#define ModelAPI_CompositeFeature_H_ +#ifndef MODELAPI_COMPOSITEFEATURE_H_ +#define MODELAPI_COMPOSITEFEATURE_H_ +#include "ModelAPI.h" #include "ModelAPI_Feature.h" /**\class ModelAPI_CompositeFeature * \ingroup DataModel * \brief Feature that consists of other features: like sketcher - * with edges inside. It just allows t oadd a feature to this feature only + * with edges inside. It just allows to add a feature to this feature only * instead of adding in both document and this feature. */ class ModelAPI_CompositeFeature : public ModelAPI_Feature { public: + MODELAPI_EXPORT virtual ~ModelAPI_CompositeFeature(); + /// Adds feature to the sketch and to its document virtual std::shared_ptr addFeature(std::string theID) = 0; @@ -32,6 +35,10 @@ public: /// Returns true if feature or reuslt belong to this composite feature as subs virtual bool isSub(ObjectPtr theObject) const = 0; + + /// This method to inform that sub-feature is removed and must be removed from the internal data + /// structures of the owner (the remove from the document will be done outside just after) + virtual void removeFeature(std::shared_ptr theFeature) = 0; }; //! Pointer on the composite feature object