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

Home » Public Forums » archive » Re: Urgent object question
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: Urgent object question [message #28932 is a reply to message #28925] Tue, 22 January 2002 21:11 Go to previous messageGo to previous message
Ted Cary is currently offline  Ted Cary
Messages: 53
Registered: October 2001
Member
Mmmm... IDL_Container? Could I just subclass an IDL_Container and my
"planet" object widget, then fill the container with all my "satellite"
object widgets? If each satellite had an object reference to the planet or
(better) to this very subclass containing the IDL_Container, then all of
them could change the planet object's fields or get its fields via
Set/GetProperty methods. Then all that's left is to override the planet
object's methods so that they also call methods on every object in the
IDL_Container, and there's my two-way communication.

This also solves the problem of destroying the object widgets when their
TLBs are destroyed by the user. In my first scheme, the XManager Cleanup
procedure for each satellite would have to destroy the object part of the
object widget , a problem if the object it is trying to destroy has been
subclassed! The XManager-called cleanup routine would have to test the
object before destroying it, and then if the object was subclassed it would
have to reset all the corresponding self fields that were inherited from
just its object. Using the IDL_ Container, the satellites' self fields are
each in separate objects within the whole "planetary system" object, so they
can be destroyed along with their object and with the TLB of their Widget
interface.

It makes sense now, but I'm also very tired--probably this is what
IDL_Containers are used for all the time. Any obvious problems with this
system before I start coding it tomorrow, besides the fact that I keep
calling my objects planets and satellites? (If there are more formal
programming terms, tell me.)

Thanks.


"David Fanning" <david@dfanning.com> wrote in message
news:MPG.16b7f18d835b7a669897d9@news.frii.com...
> Ted Cary (tedcary@yahoo.com) writes:
>
>> Does anyone have experience with a problem like this? Or any
>> suggestions? Fanning?
>
> Uh, funny you should mention this. I am up to my
> eyeballs in a problem almost exactly like this one. :-(
>
> Let me get back to you when I have a little more
> time and I see the path just a little clearer than
> I do at the moment. But I've been fooling around with
> container objects and object hierarchies that communicate
> with one another in a way that is analogous to the way
> widgets communicate. But it is all still a bit unsettled....
>
> Cheers,
>
> David
> --
> David W. Fanning, Ph.D.
> Fanning Software Consulting
> 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
Previous Topic: Re: problems producing a colobar
Next Topic: Re: max, mean, min of array

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

Current Time: Wed Oct 08 14:57:09 PDT 2025

Total time taken to generate the page: 0.00204 seconds