static const char * EVENT_UPDATE_VIEWER_BLOCKED = "UpdateViewerBlocked";
static const char * EVENT_UPDATE_VIEWER_UNBLOCKED = "UpdateViewerUnblocked";
+/// Event ID that solver has conflicting constraints (comes with ModelAPI_SolverFailedMessage)
static const char * EVENT_SOLVER_FAILED = "SolverFailed";
+/// Event ID that the problem in solver disappeared
static const char * EVENT_SOLVER_REPAIRED = "SolverRepaired";
/// Event ID that order of objects in group is changed, so, tree must be fully rectreated (movement of feature)
static const char * EVENT_ORDER_UPDATED = "OrderUpdated";
+/// Event ID that informs that some object has changed the stability
+static const char * EVENT_STABILITY_CHANGED = "StabilityChanged";
+
/// Message that feature was changed (used for Object Browser update): moved, updated and deleted
class MODELAPI_EXPORT ModelAPI_ObjectUpdatedMessage : public Events_MessageGroup
{
MODELAPI_EXPORT void setObject(ObjectPtr theObject);
};
+
+class ModelAPI_SolverFailedMessage : public Events_Message
+{
+public:
+ MODELAPI_EXPORT ModelAPI_SolverFailedMessage(const Events_ID theID, const void* theSender = 0);
+ MODELAPI_EXPORT virtual ~ModelAPI_SolverFailedMessage();
+
+ /// Sets list of conflicting constraints
+ MODELAPI_EXPORT void setObjects(const std::set<ObjectPtr>& theObjects);
+ /// Returns list of conflicting constraints
+ MODELAPI_EXPORT const std::set<ObjectPtr>& objects() const;
+
+private:
+ std::set<ObjectPtr> myObjects;
+};
+
#endif