A SERVICE OF

logo

Chapter 5: Creating an iTool 97
iTool Developer’s Guide Creating a New iTool Class
menu selection Change My Data in the Filters folder of the iTool Operations
menu.
self->RegisterVisualization, 'myOp', 'myOperation', $
IDENTIFIER = 'Operations/Filters/Change My Data'
See “Registering an Operation” on page 182 for additional details. See “Predefined
iTool Operations” on page 148 for a list of operations included in the iTool system as
installed with IDL.
Registering Manipulators
Registering a manipulator with an iTool class allows instances of the iTool to enable
the registered manipulator for use in the iTool. Any number of manipulators can be
registered with a given iTool.
Manipulators are registered by calling the IDLitTool::RegisterManipulator method:
self -> RegisterManipulator,
ManipulatorName
, $
Manipulator_Class_Name, ICON = icon
where ManipulatorName is the string you will use when referring to the manipulator,
Manipulator_Class_Name is a string that specifies the name of the class file that
contains the manipulator’s definition, and icon is a string containing the name of a
bitmap file to be used in the toolbar button. (See “Icon Bitmaps” on page 44 for
details on where bitmap icon files are located.).
Note
The file
Manipulator_Class_Name
__define.pro must exist somewhere in
IDL’s path for the visualization type to be successfully registered.
For example, the following method call registers a manipulator named
myManip for
which the class definition is stored in the file
myManipulator__define.pro, and
specifies the file
arrow.bmp located in the bitmaps subdirectory of the resource
subdirectory of the IDL distribution as the icon to use on the toolbar.
self -> RegisterManipulator, 'myManip', 'myManipulator', $
ICON = 'arrow'
See “Registering a Manipulator” on page 223 for additional details. See “Predefined
iTool Manipulators” on page 198 for a list of manipulators included in the iTool
system as installed with IDL.