Built-in Editors


Introduction

The View3D widget class provides a set of built-in editors that enable the end-user to interactively edit the attributes of an object or a set of objects, modify the light sources used to illuminate objects in the display and edit the resources of a View3D widget. Most built-in editor menus can be activated using a public function or an action sequence.

Material Editor

The material editor can be used to edit the attributes of selected objects. It can be activated by calling functions XintView3DFrontMaterialEditor or XintView3DBackMaterialEditor, or by invoking action View3DMaterialEditor. Action View3DMaterialEditor is connected to key sequences Ctrl+F (front editor) and Ctrl+B (back editor) in the default translation table.


Figure 20: Material Editor


Global Editor

The Global editor can be used to interactively edit some of the resources of a View3D widget, such as background color, font, mouse sensitivity, etc. This editor is activated by calling function XintView3DGlobalEditor or by invoking action View3DGlobalEditor. Action View3DGlobalEditor is connected to key sequence Ctrl+G in the default translation table.


Figure 21: Global Editor


Color Editor

The color editor can be used to edit the color of an object, the color used to highlight selected objects, the viewer's background color, etc. This editor cannot be activated directly from the application. It can only be activated from another editor, such as the material editor or the global editor.


Figure 22: Color Editor


Light Editor

The light editor can be used to turn on, turn off, position and set the intensity of the various light sources. This editor is activated by calling function XintView3DLightEditor, or by invoking action View3DLightEditor. This action is connected to key sequence Ctrl+L in the default translation table.


Figure 23: Light Editor


Clipping Plane Editor

The clipping plane editor can be used to turn on, turn off and position up to six clipping planes to display a cutaway view of objects. This editor is activated by calling function XintView3DClipPlaneEditor, or by invoking action View3DClipPlaneEditor. This action is connected to key sequence Ctrl+C in the default translation table


Figure 24: Clipping Plane Editor