SHAPER
9.12.0
|
Class which process the events from the event loop. More...
Signals | |
void | errorOccurred (std::shared_ptr< Events_InfoMessage > theMsg) |
Emitted when error in applivation happens. More... | |
Public Member Functions | |
XGUI_WorkshopListener (XGUI_Workshop *theWorkshop) | |
Constructor. More... | |
void | initializeEventListening () |
Register this class in the events loop for several types of events. More... | |
virtual void | processEvent (const std::shared_ptr< Events_Message > &theMessage) |
Redefinition of Events_Listener method. More... | |
virtual EVENTS_EXPORT bool | groupMessages () |
Listener that needs mostly grouped messages received returns true in this method. More... | |
Protected Member Functions | |
bool | event (QEvent *theEvent) |
Procedure to process postponed events. More... | |
void | onFeatureUpdatedMsg (const std::shared_ptr< ModelAPI_ObjectUpdatedMessage > &theMsg) |
Process feature update message. More... | |
void | onFeatureCreatedMsg (const std::shared_ptr< ModelAPI_ObjectUpdatedMessage > &theMsg) |
Process feature created message. More... | |
void | onFeatureRedisplayMsg (const std::shared_ptr< ModelAPI_ObjectUpdatedMessage > &theMsg) |
Process feature redisplay message. More... | |
void | onFeatureEmptyPresentationMsg (const std::shared_ptr< ModelAPI_ObjectUpdatedMessage > &theMsg) |
Process clearing of presentation. More... | |
bool | displayObject (ObjectPtr theObj) |
Displaus object and fit all viewer if the object is first (update viewer will not be called) Asks the module whether the object can be displayed. More... | |
bool | customizeFeature (const std::set< ObjectPtr > &theObjects, bool theForceRedisplay) |
Calls the module method of cusomize object for the feature of the current operation Perform cusomize if the force redisplay flag is true or the list of objects contains the current operation feature. More... | |
XGUI_Workshop * | workshop () const |
Returns the workshop. More... | |
void | groupWhileFlush (const std::shared_ptr< Events_Message > &theMessage) |
Allows to group messages while they are flushed (for flush for groupMessages=true listeners) More... | |
EVENTS_EXPORT void | flushGrouped (const Events_ID &theID) |
Sends myGroups on flush finish. More... | |
Class which process the events from the event loop.
XGUI_WorkshopListener::XGUI_WorkshopListener | ( | XGUI_Workshop * | theWorkshop | ) |
Constructor.
Used only if the workshop is launched in Salome environment
theWorkshop | a reference to workshop. |
void XGUI_WorkshopListener::initializeEventListening | ( | ) |
Register this class in the events loop for several types of events.
< Listening application errors.
|
virtual |
Redefinition of Events_Listener method.
Implements Events_Listener.
|
signal |
Emitted when error in applivation happens.
|
protected |
Procedure to process postponed events.
|
protected |
Process feature update message.
theMsg | a message with a container of objects |
|
protected |
Process feature created message.
theMsg | a message with a container of objects |
|
protected |
Process feature redisplay message.
theMsg | a message with a container of objects |
|
protected |
Process clearing of presentation.
theMsg | an event message |
|
protected |
Displaus object and fit all viewer if the object is first (update viewer will not be called) Asks the module whether the object can be displayed.
theObj | an object |
theFirstVisualizedBody | an output state whether there are not object displayed in the view and the displayed object is a body |
|
protected |
Calls the module method of cusomize object for the feature of the current operation Perform cusomize if the force redisplay flag is true or the list of objects contains the current operation feature.
theObjects | a list of objects to find current operation feature if forced redisplay is false |
theForceRedisplay | a flag to customize object even always |
|
protected |
Returns the workshop.
|
inlinevirtualinherited |
Listener that needs mostly grouped messages received returns true in this method.
In this case during the message is flushed, all the new messages are grouped, not sended immideately and then sent in the end of flush.
Reimplemented in SketchSolver_Manager, and SketchPlugin_OverConstraintsResolver.
|
protectedinherited |
Allows to group messages while they are flushed (for flush for groupMessages=true listeners)
|
protectedinherited |
Sends myGroups on flush finish.