Salome HOME
Fit incorrect movement of a line which boundary coincident to a point from another...
[modules/shaper.git] / src / SketchSolver / SketchSolver_ConstraintTangent.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:    SketchSolver_ConstraintTangent.h
4 // Created: 1 Apr 2015
5 // Author:  Artem ZHIDKOV
6
7 #ifndef SketchSolver_ConstraintTangent_H_
8 #define SketchSolver_ConstraintTangent_H_
9
10 #include "SketchSolver.h"
11 #include <SketchSolver_Constraint.h>
12
13 /** \class   SketchSolver_ConstraintTangent
14  *  \ingroup Plugins
15  *  \brief   Convert tangency constraint to SolveSpace structure
16  */
17 class SketchSolver_ConstraintTangent : public SketchSolver_Constraint
18 {
19 public:
20   SketchSolver_ConstraintTangent(ConstraintPtr theConstraint) :
21       SketchSolver_Constraint(theConstraint)
22   {}
23
24   virtual int getType() const
25   { return myType; }
26
27 protected:
28   /// \brief Converts SketchPlugin constraint to a list of SolveSpace constraints
29   virtual void process();
30
31 private:
32   int myType; ///< type of constraint (applicable: SLVS_C_ARC_LINE_TANGENT, SLVS_C_CURVE_CURVE_TANGENT)
33 };
34
35 #endif