Demonstrates how to use the SbEventHandler class.
DESCRIPTION:
This example shows how to use the SbEventHandler class to define a custom event, send an event and handle an event. The SceneBuilder class is simple but represents a realistic application task. It builds a scene graph by adding SoCone nodes one at a time. It defines 2 custom events: onBuildScene and onCreateCone. The onBuildScene event is sent exactly once, when the scene build begins. The onCreateCone event is sent every time a cone object is added to the scene graph. So the application could use this event to, for example, implement a progress bar. The application sets some callbacks to handle these events, showing the different types of callback that SbEventHandler supports.
FILES:
-
Inventor/Features/EventHandler/EventHandlerExample.cxx
SEE ALSO
SbEventHandler