MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / NativePointArrayToJava

Function NativePointArrayToJava

Wrappers/OpenNI.jni/org_openni_NativeMethods.cpp:299–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299void NativePointArrayToJava(JNIEnv* env, const XnPoint3D* nativeArray, jobjectArray javaArray)
300{
301 int count = env->GetArrayLength(javaArray);
302 for (int i = 0; i < count; ++i)
303 {
304 jobject curr = CreatePoint3D(env, &nativeArray[i]);
305 env->SetObjectArrayElement(javaArray, i, curr);
306 }
307}
308
309jobject CreateJointPosition(JNIEnv* pEnv, const XnSkeletonJointPosition* pPosition)
310{

Calls 3

CreatePoint3DFunction · 0.85
GetArrayLengthMethod · 0.80
SetObjectArrayElementMethod · 0.80

Tested by

no test coverage detected