You might create your own node if you want to use it in several different applications or (Note that you can also create your own nodes to handle events. ![]() This is probably the easiest mechanism to use. You can use Inventor's automatic event-handling mechanism, provided by the scene manager, in which certain kinds of nodes handle events (see “How Nodes Handle Events: SoHandleEventAction”). The SoHandleEventAction is discussed in detail, as well as the concepts of event callback functions, the selection node, and highlighting. Important concepts introduced in this chapter include the Inventor programming model for event handling and the use of the SoXtRenderArea, a widget that performs rendering and event handling on the Inventor database. In much the same way a window system passes events to its client windows, Inventor passes events to database objects that can handle them. This chapter describes the Open Inventor event model, which provides a simple mechanism for passing events such as a key press or mouse movement to objects in the database for processing. Write selection callback functions to allow the application to perform certain operations when the selection list changes ![]() Implement your own selection policy by creating an event callback node Select objects in the scene using one of Inventor's built-in selection policies ![]() ![]() Explain how Open Inventor handles input events
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |