X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver_Manager.h;h=c1e853603273d070854a9f1d1a98b0460ae796a6;hb=4f565b2204d3fba046aa8c851abada2a5a17bf6c;hp=c0866c558493a500b98dfb9351a22c6fd206306e;hpb=6b074436fd3875330cd67cab7db2424a46a8c654;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_Manager.h b/src/SketchSolver/SketchSolver_Manager.h index c0866c558..c1e853603 100644 --- a/src/SketchSolver/SketchSolver_Manager.h +++ b/src/SketchSolver/SketchSolver_Manager.h @@ -41,6 +41,12 @@ public: */ virtual void processEvent(const std::shared_ptr& theMessage); + /** + * The solver needs all the updated objects are transfered in one group, not one by one. + * This iscreases performance and avoids problems in resolve of only part of the made updates. + */ + virtual bool groupMessages(); + /// \brief Initialize builder for solver's data structure entities /// \param theBuilder [in] solver's specific builder SKETCHSOLVER_EXPORT void setBuilder(BuilderPtr theBuilder); @@ -85,9 +91,11 @@ protected: /** \brief Goes through the list of groups and solve the constraints * \param[in] theGroups list of groups to be resolved (if empty list, all groups are resolved) - * \return \c true, if groups are resolved, and features should be updated (send the Update event) + * \return \c true, if groups are resolved, and features should be updated + * (send the Update event) */ - bool resolveConstraints(const std::list& theGroups = std::list()); + bool resolveConstraints(const std::list& theGroups = + std::list()); private: /** \brief Searches list of groups which interact with specified feature