Previous IDL Demo Library Next

Surface Objects

This demo shows a the graphic capabilities of a an IDL Object Graphics surface object. These include:

You can rotate the surface by positioning the mouse in the draw widget, holding down the left mouse button, and dragging the mouse. The current rotation constraint will be applied as you drag.

Menu Options

File Menu

Select "Quit" to exit the demonstration.

Options Menu

Select "Flat" or "Gouraud" from the "Shading" sub-menu to change the way IDL handles light source shading on the surface.

Select an option from the "Style" sub-menu to change the way the surface is rendered. Note that the "Lego Solid" option may take a few seconds to render.

Select a skirt height value from the "Skirt" sub-menu to choose between different values of the "skirt" that surrounds the object.

Select "Low," "Medium," or "High" from the "Drag Quality" sub-menu to change the way the surface is rendered during rotation. This setting does not affect the rendering quality of the surface when you are not rotating it.

Select an option from the "Tracing" sub-menu to select a "region of interest" in the surface and then display only that region. To select a region, do the following:

"Activate (or Deactivate) Hiding". When this option is active, lines or points on the back of the surface are not displayed. This option is only available if you have selected "Ruled", "Point", or "Wire" from the Style sub-menu.

"Activate (or Deactivate) Vertex Colors". When this option is active, a specific color is assigned to each vertex in the surface.

"Activate (or Deactivate) Texture Map". When this option is active, an opaque, color image is applied to the surface. The image is derived from the elevations of the surface.

"Activate (or Deactivate) Line Style". Activate this option to display the surface using dashed lines. This option not available when the surface is rendered as a solid or as points.

View Menu

Select "Animate" to display a short animation of the surface being warped.

Select "Reset Orientation" to restore the surface to the original orientation in space.

About Menu

Select "About Surface Objects" to display this help text.

Features

Data Minimum Slider

Adjust this slider to select the minimum value to be rendered. Data smaller than this value will not be displayed.

Data Maximum Slider

Adjust this slider to select the maximum value to be rendered. Data larger than this value will not be displayed.

Scaling slider

Adjust this slider to scale the size of the surface between 75% and 125% of its original size.

Constrain Rotations droplist

Select from this list to change how left-click-and-dragging in the graphic will rotate the view.

Tip: If you have the "about Screen Z" rotation constraint selected, click and drag in a motion arcing about the center of the graphics area for consistent rotation speed. The farther from the center you make your arc, the slower the rotation.

Show/Hide Axes Button

Click this button to toggle on or off the display of axes. The axes are color-coded. The red line represents the X axis, green represents Y, and blue represents Z.

Hotkeys

In most situations, you can use your keyboard to select from the Constrain Rotations droplist. To select one of the rotation constraints type:

To toggle the display of the red, green and blue rotation axes type:

  IDL Demo Online Help (October 11, 2006)