1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: SketchPlugin_MacroArcReentrantMessage.h
4 // Created: 01 Apr 2017
5 // Author: Natalia ERMOLAEVA
7 #ifndef SketchPlugin_MacroArcReentrantMessage_H_
8 #define SketchPlugin_MacroArcReentrantMessage_H_
10 #include <ModelAPI_EventReentrantMessage.h>
11 #include <Events_Loop.h>
13 #include <SketchPlugin.h>
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
22 /// Creates an empty message
23 SKETCHPLUGIN_EXPORT SketchPlugin_MacroArcReentrantMessage(const Events_ID theID,
24 const void* theSender = 0)
25 : ModelAPI_EventReentrantMessage(theID, theSender) {}
26 /// The virtual destructor
27 SKETCHPLUGIN_EXPORT virtual ~SketchPlugin_MacroArcReentrantMessage() {}
28 /// Static. Returns EventID of the message.
30 inline static Events_ID eventId()
32 static const char * MY_EVENT_MACRO_ARC_MESSAGE_ID("MacroArcReentrantMessage");
33 return Events_Loop::eventByName(MY_EVENT_MACRO_ARC_MESSAGE_ID);
36 /// Stores type of creation
38 SKETCHPLUGIN_EXPORT void setTypeOfCreation(const std::string& theType)
39 { myTypeOfCreation = theType; }
41 /// Returns type of creation
43 SKETCHPLUGIN_EXPORT std::string typeOfCreation() const { return myTypeOfCreation; }
46 std::string myTypeOfCreation; ///< to know what parameters of new feature should be filled