![]() |
![]() |
![]() |
![]() |
GDmodes_edit
Synopsis
define an editor for the Graphics Display Kit modes
group GDmodes_edit_notify_templ {
enum points {
choices = {"Inherit", "None", "Pixel", "Line Directed","Arrow
Directed", "Cone Directed", "Cross Tangent"};
};
enum lines {
choices = {"Inherit", "None", "Regular", "Tube",
"Arrow", "Ribbon"};
};
enum surf {
choices = {"Inherit", "None", "No Lighting",
"Flat", "Gouraud", "Background"};
};
enum volume {
choices = {"Inherit", "None", "BTF Texture", "Ray Tracer"};
};
enum bounds {
choices = {"Inherit", "None", "Bounds"};
};
enum normals {
choices = {"Inherit", "None", "Vertex"};
};
int colors;
enum outline {
choices = {"On", "Off"};
};
};GDmodes_edit_notify_templ GDmodes_edit_templ {
int+IPort2 shell_vis;
int reset;
GDmodes_templ+IPort2+read &modes;
omethod+notify_inst+notify_val upd_func = "GDmodes_edit_update";
};GDmodes_edit_templ GDmodes_edit;
Description
These templates define an editor for the Graphics Display Kit light modes. GDmodes_edit_notify_templ and GDmodes_edit_templ define the elements that cause the modes editor's method to execute. GDmodes_edit is the version you instance.As an alternative to using GDmodes_edit and having to define your own user interface for the editor, you can use ModesEditor, an application component. ModesEditor contains GDmodes_edit and defines a user interface.
Input
The parameter controls whether the editor is active: 0 means inactive; 1 means active.shell_vis is only checked modes (see below) has changed. In this case, if shell_vis is not set to 1, the editor does not update. This inhibits updates to the editor's other subobjects -- which are normally attached to UI widgets -- when the user interface is not visible. The editor always executes when the values of the other parameters change. This means modes is always updated even if the user interface is not visible.Typically you connect shell_vis to the same UIcmd object that the user selects to display the editor's user interface:shell_vis => UICmd.do;
The modes object controlled by the modes editor. modes is a connection to an object that matches type GDmodes_templ.
Parameters
This parameter when set causes the properties attached to the editor to be reset to their default values.
Example
Libraries.Graphics_Display.Editors.UI_Editors.ModesEditor
File
See also related modules
![]() |
![]() |
![]() |
![]() |