20 #ifndef SketchSolver_ConstraintMultiRotation_H_
21 #define SketchSolver_ConstraintMultiRotation_H_
23 #include <SketchSolver_ConstraintMulti.h>
25 #include "GeomDataAPI_Point2D.h"
50 ScalarWrapperPtr& theAngle,
53 std::list<EntityWrapperPtr>& theEntities);
63 virtual void getRelative(
double theAbsX,
double theAbsY,
64 double& theRelX,
double& theRelY);
66 virtual void getAbsolute(
double theRelX,
double theRelY,
67 double& theAbsX,
double& theAbsY);
69 virtual void transformRelative(
double& theX,
double& theY);
72 virtual const std::string& nameNbObjects();
75 AttributePoint2DPtr myCenterPointAttribute;
76 ScalarWrapperPtr myAngle;
79 double myCenterCoord[2];
80 double myRotationVal[2];
Convert rotated features to the list of SolveSpace constraints.
Definition: SketchSolver_ConstraintMultiRotation.h:32
virtual void updateLocal()
Update parameters (called from base class)
Definition: SketchSolver_ConstraintMultiRotation.cpp:91
virtual void process()
Converts SketchPlugin constraint to a list of SolveSpace constraints.
Definition: SketchSolver_ConstraintMultiRotation.cpp:71
void getAttributes(EntityWrapperPtr &theCenter, ScalarWrapperPtr &theAngle, bool &theFullValue, bool &theReversed, std::list< EntityWrapperPtr > &theEntities)
Generate list of rotated entities.
Definition: SketchSolver_ConstraintMultiRotation.cpp:35
SketchSolver_ConstraintMultiRotation(ConstraintPtr theConstraint)
Constructor based on SketchPlugin constraint.
Definition: SketchSolver_ConstraintMultiRotation.h:35
virtual void adjustConstraint()
This method is used in derived objects to check consistence of constraint.
Definition: SketchSolver_ConstraintMultiRotation.cpp:119
Common base class for the Multi constraints.
Definition: SketchSolver_ConstraintMulti.h:32