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 /// Creates a new part document if needed
38 CONSTRUCTIONPLUGIN_EXPORT virtual void execute();
40 /// Request for initialization of data model of the feature: adding all attributes
41 CONSTRUCTIONPLUGIN_EXPORT virtual void initAttributes();
43 /// Construction result is allways recomuted on the fly
44 CONSTRUCTIONPLUGIN_EXPORT virtual bool isPersistentResult() {return false;}
46 /// Use plugin manager for features creation
47 ConstructionPlugin_Point();