32 |
* represents the root coordinate system (i.e., the whole vob scene). |
* represents the root coordinate system (i.e., the whole vob scene). |
33 |
*/ |
*/ |
34 |
public interface VobCoorder { |
public interface VobCoorder { |
|
/** Get the index of the coordinate system for the given key. |
|
|
* @param inside The coordinate system to search inside |
|
|
* (<code>0</code> for the root coordinate system). |
|
|
*/ |
|
|
int getCoordsys(Object key); |
|
|
|
|
35 |
/** Create a new coordinate system. |
/** Create a new coordinate system. |
36 |
* @param key The key that identifies this coordinate system. |
* @param key The key that identifies this coordinate system. |
37 |
* The key is used for interpolation |
* The key is used for interpolation |
39 |
* system into, <code>0</code> for the root |
* system into, <code>0</code> for the root |
40 |
* coordinate system. |
* coordinate system. |
41 |
*/ |
*/ |
42 |
int coordsys(int into, Object key, float depth, float x, float y, |
int coordsys(int into, float depth, float x, float y, float w, float h); |
|
float w, float h); |
|
|
|
|
|
/** Get the key of the object at given coordinates. |
|
|
* @param x,y The coordinates |
|
|
* @param internalcoords (output) the coordinates (-1..1) relative |
|
|
* to the vob |
|
|
*/ |
|
|
Object getKeyAt(VobMap v, float x, float y, float[] internalcoords); |
|
43 |
|
|
44 |
int getCSIndexAt(float x, float y); |
int getCSIndexAt(float x, float y); |
45 |
|
|
46 |
boolean needInterp(VobCoorder interpTo); |
boolean needInterp(VobCoorder interpTo, int[] interpList); |
47 |
|
|
48 |
Vob.RenderInfo getRenderInfo(int csind); |
Vob.RenderInfo getRenderInfo(int csind); |
49 |
|
|
50 |
void dump(); |
void dump(); |
51 |
} |
} |
52 |
|
|