1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: PartSetPlugin_Duplicate.h
4 // Created: 20 May 2014
5 // Author: Mikhail PONIKAROV
7 #ifndef PartSetPlugin_Duplicate_H_
8 #define PartSetPlugin_Duplicate_H_
10 #include "PartSetPlugin_Part.h"
12 /**\class PartSetPlugin_Duplicate
14 * \brief Duplicates the active part (not root). Creates a new "part" feature.
16 class PartSetPlugin_Duplicate : public PartSetPlugin_Part
20 inline static const std::string& ID()
22 static const std::string MY_DUPLICATE_KIND("Duplicate");
23 return MY_DUPLICATE_KIND;
26 /// Makes a new part, copy of active
27 PartSetPlugin_Duplicate();
29 /// Request for initialization of data model of the feature: adding all attributes
30 PARTSETPLUGIN_EXPORT virtual void initAttributes();
32 /// doesn't call creation of new document, just does nothing if document was not copied
33 PARTSETPLUGIN_EXPORT virtual void execute();