1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: BuildAPI_Wire.h
4 // Created: 09 June 2016
5 // Author: Dmitry Bobylev
7 #ifndef BuildAPI_Wire_H_
8 #define BuildAPI_Wire_H_
12 #include <BuildPlugin_Wire.h>
14 #include <ModelHighAPI_Interface.h>
15 #include <ModelHighAPI_Macro.h>
17 class ModelHighAPI_Selection;
19 /// \class BuildAPI_Wire
20 /// \ingroup CPPHighAPI
21 /// \brief Interface for Wire feature.
22 class BuildAPI_Wire: public ModelHighAPI_Interface
25 /// Constructor without values.
27 explicit BuildAPI_Wire(const std::shared_ptr<ModelAPI_Feature>& theFeature);
29 /// Constructor with values.
31 explicit BuildAPI_Wire(const std::shared_ptr<ModelAPI_Feature>& theFeature,
32 const std::list<ModelHighAPI_Selection>& theBaseObjects);
36 virtual ~BuildAPI_Wire();
38 INTERFACE_1(BuildPlugin_Wire::ID(),
39 baseObjects, BuildPlugin_Wire::BASE_OBJECTS_ID(), ModelAPI_AttributeSelectionList, /** Base objects */)
41 /// Modify base attribute of the feature.
43 void setBase(const std::list<ModelHighAPI_Selection>& theBaseObjects);
45 /// Adds closed contour.
50 /// Pointer on Wire object.
51 typedef std::shared_ptr<BuildAPI_Wire> WirePtr;
53 /// \ingroup CPPHighAPI
54 /// \brief Create Wire feature.
56 WirePtr addWire(const std::shared_ptr<ModelAPI_Document>& thePart,
57 const std::list<ModelHighAPI_Selection>& theBaseObjects);
59 #endif // BuildAPI_Wire_H_