X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver_Constraint.h;h=8589dc19bb7d5b3d2e23e48a71950db084f71e5b;hb=e94feebdafb664910b36c3a2e526b06cd7dd3fdc;hp=6e048ccaf839b2cf053a293000ab834583a33e9a;hpb=4df3d12284892e126685f42a4e3c3c7f63f3b502;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_Constraint.h b/src/SketchSolver/SketchSolver_Constraint.h index 6e048ccaf..8589dc19b 100644 --- a/src/SketchSolver/SketchSolver_Constraint.h +++ b/src/SketchSolver/SketchSolver_Constraint.h @@ -51,7 +51,7 @@ public: /// \brief Returns the type of constraint virtual int getType() const = 0; - /// \brief The constraint is made temoparary + /// \brief The constraint is made temporary void makeTemporary() const; /// \brief Checks the constraint is used by current object @@ -87,7 +87,7 @@ protected: /// \return \c true if some attributes are changed virtual bool checkAttributesChanged(ConstraintPtr theConstraint); - /// \brief This method is used in derived objects to check consistence of constraint. + /// \brief This method is used in derived objects to check consistency of constraint. /// E.g. the distance between line and point may be signed. virtual void adjustConstraint() {} @@ -223,27 +223,4 @@ public: } }; - -/** \class SketchSolver_ConstraintAngle - * \ingroup Plugins - * \brief Convert Agnle constraint to SolveSpace structure - */ -class SketchSolver_ConstraintAngle : public SketchSolver_Constraint -{ -public: - SketchSolver_ConstraintAngle(ConstraintPtr theConstraint) : - SketchSolver_Constraint(theConstraint) - {} - - virtual int getType() const - { return SLVS_C_ANGLE; } - - virtual void adjustConstraint() - { - Slvs_Constraint aConstraint = myStorage->getConstraint(mySlvsConstraints.front()); - aConstraint.other = aConstraint.valA >= 0.0; - myStorage->updateConstraint(aConstraint); - } -}; - #endif