mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
ParaView-5.0.1: Added the source-tree to ThirdParty-dev and patched as described in the README file
Resolves bug-report http://bugs.openfoam.org/view.php?id=2098
This commit is contained in:
27
ParaView-5.0.1/VTK/Examples/Infovis/Java/HelloWorld.java
Normal file
27
ParaView-5.0.1/VTK/Examples/Infovis/Java/HelloWorld.java
Normal file
@ -0,0 +1,27 @@
|
||||
import vtk.*;
|
||||
|
||||
public class HelloWorld {
|
||||
|
||||
// Load VTK library and print which library was not properly loaded
|
||||
static {
|
||||
if (!vtkNativeLibrary.LoadAllNativeLibraries()) {
|
||||
for (vtkNativeLibrary lib : vtkNativeLibrary.values()) {
|
||||
if (!lib.IsLoaded()) {
|
||||
System.out.println(lib.GetLibraryName() + " not loaded");
|
||||
}
|
||||
}
|
||||
}
|
||||
vtkNativeLibrary.DisableOutputWindow(null);
|
||||
}
|
||||
|
||||
public static void main(String args[]) {
|
||||
vtkRandomGraphSource source = new vtkRandomGraphSource();
|
||||
|
||||
vtkGraphLayoutView view = new vtkGraphLayoutView();
|
||||
view.AddRepresentationFromInputConnection(source.GetOutputPort());
|
||||
|
||||
view.ResetCamera();
|
||||
view.Render();
|
||||
view.GetInteractor().Start();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user