Salome HOME
updated copyright message
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_RemoveSubShapes.h
index b5e1158a986f3aae56a5b8272e178ef8187709bc..fb8d7bd529c7043864a65d0d760b7c9cdcc924f0 100644 (file)
@@ -1,8 +1,21 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-
-// File:        FeaturesPlugin_RemoveSubShapes.h
-// Created:     23 May 2016
-// Author:      Dmitry Bobylev
+// Copyright (C) 2014-2023  CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 #ifndef FeaturesPlugin_RemoveSubShapes_H_
 #define FeaturesPlugin_RemoveSubShapes_H_
@@ -34,13 +47,42 @@ public:
     return MY_BASE_SHAPE_ID;
   }
 
-  /// Attribute name of sub-shapes.
-  inline static const std::string& SUBSHAPES_ID()
+  /// Attribute name for creation method.
+  inline static const std::string& CREATION_METHOD()
+  {
+    static const std::string MY_CREATION_METHOD_ID("creation_method");
+    return MY_CREATION_METHOD_ID;
+  }
+
+  /// Attribute name for creation method.
+  inline static const std::string& CREATION_METHOD_BY_KEEP_SUBSHAPES()
+  {
+    static const std::string MY_CREATION_METHOD_ID("by_keep_subshapes");
+    return MY_CREATION_METHOD_ID;
+  }
+
+  /// Attribute name for creation method.
+  inline static const std::string& CREATION_METHOD_BY_REMOVE_SUBSHAPES()
+  {
+    static const std::string MY_CREATION_METHOD_ID("by_remove_subshapes");
+    return MY_CREATION_METHOD_ID;
+  }
+
+  /// Attribute name of sub-shapes to keep.
+  inline static const std::string& SUBSHAPES_TO_KEEP_ID()
+  {
+    static const std::string MY_SUBSHAPES_ID("subshapes_to_keep");
+    return MY_SUBSHAPES_ID;
+  }
+
+  /// Attribute name of sub-shapes to remove.
+  inline static const std::string& SUBSHAPES_TO_REMOVE_ID()
   {
-    static const std::string MY_SUBSHAPES_ID("subshapes");
+    static const std::string MY_SUBSHAPES_ID("subshapes_to_remove");
     return MY_SUBSHAPES_ID;
   }
 
+
   /// \return the kind of a feature.
   FEATURESPLUGIN_EXPORT virtual const std::string& getKind()
   {
@@ -55,8 +97,11 @@ public:
   /// \param[in] theID identifier of changed attribute.
   FEATURESPLUGIN_EXPORT virtual void attributeChanged(const std::string& theID);
 
-  /// Creates a new part document if needed.
+  /// Performs the algorithm and stores results it in the data structure.
   FEATURESPLUGIN_EXPORT virtual void execute();
+
+private:
+  bool myChangedInCode;
 };
 
 #endif