Commit c87f01d1 authored by Hannes Sommer's avatar Hannes Sommer

- last initial commit of the jopenhaptics project

git-svn-id: https://svn.math.tu-berlin.de/svn/jtem@1093 f5b180c5-49ee-4939-b20e-b6ed35f0f7b7
parent a12b7511
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/joh/classes">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="jOpenHaptics/build/joh/obj"/>
</attributes>
</classpathentry>
<classpathentry excluding="de/jtem/jopenhaptics/HelloSphere.java" kind="src" path="src-test"/>
<classpathentry kind="src" path="src-generator"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="lib" path="lib/antlr.jar"/>
<classpathentry kind="lib" path="lib/gluegen.jar"/>
<classpathentry kind="lib" path="lib/ant.jar"/>
<classpathentry kind="lib" path="build/joh/jopenhaptics.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>jOpenHaptics</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 18:14:27 CET 2011 ----! */
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 23:23:26 CET 2011 ----! */
package de.jtem.jopenhaptics;
......
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 18:14:27 CET 2011 ----! */
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 23:23:26 CET 2011 ----! */
package de.jtem.jopenhaptics;
......
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 18:14:28 CET 2011 ----! */
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 23:23:26 CET 2011 ----! */
package de.jtem.jopenhaptics;
......
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 18:14:28 CET 2011 ----! */
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 23:23:26 CET 2011 ----! */
package de.jtem.jopenhaptics;
......
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 18:14:28 CET 2011 ----! */
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 23:23:27 CET 2011 ----! */
package de.jtem.jopenhaptics;
......
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 18:14:28 CET 2011 ----! */
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 23:23:27 CET 2011 ----! */
package de.jtem.jopenhaptics;
......
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 18:14:27 CET 2011 ----! */
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 23:23:25 CET 2011 ----! */
package de.jtem.jopenhaptics;
......
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 18:14:27 CET 2011 ----! */
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 23:23:25 CET 2011 ----! */
package de.jtem.jopenhaptics;
......
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 18:14:27 CET 2011 ----! */
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 23:23:26 CET 2011 ----! */
#include <jni.h>
#include <stdlib.h>
......@@ -10,13 +10,13 @@
#include <malloc.h>
#include <HD/hd.h>
JNIEXPORT jobject JNICALL
Java_de_jtem_openhaptics_HD_hdGetError__(JNIEnv *env, jclass t) {
Java_de_jtem_jopenhaptics_HD_hdGetError__(JNIEnv *env, jclass t) {
HDErrorInfo _res;
jclass clazz;
jmethodID m;
_res = hdGetError();
clazz = (*env)->FindClass(env, "de/jtem/openhaptics/HDErrorInfo");
clazz = (*env)->FindClass(env, "de/jtem/jopenhaptics/HDErrorInfo");
if (clazz == 0)
return 0;
m = (*env)->GetMethodID(env, clazz, "<init>", "(III)V");
......
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 18:14:28 CET 2011 ----! */
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 23:23:26 CET 2011 ----! */
#include <jni.h>
#include <stdlib.h>
......
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 18:14:28 CET 2011 ----! */
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 23:23:27 CET 2011 ----! */
#include <jni.h>
#include <stdlib.h>
......@@ -58,20 +58,20 @@
}
JNIEXPORT jstring JNICALL
Java_de_jtem_openhaptics_HLerror_getErrorString__J(JNIEnv *env,
Java_de_jtem_jopenhaptics_HLerror_getErrorString__J(JNIEnv *env,
jclass _unused, jlong name) {
return (*env)->NewStringUTF(env, (void *) name);
}
JNIEXPORT jobject JNICALL
Java_de_jtem_openhaptics_HL_hlGetError__(JNIEnv *env, jclass _unused) {
Java_de_jtem_jopenhaptics_HL_hlGetError__(JNIEnv *env, jclass _unused) {
HLerror _res;
jclass clazz;
jmethodID m;
_res = hlGetError();
clazz = (*env)->FindClass(env, "de/jtem/openhaptics/HLerror");
clazz = (*env)->FindClass(env, "de/jtem/jopenhaptics/HLerror");
if (clazz == 0)
return 0;
m = (*env)->GetMethodID(env, clazz, "<init>", "(JIII)V");
......@@ -168,7 +168,7 @@
JNIEXPORT void JNICALL
Java_de_jtem_openhaptics_HL_hlAddEventCallback(JNIEnv *env, jclass _unused, jlong event, jint object, jlong thread, jobject obj) {
Java_de_jtem_jopenhaptics_HL_hlAddEventCallback(JNIEnv *env, jclass _unused, jlong event, jint object, jlong thread, jobject obj) {
CallbackData * data = createCallBackData(env, 0, "eventProc", "(JIJJ)V", obj); if(data == NULL) return;
hlAddEventCallback((HLenum) event, object, (HLenum)thread, &eventProc, data);
}
......@@ -255,7 +255,7 @@
#define DefineCallBackSetter(name, signature, arrays) \
JNIEXPORT jlong JNICALL \
Java_de_jtem_openhaptics_HL_set##name(JNIEnv *env, jclass _unused, jobject obj) {\
Java_de_jtem_jopenhaptics_HL_set##name(JNIEnv *env, jclass _unused, jobject obj) {\
CallbackData * data = createCallBackData(env, arrays, #name, signature, obj); if(data == NULL) return 0;\
hlCallback(HL_SHAPE_INTERSECT_LS, (HLcallbackProc) &name, data);\
return (jlong) data;\
......
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 18:14:27 CET 2011 ----! */
/* !---- DO NOT EDIT: This file autogenerated by de/jtem/jopenhaptics/gen/OHEmitter.java on Mon Feb 28 23:23:25 CET 2011 ----! */
#include <jni.h>
#include <stdlib.h>
......
......@@ -30,8 +30,8 @@
<!-- partitioning -->
<property name="java.part.core" value="de/jtem/openhaptics/*" />
<property name="java.part.core.exclude" value="de/jtem/openhaptics/Debug* de/jtem/openhaptics/Trace*" />
<property name="java.part.core" value="de/jtem/jopenhaptics/*" />
<property name="java.part.core.exclude" value="de/jtem/jopenhaptics/Debug* de/jtem/jopenhaptics/Trace*" />
......@@ -383,7 +383,7 @@
<antcall target="java.generate.cleantemp" inheritRefs="true" />
<!-- Perform the first pass Java compile. -->
<javac destdir="${classes}" includes="de/jtem/openhaptics/fixedfunc/** " fork="yes" memoryMaximumSize="${javac.memorymax}" source="1.4" debug="${javacdebug}" debuglevel="${javacdebuglevel}">
<javac destdir="${classes}" includes="de/jtem/jopenhaptics/fixedfunc/** " fork="yes" memoryMaximumSize="${javac.memorymax}" source="1.4" debug="${javacdebug}" debuglevel="${javacdebuglevel}">
<classpath refid="nativewindow_gluegen.classpath" />
<src path="${src.java}" />
<src path="${src.generated.java}" />
......@@ -700,7 +700,7 @@
<target name="build-jars-all" unless="setup.noall">
<jar destfile="${jopenhaptics.jar}" filesonly="true">
<fileset dir="${classes}">
<include name="de/jtem/openhaptics/**" />
<include name="de/jtem/jopenhaptics/**" />
<include name="com/sun/gluegen/runtimecopy/**" />
</fileset>
<fileset dir="${src.java}" />
......
JNIEXPORT jobject JNICALL
Java_de_jtem_openhaptics_HD_hdGetError__(JNIEnv *env, jclass t) {
Java_de_jtem_jopenhaptics_HD_hdGetError__(JNIEnv *env, jclass t) {
HDErrorInfo _res;
jclass clazz;
jmethodID m;
_res = hdGetError();
clazz = (*env)->FindClass(env, "de/jtem/openhaptics/HDErrorInfo");
clazz = (*env)->FindClass(env, "de/jtem/jopenhaptics/HDErrorInfo");
if (clazz == 0)
return 0;
m = (*env)->GetMethodID(env, clazz, "<init>", "(III)V");
......
......@@ -46,20 +46,20 @@ JNIEnv * getEnv(){
}
JNIEXPORT jstring JNICALL
Java_de_jtem_openhaptics_HLerror_getErrorString__J(JNIEnv *env,
Java_de_jtem_jopenhaptics_HLerror_getErrorString__J(JNIEnv *env,
jclass _unused, jlong name) {
return (*env)->NewStringUTF(env, (void *) name);
}
JNIEXPORT jobject JNICALL
Java_de_jtem_openhaptics_HL_hlGetError__(JNIEnv *env, jclass _unused) {
Java_de_jtem_jopenhaptics_HL_hlGetError__(JNIEnv *env, jclass _unused) {
HLerror _res;
jclass clazz;
jmethodID m;
_res = hlGetError();
clazz = (*env)->FindClass(env, "de/jtem/openhaptics/HLerror");
clazz = (*env)->FindClass(env, "de/jtem/jopenhaptics/HLerror");
if (clazz == 0)
return 0;
m = (*env)->GetMethodID(env, clazz, "<init>", "(JIII)V");
......@@ -156,7 +156,7 @@ void HLCALLBACK eventProc(HLenum event, HLuint object, HLenum thread,
JNIEXPORT void JNICALL
Java_de_jtem_openhaptics_HL_hlAddEventCallback(JNIEnv *env, jclass _unused, jlong event, jint object, jlong thread, jobject obj) {
Java_de_jtem_jopenhaptics_HL_hlAddEventCallback(JNIEnv *env, jclass _unused, jlong event, jint object, jlong thread, jobject obj) {
CallbackData * data = createCallBackData(env, 0, "eventProc", "(JIJJ)V", obj); if(data == NULL) return;
hlAddEventCallback((HLenum) event, object, (HLenum)thread, &eventProc, data);
}
......@@ -243,7 +243,7 @@ HLboolean HLCALLBACK closestFeaturesProc(const HLdouble queryPt[3],
#define DefineCallBackSetter(name, signature, arrays) \
JNIEXPORT jlong JNICALL \
Java_de_jtem_openhaptics_HL_set##name(JNIEnv *env, jclass _unused, jobject obj) {\
Java_de_jtem_jopenhaptics_HL_set##name(JNIEnv *env, jclass _unused, jobject obj) {\
CallbackData * data = createCallBackData(env, arrays, #name, signature, obj); if(data == NULL) return 0;\
hlCallback(HL_SHAPE_INTERSECT_LS, (HLcallbackProc) &name, data);\
return (jlong) data;\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment