20 #ifndef SolveSpaceSolver_Solver_H_
21 #define SolveSpaceSolver_Solver_H_
23 #include <SketchSolver_ISolver.h>
27 #if defined(WIN32) && !defined(HAVE_C99_INTEGER_TYPES)
28 typedef unsigned int UINT32;
38 #define SLVS_C_UNKNOWN 0
40 #define SLVS_C_FILLET 100100
42 #define SLVS_C_MULTI_ROTATION 100101
44 #define SLVS_C_MULTI_TRANSLATION 100102
46 #define SLVS_E_UNKNOWN 0
48 #define SLVS_G_UNKNOWN 0
50 #define SLVS_G_OUTOFGROUP 1
72 void setEntities(Slvs_Entity* theEntities,
int theSize);
89 virtual SketchSolver_SolveStatus
solve();
98 virtual bool isConflicting(
const ConstraintID& theConstraint)
const;
101 virtual int dof()
const;
105 bool hasDegeneratedArcs()
const;
108 Slvs_System myEquationsSystem;
109 Slvs_Param* myParamsCopy;
Performs high-level operations to solve sketch in SolveSpace.
Definition: SolveSpaceSolver_Solver.h:57
virtual SketchSolver_SolveStatus solve()
Solve the set of equations.
Definition: SolveSpaceSolver_Solver.cpp:101
virtual void prepare()
Prepare for solving. Store initial values of parameters for undo.
Definition: SolveSpaceSolver_Solver.cpp:141
void setParameters(Slvs_Param *theParameters, int theSize)
Change array of parameters.
Definition: SolveSpaceSolver_Solver.cpp:60
void setDraggedParameters(const Slvs_hParam *theDragged)
Store the parameters of the point which was moved by user.
Definition: SolveSpaceSolver_Solver.cpp:67
virtual int dof() const
Degrees of freedom.
Definition: SolveSpaceSolver_Solver.cpp:222
virtual void undo()
Revert solution to initial values.
Definition: SolveSpaceSolver_Solver.cpp:150
void setEntities(Slvs_Entity *theEntities, int theSize)
Change array of entities.
Definition: SolveSpaceSolver_Solver.cpp:73
void setConstraints(Slvs_Constraint *theConstraints, int theSize)
Change array of constraints.
Definition: SolveSpaceSolver_Solver.cpp:79
virtual bool isConflicting(const ConstraintID &theConstraint) const
Check the constraint is conflicted with others.
Definition: SolveSpaceSolver_Solver.cpp:214