1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ConstructionPlugin_Point.h
5 // Author: Mikhail PONIKAROV
7 #ifndef ConstructionPlugin_Point_H_
8 #define ConstructionPlugin_Point_H_
10 #include "ConstructionPlugin.h"
11 #include <ModelAPI_Feature.h>
13 /**\class ConstructionPlugin_Point
15 * \brief Feature for creation of the new part in PartSet.
17 class ConstructionPlugin_Point : public ModelAPI_Feature
20 /// Returns the kind of a feature
21 CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getKind();
23 inline static const std::string& ID()
25 static const std::string CONSTRUCTION_POINT_KIND("Point");
26 return CONSTRUCTION_POINT_KIND;
29 /// attribute name for X coordinate
30 inline static const std::string& X()
32 static const std::string POINT_ATTR_X("x");
35 /// attribute name for Y coordinate
36 inline static const std::string& Y()
38 static const std::string POINT_ATTR_Y("y");
41 /// attribute name for Z coordinate
42 inline static const std::string& Z()
44 static const std::string POINT_ATTR_Z("z");
48 /// Creates a new part document if needed
49 CONSTRUCTIONPLUGIN_EXPORT virtual void execute();
51 /// Request for initialization of data model of the feature: adding all attributes
52 CONSTRUCTIONPLUGIN_EXPORT virtual void initAttributes();
54 /// Construction result is allways recomuted on the fly
55 CONSTRUCTIONPLUGIN_EXPORT virtual bool isPersistentResult() {return false;}
57 /// Use plugin manager for features creation
58 ConstructionPlugin_Point();