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

Home » Public Forums » archive » Re: destroying graphics objects
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: destroying graphics objects [message #19555 is a reply to message #19553] Tue, 04 April 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Brad Gom (b_gom@hotmail.com) writes:

> I'm having a little conceptual difficulty with managing graphics
> objects. I am making a plot object which can contain an arbitrary number
> of IDLgrPlot objects. I need to be able to add and remove them from the
> plot at will (and keep track of them in my code). Since this is going
> to be an object-widget, the less things to keep track of in the code the
> better.

Sounds like a job for a LIST object. :-)
You can find one on my web page, if you are interested.

> My question is this: Is is better to store all the IDLgrPlot objects in
> an IDLContainer object for ease of access, or to just search for them in
> the IDLgrModel that they are linked to?

A model *is* a container object. That is, a model has inherited
the CONTAINER object. So anything you add to a model is automatically
destroyed when the model is destroyed. I'd search for the object in
the model.

> If I keep them in a container,
> and then destroy the container, do I have to let the IDLgrModel know
> that I destroyed those objects? Should I remove an object from a model
> before I destroy the object, or does it matter?

I haven't tested this, but I can imagine that a model would have
a great deal of difficulty rendering something that was no longer
in existence. Knowing what I do about computer languages, I would
probably be willing to place a rather largish wager than it *would*
make a difference. I'd remove any object from the model before
I destroyed it.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@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
Previous Topic: Re: Speed up movie in object graphics.
Next Topic: CALL_EXTERNAL PROFESSIONAL HELP

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

Current Time: Sat Oct 11 13:15:45 PDT 2025

Total time taken to generate the page: 1.28421 seconds