1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: SketchSolver_ConstraintLength.h
4 // Created: 31 Mar 2015
5 // Author: Artem ZHIDKOV
7 #ifndef SketchSolver_ConstraintLength_H_
8 #define SketchSolver_ConstraintLength_H_
10 #include "SketchSolver.h"
11 #include <SketchSolver_Constraint.h>
13 /** \class SketchSolver_ConstraintLength
15 * \brief Convert length constraint to SolveSpace structure
17 class SketchSolver_ConstraintLength : public SketchSolver_Constraint
20 SketchSolver_ConstraintLength(ConstraintPtr theConstraint) :
21 SketchSolver_Constraint(theConstraint)
24 virtual int getType() const
25 { return SLVS_C_PT_PT_DISTANCE; }
28 /// \brief Converts SketchPlugin constraint to a list of SolveSpace constraints
29 virtual void process();
31 /// \brief This method is used in derived objects to check consistence of constraint.
32 /// E.g. the distance between line and point may be signed.
33 virtual void adjustConstraint();