X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Constraint.h;h=61cd2bf0554bc18567dbc87e17c4d48e078be365;hb=b9a3d9351b23b5d30a0eb37d45896eac832bb7e2;hp=8c5e6dadb750844a0afe18f7429bf42fe850ad7b;hpb=c46bbabbbdc3ca55df465836b1298e2228ac05cb;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Constraint.h b/src/SketchPlugin/SketchPlugin_Constraint.h index 8c5e6dadb..61cd2bf05 100644 --- a/src/SketchPlugin/SketchPlugin_Constraint.h +++ b/src/SketchPlugin/SketchPlugin_Constraint.h @@ -18,20 +18,26 @@ * The "entityA" and "entityB" represents any other object (and a point too). * And the "valA" represents a real value. * - * The attributes below are named corresponding to the SolveSpace, - * some of them may be unused. The list of used attributes is defined - * inside the certain constraint. + * The attributes below are named independent of the SolveSpace. + * Some of them may be unused. + * + * Also the list of possible attributes is provided to simplify assignment. */ /// The value parameter for the constraint -const std::string CONSTRAINT_ATTR_VALUE("ConstraintValueA"); -/// First point for the constraint -const std::string CONSTRAINT_ATTR_POINT_A("ConstraintPointA"); -/// Second point for the constraint -const std::string CONSTRAINT_ATTR_POINT_B("ConstraintPointB"); +const std::string CONSTRAINT_ATTR_VALUE("ConstraintValue"); /// First entity for the constraint const std::string CONSTRAINT_ATTR_ENTITY_A("ConstraintEntityA"); /// Second entity for the constraint const std::string CONSTRAINT_ATTR_ENTITY_B("ConstraintEntityB"); +/// Third entity for the constraint +const std::string CONSTRAINT_ATTR_ENTITY_C("ConstraintEntityC"); +/// Fourth entity for the constraint +const std::string CONSTRAINT_ATTR_ENTITY_D("ConstraintEntityD"); +/// List of constraint attributes +const unsigned int CONSTRAINT_ATTR_SIZE = 4; +const std::string CONSTRAINT_ATTRIBUTES[CONSTRAINT_ATTR_SIZE] = + {CONSTRAINT_ATTR_ENTITY_A, CONSTRAINT_ATTR_ENTITY_B, + CONSTRAINT_ATTR_ENTITY_C, CONSTRAINT_ATTR_ENTITY_D}; /** \class SketchPlugin_Constraint