3 import java.util.Properties;
4 import java.util.StringTokenizer;
6 public class vtkSettings
8 private static String GetVTKBuildLibDir() { return "C:/dev/VTK-8.2.0/win64/bin"; }
9 private static String GetVTKInstallLibDir() { return "C:/Program Files/VTK/"; }
11 private static String[] Split(String str, String sep)
13 StringTokenizer st = new StringTokenizer(str, sep);
14 int size = st.countTokens();
15 String[] res = new String[size];
17 while (st.hasMoreTokens())
19 res[cnt] = st.nextToken();
25 public static String GetVTKLibraryDir()
28 Properties p = System.getProperties();
29 String path_separator = p.getProperty("path.separator");
30 String s = p.getProperty("java.class.path");
31 String[] paths = vtkSettings.Split(s, path_separator);
33 for ( cc = 0; cc < paths.length; cc ++ )
35 if ( paths[cc].endsWith("vtk.jar") )
37 lpath = paths[cc].substring(0, paths[cc].length()-"vtk.jar".length()-1);
42 lpath = vtkSettings.GetVTKInstallLibDir();
47 public static String[] GetKits()
49 return vtkSettings.Split("CommonCore;CommonMath;CommonMisc;CommonSystem;CommonTransforms;CommonDataModel;CommonColor;CommonExecutionModel;CommonComputationalGeometry;FiltersCore;FiltersGeneral;ImagingCore;ImagingFourier;FiltersStatistics;FiltersExtraction;InfovisCore;FiltersGeometry;FiltersSources;RenderingCore;RenderingFreeType;RenderingContext2D;ChartsCore;IOCore;IOLegacy;IOXMLParser;DomainsChemistry;RenderingOpenGL2;DomainsChemistryOpenGL2;IOXML;ParallelCore;FiltersAMR;FiltersFlowPaths;FiltersGeneric;ImagingSources;FiltersHybrid;FiltersHyperTree;ImagingGeneral;FiltersImaging;FiltersModeling;FiltersParallel;FiltersParallelImaging;FiltersPoints;FiltersProgrammable;FiltersSMP;FiltersSelection;FiltersTexture;FiltersTopology;FiltersVerdict;IOImage;ImagingHybrid;InfovisLayout;InteractionStyle;ImagingColor;RenderingAnnotation;RenderingVolume;InteractionWidgets;ViewsCore;GeovisCore;IOAMR;IOAsynchronous;IOCityGML;IOEnSight;IOExodus;RenderingGL2PSOpenGL2;IOExport;IOExportOpenGL2;IOExportPDF;IOGeometry;IOImport;IOInfovis;IOLSDyna;IOMINC;IOMovie;IONetCDF;IOPLY;IOParallel;IOParallelXML;IOSQL;IOSegY;IOTecplotTable;IOVeraOut;IOVideo;ImagingMath;ImagingMorphological;ImagingStatistics;ImagingStencil;InteractionImage;RenderingContextOpenGL2;RenderingImage;RenderingLOD;RenderingLabel;RenderingVolumeOpenGL2;ViewsContext2D;ViewsInfovis", ";");