1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: SketchSolver_ConstraintMultiTranslation.h
5 // Author: Artem ZHIDKOV
7 #ifndef SketchSolver_ConstraintMultiTranslation_H_
8 #define SketchSolver_ConstraintMultiTranslation_H_
10 #include "SketchSolver.h"
11 #include <SketchSolver_ConstraintMulti.h>
13 /** \class SketchSolver_ConstraintMultiTranslation
15 * \brief Convert translated features to the list of SolveSpace constraints
17 class SketchSolver_ConstraintMultiTranslation : public SketchSolver_ConstraintMulti
20 /// Constructor based on SketchPlugin constraint
21 SketchSolver_ConstraintMultiTranslation(ConstraintPtr theConstraint) :
22 SketchSolver_ConstraintMulti(theConstraint)
26 /// \brief Converts SketchPlugin constraint to a list of SolveSpace constraints
27 virtual void process();
29 /// \brief Generate list of translated entities
30 /// \param[out] theStartPoint start point of translation
31 /// \param[out] theEndPoint final point of translation
32 /// \param[out] theEntities list of entities and their translated copies
33 void getAttributes(EntityWrapperPtr& theStartPoint, EntityWrapperPtr& theEndPoint,
34 std::list< std::list<EntityWrapperPtr> >& theEntities);
36 /// \brief Update parameters (called from base class)
37 virtual void updateLocal()
41 /// \brief Returns name of NUMBER_OF_COPIES parameter for corresponding feature
42 virtual const std::string& nameNbObjects();