SHAPER  9.12.0
SketchPlugin_OverConstraintsResolver Class Reference
Inheritance diagram for SketchPlugin_OverConstraintsResolver:
Inheritance graph

Public Member Functions

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

Protected Member Functions

bool perform ()
 Perform algorithm. More...
 
void setConstraints (const std::set< ObjectPtr > &theConstraints)
 Set set of constraints to check. More...
 
bool checkArcsAboutTangentialConflict ()
 Check arcs in sketch about tangential conflict. More...
 
bool checkHorizontalOrVerticalConflict ()
 Check lines in sketch about horizontal or vertical conflict. 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...
 

Member Function Documentation

◆ processEvent()

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

Redefinition of Events_Listener method.

Implements Events_Listener.

◆ groupMessages()

virtual bool SketchPlugin_OverConstraintsResolver::groupMessages ( )
inlinevirtual

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 from Events_Listener.

◆ perform()

bool SketchPlugin_OverConstraintsResolver::perform ( )
protected

Perform algorithm.

◆ setConstraints()

void SketchPlugin_OverConstraintsResolver::setConstraints ( const std::set< ObjectPtr > &  theConstraints)
protected

Set set of constraints to check.

◆ checkArcsAboutTangentialConflict()

bool SketchPlugin_OverConstraintsResolver::checkArcsAboutTangentialConflict ( )
protected

Check arcs in sketch about tangential conflict.

◆ checkHorizontalOrVerticalConflict()

bool SketchPlugin_OverConstraintsResolver::checkHorizontalOrVerticalConflict ( )
protected

Check lines in sketch about horizontal or vertical conflict.

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