A SERVICE OF

logo

360 Chapter 15: Creating a Custom iTool Widget Interface
Example: a Custom iTool Interface iTool Developer’s Guide
Example: a Custom iTool Interface
This example creates a custom iTool interface that incorporates several standard IDL
widgets to the left of the drawable area and displays a subset of the menus and
toolbars that appear in a standard iTool. A button widget inserts a plot line created
from random data, and several controls allow the user to change the number of points
used to create the line, the line thickness, and the line color. Finally, a button
launches an iTool operation that affects the selected plot data. The finished interface
looks like this:
The example is purposefully simple. All of the actions accomplished by the custom
interface can be accomplished using the standard iTool interface. It does, however,
illustrate the concepts necessary to create a custom iTool interface.
This example consists of three files, described in the following sections:
Widget Interface Creation Routine (Page 361)
iTool Class Definition Routine Discussion (Page 375)
iTool Launch Routine Discussion (Page 377)
Figure 15-1: Example Custom iTool Interface