Salome HOME
Updated copyright comment
[modules/shaper.git] / src / CollectionPlugin / CollectionPlugin_GroupAddition.h
index ebd5d13c7272f73de6fd36907fa51c78311d0bc3..4ae72de688bf5c4b0dcc848f820661030a250ffc 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2021  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2024  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 
 #include "CollectionPlugin.h"
 #include "CollectionPlugin_GroupOperation.h"
+#include "CollectionPlugin_GroupMerge.h"
 
 /**\class CollectionPlugin_GroupAddition
  * \ingroup Plugins
  * \brief Merge several groups of same shape type into single group.
  */
-class CollectionPlugin_GroupAddition : public CollectionPlugin_GroupOperation
+class CollectionPlugin_GroupAddition : public CollectionPlugin_GroupMerge
 {
 public:
   /// Extrusion kind
@@ -36,12 +37,6 @@ public:
     static const std::string MY_GROUP_ID("GroupAddition");
     return MY_GROUP_ID;
   }
-  /// attribute name of selected entities list
-  inline static const std::string& LIST_ID()
-  {
-    static const std::string MY_GROUP_LIST_ID("group_list");
-    return MY_GROUP_LIST_ID;
-  }
 
   /// Returns the kind of a feature
   COLLECTIONPLUGIN_EXPORT virtual const std::string& getKind()
@@ -51,13 +46,10 @@ public:
   }
 
   /// Creates a new group result if needed
-  COLLECTIONPLUGIN_EXPORT virtual void execute();
-
-  /// Request for initialization of data model of the feature: adding all attributes
-  COLLECTIONPLUGIN_EXPORT virtual void initAttributes();
+  COLLECTIONPLUGIN_EXPORT void execute();
 
   /// Use plugin manager for features creation
-  CollectionPlugin_GroupAddition();
+  CollectionPlugin_GroupAddition() = default;
 
 };