Справочник Пользователя для ITT Rule IDL Version 7.0

Скачать
Страница из 430
252
Chapter 9: Creating a File Reader
Example: TIFF File Reader
iTool Developer’s Guide
END
Discussion
The GetProperty method for our TIFF file reader supports a single property named 
IMAGE_INDEX. If this property is specified in the call to the GetProperty method, 
its value is retrieved from the 
_index
 instance data field. Any other properties 
included in the method call are passed to the superclass’ GetProperty method.
SetProperty Method
PRO example1_readtiff::SetProperty, IMAGE_INDEX = image_index, $
_REF_EXTRA = _extra
IF (N_ELEMENTS(image_index) GT 0) THEN $
self._index = image_index
IF (N_ELEMENTS(_extra) GT 0) THEN $
self->IDLitReader::SetProperty, _EXTRA = _extra
END
Discussion
The SetProperty method for our TIFF file reader supports a single property named 
IMAGE_INDEX. If this property is specified in the call to the SetProperty method, 
its value is placed in the 
_index
 instance data field. Any other properties included in 
the method call are passed to the superclass’ SetProperty method.