1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>PEG 1003</title> |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>PEG 1003</title> |
2 |
|
|
3 |
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></head> |
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></head><body> |
|
|
|
|
<body> |
|
4 |
<h1>PEG 1003: Fix hierarchical <tt>VobScene</tt>s</h1> |
<h1>PEG 1003: Fix hierarchical <tt>VobScene</tt>s</h1> |
5 |
<p><i> |
<p><i> |
6 |
Author: Tuomas Lukka |
Author: Tuomas Lukka |
69 |
neither in AWT nor in GL. The current system where a Vob has to set its cliprect |
neither in AWT nor in GL. The current system where a Vob has to set its cliprect |
70 |
works for really simple cases but gets inefficient and inconvenient.</li> |
works for really simple cases but gets inefficient and inconvenient.</li> |
71 |
<li><tt>createCoordsys(int transformedBy, int clippedBy, Object key, ...)</tt></li> |
<li><tt>createCoordsys(int transformedBy, int clippedBy, Object key, ...)</tt></li> |
72 |
<li>0 would be default for both.</li> |
<li>0 would be default for both, i.e. no clipping, no transformation.</li> |
73 |
<li>Unfortunately, to get the translate-and-clip effect, you'd need two |
<li>Unfortunately, to get the translate-and-clip effect, you'd need two |
74 |
different coordinate systems:</li> |
different coordinate systems:</li> |
75 |
<ul> |
<ul> |
103 |
|
|
104 |
<p>(Benja:) I thought rotation/scaling? The above is extremely easy to do by |
<p>(Benja:) I thought rotation/scaling? The above is extremely easy to do by |
105 |
putting two cs into each other, the parent being used for clipping, |
putting two cs into each other, the parent being used for clipping, |
106 |
and the child being used for the contents.<br> |
and the child being used for the contents.</p> |
107 |
|
<p>(Tjl):How would you specify that? You'd have to think about the inner coordinate system relative to the outer, right?<br> |
108 |
|
|
109 |
<br> |
<br> |
110 |
Transforming and clipping:<br> |
Transforming and clipping:<br> |
111 |
<img src="d1.png" alt="Showing an example" width="569" height="788"> |
<img src="d1.png" alt="Showing an example" width="569" height="788"> |
113 |
|
|
114 |
</p> |
</p> |
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
|
120 |
<br> |
<br> |
121 |
<br> |
|
122 |
|
<h2>Coordinate systems</h2> |
123 |
|
<p>One thing that is currently not used enough with vobs is the possibility |
124 |
|
of having different coordinate systems defined by the Vob coordinates, as |
125 |
|
discussed in the Graphics techreport.<br> |
126 |
|
</p> |
127 |
|
<p>Especially the "vert" coordinate system would be useful for normal cells.<br> |
128 |
|
</p> |
129 |
|
|
130 |
|
|
131 |
|
|
132 |
<br> |
<br> |
133 |
<br> |
<br> |
134 |
<br> |
<br> |
135 |
|
<br> |
136 |
</body></html> |
</body></html> |