1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: ParametersPlugin_Parameter.h
4 // Created: 23 MArch 2015
7 #ifndef PARAMETERSPLUGIN_PARAMETER_H_
8 #define PARAMETERSPLUGIN_PARAMETER_H_
10 #include "ParametersPlugin.h"
11 #include <ModelAPI_Feature.h>
13 class ParametersPlugin_Parameter : public ModelAPI_Feature
17 inline static const std::string& ID()
19 static const std::string MY_EXTRUSION_ID("Parameter");
20 return MY_EXTRUSION_ID;
22 /// attribute name of references sketch entities list, it should contain a sketch result or
23 /// a pair a sketch result to sketch face
24 inline static const std::string& VARIABLE_ID()
26 static const std::string MY_VARIABLE_ID("variable");
27 return MY_VARIABLE_ID;
30 /// attribute name of extrusion size
31 inline static const std::string& EXPRESSION_ID()
33 static const std::string MY_EXPRESSION_ID("expression");
34 return MY_EXPRESSION_ID;
37 /// Returns the kind of a feature
38 PARAMETERSPLUGIN_EXPORT virtual const std::string& getKind()
40 static std::string MY_KIND = ParametersPlugin_Parameter::ID();
44 /// Creates a new part document if needed
45 PARAMETERSPLUGIN_EXPORT virtual void execute();
47 /// Request for initialization of data model of the feature: adding all attributes
48 PARAMETERSPLUGIN_EXPORT virtual void initAttributes();
50 /// Use plugin manager for features creation
51 ParametersPlugin_Parameter();