Tag Archives: OOP

List extensions, part I

(Note: Ron Kneusel, a Senior Consultant in the Exelis VIS Professional Services Group is covering for me with a pair of posts while I’m on vacation. Thanks, Ron!  –MP) The List class was introduced with IDL 8.0.  In this post we’ll … Continue reading

Posted in language, programming | Tagged , , , , , | 1 Comment

An ENVI 5 extension

Last week, I showed an example of an ENVI 5 batch program; this week, I’ll show an extension, the successor to a user function in ENVI Classic. (Be warned, though, that this turned into a long post.) Extensions are programs executed … Continue reading

Posted in data access, programming, language | Tagged , , , | 2 Comments

An ENVI 5 batch program

ENVI 5, released last week, has a new UI and API. I’d like to show a pair of examples that use the API: this week, a batch program; next week, an extension (the successor to a user function). Batch programs … Continue reading

Posted in data access, language, programming | Tagged , , | 5 Comments

Implicit Get/SetProperty calls in user-defined classes, part II

A few months ago, I posted a demonstration of how to use the implicit Get/SetProperty call allowed by subclasses of IDL_Object, using existing Object Graphics classes as the basis. Here, I’d like to go a little further: I’ll write a … Continue reading

Posted in language, programming | Tagged , , , | 1 Comment

A technique for flexible Get/SetProperty methods in IDL 8

(Note: This is a guest post by Ron Kneusel, a Senior Consultant in the Exelis VIS Professional Services Group. I frequently bug Ron with questions about computer science, IDL and Linux. –MP) IDL’s new hash table object, along with some … Continue reading

Posted in language, programming | Tagged , , , , , | 2 Comments

A small, helpful routine

A small item this week because it’s Thanksgiving. In DG, you can close all open windows with a statement like this: IDL> while !d.window ne -1 do wdelete, !d.window Here’s my two-line equivalent in NG, wrapped into a procedure: pro … Continue reading

Posted in language, programming | Tagged , , , | 4 Comments

Implicit Get/SetProperty calls in user-defined classes

Operator overloading in user-defined classes was introduced in IDL 8 through the IDL_Object class. Mike Galloy explains how to use this technique here. One somewhat overlooked feature of IDL_Object is that it allows implicit calls to the GetProperty and SetProperty … Continue reading

Posted in language, programming | Tagged , , , | 2 Comments