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
Auto_redraw
Cmap
Elevation
Gouraud
Lines
Lower
Nogrid
Position
Skirt
Title
A string containing the title that appears in the header of the SurfaceTool window. Default value is "Surface Tool".
If present and nonzero, only the upper portion of the grid is drawn. Upper and Lower are mutually exclusive keywords.
The initial counter-clockwise rotation of the surface around the x-axis, measured in degrees.
The initial counter-clockwise rotation of the surface around the z-axis, measured in degrees.
Background
Specifies the background color name.
Specifies the base color.
Specifies the name of the font used for text.
Specifies the foreground 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).
From the menu, select the algorithm by which the
None
(no shading), Gouraud
, and Elevation.
These controls allow you to rotate the surface (counter-clockwise around the x- or z-axis) a specified number of degrees. The current rotation is shown in the text field to the right of the slider. To modify the rotation, either enter a new value in one of the text fields, or use either slider. If you enter a new value into a text field, press
Return
to apply the new value to the slider and the surface. If you use the sliders, the change is applied immediately as the slider moves.
Controls whether the contents of the display area are redrawn every time a modification is made to one of the controls in the SurfaceTool control area.
The surface is resized to 50-by-50 (with CONGRID) prior to drawing the surface, for faster display of large datasets. The default is for
Auto Congrid
to be enabled. Auto Congrid
does not affect the actual data; it only affects the display of the data. Causes the contents of the SurfaceTool display area to be redrawn.
Destroy the SurfaceTool window and erase it from the screen.
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.