1 // File: SketchSolver_Constraint.h
2 // Created: 27 May 2014
3 // Author: Artem ZHIDKOV
5 #ifndef SketchSolver_Constraint_H_
6 #define SketchSolver_Constraint_H_
8 #include "SketchSolver.h"
10 #include <SketchPlugin_Constraint.h>
15 /** \class SketchSolver_Constraint
17 * \brief Obtain information about SketchPlugin's constraint
19 class SketchSolver_Constraint
22 SketchSolver_Constraint();
23 SketchSolver_Constraint(boost::shared_ptr<SketchPlugin_Constraint> theConstraint);
25 /** \brief Compute constraint type according to SolveSpace identifiers
26 * and verify that constraint parameters are correct
27 * \param[in] theConstraint constraint which type should be determined
28 * \return identifier of constraint type or SLVS_C_UNKNOWN if the type is wrong
30 const int& getType(boost::shared_ptr<SketchPlugin_Constraint> theConstraint);
31 /// \brief Returns the type of myConstraint member
32 inline const int& getType() const
37 /// \brief Returns list of attributes names in the correct order required by SolveSpace
38 inline const std::vector<std::string>& getAttributes() const
40 return myAttributesList;
44 boost::shared_ptr<SketchPlugin_Constraint> myConstraint;
46 std::vector<std::string> myAttributesList;