X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FSketchSolver%2FSketchSolver_ISolver.h;h=cd525405737336e56b39985edd012189e9797934;hb=c1d1f617a04aacf5f0d6246c1b8dea72dd2d6093;hp=a23807ee31275c6511283aa0fac945a84e1fa0c3;hpb=68cbc95e5d425d4e706307a069c8d58506cb0527;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_ISolver.h b/src/SketchSolver/SketchSolver_ISolver.h index a23807ee3..cd5254057 100644 --- a/src/SketchSolver/SketchSolver_ISolver.h +++ b/src/SketchSolver/SketchSolver_ISolver.h @@ -47,6 +47,12 @@ public: /// \brief Revert solution to initial values virtual void undo() = 0; + /// \brief Check the constraint is conflicted with others + virtual bool isConflicting(const ConstraintID& theConstraint) const = 0; + + /// \brief Degrees of freedom + virtual int dof() const = 0; + protected: GroupID myGroup; ///< ID of the group to be solved bool myFindFaileds; ///< flag to find conflicting or inappropriate constraints