1 // File: SketchPlugin_Constraint.h
2 // Created: 08 May 2014
3 // Author: Artem ZHIDKOV
5 #ifndef SketchPlugin_Constraint_H_
6 #define SketchPlugin_Constraint_H_
8 #include <SketchPlugin_Feature.h>
12 /// Size of the list of constraint attributes
13 const unsigned int CONSTRAINT_ATTR_SIZE = 4;
15 /** \class SketchPlugin_Constraint
16 * \brief Abstract interface to the SketchPlugin_ConstraintBase
17 * For more info see: SketchPlugin_ConstraintBase.h
19 class SketchPlugin_Constraint : public SketchPlugin_Feature
22 /// The value parameter for the constraint
23 inline static const std::string& VALUE()
25 static const std::string MY_CONSTRAINT_VALUE("ConstraintValue");
26 return MY_CONSTRAINT_VALUE;
28 /// The 2D value parameter for the constraint
29 inline static const std::string& FLYOUT_VALUE_PNT()
31 static const std::string MY_FLYOUT_VALUE_PNT("ConstraintFlyoutValuePnt");
32 return MY_FLYOUT_VALUE_PNT;
34 /// First entity for the constraint
35 inline static const std::string& ENTITY_A()
37 static const std::string MY_ENTITY_A("ConstraintEntityA");
40 /// Second entity for the constraint
41 inline static const std::string& ENTITY_B()
43 static const std::string MY_ENTITY_B("ConstraintEntityB");
46 /// Third entity for the constraint
47 inline static const std::string& ENTITY_C()
49 static const std::string MY_ENTITY_C("ConstraintEntityC");
52 /// Fourth entity for the constraint
53 inline static const std::string& ENTITY_D()
55 static const std::string MY_ENTITY_D("ConstraintEntityD");
59 /// List of constraint attributes
60 inline static const std::string& ATTRIBUTE(const int theNumber)
74 static const std::string EMPTY_STRING("");
79 /// \brief Use plugin manager for features creation
80 SketchPlugin_Constraint()