Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / PartSetPlugin / PartSetPlugin_Duplicate.h
1 // File:        PartSetPlugin_Duplicate.h
2 // Created:     20 May 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef PartSetPlugin_Duplicate_HeaderFile
6 #define PartSetPlugin_Duplicate_HeaderFile
7
8 #include "PartSetPlugin_Part.h"
9
10 /// the reference to copy: reference to the attribute
11 const std::string PART_DUPLICATE_ATTR_REF = "Origin";
12
13 /**\class PartSetPlugin_Duplicate
14  * \ingroup DataModel
15  * \brief Duplicates the active part (not root). Creates a new "part" feature.
16  */
17 class PartSetPlugin_Duplicate: public PartSetPlugin_Part
18 {
19 public:
20   /// Makes a new part, copy of active
21   PartSetPlugin_Duplicate();
22
23   /// Request for initialization of data model of the feature: adding all attributes
24   PARTSETPLUGIN_EXPORT virtual void initAttributes();
25 };
26
27 #endif