165 |
} |
} |
166 |
|
|
167 |
if (GraphicsAPI.getInstance() instanceof GLAPI) { |
if (GraphicsAPI.getInstance() instanceof GLAPI) { |
168 |
c2fCS = vs.orthoCS(0, "C2F",0,0,0, 10,10); |
|
169 |
|
// Create the coordinate systems for the viewport. |
170 |
|
// c2fCS = Canvas to frame, i.e. |
171 |
|
// the transformation from canvas coordinates |
172 |
|
// to frame coordinates. Used for panning and zooming. |
173 |
|
// Now, it is important that it is |
174 |
|
// 1) transformation-descended from 0, since it is |
175 |
|
// just the pan-zoom part |
176 |
|
c2fCS = vs.coords.ortho(0, 0,0,0, 10,10); |
177 |
|
// 2) Child of "into", for correct interpolation. |
178 |
vs.matcher.add(into, c2fCS, "C2F"); |
vs.matcher.add(into, c2fCS, "C2F"); |
179 |
|
|
180 |
|
// The inverse of the previous transform; same |
181 |
|
// rules apply. |
182 |
int c2fCSInv = vs.orthoCS(0, "C2FINV",0,0,0, 10,10); |
int c2fCSInv = vs.orthoCS(0, "C2FINV",0,0,0, 10,10); |
183 |
vs.matcher.add(into, c2fCSInv, "C2FINV"); |
vs.matcher.add(into, c2fCSInv, "C2FINV"); |
184 |
|
|
185 |
setZoomPan(vs, into); |
setZoomPan(vs, into); |
186 |
SinglePaper.i(fen, node, window, nodeview) |
SinglePaper.i(fen, node, window, nodeview) |
187 |
.render(vs, into, c2fCS, c2fCSInv, hook); |
.render(vs, into, c2fCS, c2fCSInv, hook); |
188 |
|
|
189 |
} else { |
} else { |
190 |
int zo = (int)(zoom * 100000); |
int zo = (int)(zoom * 100000); |
191 |
int geometry = vs.orthoBoxCS(into, "FocusGeometry",0, zo,0, 1,1, -panx, -pany); |
int geometry = vs.orthoBoxCS(into, "FocusGeometry",0, zo,0, 1,1, -panx, -pany); |