X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d.vtk%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fvtk%2Fawt%2FInteractiveVtkPanel.java;fp=org.simantics.g3d.vtk%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fvtk%2Fawt%2FInteractiveVtkPanel.java;h=9ede257ed5cf3436bbc1ad6157bd648dd84cd5d1;hb=57aed4275123f2c0751684acf344d768a107ab2c;hp=09e88ae6534fd86de33a0a4ef9294103fcf09313;hpb=77bd57393f474a10166872fe90a7b92f2446e9b5;p=simantics%2F3d.git diff --git a/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/awt/InteractiveVtkPanel.java b/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/awt/InteractiveVtkPanel.java index 09e88ae6..9ede257e 100644 --- a/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/awt/InteractiveVtkPanel.java +++ b/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/awt/InteractiveVtkPanel.java @@ -29,6 +29,7 @@ import vtk.vtkAssemblyPath; import vtk.vtkCellPicker; import vtk.vtkGenericRenderWindowInteractor; import vtk.vtkInteractorStyleTrackballCamera; +import vtk.vtkObject; import vtk.vtkObjectBase; import vtk.vtkPanel; import vtk.vtkPointPicker; @@ -52,6 +53,10 @@ public class InteractiveVtkPanel extends vtkPanel implements VtkView { public InteractiveVtkPanel() { super(); + + // This is actually a static method in C++ + new vtkObject().GlobalWarningDisplayOff(); + iren = new vtkGenericRenderWindowInteractor(); iren.SetRenderWindow(rw); iren.TimerEventResetsTimerOff();