Chapter 4 drag-and-drop and operator
Objectives of this Chapter
After reading this chapter, we will be able to do the following:
Connect the drag-and-drop tool to the domain or engine in the scenario.
L explain the differences between the drag and drop tool and the operator.
L a callback function that can be called when an interactive operation starts or ends, when the mouse moves, or when a field value of the drag/drop tool changes.
L allows users to directly edit nodes in the scenario using the operator in the application.
L customize the appearance of the drag-and-drop tool.
This chapter discusses how to useDrag/dropAndOperatorObjects are special objects with user interfaces and can respond to events. Objects such as handle box, trackball, and direal Al light all use the drag and drop tool to interact with and edit users. For details about how the drag-and-drop tool receives and responds to events, read chapter 1 of this book.
What is a drag-and-drop tool?
The drag-and-drop tool is a node that responds to user input events in scenarios. All the inventor drag-and-drop tools have a built-in user interface. The drag-and-drop tool inserts a geometric object in the scene for picking and user feedback (This geometric object is the user interface of the drag-and-drop tool. Translator's note). Figure 15-1 shows the tree map of the drag and drop tool.
For the complete translation of this chapter, please download the following link:
The inventor mentorOriginal English version. Download
The inventor mentorChinese translation. Download
The inventor mentorSample Code. Download