1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 #include <SketchSolver_ConstraintAngle.h>
5 #include <ModelAPI_AttributeInteger.h>
6 #include <SketchPlugin_ConstraintAngle.h>
8 void SketchSolver_ConstraintAngle::getAttributes(
9 EntityWrapperPtr& theValue, std::vector<EntityWrapperPtr>& theAttributes)
11 SketchSolver_Constraint::getAttributes(theValue, theAttributes);
12 myType = myBaseConstraint->integer(SketchPlugin_ConstraintAngle::TYPE_ID())->value();
16 void SketchSolver_ConstraintAngle::adjustConstraint()
18 int aType = myBaseConstraint->integer(SketchPlugin_ConstraintAngle::TYPE_ID())->value();
19 if (aType != myType) {
21 myStorage->setNeedToResolve(true);