/[fenfire]/fenfire/org/fenfire/modules/pp/SinglePaper.java
ViewVC logotype

Diff of /fenfire/org/fenfire/modules/pp/SinglePaper.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by tjl, Wed Apr 16 07:46:47 2003 UTC revision 1.10 by mudyc, Wed Apr 16 10:42:53 2003 UTC
# Line 18  import org.fenfire.vocab.PP; Line 18  import org.fenfire.vocab.PP;
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..
# Line 101  private static final String rcsid = "$Id Line 102  private static final String rcsid = "$Id
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..
# Line 110  private static final String rcsid = "$Id Line 113  private static final String rcsid = "$Id
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);

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26