1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: SketchSolver_ConstraintMovement.h
4 // Created: 15 Jun 2015
5 // Author: Artem ZHIDKOV
7 #ifndef SketchSolver_ConstraintMovement_H_
8 #define SketchSolver_ConstraintMovement_H_
10 #include "SketchSolver.h"
11 #include <SketchSolver_ConstraintRigid.h>
13 /** \class SketchSolver_ConstraintMovement
15 * \brief Stores data of Rigid (Fixed) constraint for the moved feature only
17 class SketchSolver_ConstraintMovement : public SketchSolver_ConstraintRigid
20 /// Creates constraint to manage the given constraint from plugin
21 SketchSolver_ConstraintMovement(ConstraintPtr theConstraint)
22 : SketchSolver_ConstraintRigid(theConstraint)
26 /// Creates temporary constraint based on feature
27 SketchSolver_ConstraintMovement(FeaturePtr theFeature);
30 /// \brief Converts SketchPlugin constraint to a list of SolveSpace constraints
31 virtual void process();
33 /// \brief Generate list of attributes of constraint in order useful for SolveSpace constraints
34 /// \param[out] theValue numerical characteristic of constraint (e.g. distance)
35 /// \param[out] theAttributes list of attributes to be filled
36 /// \param[out] theIsFullyMoved shows that the feature is moved, in other case only one point of the feature is shifted
37 virtual void getAttributes(double& theValue, std::vector<Slvs_hEntity>& theAttributes, bool& theIsFullyMoved);