1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: SketchSolver_Constraint.h
4 // Created: 27 May 2014
5 // Author: Artem ZHIDKOV
7 #ifndef SketchSolver_Constraint_H_
8 #define SketchSolver_Constraint_H_
10 #include "SketchSolver.h"
12 #include <SketchPlugin_Constraint.h>
17 /** \class SketchSolver_Constraint
19 * \brief Obtain information about SketchPlugin's constraint
21 class SketchSolver_Constraint
24 SketchSolver_Constraint();
25 SketchSolver_Constraint(std::shared_ptr<SketchPlugin_Constraint> theConstraint);
27 /** \brief Compute constraint type according to SolveSpace identifiers
28 * and verify that constraint parameters are correct
29 * \param[in] theConstraint constraint which type should be determined
30 * \return identifier of constraint type or SLVS_C_UNKNOWN if the type is wrong
32 const int& getType(std::shared_ptr<SketchPlugin_Constraint> theConstraint);
33 /// \brief Returns the type of myConstraint member
34 inline const int& getType() const
39 /// \brief Returns list of attributes names in the correct order required by SolveSpace
40 inline const std::vector<std::string>& getAttributes() const
42 return myAttributesList;
46 std::shared_ptr<SketchPlugin_Constraint> myConstraint;
48 std::vector<std::string> myAttributesList;