Salome HOME
Adjust test cases according to updated Arc behavior
[modules/shaper.git] / src / BuildPlugin / BuildPlugin_Edge.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        BuildPlugin_Edge.h
4 // Created:     18 April 2016
5 // Author:      Dmitry Bobylev
6
7 #ifndef BuildPlugin_Edge_H_
8 #define BuildPlugin_Edge_H_
9
10 #include "BuildPlugin.h"
11
12 #include <ModelAPI_Feature.h>
13
14 /// \class BuildPlugin_Edge
15 /// \ingroup Plugins
16 /// \brief Feature for creation of edge from sketch edge or existing edges.
17 class BuildPlugin_Edge: public ModelAPI_Feature
18 {
19 public:
20   /// Use plugin manager for features creation
21   BuildPlugin_Edge();
22
23   /// Feature kind.
24   inline static const std::string& ID()
25   {
26     static const std::string MY_ID("Edge");
27     return MY_ID;
28   }
29
30   /// Attribute name of base objects.
31   inline static const std::string& BASE_OBJECTS_ID()
32   {
33     static const std::string MY_BASE_OBJECTS_ID("base_objects");
34     return MY_BASE_OBJECTS_ID;
35   }
36
37   /// \return the kind of a feature.
38   BUILDPLUGIN_EXPORT virtual const std::string& getKind()
39   {
40     static std::string MY_KIND = BuildPlugin_Edge::ID();
41     return MY_KIND;
42   }
43
44   /// Request for initialization of data model of the feature: adding all attributes.
45   BUILDPLUGIN_EXPORT virtual void initAttributes();
46
47   /// Creates a new part document if needed.
48   BUILDPLUGIN_EXPORT virtual void execute();
49 };
50
51 #endif