X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver_ConstraintMovement.h;h=63211fa4fb6262ec8c0f5462bedb468127c84603;hb=4f565b2204d3fba046aa8c851abada2a5a17bf6c;hp=ba119beaadf2f6bc7cab53469949838d3b9a19c3;hpb=29d446f4dd2969d80087745fe44adb5638d13de7;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_ConstraintMovement.h b/src/SketchSolver/SketchSolver_ConstraintMovement.h index ba119beaa..63211fa4f 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMovement.h +++ b/src/SketchSolver/SketchSolver_ConstraintMovement.h @@ -28,14 +28,21 @@ public: : SketchSolver_ConstraintFixed(theFeature) {} + /// \brief Tries to remove constraint + /// \return \c false, if current constraint contains another SketchPlugin + /// constraints (like for multiple coincidence) + virtual bool remove(); + 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 SolveSpace constraints /// \param[out] theValue numerical characteristic of constraint (e.g. distance) - /// \param[out] theAttributes list of attributes to be filled (list of moved entities or attributes) - virtual void getAttributes(ParameterWrapperPtr& theValue, std::vector& theAttributes); + /// \param[out] theAttributes list of attributes to be filled + /// (list of moved entities or attributes) + virtual void getAttributes(ParameterWrapperPtr& theValue, + std::vector& theAttributes); private: std::vector myMovedEntities; ///< list of entities that are moved