NativeWrapper.hpp
Go to the documentation of this file.
1 //
2 // PCLWrapper.hpp
3 // ThreeDScanner
4 //
5 // Created by Steven Roach on 2/9/18.
6 // Copyright © 2018 Steven Roach. All rights reserved.
7 //
8 
9 #ifndef NativeWrapper_hpp
10 #define NativeWrapper_hpp
11 
12 #include <stdbool.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 const void *createNativeApplication();
19 void setupCallbacksNative(const void *object, void * classPtr,
20  void(*progressCallback)(void*, int, int),
21  void(*initCallback)(void *, int, const char*),
22  void(*statsUpdatedCallback)(void *,
23  int, int, int, int,
24  float,
25  int, int, int, int, int ,int,
26  float,
27  int,
28  float,
29  int,
30  float, float, float, float,
31  int, int,
32  float, float, float, float, float, float),
33  void(*cameraInfoEventCallback)(void *, int, const char*, const char*));
34 void destroyNativeApplication(const void *object);
35 void setScreenRotationNative(const void *object, int displayRotation);
36 int openDatabaseNative(const void *object, const char * databasePath, bool databaseInMemory, bool optimize, bool clearDatabase);
37 void saveNative(const void *object, const char * databasePath);
38 bool recoverNative(const void *object, const char * from, const char * to);
39 void cancelProcessingNative(const void * object);
40 int postProcessingNative(const void *object, int approach);
41 bool exportMeshNative(
42  const void *object,
43  float cloudVoxelSize,
44  bool regenerateCloud,
45  bool meshing,
46  int textureSize,
47  int textureCount,
48  int normalK,
49  bool optimized,
50  float optimizedVoxelSize,
51  int optimizedDepth,
52  int optimizedMaxPolygons,
53  float optimizedColorRadius,
54  bool optimizedCleanWhitePolygons,
55  int optimizedMinClusterSize,
56  float optimizedMaxTextureDistance,
57  int optimizedMinTextureClusterSize,
58  bool blockRendering);
59 bool postExportationNative(const void *object, bool visualize);
60 bool writeExportedMeshNative(const void *object, const char * directory, const char * name);
61 void initGlContentNative(const void *object);
62 void setupGraphicNative(const void *object, int width, int height);
63 void onTouchEventNative(const void *object, int touch_count, int event, float x0, float y0, float x1,
64  float y1);
65 void setPausedMappingNative(const void *object, bool paused);
66 int renderNative(const void *object);
67 bool startCameraNative(const void *object);
68 void stopCameraNative(const void *object);
69 void setCameraNative(const void *object, int type);
70 void postOdometryEventNative(const void *object,
71  float x, float y, float z, float qx, float qy, float qz, float qw,
72  float fx, float fy, float cx, float cy,
73  double stamp,
74  const void * yPlane, const void * uPlane, const void * vPlane, int yPlaneLen, int rgbWidth, int rgbHeight, int rgbFormat,
75  const void * depth, int depthLen, int depthWidth, int depthHeight, int depthFormat,
76  const void * conf, int confLen, int confWidth, int confHeight, int confFormat,
77  const void * points, int pointsLen, int pointsChannels,
78  float vx, float vy, float vz, float vqx, float vqy, float vqz, float vqw,
79  float p00, float p11, float p02, float p12, float p22, float p32, float p23,
80  float t0, float t1, float t2, float t3, float t4, float t5, float t6, float t7);
81 
82 void setOnlineBlendingNative(const void *object, bool enabled);
83 void setMapCloudShownNative(const void *object, bool shown);
84 void setOdomCloudShownNative(const void *object, bool shown);
85 void setMeshRenderingNative(const void *object, bool enabled, bool withTexture);
86 void setPointSizeNative(const void *object, float value);
87 void setFOVNative(const void *object, float angle);
88 void setOrthoCropFactorNative(const void *object, float value);
89 void setGridRotationNative(const void *object, float value);
90 void setLightingNative(const void *object, bool enabled);
91 void setBackfaceCullingNative(const void *object, bool enabled);
92 void setWireframeNative(const void *object, bool enabled);
93 void setLocalizationModeNative(const void *object, bool enabled);
94 void setDataRecorderModeNative(const void *object, bool enabled);
95 void setTrajectoryModeNative(const void *object, bool enabled);
96 void setGraphOptimizationNative(const void *object, bool enabled);
97 void setNodesFilteringNative(const void *object, bool enabled);
98 void setGraphVisibleNative(const void *object, bool visible);
99 void setGridVisibleNative(const void *object, bool visible);
100 void setFullResolutionNative(const void *object, bool enabled);
101 void setSmoothingNative(const void *object, bool enabled);
102 void setAppendModeNative(const void *object, bool enabled);
103 void setUpstreamRelocalizationAccThrNative(const void *object, float value);
104 void setMaxCloudDepthNative(const void *object, float value);
105 void setMinCloudDepthNative(const void *object, float value);
106 void setCloudDensityLevelNative(const void *object, int value);
107 void setMeshAngleToleranceNative(const void *object, float value);
108 void setMeshDecimationFactorNative(const void *object, float value);
109 void setMeshTriangleSizeNative(const void *object, int value);
110 void setClusterRatioNative(const void *object, float value);
111 void setMaxGainRadiusNative(const void *object, float value);
112 void setRenderingTextureDecimationNative(const void *object, int value);
113 void setBackgroundColorNative(const void *object, float gray);
114 void setDepthConfidenceNative(const void *object, int value);
115 void setExportPointCloudFormatNative(const void *object, const char * format);
116 int setMappingParameterNative(const void *object, const char * key, const char * value);
117 
118 typedef struct ImageNative
119 {
120  const void * objectPtr;
121  void * data;
122  int width;
123  int height;
124  int channels;
126 } ImageNative;
127 
128 ImageNative getPreviewImageNative(const char * databasePath);
130 
131 void setGPSNative(const void *object, double stamp, double longitude, double latitude, double altitude, double accuracy, double bearing);
132 void addEnvSensorNative(const void *object, int type, float value);
133 
134 #ifdef __cplusplus
135 }
136 #endif
137 
138 #endif /* NativeWrapper_hpp */
setPointSizeNative
void setPointSizeNative(const void *object, float value)
Definition: NativeWrapper.cpp:388
addEnvSensorNative
void addEnvSensorNative(const void *object, int type, float value)
Definition: NativeWrapper.cpp:618
setMeshRenderingNative
void setMeshRenderingNative(const void *object, bool enabled, bool withTexture)
Definition: NativeWrapper.cpp:381
setupCallbacksNative
void setupCallbacksNative(const void *object, void *classPtr, void(*progressCallback)(void *, int, int), void(*initCallback)(void *, int, const char *), void(*statsUpdatedCallback)(void *, int, int, int, int, float, int, int, int, int, int, int, float, int, float, int, float, float, float, float, int, int, float, float, float, float, float, float), void(*cameraInfoEventCallback)(void *, int, const char *, const char *))
Definition: NativeWrapper.cpp:23
name
ImageNative::totalBytes
int totalBytes
Definition: NativeWrapper.hpp:125
setExportPointCloudFormatNative
void setExportPointCloudFormatNative(const void *object, const char *format)
Definition: NativeWrapper.cpp:592
ImageNative::height
int height
Definition: NativeWrapper.hpp:123
stopCameraNative
void stopCameraNative(const void *object)
Definition: NativeWrapper.cpp:265
ImageNative::width
int width
Definition: NativeWrapper.hpp:122
createNativeApplication
const void * createNativeApplication()
Definition: NativeWrapper.cpp:17
setTrajectoryModeNative
void setTrajectoryModeNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:451
exportMeshNative
bool exportMeshNative(const void *object, float cloudVoxelSize, bool regenerateCloud, bool meshing, int textureSize, int textureCount, int normalK, bool optimized, float optimizedVoxelSize, int optimizedDepth, int optimizedMaxPolygons, float optimizedColorRadius, bool optimizedCleanWhitePolygons, int optimizedMinClusterSize, float optimizedMaxTextureDistance, int optimizedMinTextureClusterSize, bool blockRendering)
Definition: NativeWrapper.cpp:136
setGridRotationNative
void setGridRotationNative(const void *object, float value)
Definition: NativeWrapper.cpp:409
setScreenRotationNative
void setScreenRotationNative(const void *object, int displayRotation)
Definition: NativeWrapper.cpp:61
type
setLocalizationModeNative
void setLocalizationModeNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:437
setMinCloudDepthNative
void setMinCloudDepthNative(const void *object, float value)
Definition: NativeWrapper.cpp:521
setDataRecorderModeNative
void setDataRecorderModeNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:444
ImageNative::channels
int channels
Definition: NativeWrapper.hpp:124
setMaxGainRadiusNative
void setMaxGainRadiusNative(const void *object, float value)
Definition: NativeWrapper.cpp:563
setMeshDecimationFactorNative
void setMeshDecimationFactorNative(const void *object, float value)
Definition: NativeWrapper.cpp:542
setGPSNative
void setGPSNative(const void *object, double stamp, double longitude, double latitude, double altitude, double accuracy, double bearing)
Definition: NativeWrapper.cpp:609
setMeshTriangleSizeNative
void setMeshTriangleSizeNative(const void *object, int value)
Definition: NativeWrapper.cpp:549
startCameraNative
bool startCameraNative(const void *object)
Definition: NativeWrapper.cpp:253
setOdomCloudShownNative
void setOdomCloudShownNative(const void *object, bool shown)
Definition: NativeWrapper.cpp:374
setOnlineBlendingNative
void setOnlineBlendingNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:360
setFullResolutionNative
void setFullResolutionNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:486
getPreviewImageNative
ImageNative getPreviewImageNative(const char *databasePath)
Definition: NativeWrapper.cpp:321
cancelProcessingNative
void cancelProcessingNative(const void *object)
Definition: NativeWrapper.cpp:111
setPausedMappingNative
void setPausedMappingNative(const void *object, bool paused)
Definition: NativeWrapper.cpp:229
ImageNative::objectPtr
const void * objectPtr
Definition: NativeWrapper.hpp:120
setOrthoCropFactorNative
void setOrthoCropFactorNative(const void *object, float value)
Definition: NativeWrapper.cpp:402
setMappingParameterNative
int setMappingParameterNative(const void *object, const char *key, const char *value)
Definition: NativeWrapper.cpp:600
setRenderingTextureDecimationNative
void setRenderingTextureDecimationNative(const void *object, int value)
Definition: NativeWrapper.cpp:570
onTouchEventNative
void onTouchEventNative(const void *object, int touch_count, int event, float x0, float y0, float x1, float y1)
Definition: NativeWrapper.cpp:214
postExportationNative
bool postExportationNative(const void *object, bool visualize)
Definition: NativeWrapper.cpp:166
destroyNativeApplication
void destroyNativeApplication(const void *object)
Definition: NativeWrapper.cpp:49
setCameraNative
void setCameraNative(const void *object, int type)
Definition: NativeWrapper.cpp:276
setDepthConfidenceNative
void setDepthConfidenceNative(const void *object, int value)
Definition: NativeWrapper.cpp:584
setMapCloudShownNative
void setMapCloudShownNative(const void *object, bool shown)
Definition: NativeWrapper.cpp:367
glm::angle
GLM_FUNC_DECL T angle(detail::tquat< T, P > const &x)
saveNative
void saveNative(const void *object, const char *databasePath)
Definition: NativeWrapper.cpp:86
setWireframeNative
void setWireframeNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:430
setGraphVisibleNative
void setGraphVisibleNative(const void *object, bool visible)
Definition: NativeWrapper.cpp:472
setClusterRatioNative
void setClusterRatioNative(const void *object, float value)
Definition: NativeWrapper.cpp:556
openDatabaseNative
int openDatabaseNative(const void *object, const char *databasePath, bool databaseInMemory, bool optimize, bool clearDatabase)
Definition: NativeWrapper.cpp:73
setUpstreamRelocalizationAccThrNative
void setUpstreamRelocalizationAccThrNative(const void *object, float value)
Definition: NativeWrapper.cpp:507
ImageNative::data
void * data
Definition: NativeWrapper.hpp:121
setAppendModeNative
void setAppendModeNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:500
setBackgroundColorNative
void setBackgroundColorNative(const void *object, float gray)
Definition: NativeWrapper.cpp:577
setNodesFilteringNative
void setNodesFilteringNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:465
setFOVNative
void setFOVNative(const void *object, float angle)
Definition: NativeWrapper.cpp:395
setMaxCloudDepthNative
void setMaxCloudDepthNative(const void *object, float value)
Definition: NativeWrapper.cpp:514
setMeshAngleToleranceNative
void setMeshAngleToleranceNative(const void *object, float value)
Definition: NativeWrapper.cpp:535
postOdometryEventNative
void postOdometryEventNative(const void *object, float x, float y, float z, float qx, float qy, float qz, float qw, float fx, float fy, float cx, float cy, double stamp, const void *yPlane, const void *uPlane, const void *vPlane, int yPlaneLen, int rgbWidth, int rgbHeight, int rgbFormat, const void *depth, int depthLen, int depthWidth, int depthHeight, int depthFormat, const void *conf, int confLen, int confWidth, int confHeight, int confFormat, const void *points, int pointsLen, int pointsChannels, float vx, float vy, float vz, float vqx, float vqy, float vqz, float vqw, float p00, float p11, float p02, float p12, float p22, float p32, float p23, float t0, float t1, float t2, float t3, float t4, float t5, float t6, float t7)
Definition: NativeWrapper.cpp:287
ImageNative
struct ImageNative ImageNative
postProcessingNative
int postProcessingNative(const void *object, int approach)
Definition: NativeWrapper.cpp:123
recoverNative
bool recoverNative(const void *object, const char *from, const char *to)
Definition: NativeWrapper.cpp:98
setupGraphicNative
void setupGraphicNative(const void *object, int width, int height)
Definition: NativeWrapper.cpp:203
setLightingNative
void setLightingNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:416
setBackfaceCullingNative
void setBackfaceCullingNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:423
ImageNative
Definition: NativeWrapper.hpp:118
releasePreviewImageNative
void releasePreviewImageNative(ImageNative image)
Definition: NativeWrapper.cpp:350
initGlContentNative
void initGlContentNative(const void *object)
Definition: NativeWrapper.cpp:192
setCloudDensityLevelNative
void setCloudDensityLevelNative(const void *object, int value)
Definition: NativeWrapper.cpp:528
setGraphOptimizationNative
void setGraphOptimizationNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:458
conf
setSmoothingNative
void setSmoothingNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:493
setGridVisibleNative
void setGridVisibleNative(const void *object, bool visible)
Definition: NativeWrapper.cpp:479
renderNative
int renderNative(const void *object)
Definition: NativeWrapper.cpp:241
writeExportedMeshNative
bool writeExportedMeshNative(const void *object, const char *directory, const char *name)
Definition: NativeWrapper.cpp:179


rtabmap
Author(s): Mathieu Labbe
autogenerated on Sun Dec 1 2024 03:42:49