ITT Rule IDL Version 7.0 Uživatelský manuál Strana 252

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 430
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 251
252 Chapter 9: Creating a File Reader
Example: TIFF File Reader iTool Developers 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.
Zobrazit stránku 251
1 2 ... 247 248 249 250 251 252 253 254 255 256 257 ... 429 430

Komentáře k této Příručce

Žádné komentáře