comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Interactive Graphics Library
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Interactive Graphics Library [message #80176] Sat, 12 May 2012 02:18 Go to next message
Raphael Sadoun is currently offline  Raphael Sadoun
Messages: 4
Registered: May 2012
Junior Member
Dear IDL users,

I have been reading this great newsgroup for quite a while now but
never got a a change to post so
Hi to everyone :)

After using the wonderful cg* routines from David's fanning Coyote
Library, I have thought that it might
be nice to have interactive capabilities in IDL direct graphics
(similar to the new FG routines but with the speed
of DG). So I have tried to code an object oriented framework to
achieve this goal. In order to not reinvent the weel,
I built it upon the already existing (and excellent) Catalyst Library
written by D. Fanning and D. Burridge.

I have been somewhat successful and I was quite satisfied with the
result so I thought I could share it
in case other people might find it useful. You can download the full
Interactive Graphics Library here :

http://igl.googlecode.com/files/Interactive_Graphics_Library _1.0.zip

To install the code, just extract the folder in a directory on your
idl path.
Because it depends on the Coyote, Catalyst and TextToIDL Libraries, I
have included these as well in the ZIP file
so be careful if you already have a copy of those.

After installation, you can view a list of available routines by
typing "iglhelp" at the IDL prompt.
Most Direct Graphics routines have their interactive equivalent and I
have added routines to produce a legend and a colorbar. There is also
a routine that saves the content of the current window to a disk file.

The code has still probably lots of issues and I am not sure it is
totally portable. I have tested it on a UNIX machine as well as
moderately on WINDOWS. If you find bugs, you can post them here and I
will try to fix them
if I can find the time (being a graduate student does not help!).

Cheers

Raphael
Re: Interactive Graphics Library [message #80225 is a reply to message #80176] Mon, 21 May 2012 12:26 Go to previous messageGo to next message
Russell Ryan is currently offline  Russell Ryan
Messages: 122
Registered: May 2012
Senior Member
On May 21, 7:38 am, Raphael Sadoun <raphael.sad...@gmail.com> wrote:
> On May 12, 3:45 pm, Coyote <sageande...@gmail.com> wrote:
>
>> Raphael Sadoun writes:
>>> You can download the full
>>> Interactive Graphics Library here :
>
>>> http://igl.googlecode.com/files/Interactive_Graphics_Library _1.0.zip
>
>>> To install the code, just extract the folder in a directory on your
>>> idl path.
>>> Because it depends on the Coyote, Catalyst and TextToIDL Libraries, I
>>> have included these as well in the ZIP file
>>> so be careful if you already have a copy of those.
>
> I have corrected some minor issues which I did not catch before
> releasing the code.
> Also, I received an email pointing out some inconsistency about the
> way the resource directory
> if referred to in the code.
>
> You can find the corrected code at the same address as before :
>
> http://igl.googlecode.com/files/Interactive_Graphics_Library _1.0.zip
>
> Cheers
>
> Raphael

Wow, this is super cool, Raphael. I'm looking forward to digging in
to this!
R
Re: Interactive Graphics Library [message #80279 is a reply to message #80176] Thu, 24 May 2012 08:36 Go to previous message
Raphael Sadoun is currently offline  Raphael Sadoun
Messages: 4
Registered: May 2012
Junior Member
On May 23, 3:34 am, Russell Ryan <rr...@stsci.edu> wrote:
>
> So, I was looking at the code.  Can either of you two explain the
> virtues of writing a GUI as an object?

Well, one of the basic principle of the Interactive Graphics Library
is that
all the graphics displayed in the window constitute an object tree
hierarchy with the window object
at the top. So the main advantage for writing the window as an object
was to benefit the automatic
memory management that the catalyst library provides with the CATATOM
class (using reference couting).
This is really needed in order to avoid memory leakage when using an
object-oriented framework like the IGL which can potentially
creates a LOT of objects!

Now, it is also generally easier to write widget applications (GUI) as
objects since the state of the
application can be stored directly with the object (class arguments)
instead of using a pointer to a
structure (often referred as the "info" structure).


Cheers

Raphael
Re: Interactive Graphics Library [message #80300 is a reply to message #80225] Tue, 22 May 2012 18:34 Go to previous message
Russell Ryan is currently offline  Russell Ryan
Messages: 122
Registered: May 2012
Senior Member
On May 21, 3:26 pm, Russell Ryan <rr...@stsci.edu> wrote:
> On May 21, 7:38 am, Raphael Sadoun <raphael.sad...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
>> On May 12, 3:45 pm, Coyote <sageande...@gmail.com> wrote:
>
>>> Raphael Sadoun writes:
>>>> You can download the full
>>>> Interactive Graphics Library here :
>
>>>> http://igl.googlecode.com/files/Interactive_Graphics_Library _1.0.zip
>
>>>> To install the code, just extract the folder in a directory on your
>>>> idl path.
>>>> Because it depends on the Coyote, Catalyst and TextToIDL Libraries, I
>>>> have included these as well in the ZIP file
>>>> so be careful if you already have a copy of those.
>
>> I have corrected some minor issues which I did not catch before
>> releasing the code.
>> Also, I received an email pointing out some inconsistency about the
>> way the resource directory
>> if referred to in the code.
>
>> You can find the corrected code at the same address as before :
>
>> http://igl.googlecode.com/files/Interactive_Graphics_Library _1.0.zip
>
>> Cheers
>
>> Raphael
>
> Wow, this is super cool, Raphael.  I'm looking forward to digging in
> to this!
> R

So, I was looking at the code. Can either of you two explain the
virtues of writing a GUI as an object?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Subscription 'daily digest' problems?
Next Topic: Type of array to store large numbers

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:57:03 PDT 2025

Total time taken to generate the page: 0.00387 seconds