]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/awt/InteractiveVtkPanel.java
White space clean-up
[simantics/3d.git] / org.simantics.g3d.vtk / src / org / simantics / g3d / vtk / awt / InteractiveVtkPanel.java
index df91a5d4c7960d1735e311aadcaa7754b5b57583..09e88ae6534fd86de33a0a4ef9294103fcf09313 100644 (file)
@@ -42,11 +42,11 @@ import vtk.vtkScenePicker;
 public class InteractiveVtkPanel extends vtkPanel implements VtkView {
        
        protected vtkGenericRenderWindowInteractor iren;
-    
+       
 
        public vtkGenericRenderWindowInteractor getRenderWindowInteractor() {
-        return this.iren;
-    }
+               return this.iren;
+       }
        private static final long serialVersionUID = 2815073937537950615L;
        
        
@@ -54,13 +54,13 @@ public class InteractiveVtkPanel extends vtkPanel implements VtkView {
                super();
                iren = new vtkGenericRenderWindowInteractor();
                iren.SetRenderWindow(rw);
-        iren.TimerEventResetsTimerOff();
-        iren.SetSize(200, 200);
-        iren.ConfigureEvent();
-        vtkInteractorStyleTrackballCamera style = new vtkInteractorStyleTrackballCamera();
-        iren.SetInteractorStyle(style);
-        addDeletable(style);
-        addDeletable(iren);
+               iren.TimerEventResetsTimerOff();
+               iren.SetSize(200, 200);
+               iren.ConfigureEvent();
+               vtkInteractorStyleTrackballCamera style = new vtkInteractorStyleTrackballCamera();
+               iren.SetInteractorStyle(style);
+               addDeletable(style);
+               addDeletable(iren);
        }
        
        @Override
@@ -119,14 +119,14 @@ public class InteractiveVtkPanel extends vtkPanel implements VtkView {
        }
        
        public void setSize(int x, int y) {
-        if (windowset == 1) {
-            Lock();
-            rw.SetSize(x, y);
-            iren.SetSize(x, y);
-            iren.ConfigureEvent();
-            UnLock();
-        }
-    }
+               if (windowset == 1) {
+                       Lock();
+                       rw.SetSize(x, y);
+                       iren.SetSize(x, y);
+                       iren.ConfigureEvent();
+                       UnLock();
+               }
+       }
 
        private vtkScenePicker scenePicker;