Skip to content
Discussion options

You must be logged in to vote

Event handlers can modify the events passed in, typically it'll be setting the UIEvent::handled flag so that event handlers later in the sequence know that the event is already handled so they don't get handled twice. One assigns the event handlers to viewer in the sequence you want them to take priority. The event handlers also are intended to be invoked single threaded as the viewer does.

As this is standard approach for handling events it makes sense to use Visitor is used rather than ConstVisitor as a base class. Often event handlers will also be modifying the scene graph in response to events.

In the case of Intersector classes, it's query of the scene graph rather than an operation …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by robertosfield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants