documentation

vlSDK.h
Go to the documentation of this file.
1 // ========================================================================= //
2 // //
3 // Filename: vlSDK.h //
4 // +-----+-----+--+--+--+--+ //
5 // Version: 1.0 ! ! ! ! ! ! ! //
6 // ! ! +--+--+--+--+ //
7 // Author: Fraunhofer-Institut fuer ! ! ! ! ! ! ! //
8 // Graphische Datenverarbeitung +-----+-----+--+--+--+--+ //
9 // (IGD) Abteilung A4: ! ! ! ! ! ! ! //
10 // Virtuelle und Erweiterte Realitaet ! ! +--+--+--+--+ //
11 // Fraunhoferstr. 5 ! ! ! ! ! ! ! //
12 // D-64283 Darmstadt, Germany +-----+-----+--+--+--+--+ //
13 // ! FFFFFF hh ! GGGG ! //
14 // Rights: Copyright (c) 2004 by IGD. ! FFFFFF hh ! GGGGGG ! //
15 // All rights reserved. ! FFF hh h GG ! //
16 // IGD provides this product ! FFFFF hhhhhh GG GG ! //
17 // without warranty of any kind ! FFFFF hhh!hhh GG GG ! //
18 // and shall not be liable for ! FFF hh ! hh GGGGGG ! //
19 // any damages caused by the use ! FFF hh ! hh GGGG ! //
20 // of this product. +-----------+-----------+ //
21 // //
22 // ========================================================================= //
23 // ----------------------------------------------------------------------- //
24 // //
25 // Creation Date : Tue Jul 21 17:04:00 2015 Martin Buchner //
26 // //
27 // ========================================================================= //
28 
43 #ifndef VL_SDK_H
44 #define VL_SDK_H
45 
46 #include "vlSDKDef.h"
47 #include "vlSDKVersion.h"
48 
49 struct vlAbstractApplicationWrapper_s;
56 typedef struct vlAbstractApplicationWrapper_s vlAbstractApplicationWrapper_t;
57 
58 struct vlImageWrapper_s;
65 typedef struct vlImageWrapper_s vlImageWrapper_t;
66 
67 struct vlExtrinsicDataWrapper_s;
74 typedef struct vlExtrinsicDataWrapper_s vlExtrinsicDataWrapper_t;
75 
76 struct vlIntrinsicDataWrapper_s;
83 typedef struct vlIntrinsicDataWrapper_s vlIntrinsicDataWrapper_t;
84 
85 struct vlWorker_s;
92 typedef struct vlWorker_s vlWorker_t;
93 
97 typedef enum
98 {
111 } vlLogLevel;
112 
116 typedef enum
117 {
118  VL_RENDER_ROTATION_CCW_0 = 0,
119  VL_RENDER_ROTATION_CCW_90 = 2,
120  VL_RENDER_ROTATION_CCW_180 = 1,
121  VL_RENDER_ROTATION_CCW_270 = 3,
123 
127 typedef enum
128 {
137 } vlImageFormat;
138 
147 typedef void (VL_CALLINGCONVENTION *vlCallbackZString)(
148  const char data[], void* clientData);
149 
163 typedef void (VL_CALLINGCONVENTION *vlCallbackJsonString)(
164  const char error[], const char data[], void* clientData);
165 
181 typedef void (VL_CALLINGCONVENTION *vlCallbackJsonAndBinaryString)(
182  const char description[], const char data[], unsigned int size,
183  void* clientData);
184 
196 typedef void (VL_CALLINGCONVENTION *vlCallbackImageWrapper)(
197  vlImageWrapper_t* image, void* clientData);
198 
211 typedef void (VL_CALLINGCONVENTION *vlCallbackExtrinsicDataWrapper)(
212  vlExtrinsicDataWrapper_t* extrinsicData, void* clientData);
213 
226 typedef void (VL_CALLINGCONVENTION *vlCallbackIntrinsicDataWrapper)(
227  vlIntrinsicDataWrapper_t* intrinsicData, void* clientData);
228 
229 #ifdef __cplusplus
230 extern "C"
231 {
232 #endif // __cplusplus
233 
244  VL_SDK_API unsigned int VL_CALLINGCONVENTION vlGetVersionMajor();
245 
250  VL_SDK_API unsigned int VL_CALLINGCONVENTION vlGetVersionMinor();
251 
256  VL_SDK_API unsigned int VL_CALLINGCONVENTION vlGetVersionRevision();
265  VL_SDK_API bool VL_CALLINGCONVENTION vlGetVersionString(
266  char version[], unsigned int maxSize);
267 
276  VL_SDK_API bool VL_CALLINGCONVENTION vlGetVersionHashString(
277  char version[], unsigned int maxSize);
278 
287  VL_SDK_API bool VL_CALLINGCONVENTION vlGetVersionTimestampString(
288  char versionTimeStamp[], unsigned int maxSize);
289 
303  VL_SDK_API bool VL_CALLINGCONVENTION vlGetHostId(
304  char hostIdBuffer[], unsigned int maxSize);
305 
319  VL_SDK_API bool VL_CALLINGCONVENTION vlGetBundleId(
320  char bundleIdBuffer[], unsigned int maxSize);
321 
332  VL_SDK_API bool VL_CALLINGCONVENTION vlAddLogListener(
333  vlCallbackZString fn, void* clientData);
334 
343  VL_SDK_API bool VL_CALLINGCONVENTION vlRemoveLogListener(
344  vlCallbackZString fn, void* clientData);
345 
352  VL_SDK_API bool VL_CALLINGCONVENTION vlClearLogListeners();
353 
369  VL_SDK_API void VL_CALLINGCONVENTION vlEnableLogBuffer();
370 
384  VL_SDK_API void VL_CALLINGCONVENTION vlDisableLogBuffer();
385 
397  VL_SDK_API void VL_CALLINGCONVENTION vlSetLogBufferSize(
398  unsigned int maxEntries);
399 
415  VL_SDK_API bool VL_CALLINGCONVENTION vlFlushLogBuffer();
416 
424  VL_SDK_API int VL_CALLINGCONVENTION vlGetLogLevel();
425 
440  VL_SDK_API bool VL_CALLINGCONVENTION vlSetLogLevel(int level);
441 
451  VL_SDK_API bool VL_CALLINGCONVENTION vlLog(
452  const char message[], int level);
453 
472  VL_SDK_API vlAbstractApplicationWrapper_t* VL_CALLINGCONVENTION
474 
482  VL_SDK_API void VL_CALLINGCONVENTION vlDelete_AbstractApplicationWrapper(
483  vlAbstractApplicationWrapper_t* abstractApplicationWrapper);
484 
495  VL_SDK_API bool VL_CALLINGCONVENTION
497  vlAbstractApplicationWrapper_t* abstractApplicationWrapper);
498 
510  VL_SDK_API bool VL_CALLINGCONVENTION
512  vlAbstractApplicationWrapper_t* abstractApplicationWrapper);
513 
529  VL_SDK_API bool VL_CALLINGCONVENTION
531  vlAbstractApplicationWrapper_t* abstractApplicationWrapper,
532  char hostID[], unsigned int maxSize);
533 
550  VL_SDK_API bool VL_CALLINGCONVENTION
552  vlAbstractApplicationWrapper_t* abstractApplicationWrapper,
553  char bundleID[], unsigned int maxSize);
554 
569  VL_SDK_API bool VL_CALLINGCONVENTION
571  vlAbstractApplicationWrapper_t* abstractApplicationWrapper,
572  const char *licenseFilePath);
573 
590  VL_SDK_API bool VL_CALLINGCONVENTION
592  vlAbstractApplicationWrapper_t* abstractApplicationWrapper,
593  const char *licenseFileData);
594 
610  VL_SDK_API bool VL_CALLINGCONVENTION
612  vlAbstractApplicationWrapper_t* abstractApplicationWrapper,
613  char licenseInfo[], unsigned int maxSize);
614 
631  VL_SDK_API bool VL_CALLINGCONVENTION
633  vlAbstractApplicationWrapper_t* abstractApplicationWrapper,
634  const char pluginPath[]);
635 
651  VL_SDK_API bool VL_CALLINGCONVENTION
653  vlAbstractApplicationWrapper_t* abstractApplicationWrapper,
654  char trackerType[], unsigned int maxSize);
655 
667  VL_SDK_API bool VL_CALLINGCONVENTION
669  vlAbstractApplicationWrapper_t* abstractApplicationWrapper);
670 
683  VL_SDK_API bool VL_CALLINGCONVENTION
685  vlAbstractApplicationWrapper_t* abstractApplicationWrapper,
686  const char filename[]);
687 
703  VL_SDK_API bool VL_CALLINGCONVENTION
705  vlAbstractApplicationWrapper_t* abstractApplicationWrapper,
706  const char str[], const char fakeFilename[]);
707 
716  VL_SDK_API bool VL_CALLINGCONVENTION
718  vlAbstractApplicationWrapper_t* abstractApplicationWrapper);
719 
762  VL_SDK_API bool VL_CALLINGCONVENTION
764  vlAbstractApplicationWrapper_t* abstractApplicationWrapper,
765  char buffer[], unsigned int maxSize);
766 
789  VL_SDK_API bool VL_CALLINGCONVENTION
791  vlAbstractApplicationWrapper_t* abstractApplicationWrapper,
792  const char uri[]);
793 
814  VL_SDK_API bool VL_CALLINGCONVENTION
816  vlAbstractApplicationWrapper_t* abstractApplicationWrapper);
817 
834  VL_SDK_API vlImageWrapper_t* VL_CALLINGCONVENTION vlNew_ImageWrapper(vlImageFormat imageFormat);
835 
844  VL_SDK_API vlImageWrapper_t* VL_CALLINGCONVENTION
845  vlImageWrapper_Clone(vlImageWrapper_t* imageWrapper);
846 
856  VL_SDK_API void VL_CALLINGCONVENTION vlDelete_ImageWrapper(
857  vlImageWrapper_t* imageWrapper);
858 
867  VL_SDK_API unsigned int VL_CALLINGCONVENTION vlImageWrapper_GetFormat(
868  vlImageWrapper_t* imageWrapper);
869 
877  VL_SDK_API unsigned int VL_CALLINGCONVENTION
879  vlImageWrapper_t* imageWrapper);
880 
888  VL_SDK_API unsigned int VL_CALLINGCONVENTION vlImageWrapper_GetWidth(
889  vlImageWrapper_t* imageWrapper);
890 
898  VL_SDK_API unsigned int VL_CALLINGCONVENTION vlImageWrapper_GetHeight(
899  vlImageWrapper_t* imageWrapper);
900 
901 
917  VL_SDK_API bool VL_CALLINGCONVENTION vlImageWrapper_CopyToBuffer(
918  vlImageWrapper_t* imageWrapper,
919  unsigned char buffer[], unsigned int bufferSize);
920 
938  VL_SDK_API bool VL_CALLINGCONVENTION vlImageWrapper_CopyFromBuffer(
939  vlImageWrapper_t* imageWrapper, const unsigned char buffer[],
940  unsigned int width, unsigned int height);
941 
958  VL_SDK_API bool VL_CALLINGCONVENTION vlImageWrapper_CopyFromBufferWithFormat(
959  vlImageWrapper_t* imageWrapper, const unsigned char buffer[],
960  unsigned int width, unsigned int height,vlImageFormat imageFormat);
961 
980  VL_SDK_API vlExtrinsicDataWrapper_t* VL_CALLINGCONVENTION vlNew_ExtrinsicDataWrapper();
981 
990  VL_SDK_API vlExtrinsicDataWrapper_t* VL_CALLINGCONVENTION
992 
1002  VL_SDK_API void VL_CALLINGCONVENTION vlDelete_ExtrinsicDataWrapper(
1003  vlExtrinsicDataWrapper_t* extrinsicDataWrapper);
1004 
1014  VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetValid(
1015  vlExtrinsicDataWrapper_t* extrinsicDataWrapper);
1016 
1026  VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetValid(
1027  vlExtrinsicDataWrapper_t* extrinsicDataWrapper, bool value);
1028 
1051  VL_SDK_API bool VL_CALLINGCONVENTION
1053  vlExtrinsicDataWrapper_t* extrinsicDataWrapper, float matrix[],
1054  unsigned int matrixElementCount);
1055 
1072  VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetT(
1073  vlExtrinsicDataWrapper_t* extrinsicDataWrapper, float t[],
1074  unsigned int elementCount);
1075 
1092  VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetT(
1093  vlExtrinsicDataWrapper_t* extrinsicDataWrapper, const float t[],
1094  unsigned int elementCount);
1095 
1112  VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetR(
1113  vlExtrinsicDataWrapper_t* extrinsicDataWrapper, float q[],
1114  unsigned int elementCount);
1115 
1132  VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetR(
1133  vlExtrinsicDataWrapper_t* extrinsicDataWrapper, const float q[],
1134  unsigned int elementCount);
1135 
1152  VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetCamPosWorld(
1153  vlExtrinsicDataWrapper_t* extrinsicDataWrapper, float t[],
1154  unsigned int elementCount);
1155 
1172  VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetCamPosWorld(
1173  vlExtrinsicDataWrapper_t* extrinsicDataWrapper, const float t[],
1174  unsigned int elementCount);
1175 
1194  VL_SDK_API vlIntrinsicDataWrapper_t* VL_CALLINGCONVENTION vlNew_IntrinsicDataWrapper();
1195 
1204  VL_SDK_API vlIntrinsicDataWrapper_t* VL_CALLINGCONVENTION
1206 
1216  VL_SDK_API void VL_CALLINGCONVENTION vlDelete_IntrinsicDataWrapper(
1217  vlIntrinsicDataWrapper_t* intrinsicDataWrapper);
1218 
1226  VL_SDK_API unsigned int VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetWidth(
1227  vlIntrinsicDataWrapper_t* intrinsicDataWrapper);
1228 
1238  VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetWidth(
1239  vlIntrinsicDataWrapper_t* intrinsicDataWrapper, unsigned int value);
1240 
1248  VL_SDK_API unsigned int VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetHeight(
1249  vlIntrinsicDataWrapper_t* intrinsicDataWrapper);
1250 
1260  VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetHeight(
1261  vlIntrinsicDataWrapper_t* intrinsicDataWrapper, unsigned int value);
1273  VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetFxNorm(
1274  vlIntrinsicDataWrapper_t* intrinsicDataWrapper);
1275 
1286  VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetFxNorm(
1287  vlIntrinsicDataWrapper_t* intrinsicDataWrapper, double value);
1288 
1300  VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetFyNorm(
1301  vlIntrinsicDataWrapper_t* intrinsicDataWrapper);
1302 
1313  VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetFyNorm(
1314  vlIntrinsicDataWrapper_t* intrinsicDataWrapper, double value);
1325  VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetSkewNorm(
1326  vlIntrinsicDataWrapper_t* intrinsicDataWrapper);
1327 
1337  VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetSkewNorm(
1338  vlIntrinsicDataWrapper_t* intrinsicDataWrapper, double value);
1339 
1350  VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetCxNorm(
1351  vlIntrinsicDataWrapper_t* intrinsicDataWrapper);
1352 
1363  VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetCxNorm(
1364  vlIntrinsicDataWrapper_t* intrinsicDataWrapper, double value);
1375  VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetCyNorm(
1376  vlIntrinsicDataWrapper_t* intrinsicDataWrapper);
1377 
1388  VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetCyNorm(
1389  vlIntrinsicDataWrapper_t* intrinsicDataWrapper, double value);
1390 
1401  VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetCalibrated(
1402  vlIntrinsicDataWrapper_t* intrinsicDataWrapper);
1403 
1413  VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetCalibrated(
1414  vlIntrinsicDataWrapper_t* intrinsicDataWrapper, bool value);
1415 
1426  VL_SDK_API double VL_CALLINGCONVENTION
1428  vlIntrinsicDataWrapper_t* intrinsicDataWrapper);
1429 
1441  VL_SDK_API bool VL_CALLINGCONVENTION
1443  vlIntrinsicDataWrapper_t* intrinsicDataWrapper, double k[],
1444  unsigned int elementCount);
1445 
1457  VL_SDK_API bool VL_CALLINGCONVENTION
1459  vlIntrinsicDataWrapper_t* intrinsicDataWrapper, const double k[],
1460  unsigned int elementCount);
1461 
1501  VL_SDK_API bool VL_CALLINGCONVENTION
1503  vlIntrinsicDataWrapper_t* intrinsicDataWrapper,
1504  float nearFact, float farFact, unsigned int screenWidth,
1505  unsigned int screenHeight, unsigned int renderRotation,
1506  unsigned int mode, float matrix[], unsigned int matrixElementCount);
1507 
1526  VL_SDK_API vlWorker_t* VL_CALLINGCONVENTION vlNew_Worker(
1528 
1548  VL_SDK_API vlWorker_t* VL_CALLINGCONVENTION vlNew_SyncWorker(
1550 
1557  VL_SDK_API void VL_CALLINGCONVENTION vlDelete_Worker(vlWorker_t* worker);
1558 
1566  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_Start(vlWorker_t* worker);
1567 
1575  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_Stop(vlWorker_t* worker);
1576 
1589  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RunOnceSync(
1590  vlWorker_t* worker);
1591 
1608  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_ProcessJsonCommandSync(
1609  vlWorker_t* worker, const char jsonString[],
1610  vlCallbackJsonString callback, void* clientData);
1611 
1633  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_ProcessJsonAndBinaryCommandSync(
1634  vlWorker_t* worker,
1635  const char jsonString[],
1636  const char data[],
1637  unsigned int size,
1639  void* clientData);
1640 
1657  VL_SDK_API vlImageWrapper_t* VL_CALLINGCONVENTION vlWorker_GetImageSync(
1658  vlWorker_t* worker);
1659 
1677  VL_SDK_API vlImageWrapper_t* VL_CALLINGCONVENTION
1679  vlWorker_t* worker, const char* image_name);
1680 
1681 
1699  VL_SDK_API vlImageWrapper_t* VL_CALLINGCONVENTION
1700  vlWorker_GetNodeImageSync(vlWorker_t* worker, const char node[], const char key[]);
1701 
1717  VL_SDK_API bool VL_CALLINGCONVENTION
1718  vlWorker_SetNodeImageSync(vlWorker_t* worker, vlImageWrapper_t* image, const char node[], const char key[]);
1719 
1737  VL_SDK_API vlExtrinsicDataWrapper_t* VL_CALLINGCONVENTION
1739  vlWorker_t* worker,
1740  const char node[],
1741  const char key[]);
1742 
1758  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_SetNodeExtrinsicDataSync(
1759  vlWorker_t* worker,
1760  vlExtrinsicDataWrapper_t* extrinsicData,
1761  const char node[],
1762  const char key[]);
1763 
1781  VL_SDK_API vlIntrinsicDataWrapper_t* VL_CALLINGCONVENTION
1783  vlWorker_t* worker,
1784  const char node[],
1785  const char key[]);
1786 
1802  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_SetNodeIntrinsicDataSync(
1803  vlWorker_t* worker,
1804  vlIntrinsicDataWrapper_t* intrinsicData,
1805  const char node[],
1806  const char key[]);
1807 
1815  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_IsRunning(
1816  vlWorker_t* worker);
1817 
2000  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_PushJsonCommand(
2001  vlWorker_t* worker, const char jsonString[],
2002  vlCallbackJsonString callback, void* clientData);
2003 
2026  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_PushJsonAndBinaryCommand(
2027  vlWorker_t* worker, const char jsonString[], const char data[],
2028  unsigned int size, vlCallbackJsonAndBinaryString callback,
2029  void* clientData);
2030 
2042  VL_SDK_API void VL_CALLINGCONVENTION vlReleaseBinaryBuffer(const char data[]);
2043 
2055  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_ProcessCallbacks(
2056  vlWorker_t* worker);
2057 
2070  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_AddImageListener(
2071  vlWorker_t* worker, vlCallbackImageWrapper listener, void* clientData);
2072 
2083  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RemoveImageListener(
2084  vlWorker_t* worker, vlCallbackImageWrapper listener, void* clientData);
2085 
2098  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_AddDebugImageListener(
2099  vlWorker_t* worker,
2100  vlCallbackImageWrapper listener,
2101  void* clientData);
2102 
2113  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RemoveDebugImageListener(
2114  vlWorker_t* worker,
2115  vlCallbackImageWrapper listener,
2116  void* clientData);
2117 
2130  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_AddExtrinsicDataListener(
2131  vlWorker_t* worker, vlCallbackExtrinsicDataWrapper listener,
2132  void* clientData);
2133 
2144  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RemoveExtrinsicDataListener(
2145  vlWorker_t* worker, vlCallbackExtrinsicDataWrapper listener,
2146  void* clientData);
2147 
2160  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_AddIntrinsicDataListener(
2161  vlWorker_t* worker, vlCallbackIntrinsicDataWrapper listener,
2162  void* clientData);
2163 
2174  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RemoveIntrinsicDataListener(
2175  vlWorker_t* worker, vlCallbackIntrinsicDataWrapper listener,
2176  void* clientData);
2177 
2190  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_AddTrackingStateListener(
2191  vlWorker_t* worker, vlCallbackZString listener, void* clientData);
2192 
2203  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RemoveTrackingStateListener(
2204  vlWorker_t* worker, vlCallbackZString listener, void* clientData);
2205 
2218  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_AddPerformanceInfoListener(
2219  vlWorker_t* worker, vlCallbackZString listener, void* clientData);
2220 
2231  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RemovePerformanceInfoListener(
2232  vlWorker_t* worker, vlCallbackZString listener, void* clientData);
2233 
2248  VL_SDK_API bool VL_CALLINGCONVENTION
2250  vlWorker_t* worker,
2251  const char anchorName[],
2253  void* clientData);
2254 
2268  VL_SDK_API bool VL_CALLINGCONVENTION
2270  vlWorker_t* worker,
2271  const char anchorName[],
2273  void* clientData);
2274 
2291  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_AddNodeDataImageListener(
2292  vlWorker_t* worker, const char node[], const char key[],
2293  vlCallbackImageWrapper listener, void* clientData);
2294 
2310  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RemoveNodeDataImageListener(
2311  vlWorker_t* worker, const char node[], const char key[],
2312  vlCallbackImageWrapper listener, void* clientData);
2313 
2330  VL_SDK_API bool VL_CALLINGCONVENTION
2331  vlWorker_AddNodeDataExtrinsicDataListener(
2332  vlWorker_t* worker, const char node[], const char key[],
2333  vlCallbackExtrinsicDataWrapper listener, void* clientData);
2334 
2350  VL_SDK_API bool VL_CALLINGCONVENTION
2351  vlWorker_RemoveNodeDataExtrinsicDataListener(
2352  vlWorker_t* worker, const char node[], const char key[],
2353  vlCallbackExtrinsicDataWrapper listener, void* clientData);
2354 
2371  VL_SDK_API bool VL_CALLINGCONVENTION
2372  vlWorker_AddNodeDataIntrinsicDataListener(
2373  vlWorker_t* worker, const char node[], const char key[],
2374  vlCallbackIntrinsicDataWrapper listener, void* clientData);
2375 
2391  VL_SDK_API bool VL_CALLINGCONVENTION
2392  vlWorker_RemoveNodeDataIntrinsicDataListener(
2393  vlWorker_t* worker, const char node[], const char key[],
2394  vlCallbackIntrinsicDataWrapper listener, void* clientData);
2395 
2413  VL_SDK_API bool VL_CALLINGCONVENTION
2414  vlWorker_AddNodeTrackingStateListener(vlWorker_t* worker,
2415  const char node[], vlCallbackZString listener, void* clientData);
2416 
2432  VL_SDK_API char* VL_CALLINGCONVENTION
2433  vlWorker_GetNodeTrackingStateJsonSync(vlWorker_t* worker, const char node[]);
2434 
2449  VL_SDK_API bool VL_CALLINGCONVENTION
2450  vlWorker_RemoveNodeTrackingStateListener(vlWorker_t* worker,
2451  const char node[], vlCallbackZString listener, void* clientData);
2452 
2460  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_ClearListeners(
2461  vlWorker_t* worker);
2462 
2474  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_PollEvents(
2475  vlWorker_t* worker);
2476 
2493  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_WaitEvents(
2494  vlWorker_t* worker, unsigned int timeout);
2495 
2500  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_Lock(vlWorker_t* worker);
2501 
2506  VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_Unlock(vlWorker_t* worker);
2507 
2535  VL_SDK_API char* VL_CALLINGCONVENTION vlSDKUtil_get(
2536  const char *uri, unsigned long *size, const char *options=0);
2537 
2556  VL_SDK_API bool VL_CALLINGCONVENTION vlSDKUtil_set(
2557  const char* uri, const void* data, unsigned long size,
2558  const char* options=0);
2559 
2574  VL_SDK_API bool VL_CALLINGCONVENTION vlSDKUtil_getTempFilename(
2575  const char* prefName, char *newName, unsigned int maxSize);
2576 
2591  VL_SDK_API char* VL_CALLINGCONVENTION
2592  //VL_SDK_API float* VL_CALLINGCONVENTION
2594  const char* geometryJson, unsigned long* size);
2595 
2610  VL_SDK_API char* VL_CALLINGCONVENTION
2611  // VL_SDK_API float* VL_CALLINGCONVENTION
2613  const char* workspaceJson,
2614  unsigned long* size);
2615 
2623  VL_SDK_API double VL_CALLINGCONVENTION
2625  vlImageWrapper_t* imageWrapper);
2626 
2642  VL_SDK_API bool VL_CALLINGCONVENTION vlSDKUtil_retrievePhysicalPath(
2643  const char uri[],
2644  char physicalPath[],
2645  unsigned int maxSize);
2646 
2647 #ifdef __cplusplus
2648 }
2649 #endif // __cplusplus
2650 
2653 #endif // VL_SDK_H
VL_SDK_API void VL_CALLINGCONVENTION vlReleaseBinaryBuffer(const char data[])
Helper function for releasing a binary memory block.
VL_SDK_API vlImageWrapper_t *VL_CALLINGCONVENTION vlImageWrapper_Clone(vlImageWrapper_t *imageWrapper)
Creates a copy of the image and returns a pointer to it.
VL_SDK_API char *VL_CALLINGCONVENTION vlSDKUtil_get(const char *uri, unsigned long *size, const char *options=0)
Retrieves a file and its data from a given URI.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_ClearListeners(vlWorker_t *worker)
Removes all listeners.
VL_SDK_API double VL_CALLINGCONVENTION vlSDKUtil_getPosterQuality(vlImageWrapper_t *imageWrapper)
Estimates the quality of a given image as a PosterTracker reference.
VL_SDK_API vlImageWrapper_t *VL_CALLINGCONVENTION vlWorker_GetImageSync(vlWorker_t *worker)
Returns a pointer to the camera image.
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetCalibrated(vlIntrinsicDataWrapper_t *intrinsicDataWrapper)
Returns whether the intrinsic parameters are valid.
VL_SDK_API unsigned int VL_CALLINGCONVENTION vlGetVersionMinor()
Returns the minor version number of the VisionLib plugin.
VL_SDK_API bool VL_CALLINGCONVENTION vlGetVersionHashString(char version[], unsigned int maxSize)
Copies the version hash of the VisionLib plugin into a buffer.
VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetT(vlExtrinsicDataWrapper_t *extrinsicDataWrapper, float t[], unsigned int elementCount)
Returns the translation from the world coordinate system to the camera coordinate system...
VL_SDK_API int VL_CALLINGCONVENTION vlGetLogLevel()
Gets the current log level.
VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetModelViewMatrix(vlExtrinsicDataWrapper_t *extrinsicDataWrapper, float matrix[], unsigned int matrixElementCount)
Returns the current camera pose as model-view matrix.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_AddExtrinsicDataListener(vlWorker_t *worker, vlCallbackExtrinsicDataWrapper listener, void *clientData)
Registers a listener for ExtrinsicData events.
VL_SDK_API vlExtrinsicDataWrapper_t *VL_CALLINGCONVENTION vlExtrinsicDataWrapper_Clone(vlExtrinsicDataWrapper_t *extrinsicDataWrapper)
Creates a copy of the ExtrinsicDataWrapper object and returns a pointer to it.
VL_SDK_API bool VL_CALLINGCONVENTION vlGetBundleId(char bundleIdBuffer[], unsigned int maxSize)
Copies the bundle ID of the current application into the provided buffer as zero terminated string...
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetCyNorm(vlIntrinsicDataWrapper_t *intrinsicDataWrapper, double value)
Sets the normalized y-component of the principal point of the given IntrinsicDataWrapper object to th...
VL_SDK_API vlIntrinsicDataWrapper_t *VL_CALLINGCONVENTION vlIntrinsicDataWrapper_Clone(vlIntrinsicDataWrapper_t *intrinsicDataWrapper)
Creates a copy of the IntrinsicDataWrapper object and returns a pointer to it.
VL_SDK_API unsigned int VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetHeight(vlIntrinsicDataWrapper_t *intrinsicDataWrapper)
Returns the height of the intrinsic camera calibration.
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_GetDeviceInfo(vlAbstractApplicationWrapper_t *abstractApplicationWrapper, char buffer[], unsigned int maxSize)
Copies a JSON string with information about the current device into the provided buffer.
Definition: vlSDK.h:110
vlImageFormat
Definition: vlSDK.h:127
VL_SDK_API vlImageWrapper_t *VL_CALLINGCONVENTION vlNew_ImageWrapper(vlImageFormat imageFormat)
Creates a new Image object and returns a pointer to it.
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetHeight(vlIntrinsicDataWrapper_t *intrinsicDataWrapper, unsigned int value)
Sets height of the given IntrinsicDataWrapper object to the given value.
VL_SDK_API bool VL_CALLINGCONVENTION vlLog(const char message[], int level)
Logs the given message as VisionLib log.
void(VL_CALLINGCONVENTION * vlCallbackExtrinsicDataWrapper)(vlExtrinsicDataWrapper_t *extrinsicData, void *clientData)
A pointer to a callback function which receives a pointer to an ExtrinsicDataWrapper object as parame...
Definition: vlSDK.h:211
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_AddIntrinsicDataListener(vlWorker_t *worker, vlCallbackIntrinsicDataWrapper listener, void *clientData)
Registers a listener for IntrinsicData events.
VL_SDK_API bool VL_CALLINGCONVENTION vlImageWrapper_CopyFromBuffer(vlImageWrapper_t *imageWrapper, const unsigned char buffer[], unsigned int width, unsigned int height)
Copies the given buffer into the VisionLib image.
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetCxNorm(vlIntrinsicDataWrapper_t *intrinsicDataWrapper, double value)
Sets the normalized x-component of the principal point of the given IntrinsicDataWrapper object to th...
void(VL_CALLINGCONVENTION * vlCallbackZString)(const char data[], void *clientData)
A pointer to a callback function which receives a zero terminated string as parameter.
Definition: vlSDK.h:147
VL_SDK_API void VL_CALLINGCONVENTION vlDelete_Worker(vlWorker_t *worker)
Deletes a Worker object.
VL_SDK_API void VL_CALLINGCONVENTION vlDisableLogBuffer()
Disables log buffering.
VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetCalibrationError(vlIntrinsicDataWrapper_t *intrinsicDataWrapper)
Returns the calibration error.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_WaitEvents(vlWorker_t *worker, unsigned int timeout)
Waits for enqueued events and calls the registered listeners.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_AddImageListener(vlWorker_t *worker, vlCallbackImageWrapper listener, void *clientData)
Registers a listener for image events.
VL_SDK_API vlIntrinsicDataWrapper_t *VL_CALLINGCONVENTION vlWorker_GetNodeIntrinsicDataSync(vlWorker_t *worker, const char node[], const char key[])
Returns a pointer to IntrinsicData with the given name from a given node.
VL_SDK_API char *VL_CALLINGCONVENTION vlSDKUtil_getCameraTransformsFromWorkspaceDefinition(const char *workspaceJson, unsigned long *size)
Transforms a workspace definition into a list of poses.
Definition: vlSDK.h:136
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_ProcessJsonAndBinaryCommandSync(vlWorker_t *worker, const char jsonString[], const char data[], unsigned int size, vlCallbackJsonAndBinaryString callback, void *clientData)
Processes the passed json command along with binary data for the visionLib.
VL_SDK_API unsigned int VL_CALLINGCONVENTION vlGetVersionRevision()
Returns the revision version number of the VisionLib plugin.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_Unlock(vlWorker_t *worker)
For testing purposed. Don't use!
VL_SDK_API bool VL_CALLINGCONVENTION vlRemoveLogListener(vlCallbackZString fn, void *clientData)
Unregisters a log listener.
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_RegisterThread(vlAbstractApplicationWrapper_t *abstractApplicationWrapper)
Registers the current thread for the AbstractApplication.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_SetNodeIntrinsicDataSync(vlWorker_t *worker, vlIntrinsicDataWrapper_t *intrinsicData, const char node[], const char key[])
Sets the given IntrinsicData in the given input of the given node.
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetFxNorm(vlIntrinsicDataWrapper_t *intrinsicDataWrapper, double value)
Sets the normalized focal length in x direction of the given IntrinsicDataWrapper object to the given...
VL_SDK_API bool VL_CALLINGCONVENTION vlImageWrapper_CopyToBuffer(vlImageWrapper_t *imageWrapper, unsigned char buffer[], unsigned int bufferSize)
Copies the VisionLib image into the given buffer.
VL_SDK_API void VL_CALLINGCONVENTION vlDelete_ExtrinsicDataWrapper(vlExtrinsicDataWrapper_t *extrinsicDataWrapper)
Deletes an ExtrinsicDataWrapper object.
void(VL_CALLINGCONVENTION * vlCallbackImageWrapper)(vlImageWrapper_t *image, void *clientData)
A pointer to a callback function which receives a pointer to an ImageWrapper object as parameter...
Definition: vlSDK.h:196
Definition: vlSDK.h:130
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_SetNodeImageSync(vlWorker_t *worker, vlImageWrapper_t *image, const char node[], const char key[])
Sets the given image in the given input of the given node.
VL_SDK_API vlWorker_t *VL_CALLINGCONVENTION vlNew_SyncWorker(vlAbstractApplicationWrapper_t *aap)
Creates a synchronous Worker object.
void(VL_CALLINGCONVENTION * vlCallbackIntrinsicDataWrapper)(vlIntrinsicDataWrapper_t *intrinsicData, void *clientData)
A pointer to a callback function which receives a pointer to an IntrinsicDataWrapper object as parame...
Definition: vlSDK.h:226
vlLogLevel
Definition: vlSDK.h:97
VL_SDK_API unsigned int VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetWidth(vlIntrinsicDataWrapper_t *intrinsicDataWrapper)
Returns the width of the intrinsic camera calibration.
Definition: vlSDK.h:108
VL_SDK_API unsigned int VL_CALLINGCONVENTION vlImageWrapper_GetHeight(vlImageWrapper_t *imageWrapper)
Returns the height of the image.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_Lock(vlWorker_t *worker)
For testing purposed. Don't use!
VL_SDK_API unsigned int VL_CALLINGCONVENTION vlGetVersionMajor()
Returns the major version number of the VisionLib plugin.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_AddDebugImageListener(vlWorker_t *worker, vlCallbackImageWrapper listener, void *clientData)
Register a listener for debug image events.
struct vlImageWrapper_s vlImageWrapper_t
Type which represents an ImageWrapper.
Definition: vlSDK.h:65
VL_SDK_API vlWorker_t *VL_CALLINGCONVENTION vlNew_Worker(vlAbstractApplicationWrapper_t *aap)
Creates a Worker object.
vlRenderRotation
Definition: vlSDK.h:116
VL_SDK_API bool VL_CALLINGCONVENTION vlSDKUtil_set(const char *uri, const void *data, unsigned long size, const char *options=0)
Posts or writes data to given URI.
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_ResetCameraCalibrationDB(vlAbstractApplicationWrapper_t *abstractApplicationWrapper)
Removes all references to all manually set calibration data bases.
void(VL_CALLINGCONVENTION * vlCallbackJsonString)(const char error[], const char data[], void *clientData)
A pointer to a callback function which receives two zero terminated string which contain JSON data...
Definition: vlSDK.h:163
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_Stop(vlWorker_t *worker)
Stops the tracking thread.
VL_SDK_API void VL_CALLINGCONVENTION vlDelete_ImageWrapper(vlImageWrapper_t *imageWrapper)
Deletes an ImageWrapper object.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_Start(vlWorker_t *worker)
Starts the tracking thread.
VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetSkewNorm(vlIntrinsicDataWrapper_t *intrinsicDataWrapper)
Returns the normalized skew of the intrinsic camera calibration.
VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetCamPosWorld(vlExtrinsicDataWrapper_t *extrinsicDataWrapper, float t[], unsigned int elementCount)
Returns the position of the camera in world coordinates.
VL_SDK_API unsigned int VL_CALLINGCONVENTION vlImageWrapper_GetWidth(vlImageWrapper_t *imageWrapper)
Returns the width of the image.
VL_SDK_API bool VL_CALLINGCONVENTION vlFlushLogBuffer()
Notifies registered log listeners of all buffered log messages.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RemoveExtrinsicDataListener(vlWorker_t *worker, vlCallbackExtrinsicDataWrapper listener, void *clientData)
Unregisters a listener from ExtrinsicData events.
Definition: vlSDK.h:100
VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetT(vlExtrinsicDataWrapper_t *extrinsicDataWrapper, const float t[], unsigned int elementCount)
Sets the translation from the world coordinate system to the camera coordinate system.
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_SetLicenseFileData(vlAbstractApplicationWrapper_t *abstractApplicationWrapper, const char *licenseFileData)
Allows to inject the license data from memory.
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_ClearProject(vlAbstractApplicationWrapper_t *abstractApplicationWrapper)
Clears the ActionPipe and DataSet.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RemoveImageListener(vlWorker_t *worker, vlCallbackImageWrapper listener, void *clientData)
Unregisters a listener from image events.
VL_SDK_API void VL_CALLINGCONVENTION vlEnableLogBuffer()
Enables log buffering.
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_SetLicenseFilePath(vlAbstractApplicationWrapper_t *abstractApplicationWrapper, const char *licenseFilePath)
Sets the path of the license file.
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_LoadProjectData(vlAbstractApplicationWrapper_t *abstractApplicationWrapper, const char filename[])
Loads the specified tracking configuration XML file.
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_FoundBlockedFeatures(vlAbstractApplicationWrapper_t *abstractApplicationWrapper)
Returns whether any features are used, which are not licensed.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_ProcessJsonCommandSync(vlWorker_t *worker, const char jsonString[], vlCallbackJsonString callback, void *clientData)
Processes the passed command.
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetFyNorm(vlIntrinsicDataWrapper_t *intrinsicDataWrapper, double value)
Sets the normalized focal length in y direction of the given IntrinsicDataWrapper object to the given...
VL_SDK_API bool VL_CALLINGCONVENTION vlSetLogLevel(int level)
Sets the log level.
Definition: vlSDK.h:134
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_ActivateFoundBlockedFeatures(vlAbstractApplicationWrapper_t *abstractApplicationWrapper)
Simulates the usage of blocked features.
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_LoadProjectDataFromString(vlAbstractApplicationWrapper_t *abstractApplicationWrapper, const char str[], const char fakeFilename[])
Loads the given string as tracking configuration.
VL_SDK_API vlIntrinsicDataWrapper_t *VL_CALLINGCONVENTION vlNew_IntrinsicDataWrapper()
Creates a new IntrinsicDataWrapper object and returns a pointer to it.
Definition: vlSDK.h:132
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RunOnceSync(vlWorker_t *worker)
Processes the enqueued commands and the tracking once.
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetWidth(vlIntrinsicDataWrapper_t *intrinsicDataWrapper, unsigned int value)
Sets width of the given IntrinsicDataWrapper object to the given value.
struct vlWorker_s vlWorker_t
Type which represents a Worker.
Definition: vlSDK.h:92
Definition: vlSDK.h:106
VL_SDK_API bool VL_CALLINGCONVENTION vlGetVersionString(char version[], unsigned int maxSize)
Copies the version string of the VisionLib plugin into a buffer.
VL_SDK_API bool VL_CALLINGCONVENTION vlSDKUtil_retrievePhysicalPath(const char uri[], char physicalPath[], unsigned int maxSize)
Resolves the given URI.
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_AutoLoadPlugins(vlAbstractApplicationWrapper_t *abstractApplicationWrapper, const char pluginPath[])
Loads all VisionLib plugins from a specific directory.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RemoveAnchorToWorldTransformListener(vlWorker_t *worker, const char anchorName[], vlCallbackExtrinsicDataWrapper listener, void *clientData)
Unregister a listener from anchor to world transform events (ExtrinsicData events) produced by a cert...
VL_SDK_API bool VL_CALLINGCONVENTION vlSDKUtil_getTempFilename(const char *prefName, char *newName, unsigned int maxSize)
Generate a temporary file URI.
void(VL_CALLINGCONVENTION * vlCallbackJsonAndBinaryString)(const char description[], const char data[], unsigned int size, void *clientData)
A pointer to a callback function which receives a zero terminated description string (usually in JSON...
Definition: vlSDK.h:181
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_AddPerformanceInfoListener(vlWorker_t *worker, vlCallbackZString listener, void *clientData)
Registers a listener for performance information events.
VL_SDK_API vlExtrinsicDataWrapper_t *VL_CALLINGCONVENTION vlWorker_GetNodeExtrinsicDataSync(vlWorker_t *worker, const char node[], const char key[])
Returns a pointer to extrinsicdata with the given name from a given node.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_IsRunning(vlWorker_t *worker)
Returns whether the thread is currently running or not.
VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetFxNorm(vlIntrinsicDataWrapper_t *intrinsicDataWrapper)
Returns the normalized focal length of the intrinsic camera calibration in x direction.
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_AddCameraCalibrationDB(vlAbstractApplicationWrapper_t *abstractApplicationWrapper, const char uri[])
Adds a given URI pointing to a camera calibration database JSON file to the VisionLib.
Definition: vlSDK.h:104
VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetR(vlExtrinsicDataWrapper_t *extrinsicDataWrapper, const float q[], unsigned int elementCount)
Sets the rotation from the world coordinate system to the camera coordinate system.
VL_SDK_API vlAbstractApplicationWrapper_t *VL_CALLINGCONVENTION vlNew_AbstractApplicationWrapper()
Creates an AbstractApplicationWrapper object.
VL_SDK_API char *VL_CALLINGCONVENTION vlSDKUtil_getCameraPositionsFromGeometry(const char *geometryJson, unsigned long *size)
Transforms a workspace geometry into a list of points.
VL_SDK_API bool VL_CALLINGCONVENTION vlGetHostId(char hostIdBuffer[], unsigned int maxSize)
Copies the host ID of the current application into the provided buffer as zero terminated string...
VL_SDK_API vlImageWrapper_t *VL_CALLINGCONVENTION vlWorker_GetNodeImageSync(vlWorker_t *worker, const char node[], const char key[])
Returns a pointer to the image with the given name from a given node.
VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetCyNorm(vlIntrinsicDataWrapper_t *intrinsicDataWrapper)
Returns the normalized y-component of the principal point.
VL_SDK_API vlImageWrapper_t *VL_CALLINGCONVENTION vlWorker_GetImageByNameSync(vlWorker_t *worker, const char *image_name)
Returns a pointer to the camera image with the given name.
VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetCxNorm(vlIntrinsicDataWrapper_t *intrinsicDataWrapper)
Returns the normalized x-component of the principal point.
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetProjectionMatrix(vlIntrinsicDataWrapper_t *intrinsicDataWrapper, float nearFact, float farFact, unsigned int screenWidth, unsigned int screenHeight, unsigned int renderRotation, unsigned int mode, float matrix[], unsigned int matrixElementCount)
Computed the projection matrix from the intrinsic camera parameters.
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetRadialDistortion(vlIntrinsicDataWrapper_t *intrinsicDataWrapper, const double k[], unsigned int elementCount)
Sets the radial distortion parameters.
VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetValid(vlExtrinsicDataWrapper_t *extrinsicDataWrapper)
Returns whether the current tracking pose is valid (the tracking was successful). ...
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_GetHostID(vlAbstractApplicationWrapper_t *abstractApplicationWrapper, char hostID[], unsigned int maxSize)
Copies the host ID of the current machine into the provided buffer as zero terminated string...
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetCalibrated(vlIntrinsicDataWrapper_t *intrinsicDataWrapper, bool value)
Sets the calibrated flag of the given IntrinsicDataWrapper object to the given value.
VL_SDK_API bool VL_CALLINGCONVENTION vlGetVersionTimestampString(char versionTimeStamp[], unsigned int maxSize)
Copies the version timestamp of the VisionLib plugin into a buffer.
struct vlIntrinsicDataWrapper_s vlIntrinsicDataWrapper_t
Type which represents an IntrinsicDataWrapper.
Definition: vlSDK.h:83
This file contains defines with the VisionLib version.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RemoveDebugImageListener(vlWorker_t *worker, vlCallbackImageWrapper listener, void *clientData)
Unregisters a listener from debug image events.
VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetCamPosWorld(vlExtrinsicDataWrapper_t *extrinsicDataWrapper, const float t[], unsigned int elementCount)
Sets the position of the camera in world coordinates.
VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetValid(vlExtrinsicDataWrapper_t *extrinsicDataWrapper, bool value)
Sets the valid flag of the given ExtrinsicData.
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetRadialDistortion(vlIntrinsicDataWrapper_t *intrinsicDataWrapper, double k[], unsigned int elementCount)
Retrieves the radial distortion parameters.
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_GetLicenseInformation(vlAbstractApplicationWrapper_t *abstractApplicationWrapper, char licenseInfo[], unsigned int maxSize)
Retrieves actual license information as a JSON encoded string.
VL_SDK_API bool VL_CALLINGCONVENTION vlIntrinsicDataWrapper_SetSkewNorm(vlIntrinsicDataWrapper_t *intrinsicDataWrapper, double value)
Sets the normalized skew of the given IntrinsicDataWrapper object to the given value.
VL_SDK_API unsigned int VL_CALLINGCONVENTION vlImageWrapper_GetBytesPerPixel(vlImageWrapper_t *imageWrapper)
Returns the number of bytes per pixel.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_PushJsonAndBinaryCommand(vlWorker_t *worker, const char jsonString[], const char data[], unsigned int size, vlCallbackJsonAndBinaryString callback, void *clientData)
Enqueues a json command along with binary data for the visionLib.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_PushJsonCommand(vlWorker_t *worker, const char jsonString[], vlCallbackJsonString callback, void *clientData)
Enqueues a command for the tracking thread as zero terminated JSON string.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RemoveIntrinsicDataListener(vlWorker_t *worker, vlCallbackIntrinsicDataWrapper listener, void *clientData)
Unregisters a listener from IntrinsicData events.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_AddTrackingStateListener(vlWorker_t *worker, vlCallbackZString listener, void *clientData)
Registers a listener for tracking state events.
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_GetTrackerType(vlAbstractApplicationWrapper_t *abstractApplicationWrapper, char trackerType[], unsigned int maxSize)
Returns the type of the loaded tracking pipeline.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RemovePerformanceInfoListener(vlWorker_t *worker, vlCallbackZString listener, void *clientData)
Unregisters a listener from performance info events.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_PollEvents(vlWorker_t *worker)
Calls the registered listeners for the enqueued events.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_AddAnchorToWorldTransformListener(vlWorker_t *worker, const char anchorName[], vlCallbackExtrinsicDataWrapper listener, void *clientData)
Register a listener for anchor to world transform events (ExtrinsicData events) produced by a certain...
struct vlAbstractApplicationWrapper_s vlAbstractApplicationWrapper_t
Type which represents an AbstractApplicationWrapper.
Definition: vlSDK.h:56
VL_SDK_API void VL_CALLINGCONVENTION vlDelete_IntrinsicDataWrapper(vlIntrinsicDataWrapper_t *intrinsicDataWrapper)
Deletes an IntrinsicDataWrapper object.
VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetR(vlExtrinsicDataWrapper_t *extrinsicDataWrapper, float q[], unsigned int elementCount)
Returns the rotation from the world coordinate system to the camera coordinate system.
Definition: vlSDK.h:102
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_ProcessCallbacks(vlWorker_t *worker)
Executes all enqueued callbacks.
VL_SDK_API unsigned int VL_CALLINGCONVENTION vlImageWrapper_GetFormat(vlImageWrapper_t *imageWrapper)
Returns the internal type of the image.
VL_SDK_API bool VL_CALLINGCONVENTION vlClearLogListeners()
Removes all log listeners.
VL_SDK_API bool VL_CALLINGCONVENTION vlImageWrapper_CopyFromBufferWithFormat(vlImageWrapper_t *imageWrapper, const unsigned char buffer[], unsigned int width, unsigned int height, vlImageFormat imageFormat)
Copies the given an formated buffer into the VisionLib image.
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_SetNodeExtrinsicDataSync(vlWorker_t *worker, vlExtrinsicDataWrapper_t *extrinsicData, const char node[], const char key[])
Sets the given extrinsicData in the given input of the given node.
VL_SDK_API vlExtrinsicDataWrapper_t *VL_CALLINGCONVENTION vlNew_ExtrinsicDataWrapper()
Creates a new ExtrinsicDataWrapper object and returns a pointer to it.
VL_SDK_API void VL_CALLINGCONVENTION vlDelete_AbstractApplicationWrapper(vlAbstractApplicationWrapper_t *abstractApplicationWrapper)
Deletes an AbstractApplicationWrapper object.
struct vlExtrinsicDataWrapper_s vlExtrinsicDataWrapper_t
Type which represents an ExtrinsicDataWrapper.
Definition: vlSDK.h:74
VL_SDK_API double VL_CALLINGCONVENTION vlIntrinsicDataWrapper_GetFyNorm(vlIntrinsicDataWrapper_t *intrinsicDataWrapper)
Returns the normalized focal length of the intrinsic camera calibration in y direction.
VL_SDK_API void VL_CALLINGCONVENTION vlSetLogBufferSize(unsigned int maxEntries)
Sets the maximum number of log messages in the log buffer.
VL_SDK_API bool VL_CALLINGCONVENTION vlAbstractApplicationWrapper_GetBundleID(vlAbstractApplicationWrapper_t *abstractApplicationWrapper, char bundleID[], unsigned int maxSize)
Copies the bundle ID of the current application into the provided buffer as zero terminated string...
VL_SDK_API bool VL_CALLINGCONVENTION vlWorker_RemoveTrackingStateListener(vlWorker_t *worker, vlCallbackZString listener, void *clientData)
Unregisters a listener from tracking state events.
VL_SDK_API bool VL_CALLINGCONVENTION vlAddLogListener(vlCallbackZString fn, void *clientData)
Registers a log listener.