23 |
package gzz.vob; |
package gzz.vob; |
24 |
|
|
25 |
/** A set of coordinate systems for vobs. |
/** A set of coordinate systems for vobs. |
26 |
|
* <p> |
27 |
|
* Guarantees about rotate and scale!! Not same as affineCoordsys! |
28 |
*/ |
*/ |
29 |
|
|
30 |
public abstract class AffineVobCoorder extends VobCoorder { |
public abstract class AffineVobCoorder extends VobCoorder { |
31 |
/** Default implementation using affineCoordsys. |
/** Default implementation using affineCoordsys. |
32 |
*/ |
*/ |
33 |
public int coordsys(int into, float depth, |
public int ortho(int into, float depth, |
34 |
float x, float y, float w, float h) { |
float x, float y, float w, float h) { |
35 |
return affineCoordsys(into, depth, |
return affineCoordsys(into, depth, |
36 |
x, y, w, 0, 0, h); |
x, y, w, 0, 0, h); |
37 |
} |
} |
38 |
|
public void setOrthoParams(int cs, float depth, |
39 |
|
float x, float y, float w, float h) { |
40 |
|
setAffineParams(cs, depth, |
41 |
|
x, y, w, 0, 0, h); |
42 |
|
} |
43 |
|
|
44 |
|
|
45 |
public abstract int affineCoordsys(int into, float depth, |
public abstract int affineCoordsys(int into, float depth, |
46 |
float x, float y, |
float x, float y, |
47 |
float xx, float xy, float yx, float yy); |
float xx, float xy, float yx, float yy); |
48 |
|
|
49 |
public abstract int rotateXY(int into, float degrees); |
public abstract int rotate(int into, float degrees); |
50 |
|
public abstract int scale(int into, float sx, float sy, float sz); |
51 |
|
|
52 |
|
public abstract void setAffineParams( |
53 |
|
int cs, float depth, float cx, float cy, |
54 |
|
float x_x, float x_y, float y_x, float y_y) ; |
55 |
|
|
56 |
|
public abstract void setRotateParams(int into, float degrees); |
57 |
|
public abstract void setScaleParams(int into, float sx, float sy, float sz); |
58 |
|
|
59 |
} |
} |
60 |
|
|