@@ -0,0 +1,1707 @@
+import vtk.vtkNativeLibrary;%0Aimport vtk.vtkRenderWindowInteractor;%0Aimport vtk.vtkSplineWidget2;%0Aimport vtk.vtkNamedColors;%0Aimport vtk.vtkRenderWindow;%0Aimport vtk.vtkRenderer;%0A%0A%0Apublic class SplineWidget  %0A%7B%0A%09%0A%09  // -----------------------------------------------------------------%0A%09  // Load VTK library and print which library was not properly loaded%0A%09  static %7B%0A%09    if (!vtkNativeLibrary.LoadAllNativeLibraries()) %0A%09    %7B%0A%09      for (vtkNativeLibrary lib : vtkNativeLibrary.values()) %0A%09      %7B%0A%09        if (!lib.IsLoaded()) %0A%09        %7B%0A%09          System.out.println(lib.GetLibraryName() + %22 not loaded%22);%0A%09        %7D%0A%09      %7D%0A%09    %7D%0A%09    vtkNativeLibrary.DisableOutputWindow(null);%0A%09  %7D%0A%09  // -----------------------------------------------------------------%0A%09  %0A%0A%09  public static void main(String s%5B%5D) %0A%09  %7B%0A%09%09  %0A%09%09  vtkNamedColors Color = new vtkNamedColors(); %0A%0A%09%09   //For Renderer Background Color%0A%09%09   double BgColor%5B%5D = new double%5B4%5D;%0A%09%09   %09   //Change Color Name to Use your own Color for Renderer Background%0A%09%09   Color.GetColor(%22DarkSalmon%22,BgColor);%0A%09%09%0A%09%09   // An interactor%0A%09%09   vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor();%0A%09%09  %0A%09%09   // Create the renderer, render window and interactor.%0A%09       vtkRenderer ren = new vtkRenderer();%0A%09       vtkRenderWindow renWin = new vtkRenderWindow();%0A%09       renWin.AddRenderer(ren);%0A%09       renWin.SetInteractor(iren);%0A%09       iren.SetRenderWindow(renWin);%0A%09       ren.ResetCamera();%0A%09       ren.SetBackground(BgColor);%0A%09       %0A%09       vtkSplineWidget2 splineWidget = new vtkSplineWidget2();%0A%09 %09   splineWidget.SetInteractor(iren);%0A%09 %09  %0A%09%09  %0A%09%09   iren.Initialize();%0A%09%09   splineWidget.On();%0A%09%09   iren.Start();%0A%09%09   %0A%09  %7D%0A%09    %0A%09  %7D%0A%09%0A

Create SplineWidget.java