/[gzz]/gzz/doc/pegboard/1021/click.rst
ViewVC logotype

Diff of /gzz/doc/pegboard/1021/click.rst

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by tjl, Fri Oct 25 08:17:06 2002 UTC revision 1.2 by tjl, Mon Oct 28 08:50:38 2002 UTC
# Line 1  Line 1 
1  =============================================================  =============================================================
2  PEG XXX: Mouse clicks and VobScene  PEG 1021: Mouse clicks and VobScene
3  =============================================================  =============================================================
4    
5  :Author:   Tuomas J. Lukka  :Author:   Tuomas J. Lukka
# Line 24  Issues Line 24  Issues
24    
25  - Who stores the knowledge of which coordinate systems are activated?  - Who stores the knowledge of which coordinate systems are activated?
26    
27        RESOLVED: The logical choices are either VobCoorder, VobMatcher or a
28        new class. Of these, VobCoorder can most likely store the information
29        efficiently. Thus, it's VobCoorder for now.
30    
31  - How is depth order etc. defined? This becomes a problem  - How is depth order etc. defined? This becomes a problem
32    if (and when) we want to allow generic 3D manipulation; then,    if (and when) we want to allow generic 3D manipulation; then,
33    we need to actually find the "hit" in the coordinate system.    we need to actually find the "hit" in the coordinate system.
# Line 63  Into VobScene, add :: Line 67  Into VobScene, add ::
67      public void activate(int cs)      public void activate(int cs)
68      public void activate(Object key)      public void activate(Object key)
69    
70    These are automatically delegated to VobCooder's new method ::
71    
72        public void activate(int cs);
73    
74  Also, make VobScene.put(Vob, coords) automatically call one of these.  Also, make VobScene.put(Vob, coords) automatically call one of these.
75    
76  Then, redo getKeyAt() to return the key of the topmost **activated**  Then, redo getKeyAt() to return the key of the topmost **activated**
77  coordsys at the given location, with topmost defined as above.  coordsys at the given location, with topmost defined as above. ::
78    
79      /** Get the topmost activated coordsys at (x,y), whose nearest activated      /** Get the topmost activated coordsys at (x,y), whose nearest activated
80       * direct ancestor (not determining) is parent.       * direct ancestor (not determining) is parent.
# Line 74  coordsys at the given location, with top Line 82  coordsys at the given location, with top
82      public int getCSAt(int parent, float x, float y, float[] targetcoords) ;      public int getCSAt(int parent, float x, float y, float[] targetcoords) ;
83    
84      public Object getKeyAt(int parent, float x, float y, float[] targetcoords) ;      public Object getKeyAt(int parent, float x, float y, float[] targetcoords) ;
85    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26