| Re: object theoretical question [message #18983] |
Tue, 22 February 2000 00:00 |
Pavel Romashkin
Messages: 166 Registered: April 1999
|
Senior Member |
|
|
I use a container object where I placed the items in a specific order. Then
I called upon them using "get" method. This also gave me such advantage as
the ability to loop through several related objects without cumbersome
searching. I guess, overall, I said the same what David did - don't search,
know where you put it.
Cheers,
Pavel
Brad Gom wrote:
> How computationally expensive is the 'GetByName' method function in the
> IDL object graphics objects?
>
> I am building a rather specific object, which contains plot views,
> models, plots, etc. among other things. In my object's methods, I will
> of course need to access the various members. Is it better to set up
> explicit object references in my object definition for the members I
> will need to access, or to use the 'GetByName' methods to search through
> the various heirarchies to find the object I want? Or are these two
> ways equivalent?
|
|
|
|