]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelAPI/ModelAPI_Events.h
Salome HOME
Issue #3222: 1d fillet
[modules/shaper.git] / src / ModelAPI / ModelAPI_Events.h
index c79ec94d007f30f3a42b8845a332cc5a5cec28b5..2a63ab671d8643e617d9c9aac415298f1367883f 100644 (file)
@@ -36,6 +36,7 @@
 class ModelAPI_Document;
 class ModelAPI_ResultParameter;
 class GeomAPI_Pnt2d;
+class GeomAPI_Shape;
 
 #if defined __GNUC__ || defined __clang__
 #define MAYBE_UNUSED __attribute__((unused))
@@ -119,6 +120,9 @@ MAYBE_UNUSED static const char * EVENT_DOF_OBJECTS = "DoFObjects";
 MAYBE_UNUSED static const char * EVENT_VISUAL_ATTRIBUTES = "UpdateVisualAttributes";
 
 
+/// Event ID that 1D-fillet failed (comes with ModelAPI_Fillet1DFailedMessage)
+static const char * EVENT_1DFILLET_FAILED = "1DFilletFailed";
+
 /// Message that feature was changed (used for Object Browser update): moved, updated and deleted
 class MODELAPI_EXPORT ModelAPI_ObjectUpdatedMessage : public Events_MessageGroup
 {
@@ -540,4 +544,27 @@ public:
   { return myCurrentPosition; }
 };
 
+/// Message that sends the failed vertices of 1D-fillet to highlight them in 3D viewer
+class ModelAPI_Fillet1DFailedMessage : public Events_Message
+{
+public:
+  /// Creates an message
+  MODELAPI_EXPORT ModelAPI_Fillet1DFailedMessage(const Events_ID theID, const void* theSender = 0);
+  /// Default destructor
+  MODELAPI_EXPORT virtual ~ModelAPI_Fillet1DFailedMessage();
+  /// Static. Returns EventID of the message.
+  MODELAPI_EXPORT static Events_ID eventId()
+  {
+    return Events_Loop::eventByName(EVENT_1DFILLET_FAILED);
+  }
+
+  /// Sets list of failed vertices
+  MODELAPI_EXPORT void setVertices(const std::list< std::shared_ptr<GeomAPI_Shape> >& theVertices);
+  /// Returns list of failed vertices
+  MODELAPI_EXPORT const std::list< std::shared_ptr<GeomAPI_Shape> >& vertices() const;
+
+private:
+  std::list< std::shared_ptr<GeomAPI_Shape> > myVertices;
+};
+
 #endif