@@ -0,0 +1,994 @@
+import vtk.vtkNativeLibrary;%0Aimport vtk.vtkFunctionParser;%0A%0Apublic class FunctionParser %0A%7B%0A  // -----------------------------------------------------------------%0A  // Load VTK library and print which library was not properly loaded%0A  static %0A  %7B%0A    if (!vtkNativeLibrary.LoadAllNativeLibraries()) %0A    %7B%0A      for (vtkNativeLibrary lib : vtkNativeLibrary.values()) %0A      %7B%0A        if (!lib.IsLoaded()) %0A        %7B%0A          System.out.println(lib.GetLibraryName() + %22 not loaded%22);%0A        %7D%0A      %7D%0A    %7D%0A    vtkNativeLibrary.DisableOutputWindow(null);%0A  %7D%0A  // -----------------------------------------------------------------%0A%0A  public static void main(String args%5B%5D) %0A  %7B%0A   vtkFunctionParser functionParser = new vtkFunctionParser();%0A   functionParser.SetFunction(%22a+b%22);%0A   functionParser.SetScalarVariableValue( %22a%22, 2);%0A   functionParser.SetScalarVariableValue( %22b%22, 3);%0A   %0A   double result = functionParser.GetScalarResult();%0A   %0A   System.out.println(%22Result:%22 +%22 %22 +result);%0A  %7D%0A%7D%0A

Create FunctionParser.java