SHAPER  9.12.0
Model_EventCreator Class Reference

Allows to create ModelAPI messages. More...

Inheritance diagram for Model_EventCreator:
Inheritance graph

Public Member Functions

virtual void sendUpdated (const ObjectPtr &theObject, const Events_ID &theEvent, const bool isGroupped=true) const
 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
 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
 creates deleted message and sends to the loop More...
 
virtual void sendReordered (const std::shared_ptr< ModelAPI_Feature > &theReordered) const
 creates reordered message and sends to the loop More...
 
 Model_EventCreator ()
 must be one per application, the constructor for internal usage only 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.

Constructor & Destructor Documentation

◆ Model_EventCreator()

Model_EventCreator::Model_EventCreator ( )

must be one per application, the constructor for internal usage only

Member Function Documentation

◆ sendUpdated() [1/2]

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

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

Implements ModelAPI_EventCreator.

◆ sendUpdated() [2/2]

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

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

Implements ModelAPI_EventCreator.

◆ sendDeleted()

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

creates deleted message and sends to the loop

Implements ModelAPI_EventCreator.

◆ sendReordered()

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

creates reordered message and sends to the loop

Implements ModelAPI_EventCreator.

◆ get()

const ModelAPI_EventCreator * ModelAPI_EventCreator::get ( )
staticinherited

returns the creator instance

◆ set()

void ModelAPI_EventCreator::set ( const ModelAPI_EventCreator theCreator)
staticinherited

sets the creator instance