20 #ifndef SRC_PARTSETAPI_PARTSETAPI_PART_H_
21 #define SRC_PARTSETAPI_PARTSETAPI_PART_H_
24 #include "PartSetAPI.h"
26 #include <PartSetPlugin_Part.h>
28 #include <ModelHighAPI_Interface.h>
29 #include <ModelHighAPI_Macro.h>
42 explicit PartSetAPI_Part(
const std::shared_ptr<ModelAPI_Feature> & theFeature);
51 std::shared_ptr<ModelAPI_Document>
document()
const;
59 typedef std::shared_ptr<PartSetAPI_Part> PartPtr;
65 PartPtr
addPart(
const std::shared_ptr<ModelAPI_Document> & thePartSet);
Document for internal data structure of any object storage.
Definition: ModelAPI_Document.h:53
Dump engine for the model.
Definition: ModelHighAPI_Dumper.h:81
Base class for feature interfaces.
Definition: ModelHighAPI_Interface.h:46
Interface for Part feature.
Definition: PartSetAPI_Part.h:38
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: PartSetAPI_Part.cpp:47
PartSetAPI_Part(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: PartSetAPI_Part.cpp:30
virtual ~PartSetAPI_Part()
Destructor.
Definition: PartSetAPI_Part.cpp:37
std::shared_ptr< ModelAPI_Document > document() const
Return document.
Definition: PartSetAPI_Part.cpp:42
static const std::string & ID()
Part kind.
Definition: PartSetPlugin_Part.h:35
void removePart(const ModelHighAPI_Interface &thePart)
Remove Part feature.
Definition: PartSetAPI_Part.cpp:90
PartPtr addPart(const std::shared_ptr< ModelAPI_Document > &thePartSet)
Create Part feature.
Definition: PartSetAPI_Part.cpp:56
PartPtr duplicatePart(const ModelHighAPI_Interface &thePart)
Duplicate Part feature.
Definition: PartSetAPI_Part.cpp:63