X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FSketchSolver%2FSketchSolver_ConstraintMulti.h;h=bbc4992be5e72193360b6648280e4b72133264e6;hb=20d233731eaae06b9a75280a2ca675bc9a11cc72;hp=cf2f16d94ba0bc3c9f36b3fdf9182638ab3104a7;hpb=d4c4c30796ce288f2e81205e0555457542f2e5be;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_ConstraintMulti.h b/src/SketchSolver/SketchSolver_ConstraintMulti.h index cf2f16d94..bbc4992be 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMulti.h +++ b/src/SketchSolver/SketchSolver_ConstraintMulti.h @@ -22,7 +22,8 @@ public: SketchSolver_ConstraintMulti(ConstraintPtr theConstraint) : SketchSolver_Constraint(theConstraint), myNumberOfObjects(0), - myNumberOfCopies(0) + myNumberOfCopies(0), + myAdjusted(false) {} virtual int getType() const @@ -38,6 +39,14 @@ public: /// \brief Adds a feature to constraint and create its analogue in SolveSpace virtual void addFeature(FeaturePtr theFeature); + /// \brief Update SketchPlugin attributes using the data obtained from SolveSpace entities + virtual void refresh() + { + myAdjusted = false; + SketchSolver_Constraint::refresh(); + } + + protected: /// \brief Converts SketchPlugin constraint to a list of SolveSpace constraints virtual void process() @@ -78,6 +87,8 @@ protected: std::set myPointsJustUpdated; ///< list of points touched by user std::set myInitialPoints; ///< list of points containing initial objects + + bool myAdjusted; ///< the constraint is already adjusted (to not do it several times) }; #endif