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

Home » Public Forums » archive » Re: pointers in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: pointers in IDL [message #8805 is a reply to message #8800] Mon, 28 April 1997 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Christian Oehreneder <co@ipf.tuwien.ac.at> writes:

> My application uses a not a priori known number of images with different
> sizes, which I want to access easily and flexible, preferrably by
> writing img_i = img(i) or something similar. Because of the different
> sizes of the images this is not easily done in IDL.
> In common programming lanuages it would be natural to have an array of
> pointers to each of the images.
> So far I have not found a possibilty to do this in IDL. Handles are nice
> but they do not allow to have two pointers on the same data. The effect
> is that once you take the value of a handle (without copying it of
> course !!) the handle itself contains an undefined value. It is not
> possible to have a list of images and pass them to some manipulation
> routines by pointer, e.g. multiplying all images by a factor of 2. Of
> course it is possible to take the value form the handle, multiply it and
> set it as value of the handle, but that's rather cumbersome.
>
> Has anyone an idea how to work arround this??

I think there is no good way to work around the cumbersome
method of handles except to upgrade to IDL 5.0 when it comes
out and take advantage of the new POINTER data type. I'm sure
it was added to the IDL language for exactly this reason.

Cheers!

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
Customizable IDL Programming Courses
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Widget problems !!
Next Topic: Re: ASSOC and structures - structure size problem

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

Current Time: Sun Oct 12 06:44:05 PDT 2025

Total time taken to generate the page: 1.19974 seconds