SHAPER  9.15.0
ParametersPlugin_EvalListener Class Reference

Class which process the events from the event loop. More...

Inheritance diagram for ParametersPlugin_EvalListener:
Inheritance graph

Public Member Functions

virtual PARAMETERSPLUGIN_EXPORT void processEvent (const std::shared_ptr< Events_Message > &theMessage)
 Reimplemented from Events_Listener::processEvent(). More...
 
virtual EVENTS_EXPORT bool groupMessages ()
 Listener that needs mostly grouped messages received returns true in this method. More...
 

Protected Member Functions

void processObjectRenamedEvent (const std::shared_ptr< Events_Message > &theMessage)
 Processes ObjectRenamed event. More...
 
void processReplaceParameterEvent (const std::shared_ptr< Events_Message > &theMessage)
 Processes ReplaceParameter event. More...
 
std::wstring renameInPythonExpression (const std::wstring &theExpression, const std::wstring &theOldName, const std::wstring &theNewName)
 Renames theOldName in theExpression by theNewName. More...
 
void renameInParameter (std::shared_ptr< ParametersPlugin_Parameter > theParameter, const std::wstring &theOldName, const std::wstring &theNewName)
 Renames theOldName in the expression attribute of theParameter by theNewName. More...
 
void renameInAttribute (std::shared_ptr< ModelAPI_Attribute > theAttribute, const std::wstring &theOldName, const std::wstring &theNewName)
 Renames theOldName in the text fields of theAttribute by theNewName. More...
 
void renameInDependents (std::shared_ptr< ModelAPI_ResultParameter > theResultParameter, const std::wstring &theOldName, const std::wstring &theNewName)
 Renames theOldName in all dependents of theResultParameter by theNewName. 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...
 

Detailed Description

Class which process the events from the event loop.

Member Function Documentation

◆ processEvent()

void ParametersPlugin_EvalListener::processEvent ( const std::shared_ptr< Events_Message > &  theMessage)
virtual

Reimplemented from Events_Listener::processEvent().

Implements Events_Listener.

◆ processObjectRenamedEvent()

void ParametersPlugin_EvalListener::processObjectRenamedEvent ( const std::shared_ptr< Events_Message > &  theMessage)
protected

Processes ObjectRenamed event.

◆ processReplaceParameterEvent()

void ParametersPlugin_EvalListener::processReplaceParameterEvent ( const std::shared_ptr< Events_Message > &  theMessage)
protected

Processes ReplaceParameter event.

◆ renameInPythonExpression()

std::wstring ParametersPlugin_EvalListener::renameInPythonExpression ( const std::wstring &  theExpression,
const std::wstring &  theOldName,
const std::wstring &  theNewName 
)
protected

Renames theOldName in theExpression by theNewName.

◆ renameInParameter()

void ParametersPlugin_EvalListener::renameInParameter ( std::shared_ptr< ParametersPlugin_Parameter theParameter,
const std::wstring &  theOldName,
const std::wstring &  theNewName 
)
protected

Renames theOldName in the expression attribute of theParameter by theNewName.

◆ renameInAttribute()

void ParametersPlugin_EvalListener::renameInAttribute ( std::shared_ptr< ModelAPI_Attribute theAttribute,
const std::wstring &  theOldName,
const std::wstring &  theNewName 
)
protected

Renames theOldName in the text fields of theAttribute by theNewName.

◆ renameInDependents()

void ParametersPlugin_EvalListener::renameInDependents ( std::shared_ptr< ModelAPI_ResultParameter theResultParameter,
const std::wstring &  theOldName,
const std::wstring &  theNewName 
)
protected

Renames theOldName in all dependents of theResultParameter by theNewName.

◆ groupMessages()

virtual EVENTS_EXPORT bool Events_Listener::groupMessages ( )
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.

◆ groupWhileFlush()

void Events_Listener::groupWhileFlush ( const std::shared_ptr< Events_Message > &  theMessage)
protectedinherited

Allows to group messages while they are flushed (for flush for groupMessages=true listeners)

◆ flushGrouped()

void Events_Listener::flushGrouped ( const Events_ID theID)
protectedinherited

Sends myGroups on flush finish.