ITT Rule IDL Version 7.0 Manual de usuario Pagina 222

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 430
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 221
222 Chapter 8: Creating a Manipulator
Creating a New Manipulator iTool Developers Guide
PRO ExampleManip::SetProperty, _REF_EXTRA = _extra
IF (N_ELEMENTS(_extra) GT 0) THEN $
self->IDLitManipulator::SetProperty, _EXTRA = _extra
END
Discussion
The GetProperty and SetProperty methods first define the keywords they will accept.
There must be a keyword for each property of the manipulator type. The keyword
inheritance mechanism allows properties to be retrieved from or set on the
ExampleManip class’ superclasses without knowing the names of the properties.
In this example, there are no properties specific to the
ExampleManip object, so we
simply use the N_ELEMENTS function to check whether the
_extra structure
contains any elements. If it does, we call the superclass’ GetProperty and SetProperty
methods, passing in all of the keywords stored in the
_extra structure.
Vista de pagina 221
1 2 ... 217 218 219 220 221 222 223 224 225 226 227 ... 429 430

Comentarios a estos manuales

Sin comentarios