Defines a visitor for scene graph elements.
The visitor follows a hierarchical visitor pattern, which makes it possible to track entering and leaving composite elements such as assemblies and instances.
Returning true from visitAssemblyEnter or visitInstanceEnter allows child elements to be visited. Returning false skips them. The matching leave method is still invoked afterwards.
optionalvisitAssemblyEnter(assembly):boolean
Defines the logic invoked when entering a visited Assembly.
Returning true allows child instances of assembly to be visited. Returning false skips them. If the method is not defined, child instances are visited.
Visited assembly.
boolean
optionalvisitAssemblyLeave(assembly):void
Defines the logic invoked when leaving a visited Assembly.
Visited assembly.
void
optionalvisitInstanceEnter(instance):boolean
Defines the logic invoked when entering a visited Instance.
Returning true allows the referred model element of instance to be visited. Returning false skips it. If the method is not defined, the referred model element is visited.
Visited instance.
boolean
optionalvisitInstanceLeave(instance):void
Defines the logic invoked when leaving a visited Instance.
Visited instance.
void
optionalvisitPart(part):void
Defines the logic invoked for a visited Part.
Visited part.
void