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;
};
GDmodes_edit_notify_templ GDmodes_edit_templ
int+IPort2 shell_vis;
int reset;
GDmodes_templ+IPort2 &modes;
method+notify_inst+notify_val upd_func = "GDmodes_edit_update";
};
GDmodes_edit_templ GDmodes_edit;
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.
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:
The modes object controlled by the modes editor. modes is a connection to an object that matches type GDmodes_templ.
This parameter controls how points are rendered:
|
|
|
This paremeter controls how lines are rendered:
|
|
|
This parameter controls how surfaces are rendered:
|
|
|
Render using the background color (thus hiding the surface and items behind it) |
This parameter controls how volumes are rendered:
|
|
|
This parameter controls how bounds are rendered:
|
|
|
The parameter controls the usage of normals. Unsupported at the current time.
The parameter controls the usage of colors. Unsupported at the current time.
This parameter when set causes the properties attached to the editor to be reset to their default values.
Libraries.Graphics_Display.Editors.UI_Editors.ModesEditor