user manual
226 Chapter 8: Creating a Manipulator
Example: Color Table Manipulator iTool Developer’s Guide
Example: Color Table Manipulator
The following example creates a custom manipulator that allows you to interactively
change the palette applied to a single-plane image. After activating the manipulator
by selecting the Color Table tool icon on the toolbar, position the cursor over the
image and with the mouse button held down, move the mouse to the right or left to
change the palette.
Example Code
The class definition code for this example iTool is included in the file
example3tool__define.pro in the examples/doc/itools subdirectory of
the IDL distribution. Run the example procedure by entering
example3tool__define at the IDL command prompt or view the file in an IDL
Editor window by entering .EDIT example3tool__define.pro.
A segment of the tool created in this example is shown in the following figure.
Figure 8-2: Custom iTool with Color Table Manipulator
Custom Manipulator Icon
ProbeStatusMessage
RegisterManipulator
DESCRIPTION Text
Method Text