SHAPER  9.12.0
PlaneGCSSolver_UpdateCoincidence Class Reference

Send events to listeners about changing a constraint. More...

Inheritance diagram for PlaneGCSSolver_UpdateCoincidence:
Inheritance graph

Public Member Functions

 PlaneGCSSolver_UpdateCoincidence (UpdaterPtr theNext=UpdaterPtr())
 
virtual void attach (SketchSolver_Constraint *theObserver, const std::string &theType)
 Attach listener. More...
 
virtual void update (const FeaturePtr &theFeature)
 Send notification about update of the feature to all interested. More...
 
bool addCoincidence (const EntityWrapperPtr &theEntity1, const EntityWrapperPtr &theEntity2)
 Set coincidence between two given entities. More...
 
bool isPointOnEntity (const EntityWrapperPtr &thePoint, const EntityWrapperPtr &theEntity)
 Verifies the point is coincident to the feature. More...
 
void detach (SketchSolver_Constraint *theObserver)
 Detach listener. More...
 

Static Public Member Functions

static const std::string & GROUP ()
 Group of entities, processed by this kind of updater. More...
 

Protected Attributes

UpdaterPtr myNext
 next updater, access if current one unable to process request More...
 
std::list< SketchSolver_Constraint * > myObservers
 list of observers More...
 

Detailed Description

Send events to listeners about changing a constraint.

Member Function Documentation

◆ GROUP()

static const std::string& PlaneGCSSolver_UpdateCoincidence::GROUP ( )
inlinestatic

Group of entities, processed by this kind of updater.

◆ attach()

void PlaneGCSSolver_UpdateCoincidence::attach ( SketchSolver_Constraint theObserver,
const std::string &  theType 
)
virtual

Attach listener.

Parameters
theObserver[in] object which want to receive notifications
theType[in] receive notifications about changing objects of theType and their derivatives

Implements PlaneGCSSolver_Update.

◆ update()

void PlaneGCSSolver_UpdateCoincidence::update ( const FeaturePtr &  theFeature)
virtual

Send notification about update of the feature to all interested.

Implements PlaneGCSSolver_Update.

◆ addCoincidence()

bool PlaneGCSSolver_UpdateCoincidence::addCoincidence ( const EntityWrapperPtr &  theEntity1,
const EntityWrapperPtr &  theEntity2 
)

Set coincidence between two given entities.

Returns
true if the entities does not coincident yet

◆ isPointOnEntity()

bool PlaneGCSSolver_UpdateCoincidence::isPointOnEntity ( const EntityWrapperPtr &  thePoint,
const EntityWrapperPtr &  theEntity 
)

Verifies the point is coincident to the feature.

Returns
true if the point is on the feature

◆ detach()

void PlaneGCSSolver_Update::detach ( SketchSolver_Constraint theObserver)
inlineinherited

Detach listener.

Field Documentation

◆ myNext

UpdaterPtr PlaneGCSSolver_Update::myNext
protectedinherited

next updater, access if current one unable to process request

◆ myObservers

std::list<SketchSolver_Constraint*> PlaneGCSSolver_Update::myObservers
protectedinherited

list of observers