/// \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
/// \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()
{}
}
};
-
-/** \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