50 |
/** The key used to put the unitcoordsys under whcoordsys. |
/** The key used to put the unitcoordsys under whcoordsys. |
51 |
*/ |
*/ |
52 |
static public final Object UNITCOORDSYSKEY = new Object(); |
static public final Object UNITCOORDSYSKEY = new Object(); |
53 |
|
static public final Object CULLEDCOORDSYSKEY = new Object(); |
54 |
|
|
55 |
|
int cullTo = -1; |
56 |
|
|
57 |
VobScene vs; |
VobScene vs; |
58 |
float w, h; |
float w, h; |
59 |
int whcoordsys; |
int whcoordsys; |
60 |
|
int culledwhcoordsys; |
61 |
int unitcoordsys; |
int unitcoordsys; |
62 |
|
|
63 |
|
|
71 |
this.vs = vs; |
this.vs = vs; |
72 |
this.whcoordsys = whcoordsys; |
this.whcoordsys = whcoordsys; |
73 |
this.unitcoordsys = -1; |
this.unitcoordsys = -1; |
74 |
|
this.culledwhcoordsys = -1; |
75 |
this.w = w; |
this.w = w; |
76 |
this.h = h; |
this.h = h; |
77 |
} |
} |
78 |
|
|
79 |
|
public void setCull(int cull) { |
80 |
|
this.cullTo = cull; |
81 |
|
} |
82 |
|
|
83 |
|
|
84 |
/** Create the unit square coordsys. |
/** Create the unit square coordsys. |
85 |
*/ |
*/ |
86 |
private void createUnitCoordsys() { |
private void createUnitCoordsys() { |
98 |
/** Return the standardized coordinate system in which |
/** Return the standardized coordinate system in which |
99 |
* the rectangle (0,w)x(0,h) maps onto the final box. |
* the rectangle (0,w)x(0,h) maps onto the final box. |
100 |
*/ |
*/ |
101 |
public int getWHCoordsys() { return whcoordsys;} |
public int getWHCoordsys() { |
102 |
|
if(cullTo >= 0) { |
103 |
|
// XXX Fill in when three-component cull is done |
104 |
|
// if(culledwhcoordsys < 0) |
105 |
|
// culledwhcoordsys = vs. |
106 |
|
} |
107 |
|
return whcoordsys; |
108 |
|
} |
109 |
/** Return the unit square coordinate system in which |
/** Return the unit square coordinate system in which |
110 |
* the rectangle (0,1)x(0,1) maps onto the final box. |
* the rectangle (0,1)x(0,1) maps onto the final box. |
111 |
*/ |
*/ |