18 |
*/ |
*/ |
19 |
public class SinglePaper { |
public class SinglePaper { |
20 |
private static final String rcsid = "$Id$"; |
private static final String rcsid = "$Id$"; |
21 |
public static boolean dbg = false; |
public static boolean dbg = true; |
22 |
private static void pa(String s) { System.out.println("SinglePaper:"+s); } |
private static void p(String s) { if (dbg) pa(s); } |
23 |
|
private static void pa(String s) { System.out.println("SinglePaper::"+s); } |
24 |
|
|
25 |
// Singleton <sigh> why do I do everything with singleton? |
// Singleton <sigh> why do I do everything with singleton? |
26 |
// Even I hate globals.. |
// Even I hate globals.. |
102 |
final int inversePanZoom, |
final int inversePanZoom, |
103 |
NodePlacementHook hook) |
NodePlacementHook hook) |
104 |
{ |
{ |
105 |
|
p("render paper: "+node); |
106 |
|
|
107 |
final NodePlacementHook hook_final = hook; |
final NodePlacementHook hook_final = hook; |
108 |
|
|
109 |
// don't want to move this away from here.. |
// don't want to move this away from here.. |
113 |
final GLVobCoorder_Gen glc = (GLVobCoorder_Gen)vs.coords; |
final GLVobCoorder_Gen glc = (GLVobCoorder_Gen)vs.coords; |
114 |
float[] sqs = new float[2]; |
float[] sqs = new float[2]; |
115 |
glc.getSqSize(frameCS, sqs); |
glc.getSqSize(frameCS, sqs); |
116 |
if (sqs[1] < 5) return; |
p("Sqs frame: "+sqs[0]+" "+sqs[1]); |
117 |
if (dbg) pa("Sqs frame: "+sqs[0]+" "+sqs[1]); |
//if (sqs[1] < 5) return; |
118 |
|
|
119 |
// CS from center of frameCS to screen |
// CS from center of frameCS to screen |
120 |
int framecenterCS = vs.translateCS(frameCS, "FCTR", sqs[0]/2, sqs[1]/2); |
int framecenterCS = vs.translateCS(frameCS, "FCTR", sqs[0]/2, sqs[1]/2); |