]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketchSolver/SketchSolver_ConstraintLength.h
Salome HOME
Sketcher: Remove obsolete interfaces. Code cleanup.
[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_Constraint.h>
11
12 /** \class   SketchSolver_ConstraintLength
13  *  \ingroup Plugins
14  *  \brief   Convert length constraint to SolveSpace structure
15  */
16 class SketchSolver_ConstraintLength : public SketchSolver_Constraint
17 {
18 public:
19   /// Constructor based on SketchPlugin constraint
20   SketchSolver_ConstraintLength(ConstraintPtr theConstraint) :
21       SketchSolver_Constraint(theConstraint)
22   {}
23
24 protected:
25   /// \brief Generate list of attributes of constraint in order useful for constraints
26   /// \param[out] theValue      numerical characteristic of constraint (e.g. distance)
27   /// \param[out] theAttributes list of attributes to be filled
28   virtual void getAttributes(EntityWrapperPtr&              theValue,
29                              std::vector<EntityWrapperPtr>& theAttributes);
30 };
31
32 #endif