OOF2: The Manual
Name
OOF.Graphics_n.Layer.Edit — Edit the currently selected layer.
Synopsis
OOF.Graphics_n.Layer.Edit(n, category, what, how)
Details
- Parent Menu: OOF.Graphics_n.Layer
-
Callback: function
GfxWindow.editLayerCBin moduleooflib.common.IO.ghostgfxwindow -
Parameters:
n- Layer to edit. Type: Integer.
category- The kind of object to display Type: The name of a class of OOF2 objects (eg,
'Microstructure'or'Skeleton'). what- The object to display Type: The path to an OOF2 object.
how- How to display the object Type: An object of the
DisplayMethodclass.
Description
Replace the nth
Layer of the canvas with a new one defined by
category, what, and
how. Those parameters have the same meaning that
they have in OOF.Graphics_n.Layer.New.
In the GUI, a Layer can be edited by selecting it in the Layer
List at the bottom of the Graphics Window and choosing
Edit from the Layer menu, or
by double clicking in the Layer List. Either method will open a
dialog box preloaded with the parameters describing layer number
n. All parameters other than
n can be changed in the dialog.
In text mode and in scripts, the Layer is specified by its
position n in the window's layer list. The unlisted
and invisible layers must be counted when computing
n. This command isn't very friendly in scripts,
because it can be hard to determine n.



