1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2 // Name : PartSetAPI_Part.h
6 // 16/06/16 - Sergey POKHODENKO - Creation of the file
8 #ifndef SRC_PARTSETAPI_PARTSETAPI_PART_H_
9 #define SRC_PARTSETAPI_PARTSETAPI_PART_H_
11 //--------------------------------------------------------------------------------------
12 #include "PartSetAPI.h"
14 #include <PartSetPlugin_Part.h>
16 #include <ModelHighAPI_Interface.h>
17 #include <ModelHighAPI_Macro.h>
18 //--------------------------------------------------------------------------------------
19 class ModelAPI_Document;
20 //--------------------------------------------------------------------------------------
21 /**\class PartSetAPI_Part
23 * \brief Interface for Part feature
25 class PartSetAPI_Part : public ModelHighAPI_Interface
28 /// Constructor without values
30 explicit PartSetAPI_Part(const std::shared_ptr<ModelAPI_Feature> & theFeature);
33 virtual ~PartSetAPI_Part();
35 INTERFACE_0(PartSetPlugin_Part::ID())
39 std::shared_ptr<ModelAPI_Document> document() const;
41 /// Dump wrapped feature
43 virtual void dump(ModelHighAPI_Dumper& theDumper) const;
46 //! Pointer on Part object
47 typedef std::shared_ptr<PartSetAPI_Part> PartPtr;
49 /**\ingroup CPPHighAPI
50 * \brief Create Part feature
53 PartPtr addPart(const std::shared_ptr<ModelAPI_Document> & thePartSet);
55 /**\ingroup CPPHighAPI
56 * \brief Duplicate Part feature
59 PartPtr duplicatePart(const ModelHighAPI_Interface& thePart);
61 /**\ingroup CPPHighAPI
62 * \brief Remove Part feature
65 void removePart(const ModelHighAPI_Interface& thePart);
67 //--------------------------------------------------------------------------------------
68 //--------------------------------------------------------------------------------------
69 #endif /* SRC_PARTSETAPI_PARTSETAPI_PART_H_ */