ITT Rule IDL Version 7.0 User Manual Page 238

  • Download
  • Add to my manuals
  • Print
  • Page
    / 430
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 237
238 Chapter 9: Creating a File Reader
Creating a New File Reader iTool Developer’s Guide
Return Value
If all of the routines and methods used in the Init method execute successfully, it
should indicate successful initialization by returning 1. Other file reader classes that
subclass from your file reader class may check this return value, as your routine
should check the value returned by any superclass Init methods called.
Registering Properties
File reader objects can register properties with the iTool. Registered properties show
up in the property sheet interface shown in the system preferences browser (described
in “Properties of the iTools System on page 85), and can be modified interactively
by users. The iTool property interface is described in detail in Chapter 4, “Property
Management”.
Register a property by calling the RegisterProperty method of the IDLitComponent
class:
self->RegisterProperty,
PropertyIdentifier
[,
TypeCode] $
[, ATTRIBUTE = value]
where PropertyIdentifier is a string that uniquely identifies the property, TypeCode is
an integer between 0 and 9 specifying the property data type, and ATTRIBUTE is a
property attribute. See “Registering Properties on page 74 for details.
Note
A file reader need not register any properties at all, if the read operation is simple.
Many of the standard iTool image file readers work without registering any
properties.
Setting Property Attributes
If a property has already been registered, perhaps by a superclass of your file reader
class, you can change the registered attribute values using the SetPropertyAttribute
method of the IDLitComponent class:
self->SetPropertyAttribute,
Identifier
where Identifier is the name of the keyword to the GetProperty and SetProperty
methods used to retrieve or change the value of this property. The Identifier is
specified in the call to RegisterProperty either via the PropertyName argument or the
IDENTIFIER keyword. See “Property Attributes” on page 78 for additional details.
Page view 237
1 2 ... 233 234 235 236 237 238 239 240 241 242 243 ... 429 430

Comments to this Manuals

No comments