20 #ifndef ModelAPI_EventReentrantMessage_H_
21 #define ModelAPI_EventReentrantMessage_H_
23 #include <Events_Message.h>
24 #include <Events_Loop.h>
42 const void* theSender);
48 static const char * MY_EVENT_REENTRANT_MESSAGE_ID(
"EventReentrantMessage");
54 { myCreatedFeature = theFeature; }
57 MODELAPI_EXPORT
const std::shared_ptr<ModelAPI_Feature>&
createdFeature()
const
58 {
return myCreatedFeature; }
63 { mySelectedObject = theObject; }
66 MODELAPI_EXPORT
const std::shared_ptr<ModelAPI_Object>&
selectedObject()
const
67 {
return mySelectedObject; }
72 (
const std::shared_ptr<ModelAPI_Attribute>& theAttribute)
73 { mySelectedAttribute = theAttribute; }
77 {
return mySelectedAttribute; }
81 MODELAPI_EXPORT
void setClickedPoint(
const std::shared_ptr<GeomAPI_Pnt2d>& thePoint)
82 { myClickedPoint = thePoint; }
85 MODELAPI_EXPORT
const std::shared_ptr<GeomAPI_Pnt2d>&
clickedPoint()
86 {
return myClickedPoint; }
89 std::shared_ptr<ModelAPI_Feature> myCreatedFeature;
90 std::shared_ptr<ModelAPI_Object> mySelectedObject;
91 std::shared_ptr<ModelAPI_Attribute> mySelectedAttribute;
92 std::shared_ptr<GeomAPI_Pnt2d> myClickedPoint;
95 typedef std::shared_ptr<ModelAPI_EventReentrantMessage> ReentrantMessagePtr;
Identifier of the event kind.
Definition: Events_Message.h:36
static EVENTS_EXPORT Events_ID eventByName(const char *theName)
Returns the unique event by the given name.
Definition: Events_Loop.cpp:33
Message for communication between sender and listener of event.
Definition: Events_Message.h:65
2D point defined by two coordinates
Definition: GeomAPI_Pnt2d.h:36
Generic attribute of the Object.
Definition: ModelAPI_Attribute.h:34
Message that style of visualization of parameter is changed.
Definition: ModelAPI_EventReentrantMessage.h:38
MODELAPI_EXPORT const std::shared_ptr< ModelAPI_Object > & selectedObject() const
Returns selected object parameter.
Definition: ModelAPI_EventReentrantMessage.h:66
MODELAPI_EXPORT void setSelectedAttribute(const std::shared_ptr< ModelAPI_Attribute > &theAttribute)
Fills selected attribute parameter \theAttribute.
Definition: ModelAPI_EventReentrantMessage.h:72
MODELAPI_EXPORT void setCreatedFeature(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Fills previous feature parameter.
Definition: ModelAPI_EventReentrantMessage.h:53
MODELAPI_EXPORT const std::shared_ptr< ModelAPI_Feature > & createdFeature() const
Returns previous feature parameter.
Definition: ModelAPI_EventReentrantMessage.h:57
MODELAPI_EXPORT void setSelectedObject(const std::shared_ptr< ModelAPI_Object > &theObject)
Fills selected object parameter \theObject a feature or result.
Definition: ModelAPI_EventReentrantMessage.h:62
MODELAPI_EXPORT const std::shared_ptr< GeomAPI_Pnt2d > & clickedPoint()
Returns clicked point.
Definition: ModelAPI_EventReentrantMessage.h:85
MODELAPI_EXPORT ModelAPI_EventReentrantMessage(const Events_ID theID, const void *theSender)
Creates an empty message.
Definition: ModelAPI_EventReentrantMessage.cpp:22
virtual MODELAPI_EXPORT ~ModelAPI_EventReentrantMessage()
The virtual destructor.
Definition: ModelAPI_EventReentrantMessage.h:44
MODELAPI_EXPORT const std::shared_ptr< ModelAPI_Attribute > & selectedAttribute()
Returns selected attribute parameter.
Definition: ModelAPI_EventReentrantMessage.h:76
static MODELAPI_EXPORT Events_ID eventId()
Static. Returns EventID of the message.
Definition: ModelAPI_EventReentrantMessage.h:46
MODELAPI_EXPORT void setClickedPoint(const std::shared_ptr< GeomAPI_Pnt2d > &thePoint)
Fills clicked point \thePoint.
Definition: ModelAPI_EventReentrantMessage.h:81
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:39
Represents any object in the data model and in the object browser.
Definition: ModelAPI_Object.h:45