SHAPER  9.12.0
PartSetPlugin_Plugin Class Reference

The main class for management the part set operations as plugin. More...

Inheritance diagram for PartSetPlugin_Plugin:
Inheritance graph

Public Member Functions

virtual PARTSETPLUGIN_EXPORT FeaturePtr createFeature (std::string theFeatureID)
 Creates the feature object of this plugin by the feature string ID. More...
 
PARTSETPLUGIN_EXPORT PartSetPlugin_Plugin ()
 Is needed for python wrapping by swig. More...
 
virtual PARTSETPLUGIN_EXPORT void processEvent (const std::shared_ptr< Events_Message > &theMessage)
 Redefinition of Events_Listener method. More...
 
PARTSETPLUGIN_EXPORT std::shared_ptr< ModelAPI_FeatureStateMessagegetFeaturesState ()
 Performs the chenges of enabled/disabled state in the toolbar due to the current state of the application. More...
 
virtual EVENTS_EXPORT bool groupMessages ()
 Listener that needs mostly grouped messages received returns true in this method. More...
 

Protected Member Functions

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

The main class for management the part set operations as plugin.

Constructor & Destructor Documentation

◆ PartSetPlugin_Plugin()

PartSetPlugin_Plugin::PartSetPlugin_Plugin ( )

Is needed for python wrapping by swig.

Member Function Documentation

◆ createFeature()

FeaturePtr PartSetPlugin_Plugin::createFeature ( std::string  theFeatureID)
virtual

Creates the feature object of this plugin by the feature string ID.

Implements ModelAPI_Plugin.

◆ processEvent()

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

Redefinition of Events_Listener method.

Implements Events_Listener.

◆ getFeaturesState()

std::shared_ptr< ModelAPI_FeatureStateMessage > PartSetPlugin_Plugin::getFeaturesState ( )

Performs the chenges of enabled/disabled state in the toolbar due to the current state of the application.

◆ 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.