[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: handle grapics with Document/View design

From: John W. Eaton
Subject: Re: handle grapics with Document/View design
Date: Thu, 18 Aug 2005 11:57:32 -0400

On 18-Aug-2005, Brian Blais wrote:

| In my implementation of the gui for octave (at 
| http://web.bryant.edu/~bblais/octave) I have just that: an octave 
| structure array, and there is a "handle" field.  Then I do:
|    handles=[uiobjects.handle];
|    idx=find(handles==h);
| to find the actual index to the array.  It is pretty fast.
| all of the set/get operations do the same thing.

So all the uiobjects are in a flat structure array?  What if the set
of uiobjects is arranged in a tree structure, where one uiobject might
have other uiobjects as children?  Then I don't think the find trick
is enough.  In that case, wouldn't you need to search through the tree
recursively, looking at each set of children in the uiobject tree?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]