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>
14 const std::string CONSTRUCTION_POINT_KIND("Point");
16 /// attribute name for X coordinate
17 const std::string POINT_ATTR_X = "x";
18 /// attribute name for Y coordinate
19 const std::string POINT_ATTR_Y = "y";
20 /// attribute name for Z coordinate
21 const std::string POINT_ATTR_Z = "z";
23 /**\class ConstructionPlugin_Point
25 * \brief Feature for creation of the new part in PartSet.
27 class ConstructionPlugin_Point : public ModelAPI_Feature
30 /// Returns the kind of a feature
31 CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getKind()
33 static std::string MY_KIND = CONSTRUCTION_POINT_KIND;
37 /// Returns to which group in the document must be added feature
38 CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getGroup()
40 static std::string MY_GROUP = "Construction";
44 /// Creates a new part document if needed
45 CONSTRUCTIONPLUGIN_EXPORT virtual void execute();
47 /// Request for initialization of data model of the feature: adding all attributes
48 CONSTRUCTIONPLUGIN_EXPORT virtual void initAttributes();
50 /// Construction result is allways recomuted on the fly
51 CONSTRUCTIONPLUGIN_EXPORT virtual bool isPersistentResult() {return false;}
53 /// Use plugin manager for features creation
54 ConstructionPlugin_Point();