#include <MappingGraphVisitor.h>
Visitor interface for traversing the mapping graph. More...

Visitor interface for traversing the mapping graph.
This visitor pattern is used to allow algorithms to process nodes in a structured way without modifying their structure or coupling traversal logic with specific component types. Implementations must override visit methods corresponding to the behaviors they intend to handle.
Public Member Functions | |
| virtual | ~MappingGraphVisitor ()=default |
| virtual void | visit (core::behavior::BaseMechanicalState &) |
| Visits a mechanical state node. More... | |
| virtual void | visit (core::BaseMapping &) |
| Visits a base mapping node. More... | |
| virtual void | visit (core::behavior::BaseForceField &) |
| Visits a force field behavior node. More... | |
| virtual void | visit (core::behavior::BaseMass &) |
| Visits a mass behavior node. More... | |
| virtual void | visit (sofa::core::behavior::BaseProjectiveConstraintSet &) |
| Visits a projective constraint node. More... | |
|
virtualdefault |
|
inlinevirtual |
Visits a base mapping node.
| mapping | The mapping component to visit. |
|
inlinevirtual |
Visits a force field behavior node.
| ff | The force field component to visit. |
|
inlinevirtual |
Visits a mass behavior node.
| m | The mass component to visit. |
|
inlinevirtual |
Visits a mechanical state node.
| mstate | The mechanical state component to visit. |
|
inlinevirtual |
Visits a projective constraint node.
| pcs | The projective constraint component to visit. |