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 |
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. |
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. |
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 |
|
|