Salome HOME
SketchSolver Refactoring: Eliminate SolveSpace as a sketch solver.
[modules/shaper.git] / src / SketchSolver / SketchSolver_ConstraintLength.h
index 5d0583752c2dd4634de75fd37299732a3e992e66..1626f1c48360aca3e301ca463683c1300c80b4c5 100644 (file)
 class SketchSolver_ConstraintLength : public SketchSolver_Constraint
 {
 public:
+  /// Constructor based on SketchPlugin constraint
   SketchSolver_ConstraintLength(ConstraintPtr theConstraint) :
       SketchSolver_Constraint(theConstraint)
   {}
 
-  virtual int getType() const
-  { return SLVS_C_PT_PT_DISTANCE; }
-
 protected:
-  /// \brief Converts SketchPlugin constraint to a list of SolveSpace constraints
-  virtual void process();
+  /// \brief Generate list of attributes of constraint in order useful for constraints
+  /// \param[out] theValue      numerical characteristic of constraint (e.g. distance)
+  /// \param[out] theAttributes list of attributes to be filled
+  virtual void getAttributes(EntityWrapperPtr&              theValue,
+                             std::vector<EntityWrapperPtr>& theAttributes) override;
 };
 
 #endif