X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver_ConstraintMulti.h;h=5dfc0c1a7a6446336e430fc6c34506e4f63efa7d;hb=9baaa9343a9d1c026a6467ec2a864c2c317ab91b;hp=a5aea85fa7042c27796410f77590616821117930;hpb=ca7211a274ba4dc99bd469ca44dd072fcb517dee;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_ConstraintMulti.h b/src/SketchSolver/SketchSolver_ConstraintMulti.h index a5aea85fa..5dfc0c1a7 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMulti.h +++ b/src/SketchSolver/SketchSolver_ConstraintMulti.h @@ -24,7 +24,8 @@ public: SketchSolver_Constraint(theConstraint), myNumberOfObjects(0), myNumberOfCopies(0), - myAdjusted(false) + myAdjusted(false), + myIsFullValue(false) {} /// \brief Update constraint @@ -38,6 +39,8 @@ public: /// \brief Check the feature is a source or a copy of Multi-constraint virtual bool isUsed(FeaturePtr theFeature) const; + /// \brief Check the attribute is used in Multi-constraint + virtual bool isUsed(AttributePtr theAttribute) const; protected: /// \brief Converts SketchPlugin constraint to a list of SolveSpace constraints @@ -73,6 +76,7 @@ protected: protected: int myNumberOfObjects; ///< number of previous initial objects int myNumberOfCopies; ///< number of previous copies of initial objects + bool myIsFullValue; ///< value whether the angle/distance is a full or single for objects bool myAdjusted; ///< the constraint is already adjusted (to not do it several times)