20 #ifndef FeaturesAPI_Copy_H_
21 #define FeaturesAPI_Copy_H_
23 #include "FeaturesAPI.h"
25 #include <FeaturesPlugin_Copy.h>
27 #include <ModelHighAPI_Interface.h>
28 #include <ModelHighAPI_Macro.h>
41 explicit FeaturesAPI_Copy(
const std::shared_ptr<ModelAPI_Feature>& theFeature);
45 explicit FeaturesAPI_Copy(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
46 const std::list<ModelHighAPI_Selection>& theBaseObjects,
62 FEATURESAPI_EXPORT
void setNumber(const
int theNumber);
Interface for Copy feature.
Definition: FeaturesAPI_Copy.h:37
virtual ~FeaturesAPI_Copy()
Destructor.
Definition: FeaturesAPI_Copy.cpp:45
void setObjects(const std::list< ModelHighAPI_Selection > &theBaseObjects)
Modify objects attribute of the feature.
Definition: FeaturesAPI_Copy.cpp:48
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: FeaturesAPI_Copy.cpp:61
void setNumber(const int theNumber)
Modify number of copies attribute of the feature.
Definition: FeaturesAPI_Copy.cpp:54
virtual std::shared_ptr< ModelAPI_AttributeInteger > number() const
Number of copies.
Definition: FeaturesAPI_Copy.h:56
FeaturesAPI_Copy(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: FeaturesAPI_Copy.cpp:26
virtual std::shared_ptr< ModelAPI_AttributeSelectionList > objects() const
Source objects.
Definition: FeaturesAPI_Copy.h:56
static const std::string NUMBER()
Integer attribute that contains the number of resulting copies needed.
Definition: FeaturesPlugin_Copy.h:59
static const std::string & ID()
Feature kind.
Definition: FeaturesPlugin_Copy.h:39
static const std::string & OBJECTS()
Selection list attribute that contains all copied shapes selection.
Definition: FeaturesPlugin_Copy.h:53
API for the attribute that contains integer (int).
Definition: ModelAPI_AttributeInteger.h:34
Attribute that contains list of references to the sub-shapes with possibility to manage them.
Definition: ModelAPI_AttributeSelectionList.h:37
Document for internal data structure of any object storage.
Definition: ModelAPI_Document.h:52
Dump engine for the model.
Definition: ModelHighAPI_Dumper.h:81
Base class for feature interfaces.
Definition: ModelHighAPI_Interface.h:42
Class for filling ModelAPI_AttributeSelection.
Definition: ModelHighAPI_Selection.h:49
CopyPtr addCopy(const std::shared_ptr< ModelAPI_Document > &thePart, const std::list< ModelHighAPI_Selection > &theObjects, const int theNumber)
Create Copy feature.
Definition: FeaturesAPI_Copy.cpp:74