Salome HOME
Add call execute() to sketch feature.
[modules/shaper.git] / src / SketchSolver / SketchSolver_ConstraintCoincidence.h
index c1d1124af4ecdd30641c5884d21688a5767ac7a0..efb01572d063fa923a1fff61237a4728eb014a65 100644 (file)
@@ -18,6 +18,7 @@
 class SketchSolver_ConstraintCoincidence : public SketchSolver_Constraint
 {
 public:
+  /// Constructor based on SketchPlugin constraint
   SketchSolver_ConstraintCoincidence(ConstraintPtr theConstraint) :
       SketchSolver_Constraint(theConstraint),
       myType(SLVS_C_UNKNOWN)
@@ -58,9 +59,12 @@ private:
   /// \brief Create full SolveSpace structure according to given constraint
   void addConstraint(ConstraintPtr theConstraint);
 
+  /// \brief Create constraint of point concident to the line or circle
+  Slvs_hConstraint addPointOnEntity(Slvs_hEntity thePoint, Slvs_hEntity theEntity);
+
 private:
   int myType; ///< type of constraint (applicable SLVS_C_POINTS_COINCIDENT or SLVS_C_PT_ON_LINE or SLVS_C_PT_ON_CIRCLE)
-  std::map<Slvs_hConstraint, ConstraintPtr> myExtraCoincidence; ///< multiple coincidence of points
+  std::map<ConstraintPtr, Slvs_hConstraint> myExtraCoincidence; ///< multiple coincidence of points
   std::set<AttributePtr> myCoincidentPoints; ///< list of points under the Coincidence constraint
 };