20 #ifndef SketchPlugin_Constraint_H_
21 #define SketchPlugin_Constraint_H_
23 #include <SketchPlugin_Feature.h>
24 #include <ModelAPI_AttributeDouble.h>
30 const int CONSTRAINT_ATTR_SIZE = 4;
40 inline static const std::string&
VALUE()
42 static const std::string MY_CONSTRAINT_VALUE(
"ConstraintValue");
43 return MY_CONSTRAINT_VALUE;
48 static const std::string MY_FLYOUT_VALUE_PNT(
"ConstraintFlyoutValuePnt");
49 return MY_FLYOUT_VALUE_PNT;
54 static const std::string MY_STATE(
"ConstraintState");
60 static const std::string MY_ENTITY_A(
"ConstraintEntityA");
66 static const std::string MY_ENTITY_B(
"ConstraintEntityB");
72 static const std::string MY_ENTITY_C(
"ConstraintEntityC");
78 static const std::string MY_ENTITY_D(
"ConstraintEntityD");
83 inline static const std::string&
ATTRIBUTE(
const int theNumber)
97 static const std::string EMPTY_STRING(
"");
125 typedef std::shared_ptr<SketchPlugin_Constraint> ConstraintPtr;
std::shared_ptr< ModelAPI_AttributeDouble > real(const std::string &theID)
Returns the real attribute by the identifier.
Definition: ModelAPI_Feature.h:211
Abstract interface to the SketchPlugin_ConstraintBase For more info see: SketchPlugin_ConstraintBase....
Definition: SketchPlugin_Constraint.h:37
static const std::string & CONSTRAINT_ACTIVE()
State of constraint - Active - true, Suppressed - false.
Definition: SketchPlugin_Constraint.h:52
virtual double getNumericValue()
Get numeric value of attribute VALUE()
Definition: SketchPlugin_Constraint.h:115
SketchPlugin_Constraint()
Use plugin manager for features creation.
Definition: SketchPlugin_Constraint.cpp:22
virtual bool isZeroValueAllowed()
Get if a constraint is able to have a zero numeric value.
Definition: SketchPlugin_Constraint.h:102
static const std::string & FLYOUT_VALUE_PNT()
The 2D value parameter for the constraint.
Definition: SketchPlugin_Constraint.h:46
static const std::string & ENTITY_A()
First entity for the constraint.
Definition: SketchPlugin_Constraint.h:58
virtual void setNumericValue(const double theValue)
Set numeric value to attribute VALUE()
Definition: SketchPlugin_Constraint.h:109
static const std::string & ENTITY_D()
Fourth entity for the constraint.
Definition: SketchPlugin_Constraint.h:76
static const std::string & VALUE()
The value parameter for the constraint.
Definition: SketchPlugin_Constraint.h:40
static const std::string & ENTITY_B()
Second entity for the constraint.
Definition: SketchPlugin_Constraint.h:64
static const std::string & ENTITY_C()
Third entity for the constraint.
Definition: SketchPlugin_Constraint.h:70
static const std::string & ATTRIBUTE(const int theNumber)
List of constraint attributes.
Definition: SketchPlugin_Constraint.h:83
Feature for creation of the new feature in PartSet.
Definition: SketchPlugin_Feature.h:40