A SERVICE OF

logo

100 Chapter 5: Creating an iTool
Creating a New iTool Class iTool Developer’s Guide
2. Register a visualization type for the tool. We choose the standard image
visualization defined by the
idlitvisimage__define.pro class definition
file,
3. Register an operation. We choose an operation that implements the IDL
BYTSCL function, defined by the
idlitopbytscl__define.pro class
definition file and place a menu item in the iTool Operations menu.
Note
This example is intended to demonstrate how simple it can be to create a new iTool
class definition. While the class definition for an iTool with significant extra
functionality will register more features, the process is the same.
Unregistering Components
In some cases, you may want to subclass from an iTool class that contains features
you do not want to include in your class. Rather than building a class that duplicates
most, but not all, of the functionality of the existing class, you can create a subclass
that explicitly unregisters the components that you don’t want included.
For each Register method of the IDLitTool class there is a corresponding UnRegister
method. Call the UnRegister method with the Name you used when registering the
component. For example, if your superclass registers an operation with the identifier
'MultiplyBy100' and you do not want this operation included in your class, you
would include the following method call in your iTool class Init method:
self->UnRegisterOperation, 'MultiplyBy100'