ITT Rule IDL Version 7.0 User Manual Page 96

  • Download
  • Add to my manuals
  • Print
  • Page
    / 430
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 95
96 Chapter 5: Creating an iTool
Creating a New iTool Class iTool Developers Guide
self->RegisterVisualization,
Visualization_Type
, $
VisType_Class_Name
where Visualization_Type is the string you will use when referring to the
visualization type, and VisType_Class_Name is a string that specifies the name of the
class file that contains the visualization types definition.
Note
The file
VisType_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 visualization type named
myVis
for which the class definition is stored in the file
myVisualization__define.pro:
self->RegisterVisualization, 'myVis', 'myVisualization'
See “Registering a Visualization Type” on page 136 for additional details. See
“Predefined iTool Visualization Classes” on page 115 for a list of visualization types
included in the iTool system as installed with IDL.
Registering Operations
Registering an operation with an iTool class allows instances of the iTool to apply the
registered operation to data selected in the iTool. Any number of operations can be
registered with a given iTool.
Operations are registered by calling the IDLitTool::RegisterOperation method:
self->RegisterOperation,
Operation_Type
,
OpType_Class_Name
, $
IDENTIFIER =
identifier
where Operation_Type is the string you will use when referring to the operation,
OpType_Class_Name is a string that specifies the name of the class file that contains
the operation’s definition, and identifier is a string containing the operation’s iTool
identifier. (The identifier is used to specify where on the iTool’s menu bar the
operation will appear. See “iTool Object Identifiers” on page 28 for a discussion of
iTool system identifiers.)
Note
The file
OpType_Class_Name
__define.pro must exist somewhere in IDLs
path for the visualization type to be successfully registered.
For example, the following method call registers an operation named
myOp for which
the class definition is stored in the file
myOperation__define.pro, and places the
Page view 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 429 430

Comments to this Manuals

No comments