1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: SketchSolver_ConstraintFixed.h
4 // Created: 30 Mar 2015
5 // Author: Artem ZHIDKOV
7 #ifndef SketchSolver_ConstraintFixed_H_
8 #define SketchSolver_ConstraintFixed_H_
10 #include <SketchSolver_Constraint.h>
12 /** \class SketchSolver_ConstraintFixed
14 * \brief Stores data of the Fixed constraint
16 class SketchSolver_ConstraintFixed : public SketchSolver_Constraint
19 /// Creates constraint to manage the given constraint from plugin
20 SketchSolver_ConstraintFixed(ConstraintPtr theConstraint);
22 /// \brief Block or unblock events from this constraint
23 virtual void blockEvents(bool isBlocked);
26 /// \brief Converts SketchPlugin constraint to a list of SolveSpace constraints
27 virtual void process();
29 /// \brief Generate list of attributes of constraint in order useful for constraints
30 /// \param[out] theValue numerical characteristic of constraint (e.g. distance)
31 /// \param[out] theAttributes list of attributes to be filled
32 virtual void getAttributes(EntityWrapperPtr& , std::vector<EntityWrapperPtr>& )
35 /// \brief Obtain entity to be fixed
36 EntityWrapperPtr entityToFix();
38 /// \brief Create Fixed constraint for the feature basing on its type
39 /// \param theFeature [in] feature, converted to solver specific format
40 /// \return Fixed constraint
41 ConstraintWrapperPtr fixFeature(EntityWrapperPtr theFeature);
44 std::vector<double> myFixedValues;