1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: BuildPlugin_Vertex.h
4 // Created: 18 April 2016
5 // Author: Dmitry Bobylev
7 #ifndef BuildPlugin_Vertex_H_
8 #define BuildPlugin_Vertex_H_
10 #include "BuildPlugin.h"
12 #include <ModelAPI_Feature.h>
14 /// \class BuildPlugin_Vertex
16 /// \brief Feature for creation of vertex from sketch vertex or existing vertices.
17 class BuildPlugin_Vertex: public ModelAPI_Feature
20 /// Use plugin manager for features creation
24 inline static const std::string& ID()
26 static const std::string MY_ID("Vertex");
30 /// Attribute name of base objects.
31 inline static const std::string& BASE_OBJECTS_ID()
33 static const std::string MY_BASE_OBJECTS_ID("base_objects");
34 return MY_BASE_OBJECTS_ID;
37 /// \return the kind of a feature.
38 BUILDPLUGIN_EXPORT virtual const std::string& getKind()
40 static std::string MY_KIND = BuildPlugin_Vertex::ID();
44 /// Request for initialization of data model of the feature: adding all attributes.
45 BUILDPLUGIN_EXPORT virtual void initAttributes();
47 /// Creates a new part document if needed.
48 BUILDPLUGIN_EXPORT virtual void execute();