--- /dev/null
+package vtk;
+
+/**
+ * Utility class to load vtk native libraries.
+ *
+ * @author luukkainen
+ *
+ */
+public class vtkJavaDep {
+ static String[] libs = new String[] {
+ "vtksys",
+ "vtkCommonCore",
+ "vtkWrappingJava",
+ "vtkCommonCoreJava",
+ "vtkCommonMath",
+ "vtkCommonMathJava",
+ "vtkCommonSystem",
+ "vtkCommonSystemJava",
+ "vtkCommonMisc",
+ "vtkCommonMiscJava",
+ "vtkCommonTransforms",
+ "vtkCommonTransformsJava",
+ "vtkCommonDataModel",
+ "vtkCommonDataModelJava",
+ "vtkCommonColor",
+ "vtkCommonColorJava",
+ "vtkCommonExecutionModel",
+ "vtkCommonExecutionModelJava",
+ "vtkCommonComputationalGeometry",
+ "vtkCommonComputationalGeometryJava",
+ "vtkexpat",
+ "vtkdoubleconversion",
+ "vtkjpeg",
+ "vtkzlib",
+ "vtklz4",
+ "vtklzma",
+ "vtktiff",
+ "vtkpng",
+ "vtkexpat",
+ "vtkhdf5",
+ "vtkhdf5_hl",
+ "vtkmetaio",
+ "vtkpugixml",
+ "vtksqlite",
+ "vtkogg",
+ "vtktheora",
+ "vtkverdict",
+ "vtkglew",
+ "vtkproj",
+ "vtkfreetype",
+
+ "vtkImagingCore",
+ "vtkImagingCoreJava",
+ "vtkImagingMath",
+ "vtkImagingMathJava",
+ "vtkImagingFourier",
+ "vtkImagingFourierJava",
+ "vtkImagingSources",
+ "vtkImagingSourcesJava",
+ "vtkImagingHybrid",
+ "vtkImagingHybridJava",
+ "vtkImagingColor",
+ "vtkImagingColorJava",
+ "vtkImagingGeneral",
+ "vtkImagingGeneralJava",
+
+ "vtkFiltersCore",
+ "vtkFiltersCoreJava",
+ "vtkFiltersGeometry",
+ "vtkFiltersGeometryJava",
+ "vtkFiltersGeneral",
+ "vtkFiltersGeneralJava",
+ "vtkFiltersSources",
+ "vtkFiltersSourcesJava",
+ "vtkFiltersGeneric",
+ "vtkFiltersGenericJava",
+ "vtkFiltersStatistics",
+ "vtkFiltersStatisticsJava",
+ "vtkFiltersExtraction",
+ "vtkFiltersExtractionJava",
+ "vtkFiltersModeling",
+ "vtkFiltersModelingJava",
+
+ "vtkRenderingCore",
+ "vtkRenderingCoreJava",
+ "vtkRenderingOpenGL2",
+ "vtkRenderingOpenGL2Java",
+ "vtkRenderingVolume",
+ "vtkRenderingVolumeJava",
+ "vtkRenderingVolumeOpenGL2",
+ "vtkRenderingVolumeOpenGL2Java",
+
+ "vtkRenderingFreeType",
+ "vtkRenderingFreeTypeJava",
+ "vtkRenderingAnnotation",
+ "vtkRenderingAnnotationJava",
+
+ "vtkFiltersHybrid",
+ "vtkFiltersHybridJava",
+
+ "vtkInteractionStyle",
+ "vtkInteractionStyleJava",
+ "vtkInteractionWidgets",
+ "vtkInteractionWidgetsJava",
+ "vtkInteractionImage",
+ "vtkInteractionImageJava",
+
+ };
+
+
+ static {
+ for (String lib : libs)
+ System.loadLibrary(lib);
+ }
+
+ static void load() {
+
+ }
+}
public static vtk.vtkJavaMemoryManager JAVA_OBJECT_MANAGER = new vtk.vtkJavaMemoryManagerImpl();
public vtkObjectBase() {
+ vtkJavaDep.load();
this.vtkId = this.VTKInit();
vtkObjectBase.JAVA_OBJECT_MANAGER.registerJavaObject(this.vtkId, this);
}
protected int InteractionMode = 1;
protected boolean rendering = false;
- static String[] libs = new String[] {
- "vtksys",
- "vtkCommonCore",
- "vtkWrappingJava",
- "vtkCommonCoreJava",
- "vtkCommonMath",
- "vtkCommonMathJava",
- "vtkCommonSystem",
- "vtkCommonSystemJava",
- "vtkCommonMisc",
- "vtkCommonMiscJava",
- "vtkCommonTransforms",
- "vtkCommonTransformsJava",
- "vtkCommonDataModel",
- "vtkCommonDataModelJava",
- "vtkCommonColor",
- "vtkCommonColorJava",
- "vtkCommonExecutionModel",
- "vtkCommonExecutionModelJava",
- "vtkCommonComputationalGeometry",
- "vtkCommonComputationalGeometryJava",
- "vtkexpat",
- "vtkdoubleconversion",
- "vtkjpeg",
- "vtkzlib",
- "vtklz4",
- "vtklzma",
- "vtktiff",
- "vtkpng",
- "vtkexpat",
- "vtkhdf5",
- "vtkhdf5_hl",
- "vtkmetaio",
- "vtkpugixml",
- "vtksqlite",
- "vtkogg",
- "vtktheora",
- "vtkverdict",
- "vtkglew",
- "vtkproj",
- "vtkfreetype",
-
- "vtkImagingCore",
- "vtkImagingCoreJava",
- "vtkImagingMath",
- "vtkImagingMathJava",
- "vtkImagingFourier",
- "vtkImagingFourierJava",
- "vtkImagingSources",
- "vtkImagingSourcesJava",
- "vtkImagingHybrid",
- "vtkImagingHybridJava",
- "vtkImagingColor",
- "vtkImagingColorJava",
- "vtkImagingGeneral",
- "vtkImagingGeneralJava",
-
- "vtkFiltersCore",
- "vtkFiltersCoreJava",
- "vtkFiltersGeometry",
- "vtkFiltersGeometryJava",
- "vtkFiltersGeneral",
- "vtkFiltersGeneralJava",
- "vtkFiltersSources",
- "vtkFiltersSourcesJava",
- "vtkFiltersGeneric",
- "vtkFiltersGenericJava",
- "vtkFiltersStatistics",
- "vtkFiltersStatisticsJava",
- "vtkFiltersExtraction",
- "vtkFiltersExtractionJava",
- "vtkFiltersModeling",
- "vtkFiltersModelingJava",
-
- "vtkRenderingCore",
- "vtkRenderingCoreJava",
- "vtkRenderingOpenGL2",
- "vtkRenderingOpenGL2Java",
- "vtkRenderingVolume",
- "vtkRenderingVolumeJava",
- "vtkRenderingVolumeOpenGL2",
- "vtkRenderingVolumeOpenGL2Java",
-
- "vtkRenderingFreeType",
- "vtkRenderingFreeTypeJava",
- "vtkRenderingAnnotation",
- "vtkRenderingAnnotationJava",
-
- "vtkFiltersHybrid",
- "vtkFiltersHybridJava",
-
- "vtkInteractionStyle",
- "vtkInteractionStyleJava",
- "vtkInteractionWidgets",
- "vtkInteractionWidgetsJava",
- "vtkInteractionImage",
- "vtkInteractionImageJava",
-
- };
-
-
static {
- for (String lib : libs)
- System.loadLibrary(lib);
+ vtkJavaDep.load();
}
// Allow access to display lock() and unlock().
protected native int UnLock();
public vtkPanel() {
+
rw.AddRenderer(ren);
addMouseListener(this);
addMouseMotionListener(this);