Visual Servoing Platform
version 3.6.0
Loading...
Searching...
No Matches
gen_dict.json
1
{
2
"ToStringSupport"
: [
3
"VpMatrix"
,
4
"VpColVector"
,
5
"VpRowVector"
,
6
"VpCameraParameters"
,
7
"VpHomogeneousMatrix"
,
8
"VpImagePoint"
,
9
"VpRotationVector"
,
10
"VpPoint"
11
],
12
"module_imports"
: [
13
"java.lang.String"
14
],
15
"class_ignore_list"
: [
16
"vpClient"
,
17
"vpRequest"
,
18
"vpNetwork"
,
19
"vpServer"
,
20
"vpUDPClient"
,
21
"vpUDPServer"
,
22
"vpSerial"
,
23
"vpIoTools"
,
24
"vpCPUFeatures"
25
],
26
"ManualFuncs"
: {
27
"VpCameraParameters"
: {
28
"getKannalaBrandtDistortionCoefficients"
: {
29
"j_code"
: [
30
"//"
,
31
"// manual port"
,
32
"// C++: std::vector<double> getKannalaBrandtDistortionCoefficients()"
,
33
"//"
,
34
"//javadoc: VpCameraParameters::getKannalaBrandtDistortionCoefficients()\n"
,
35
"public double[] getKannalaBrandtDistortionCoefficients()"
,
36
"{"
,
37
" return getKannalaBrandtDistortionCoefficients_2();"
,
38
"}"
39
],
40
"jn_code"
: [
41
"// C++: std::vector<double> getKannalaBrandtDistortionCoefficients()"
,
42
"private static native double[] getKannalaBrandtDistortionCoefficients_2();"
43
],
44
"cpp_code"
: [
45
"//"
,
46
"// manual port"
,
47
"// std::vector<double> getKannalaBrandtDistortionCoefficients()"
,
48
"//\n"
,
49
"JNIEXPORT jdoubleArray JNICALL Java_org_visp_core_VpCameraParameters_getKannalaBrandtDistortionCoefficients_12(JNIEnv*, jclass, jlong self);\n"
,
50
"JNIEXPORT jdoubleArray JNICALL Java_org_visp_core_VpCameraParameters_getKannalaBrandtDistortionCoefficients_12"
,
51
" (JNIEnv* env, jclass, jlong self)"
,
52
"{"
,
53
" static const char method_name[] = \"core::getKannalaBrandtDistortionCoefficients()\";"
,
54
" try {"
,
55
" LOGD(\"%s\", method_name);"
,
56
" vpCameraParameters *cam = (vpCameraParameters*) self; //TODO: check for NULL"
,
57
" std::vector<double> coefs = cam->getKannalaBrandtDistortionCoefficients();"
,
58
" jdoubleArray jCoefs = env->NewDoubleArray(coefs.size());"
,
59
" jdouble *ptr_jCoefs = NULL;"
,
60
" ptr_jCoefs = env->GetDoubleArrayElements(jCoefs, 0);"
,
61
" for (size_t i = 0; i < coefs.size(); i++) {"
,
62
" ptr_jCoefs[i] = coefs[i];"
,
63
" }"
,
64
" env->ReleaseDoubleArrayElements(jCoefs, ptr_jCoefs, 0);"
,
65
" return jCoefs;"
,
66
" } catch(const std::exception &e) {"
,
67
" throwJavaException(env, &e, method_name);"
,
68
" } catch (...) {"
,
69
" throwJavaException(env, 0, method_name);"
,
70
" }"
,
71
" return 0;"
,
72
"}"
73
]
74
}
75
},
76
"VpPoint"
: {
77
"getWorldCoordinates"
: {
78
"j_code"
: [
79
"//"
,
80
"// C++: vpColVector getWorldCoordinates()"
,
81
"//\n"
,
82
"//javadoc: VpPoint::getWorldCoordinates()\n"
,
83
"public VpColVector getWorldCoordinates()"
,
84
"{"
,
85
" VpColVector retVal = new VpColVector(getWorldCoordinates_2(nativeObj));"
,
86
" return retVal;"
,
87
"}"
88
],
89
"cpp_code"
: [
90
"//"
,
91
"// vpColVector getWorldCoordinates()"
,
92
"//\n\n"
,
93
"JNIEXPORT jlong JNICALL Java_org_visp_core_VpPoint_getWorldCoordinates_12 (JNIEnv*, jclass, jlong);\n"
,
94
"JNIEXPORT jlong JNICALL Java_org_visp_core_VpPoint_getWorldCoordinates_12"
,
95
" (JNIEnv* env, jclass, jlong self)"
,
96
"{"
,
97
" static const char method_name[] = \"core::getWorldCoordinates_12()\";"
,
98
" try {"
,
99
" LOGD(\"%s\", method_name);"
,
100
" vpPoint* me = (vpPoint*) self; //TODO: check for NULL"
,
101
" vpColVector _retval_ = me->getWorldCoordinates( );"
,
102
" return (jlong) new vpColVector(_retval_);"
,
103
" } catch(const std::exception &e) {"
,
104
" throwJavaException(env, &e, method_name);"
,
105
" } catch (...) {"
,
106
" throwJavaException(env, 0, method_name);"
,
107
" }"
,
108
" return 0;"
,
109
"}"
110
],
111
"jn_code"
: [
112
"// C++: vpColVector getWorldCoordinates()"
,
113
"private static native long getWorldCoordinates_2(long nativeObj);"
114
]
115
}
116
},
117
"VpColVector"
: {
118
"insert"
: {
119
"j_code"
: [
120
""
121
],
122
"cpp_code"
: [
123
""
124
],
125
"jn_code"
: [
126
""
127
]
128
},
129
"toStdVector"
: {
130
"j_code"
: [
131
""
132
],
133
"cpp_code"
: [
134
""
135
],
136
"jn_code"
: [
137
""
138
]
139
}
140
},
141
"VpRowVector"
: {
142
"toStdVector"
: {
143
"j_code"
: [
144
""
145
],
146
"cpp_code"
: [
147
""
148
],
149
"jn_code"
: [
150
""
151
]
152
}
153
},
154
"VpRotationVector"
: {
155
"toStdVector"
: {
156
"j_code"
: [
157
""
158
],
159
"cpp_code"
: [
160
""
161
],
162
"jn_code"
: [
163
""
164
]
165
}
166
},
167
"VpMatrix"
: {
168
"det"
: {
169
"j_code"
: [
170
""
171
],
172
"cpp_code"
: [
173
""
174
],
175
"jn_code"
: [
176
""
177
]
178
}
179
}
180
},
181
"type_dict"
: {
182
"vpMatrix"
: {
183
"j_type"
:
"VpMatrix"
,
184
"jn_args"
: [
185
[
186
"__int64"
,
187
".nativeObj"
188
]
189
],
190
"jn_type"
:
"long"
,
191
"jni_type"
:
"jlong"
,
192
"jni_var"
:
"vpMatrix& %(n)s = *((vpMatrix*)%(n)s_nativeObj)"
,
193
"suffix"
:
"J"
,
194
"j_import"
:
"org.visp.core.VpMatrix"
195
},
196
"vpCameraParameters"
: {
197
"j_type"
:
"VpCameraParameters"
,
198
"jn_args"
: [
199
[
200
"__int64"
,
201
".nativeObj"
202
]
203
],
204
"jn_type"
:
"long"
,
205
"jni_type"
:
"jlong"
,
206
"jni_var"
:
"vpCameraParameters& %(n)s = *((vpCameraParameters*)%(n)s_nativeObj)"
,
207
"suffix"
:
"J"
,
208
"j_import"
:
"org.visp.core.VpCameraParameters"
209
},
210
"vpArray2D"
: {
211
"j_type"
:
"VpArray2D"
,
212
"jn_args"
: [
213
[
214
"__int64"
,
215
".nativeObj"
216
]
217
],
218
"jn_type"
:
"long"
,
219
"jni_type"
:
"jlong"
,
220
"jni_var"
:
"vpArray2D<double>& %(n)s = *((vpArray2D<double>*)%(n)s_nativeObj)"
,
221
"suffix"
:
"J"
,
222
"j_import"
:
"org.visp.core.VpArray2D"
223
},
224
"vpImage_char"
: {
225
"j_type"
:
"VpImageUChar"
,
226
"jn_args"
: [
227
[
228
"__int64"
,
229
".nativeObj"
230
]
231
],
232
"jn_type"
:
"long"
,
233
"jni_type"
:
"jlong"
,
234
"jni_var"
:
"vpImage<unsigned char>& %(n)s = *((vpImage<unsigned char>*)%(n)s_nativeObj)"
,
235
"suffix"
:
"J"
,
236
"j_import"
:
"org.visp.core.VpImageUChar"
237
},
238
"vpImage_vpRGBa"
: {
239
"j_type"
:
"VpImageRGBa"
,
240
"jn_args"
: [
241
[
242
"__int64"
,
243
".nativeObj"
244
]
245
],
246
"jn_type"
:
"long"
,
247
"jni_type"
:
"jlong"
,
248
"jni_var"
:
"vpImage<vpRGBa>& %(n)s = *((vpImage<vpRGBa>*)%(n)s_nativeObj)"
,
249
"suffix"
:
"J"
,
250
"j_import"
:
"org.visp.core.VpImageRGBa"
251
},
252
"Moments"
: {
253
"j_type"
:
"Moments"
,
254
"jn_args"
: [
255
[
256
"double"
,
257
".m00"
258
],
259
[
260
"double"
,
261
".m10"
262
],
263
[
264
"double"
,
265
".m01"
266
],
267
[
268
"double"
,
269
".m20"
270
],
271
[
272
"double"
,
273
".m11"
274
],
275
[
276
"double"
,
277
".m02"
278
],
279
[
280
"double"
,
281
".m30"
282
],
283
[
284
"double"
,
285
".m21"
286
],
287
[
288
"double"
,
289
".m12"
290
],
291
[
292
"double"
,
293
".m03"
294
]
295
],
296
"jni_type"
:
"jdoubleArray"
,
297
"jni_var"
:
"Moments %(n)s(%(n)s_m00, %(n)s_m10, %(n)s_m01, %(n)s_m20, %(n)s_m11, %(n)s_m02, %(n)s_m30, %(n)s_m21, %(n)s_m12, %(n)s_m03)"
,
298
"suffix"
:
"DDDDDDDDDD"
299
},
300
"string"
: {
301
"j_type"
:
"String"
,
302
"jn_type"
:
"String"
,
303
"jni_name"
:
"n_%(n)s"
,
304
"jni_type"
:
"jstring"
,
305
"jni_var"
:
"const char* utf_%(n)s = env->GetStringUTFChars(%(n)s, 0); string n_%(n)s( utf_%(n)s ? utf_%(n)s : \"\" ); env->ReleaseStringUTFChars(%(n)s, utf_%(n)s)"
,
306
"suffix"
:
"Ljava_lang_String_2"
,
307
"j_import"
:
"java.lang.String"
308
},
309
"c_string"
: {
310
"j_type"
:
"String"
,
311
"jn_type"
:
"String"
,
312
"jni_name"
:
"n_%(n)s.c_str()"
,
313
"jni_type"
:
"jstring"
,
314
"jni_var"
:
"const char* utf_%(n)s = env->GetStringUTFChars(%(n)s, 0); string n_%(n)s( utf_%(n)s ? utf_%(n)s : \"\" ); env->ReleaseStringUTFChars(%(n)s, utf_%(n)s)"
,
315
"suffix"
:
"Ljava_lang_String_2"
,
316
"j_import"
:
"java.lang.String"
317
},
318
"size_t"
: {
319
"j_type"
:
"long"
,
320
"jn_type"
:
"long"
,
321
"jni_type"
:
"jlong"
,
322
"suffix"
:
"J"
323
},
324
"vector_vpMatrix"
: {
325
"j_type"
:
"List<VpMatrix>"
,
326
"jn_type"
:
"long[]"
,
327
"jni_type"
:
"jlongArray"
,
328
"jni_var"
:
"std::vector<vpMatrix> %(n)s"
,
329
"suffix"
:
"J"
,
330
"v_type"
:
"vpMatrix"
,
331
"j_import"
:
"org.visp.core.VpMatrix"
332
},
333
"vpContour"
: {
334
"j_type"
:
"VpContour"
,
335
"jn_args"
: [
336
[
337
"__int64"
,
338
".nativeObj"
339
]
340
],
341
"jn_type"
:
"long"
,
342
"jni_type"
:
"jlong"
,
343
"jni_var"
:
"vpContour& %(n)s = *((vpContour*)%(n)s_nativeObj)"
,
344
"suffix"
:
"J"
,
345
"j_import"
:
"org.visp.core.VpContour"
346
},
347
"vpColVector"
: {
348
"j_type"
:
"VpColVector"
,
349
"jn_args"
: [
350
[
351
"__int64"
,
352
".nativeObj"
353
]
354
],
355
"jn_type"
:
"long"
,
356
"jni_type"
:
"jlong"
,
357
"jni_var"
:
"vpColVector& %(n)s = *((vpColVector*)%(n)s_nativeObj)"
,
358
"suffix"
:
"J"
,
359
"j_import"
:
"org.visp.core.VpColVector"
360
},
361
"vector_vpColVector"
: {
362
"j_type"
:
"List<VpColVector>"
,
363
"jn_type"
:
"long[]"
,
364
"jni_type"
:
"jlongArray"
,
365
"jni_var"
:
"std::vector<vpColVector> %(n)s"
,
366
"suffix"
:
"J"
,
367
"v_type"
:
"vpColVector"
,
368
"j_import"
:
"org.visp.core.VpColVector"
369
},
370
"vpRowVector"
: {
371
"j_type"
:
"VpRowVector"
,
372
"jn_args"
: [
373
[
374
"__int64"
,
375
".nativeObj"
376
]
377
],
378
"jn_type"
:
"long"
,
379
"jni_type"
:
"jlong"
,
380
"jni_var"
:
"vpRowVector& %(n)s = *((vpRowVector*)%(n)s_nativeObj)"
,
381
"suffix"
:
"J"
,
382
"j_import"
:
"org.visp.core.VpRowVector"
383
},
384
"vpHomogeneousMatrix"
: {
385
"j_type"
:
"VpHomogeneousMatrix"
,
386
"jn_args"
: [
387
[
388
"__int64"
,
389
".nativeObj"
390
]
391
],
392
"jn_type"
:
"long"
,
393
"jni_type"
:
"jlong"
,
394
"jni_var"
:
"vpHomogeneousMatrix& %(n)s = *((vpHomogeneousMatrix*)%(n)s_nativeObj)"
,
395
"suffix"
:
"J"
,
396
"j_import"
:
"org.visp.core.VpHomogeneousMatrix"
397
},
398
"vector_vpHomogeneousMatrix"
: {
399
"j_type"
:
"List<VpHomogeneousMatrix>"
,
400
"jn_type"
:
"long[]"
,
401
"jni_type"
:
"jlongArray"
,
402
"jni_var"
:
"std::vector<vpHomogeneousMatrix> %(n)s"
,
403
"suffix"
:
"J"
,
404
"v_type"
:
"vpHomogeneousMatrix"
,
405
"j_import"
:
"org.visp.core.VpHomogeneousMatrix"
406
},
407
"vpImagePoint"
: {
408
"j_type"
:
"VpImagePoint"
,
409
"jn_args"
: [
410
[
411
"__int64"
,
412
".nativeObj"
413
]
414
],
415
"jn_type"
:
"long"
,
416
"jni_type"
:
"jlong"
,
417
"jni_var"
:
"vpImagePoint& %(n)s = *((vpImagePoint*)%(n)s_nativeObj)"
,
418
"suffix"
:
"J"
,
419
"j_import"
:
"org.visp.core.VpImagePoint"
420
},
421
"vpRotationVector"
: {
422
"j_type"
:
"VpRotationVector"
,
423
"jn_args"
: [
424
[
425
"__int64"
,
426
".nativeObj"
427
]
428
],
429
"jn_type"
:
"long"
,
430
"jni_type"
:
"jlong"
,
431
"jni_var"
:
"vpRotationVector& %(n)s = *((vpRotationVector*)%(n)s_nativeObj)"
,
432
"suffix"
:
"J"
,
433
"j_import"
:
"org.visp.core.VpRotationVector"
434
},
435
"vector_double"
: {
436
"j_type"
:
"double[]"
,
437
"jn_type"
:
"double[]"
,
438
"jni_type"
:
"jdoubleArray"
,
439
"jni_var"
:
"std::vector<double> %(n)s"
,
440
"suffix"
:
"[D"
441
},
442
"vector_float"
: {
443
"j_type"
:
"float[]"
,
444
"jn_type"
:
"float[]"
,
445
"jni_type"
:
"jfloatArray"
,
446
"jni_var"
:
"std::vector<float> %(n)s"
,
447
"suffix"
:
"[F"
448
},
449
"vector_int"
: {
450
"j_type"
:
"int[]"
,
451
"jn_type"
:
"int[]"
,
452
"jni_type"
:
"jintArray"
,
453
"jni_var"
:
"std::vector<int> %(n)s"
,
454
"suffix"
:
"[I"
455
}
456
}
457
}
modules
java
misc
core
gen_dict.json
Generated by
1.9.8