]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/swt/InteractiveVtkComposite.java
White space clean-up
[simantics/3d.git] / org.simantics.g3d.vtk / src / org / simantics / g3d / vtk / swt / InteractiveVtkComposite.java
index b20bcac731dc609d7d4943274a0db59e19a07947..b8f9ff0c459ded51c4e38679d8c5d595cd1e0b21 100644 (file)
@@ -280,26 +280,26 @@ public class InteractiveVtkComposite extends vtkSwtComponent implements VtkView{
                        return processPick(picker, apath);
                } else if (pickType == 5) {
                        vtkActor2DCollection coll = ren.GetActors2D(); 
-                   coll.InitTraversal();
-                   vtkActor2D a;
-                   
-                   List<vtkActor2D> picked = new ArrayList<vtkActor2D>();
-                   while ((a = coll.GetNextItem()) != null) {
-                       double pos[] = a.GetPosition();
-                       // TODO : width and height do not seem to affect the perceived size of Actor2D.
-                       //        actual size should be fetched from mapper. 
-                       double w = a.GetWidth();
-                       double h = a.GetHeight();
-                       int minx = (int)(pos[0]-w*0.5);
-                       int miny = (int)(pos[1]-h*0.5);
-                       int maxx = (int)(pos[0]+w*0.5);
-                       int maxy = (int)(pos[1]+h*0.5);
-                       if (minx <= ax && maxx >= ax &&
-                               miny <= ay && maxy >= ay) {
-                               picked.add(a);
-                       }
-                   }
-                   return picked.toArray(new vtkProp[picked.size()]);
+                       coll.InitTraversal();
+                       vtkActor2D a;
+                       
+                       List<vtkActor2D> picked = new ArrayList<vtkActor2D>();
+                       while ((a = coll.GetNextItem()) != null) {
+                               double pos[] = a.GetPosition();
+                               // TODO : width and height do not seem to affect the perceived size of Actor2D.
+                               //        actual size should be fetched from mapper. 
+                               double w = a.GetWidth();
+                               double h = a.GetHeight();
+                               int minx = (int)(pos[0]-w*0.5);
+                               int miny = (int)(pos[1]-h*0.5);
+                               int maxx = (int)(pos[0]+w*0.5);
+                               int maxy = (int)(pos[1]+h*0.5);
+                               if (minx <= ax && maxx >= ax &&
+                                       miny <= ay && maxy >= ay) {
+                                       picked.add(a);
+                               }
+                       }
+                       return picked.toArray(new vtkProp[picked.size()]);
                }
 
                return null;