Salome HOME
0899d8b732419e138208af79263d0f7c56abc20c
[modules/shaper.git] / src / SketchSolver / SketchSolver_ConstraintLength.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:    SketchSolver_ConstraintLength.h
4 // Created: 31 Mar 2015
5 // Author:  Artem ZHIDKOV
6
7 #ifndef SketchSolver_ConstraintLength_H_
8 #define SketchSolver_ConstraintLength_H_
9
10 #include "SketchSolver.h"
11 #include <SketchSolver_Constraint.h>
12
13 /** \class   SketchSolver_ConstraintLength
14  *  \ingroup Plugins
15  *  \brief   Convert length constraint to SolveSpace structure
16  */
17 class SketchSolver_ConstraintLength : public SketchSolver_Constraint
18 {
19 public:
20   /// Constructor based on SketchPlugin constraint
21   SketchSolver_ConstraintLength(ConstraintPtr theConstraint) :
22       SketchSolver_Constraint(theConstraint)
23   {}
24
25 protected:
26   /// \brief Generate list of attributes of constraint in order useful for constraints
27   /// \param[out] theValue      numerical characteristic of constraint (e.g. distance)
28   /// \param[out] theAttributes list of attributes to be filled
29   virtual void getAttributes(double& theValue, std::vector<EntityWrapperPtr>& theAttributes);
30 };
31
32 #endif