Salome HOME
Issue #2109 trim - wrong result due to constarints
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_MacroArcReentrantMessage.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 // File:    SketchPlugin_MacroArcReentrantMessage.h
4 // Created: 01 Apr 2017
5 // Author:  Natalia ERMOLAEVA
6
7 #ifndef SketchPlugin_MacroArcReentrantMessage_H_
8 #define SketchPlugin_MacroArcReentrantMessage_H_
9
10 #include <ModelAPI_EventReentrantMessage.h>
11 #include <Events_Loop.h>
12
13 #include <SketchPlugin.h>
14
15 #include <memory>
16
17 /// Message that style of visualization of parameter is changed.
18 /// It will be shown as expression or value
19 class SketchPlugin_MacroArcReentrantMessage : public ModelAPI_EventReentrantMessage
20 {
21 public:
22   /// Creates an empty message
23   SKETCHPLUGIN_EXPORT SketchPlugin_MacroArcReentrantMessage(const Events_ID theID,
24                                                             const void* theSender)
25   : ModelAPI_EventReentrantMessage(theID, theSender) {}
26   /// The virtual destructor
27   SKETCHPLUGIN_EXPORT virtual ~SketchPlugin_MacroArcReentrantMessage() {}
28   /// Static. Returns EventID of the message.
29
30   inline static Events_ID eventId()
31   {
32     static const char * MY_EVENT_MACRO_ARC_MESSAGE_ID("MacroArcReentrantMessage");
33     return Events_Loop::eventByName(MY_EVENT_MACRO_ARC_MESSAGE_ID);
34   }
35
36   /// Stores type of creation
37   /// \param the type
38   SKETCHPLUGIN_EXPORT void setTypeOfCreation(const std::string& theType)
39   { myTypeOfCreation = theType; }
40
41   /// Returns type of creation
42   /// \return the type
43   SKETCHPLUGIN_EXPORT std::string typeOfCreation() const { return myTypeOfCreation; }
44
45 private:
46   std::string myTypeOfCreation; ///< to know what parameters of new feature should be filled
47 };
48
49
50 #endif