Creates asurface window with a built-in set of controls: these controls allow you to interactively modify surface parameters and view the result of those modifications.
parent (optional) The widget or shell ID of the parent widget (long). If parent is not specified, WgSurfaceTool runs on its own (i.e., in its own event loop).
Auto_redraw If present and nonzero, the surface is automatically redrawn any time one of the surface parameters is adjusted.
Cmap The index of the color table to load when the widget is created; a positive integer in the range (0...15).
Elevation If present and nonzero, the surface is drawn using simple elevation shading. Elevation and Gouraud are mutually exclusive.
Gouraud If present and nonzero, the surface is drawn using Gouraud shading. Gouraud and Elevation are mutually exclusive.
Lines If present and nonzero, lines are drawn instead of a grid.
Lower If present and nonzero, only the lower portion of the grid is drawn. Lower and Upper are mutually exclusive keywords.
Nogrid If present and nonzero, no grid is drawn on the surface.
Position A two-element vector specifying the x- and y-coordinates of the upper-left corner of the SurfaceTool window (long integer). The elements of the vector are [x, y], where x (horizontal) and y (vertical) are specified in pixels. These coordinates are measured from the upper-left corner of the screen.
Skirt If present and nonzero, a skirt is drawn connecting the surface to the x- and y-axes. Refer to Figure 2-169 for an example of a surface with and without a skirt.
Title A string containing the title that appears in the header of the SurfaceTool window. Default value is "Surface Tool".
Background Specifies the background color name.
Figure 2-167 WgSurfaceTool creates an interactive window that lets you use the mouse to control the orientation and appearance of a displayed surface.
Figure 2-168 WgSurfaceTool creates an interactive window that lets you use the mouse to control the orientation and appearance of a displayed surface.
Fishnet
(mesh), Lines
(lines in one direction only), and None
(no lines appear superimposed on a shaded surface).
Both
(lines on both top and bottom), Upper
(lines on upper surface only), and Lower
(lines on lower surface only).
None
(no shading), Gouraud
, and Elevation.
Auto Congrid
to be enabled. Auto Congrid
does not affect the actual data; it only affects the display of the data.
Figure 2-169 A surface with and without a skirt.
Figure 2-170 A surface with and without a skirt.
parent
is defined, WgSurfaceTool is created as a child of parent
; otherwise, WgSurfaceTool runs on its own (i.e., in its own event loop).When you are finished interacting with the WgSurfaceTool window, close it by clicking on the
Dismiss
button.
PRO Sample_wgsurfacetool, parent, tool_shell x = DIST(75)
IF N_ELEMENTS(parent) NE 0 THEN BEGIN WgSurfaceTool, x, parent, tool_shell
ENDIF ELSE BEGIN WgSurfaceTool, x
ENDELSE END
For more information about how to write an application program based on WAVE Widgets, refer to Chapter 5, Using WAVE Widgets, in the PV-WAVE GUI Application Developer's Guide. For more information about how to write an application program based on the PV-WAVE Widget Toolbox, refer to Chapter 6, Using the Widget Toolbox, in the PV-WAVE GUI Application Developer's Guide.