SHAPER  9.12.0
ModelAPI_EventCreator Class Referenceabstract

Allows to create ModelAPI messages. More...

Inheritance diagram for ModelAPI_EventCreator:
Inheritance graph

Public Member Functions

virtual void sendUpdated (const ObjectPtr &theObject, const Events_ID &theEvent, const bool isGroupped=true) const =0
 creates created, updated or moved messages and sends to the loop More...
 
virtual void sendUpdated (const std::list< ObjectPtr > &theObjects, const Events_ID &theEvent, const bool isGroupped=true) const =0
 creates created, updated or moved messages with the objects collection and sends to the loop More...
 
virtual void sendDeleted (const std::shared_ptr< ModelAPI_Document > &theDoc, const std::string &theGroup) const =0
 creates deleted message and sends to the loop More...
 
virtual void sendReordered (const std::shared_ptr< ModelAPI_Feature > &theReordered) const =0
 creates reordered message and sends to the loop More...
 

Static Public Member Functions

static const ModelAPI_EventCreatorget ()
 returns the creator instance More...
 
static void set (const ModelAPI_EventCreator *theCreator)
 sets the creator instance More...
 

Detailed Description

Allows to create ModelAPI messages.

Member Function Documentation

◆ sendUpdated() [1/2]

virtual void ModelAPI_EventCreator::sendUpdated ( const ObjectPtr &  theObject,
const Events_ID theEvent,
const bool  isGroupped = true 
) const
pure virtual

creates created, updated or moved messages and sends to the loop

Implemented in Model_EventCreator.

◆ sendUpdated() [2/2]

virtual void ModelAPI_EventCreator::sendUpdated ( const std::list< ObjectPtr > &  theObjects,
const Events_ID theEvent,
const bool  isGroupped = true 
) const
pure virtual

creates created, updated or moved messages with the objects collection and sends to the loop

Implemented in Model_EventCreator.

◆ sendDeleted()

virtual void ModelAPI_EventCreator::sendDeleted ( const std::shared_ptr< ModelAPI_Document > &  theDoc,
const std::string &  theGroup 
) const
pure virtual

creates deleted message and sends to the loop

Implemented in Model_EventCreator.

◆ sendReordered()

virtual void ModelAPI_EventCreator::sendReordered ( const std::shared_ptr< ModelAPI_Feature > &  theReordered) const
pure virtual

creates reordered message and sends to the loop

Implemented in Model_EventCreator.

◆ get()

const ModelAPI_EventCreator * ModelAPI_EventCreator::get ( )
static

returns the creator instance

◆ set()

void ModelAPI_EventCreator::set ( const ModelAPI_EventCreator theCreator)
static

sets the creator instance