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

Home » Public Forums » archive » IDL objects and names
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: IDL objects and names [message #34066 is a reply to message #33970] Wed, 12 February 2003 07:09 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Sebastian (s@visita2.die.upm.es) writes:

> that lostObject thing is cool, made me re-read the OBJ_VALID docs....
> Now I am of course a little bit lazy and don't want to write a PrintName
> procedure for each object type I am using.
> Is there something like an IDLClass that all IDLgr* classes inherit from?
> I know that the reference manual says for most of the IDLgr* classes "This
> class has no superclasses", but is it true? I mean, what's the point of
> having "objects" and making no use of their (theoretical) capabilities?

No, I'm afraid it is true. One of the huge disadvantages of
IDL objects is that they are based on named structures, which
means the field names in the structure can't be duplicated.
In practice, this makes it hard to have deep inheritance
hierarchies. But what is even worse, is it makes it extremely
difficult to have multiple inheritance hierarchies.

So, for example, if IDLgrSurface and IDLgrAxis both inherited,
say, IDLgrBasicThing, then I could not make an IDLgrPlot object
that inherited both IDLgrSurface and IDLgrAxis because the
IDLgrBasicThing structure would be added to the definition
twice. It is a very difficult limitation to get around, especially
with large object programs. I think this is one of the reasons
we haven't seen RSI offer much in the way of higher level
object graphics functionality yet.

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: missing a dimension in IDLgrVolume
Next Topic: Re: Questions about using CATCH

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

Current Time: Wed Oct 08 19:58:19 PDT 2025

Total time taken to generate the page: 0.00463 seconds