Visualization Objects
Visualization objects contain data that is designed to produce a visualization. These graphic objects are the basic drawable elements of the IDL Object Graphics system, and are container for other objects. Visualization objects are added to a model object, which controls the spatial positioning of all the objects it contains. Visualization objects combined in a model object (using the model object's Add method) share the same transformation matrix and can be rotated, scaled, or translated together.
Within the category of visualization objects, there is a sub-category of attribute objects. Attribute objects define the appearance of a visualization object, but themselves are not drawn, and thus do not need to be added to a model object. For example, an IDLgrFont object is associated with an IDLgrText object through the FONT property of the text object and defines the type characteristics of the text. Attribute objects are instances of one of the following classes: IDLgrFont, IDLgrPalette, IDLgrPattern, or IDLgrSymbol.
The following table introduces objects that are commonly see in different types of object graphics displays. Your display need not contain these specific combinations.
|
Display Type
|
Description
|
|---|---|
| Plot |
Objects of the IDLgrPlot class are individual plot lines, created from a user-supplied vector of dependent data values (and, optionally, a vector of independent data values). Plots do not automatically include axes. See Working with Plots and Graphs for information on plot, symbol and axis objects. A plot display may include the following objects:
|
| Contour |
Objects of the IDLgrContour class are lines representing contour information plotted from user data. Contour displays, like plot display, may also include legend, colorbar, or symbol objects. See Working with Plots and Graphs. You can also use the following:
|
| Image |
Objects of the IDLgrImage class are two-dimensional arrays of data with an associated mapping of the data values to pixel values. See Working with Image Objects. Displays containing image objects my also include:
|
| Surface |
Objects of the IDLgrSurface class are individual three-dimensional surfaces, created from a user-supplied array of data values. See Working with Surface Objects.
|
| Volume |
Objects of the IDLgrVolume class map a three-dimensional array of data values to a three-dimensional array of voxel colors, which, when drawn, are projected to two dimensions. Volume displays, like surface displays, can also include lights. See Creating Volume Objects. |
| Polygon and Polyline |
Polygons and polylines are low-level graphic objects that can be displayed by themselves or with other objects. See Polygon and Polyline Objects for more information. Objects of the IDLgrPolygon class are individual polygons, created from a user-supplied array of data values.
Objects of the IDLgrPolyline class are individual polylines, created from a user-supplied array of data points. Locations of the data points supplied are connected by a single line. |
| Text |
Objects of the IDLgrText class are text strings that can be positioned within the rendering area. See Text Objects.
Text objects are applicable to any of the previous displays. |
See the Graphic Objects—Visualization category of the "Object Class Library" (IDL Quick Reference) for an alphabetical list of visualization objects.
Note
Objects of the TrackBall class provide a simple interface to allow the user to translate and rotate three-dimensional Object Graphics hierarchies displayed in an IDL WIDGET_DRAW window using the mouse. The trackball object translates widget events from a draw widget (created with the WIDGET_DRAW function) into transformations that emulate a virtual trackball (for transforming object graphics in three dimensions). See Interactive 3D Transformations and "TrackBall" (IDL Reference Guide) for further details.