/[fenfire]/fenfire/org/fenfire/view/SpatialPlane.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/SpatialPlane.java

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

revision 1.6 by mudyc, Tue Apr 8 20:05:03 2003 UTC revision 1.7 by mudyc, Tue Apr 8 21:13:01 2003 UTC
# Line 66  public static final String rcsid = "$Id$ Line 66  public static final String rcsid = "$Id$
66          pt[0] += size[0]/2;          pt[0] += size[0]/2;
67          pt[1] += size[1]/2;          pt[1] += size[1]/2;
68                    
   
69          float[] pan = new float[]{1,1};          float[] pan = new float[]{1,1};
70          vs.coords.getSqSize(geom, pan);          vs.coords.getSqSize(geom, pan);
71          float zoom = (vs.coords.transformPoints3(geom, new float[3], null))[0]/100000;          float zoom = (vs.coords.transformPoints3(geom, new float[3], null))[0]/100000;
72    
         pa("pan x/y: " +pan[0]+ "/"+pan[1]);  
   
73          float[] bs = new float[2];          float[] bs = new float[2];
74          cursorBox = -1;          cursorBox = -1;
75                    
           
76          Selector slctr = new SelectorImpl((Resource)container, cont, (RDFNode) null);          Selector slctr = new SelectorImpl((Resource)container, cont, (RDFNode) null);
77          StmtIterator iter = model.listStatements(slctr);          StmtIterator iter = model.listStatements(slctr);
78          Statement stmt = null;          Statement stmt = null;
# Line 90  public static final String rcsid = "$Id$ Line 86  public static final String rcsid = "$Id$
86    
87              nodeview.getSize(n, bs, zoom);              nodeview.getSize(n, bs, zoom);
88              Pair matchKey = new Pair(container, n);              Pair matchKey = new Pair(container, n);
89              int box = vs.orthoCS(0, matchKey, 50,              int box = vs.orthoCS(0, matchKey, pt[2]-.5f,
90                                   pt[0] + (pan[0] + coords[0]) * zoom,                                   pt[0] + (pan[0] + coords[0]) * zoom,
91                                   pt[1] + (pan[1] + coords[1]) * zoom,                                   pt[1] + (pan[1] + coords[1]) * zoom,
92                                   bs[0], bs[1]);                                   bs[0], bs[1]);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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