20 #ifndef FeaturesPlugin_Copy_H_
21 #define FeaturesPlugin_Copy_H_
23 #include "FeaturesPlugin.h"
25 #include <ModelAPI_Feature.h>
39 inline static const std::string&
ID()
41 static const std::string MY_ID(
"Copy");
46 FEATURESPLUGIN_EXPORT
virtual const std::string&
getKind()
53 inline static const std::string&
OBJECTS()
55 static const std::string MY_OBJECTS(
"objects");
59 inline static const std::string
NUMBER()
61 static std::string MY_NUMBER(
"number");
66 FEATURESPLUGIN_EXPORT
virtual void execute();
72 FEATURESPLUGIN_EXPORT
virtual void getCopies(
73 ObjectPtr theContext, std::shared_ptr<GeomAPI_Shape> theValue,
74 std::list<ObjectPtr>& theCopyContext, std::list<std::shared_ptr<GeomAPI_Shape> >& theCopyVals);
This feature copies the selected results and sub-results (for the whole feature selected all results ...
Definition: FeaturesPlugin_Copy.h:36
static const std::string NUMBER()
Integer attribute that contains the number of resulting copies needed.
Definition: FeaturesPlugin_Copy.h:59
virtual void getCopies(ObjectPtr theContext, std::shared_ptr< GeomAPI_Shape > theValue, std::list< ObjectPtr > &theCopyContext, std::list< std::shared_ptr< GeomAPI_Shape > > &theCopyVals)
To update the group feature which is moved over this copy feature (to add copies to selection)
Definition: FeaturesPlugin_Copy.cpp:104
FeaturesPlugin_Copy()
Use plugin manager for features creation.
Definition: FeaturesPlugin_Copy.h:77
virtual const std::string & getKind()
Definition: FeaturesPlugin_Copy.h:46
static const std::string & ID()
Feature kind.
Definition: FeaturesPlugin_Copy.h:39
virtual void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: FeaturesPlugin_Copy.cpp:32
virtual void execute()
Performs the algorithm and stores results it in the data structure.
Definition: FeaturesPlugin_Copy.cpp:57
static const std::string & OBJECTS()
Selection list attribute that contains all copied shapes selection.
Definition: FeaturesPlugin_Copy.h:53
An interface for performing special copy actions.
Definition: ModelAPI_Feature.h:263
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:39