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 destroyNativeApplication(const void *object);
34 void setScreenRotationNative(const void *object, int displayRotation);
35 int openDatabaseNative(const void *object, const char * databasePath, bool databaseInMemory, bool optimize, bool clearDatabase);
36 void saveNative(const void *object, const char * databasePath);
37 bool recoverNative(const void *object, const char * from, const char * to);
38 void cancelProcessingNative(const void * object);
39 int postProcessingNative(const void *object, int approach);
40 bool exportMeshNative(
41  const void *object,
42  float cloudVoxelSize,
43  bool regenerateCloud,
44  bool meshing,
45  int textureSize,
46  int textureCount,
47  int normalK,
48  bool optimized,
49  float optimizedVoxelSize,
50  int optimizedDepth,
51  int optimizedMaxPolygons,
52  float optimizedColorRadius,
53  bool optimizedCleanWhitePolygons,
54  int optimizedMinClusterSize,
55  float optimizedMaxTextureDistance,
56  int optimizedMinTextureClusterSize,
57  bool blockRendering);
58 bool postExportationNative(const void *object, bool visualize);
59 bool writeExportedMeshNative(const void *object, const char * directory, const char * name);
60 void initGlContentNative(const void *object);
61 void setupGraphicNative(const void *object, int width, int height);
62 void onTouchEventNative(const void *object, int touch_count, int event, float x0, float y0, float x1,
63  float y1);
64 void setPausedMappingNative(const void *object, bool paused);
65 int renderNative(const void *object);
66 bool startCameraNative(const void *object);
67 void stopCameraNative(const void *object);
68 void setCameraNative(const void *object, int type);
69 void postCameraPoseEventNative(const void *object,
70  float x, float y, float z, float qx, float qy, float qz, float qw, double stamp);
71 void postOdometryEventNative(const void *object,
72  float x, float y, float z, float qx, float qy, float qz, float qw,
73  float fx, float fy, float cx, float cy,
74  double stamp,
75  const void * yPlane, const void * uPlane, const void * vPlane, int yPlaneLen, int rgbWidth, int rgbHeight, int rgbFormat,
76  const void * depth, int depthLen, int depthWidth, int depthHeight, int depthFormat,
77  const void * conf, int confLen, int confWidth, int confHeight, int confFormat,
78  const void * points, int pointsLen, int pointsChannels,
79  float vx, float vy, float vz, float vqx, float vqy, float vqz, float vqw,
80  float p00, float p11, float p02, float p12, float p22, float p32, float p23,
81  float t0, float t1, float t2, float t3, float t4, float t5, float t6, float t7);
82 
83 void setOnlineBlendingNative(const void *object, bool enabled);
84 void setMapCloudShownNative(const void *object, bool shown);
85 void setOdomCloudShownNative(const void *object, bool shown);
86 void setMeshRenderingNative(const void *object, bool enabled, bool withTexture);
87 void setPointSizeNative(const void *object, float value);
88 void setFOVNative(const void *object, float angle);
89 void setOrthoCropFactorNative(const void *object, float value);
90 void setGridRotationNative(const void *object, float value);
91 void setLightingNative(const void *object, bool enabled);
92 void setBackfaceCullingNative(const void *object, bool enabled);
93 void setWireframeNative(const void *object, bool enabled);
94 void setLocalizationModeNative(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 setMaxCloudDepthNative(const void *object, float value);
104 void setMinCloudDepthNative(const void *object, float value);
105 void setCloudDensityLevelNative(const void *object, int value);
106 void setMeshAngleToleranceNative(const void *object, float value);
107 void setMeshDecimationFactorNative(const void *object, float value);
108 void setMeshTriangleSizeNative(const void *object, int value);
109 void setClusterRatioNative(const void *object, float value);
110 void setMaxGainRadiusNative(const void *object, float value);
111 void setRenderingTextureDecimationNative(const void *object, int value);
112 void setBackgroundColorNative(const void *object, float gray);
113 void setDepthConfidenceNative(const void *object, int value);
114 int setMappingParameterNative(const void *object, const char * key, const char * value);
115 
116 typedef struct ImageNative
117 {
118  const void * objectPtr;
119  void * data;
120  int width;
121  int height;
122  int channels;
124 } ImageNative;
125 
126 ImageNative getPreviewImageNative(const char * databasePath);
128 
129 void setGPSNative(const void *object, double stamp, double longitude, double latitude, double altitude, double accuracy, double bearing);
130 void addEnvSensorNative(const void *object, int type, float value);
131 
132 #ifdef __cplusplus
133 }
134 #endif
135 
136 #endif /* NativeWrapper_hpp */
setPointSizeNative
void setPointSizeNative(const void *object, float value)
Definition: NativeWrapper.cpp:401
addEnvSensorNative
void addEnvSensorNative(const void *object, int type, float value)
Definition: NativeWrapper.cpp:608
setMeshRenderingNative
void setMeshRenderingNative(const void *object, bool enabled, bool withTexture)
Definition: NativeWrapper.cpp:394
name
ImageNative::totalBytes
int totalBytes
Definition: NativeWrapper.hpp:123
ImageNative::height
int height
Definition: NativeWrapper.hpp:121
stopCameraNative
void stopCameraNative(const void *object)
Definition: NativeWrapper.cpp:264
ImageNative::width
int width
Definition: NativeWrapper.hpp:120
createNativeApplication
const void * createNativeApplication()
Definition: NativeWrapper.cpp:17
setTrajectoryModeNative
void setTrajectoryModeNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:457
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:135
setGridRotationNative
void setGridRotationNative(const void *object, float value)
Definition: NativeWrapper.cpp:422
setScreenRotationNative
void setScreenRotationNative(const void *object, int displayRotation)
Definition: NativeWrapper.cpp:60
type
setLocalizationModeNative
void setLocalizationModeNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:450
setMinCloudDepthNative
void setMinCloudDepthNative(const void *object, float value)
Definition: NativeWrapper.cpp:520
ImageNative::channels
int channels
Definition: NativeWrapper.hpp:122
setMaxGainRadiusNative
void setMaxGainRadiusNative(const void *object, float value)
Definition: NativeWrapper.cpp:562
setMeshDecimationFactorNative
void setMeshDecimationFactorNative(const void *object, float value)
Definition: NativeWrapper.cpp:541
setGPSNative
void setGPSNative(const void *object, double stamp, double longitude, double latitude, double altitude, double accuracy, double bearing)
Definition: NativeWrapper.cpp:599
setMeshTriangleSizeNative
void setMeshTriangleSizeNative(const void *object, int value)
Definition: NativeWrapper.cpp:548
startCameraNative
bool startCameraNative(const void *object)
Definition: NativeWrapper.cpp:252
setOdomCloudShownNative
void setOdomCloudShownNative(const void *object, bool shown)
Definition: NativeWrapper.cpp:387
setOnlineBlendingNative
void setOnlineBlendingNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:373
setFullResolutionNative
void setFullResolutionNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:492
getPreviewImageNative
ImageNative getPreviewImageNative(const char *databasePath)
Definition: NativeWrapper.cpp:334
cancelProcessingNative
void cancelProcessingNative(const void *object)
Definition: NativeWrapper.cpp:110
setPausedMappingNative
void setPausedMappingNative(const void *object, bool paused)
Definition: NativeWrapper.cpp:228
ImageNative::objectPtr
const void * objectPtr
Definition: NativeWrapper.hpp:118
setOrthoCropFactorNative
void setOrthoCropFactorNative(const void *object, float value)
Definition: NativeWrapper.cpp:415
setMappingParameterNative
int setMappingParameterNative(const void *object, const char *key, const char *value)
Definition: NativeWrapper.cpp:590
setRenderingTextureDecimationNative
void setRenderingTextureDecimationNative(const void *object, int value)
Definition: NativeWrapper.cpp:569
onTouchEventNative
void onTouchEventNative(const void *object, int touch_count, int event, float x0, float y0, float x1, float y1)
Definition: NativeWrapper.cpp:213
postExportationNative
bool postExportationNative(const void *object, bool visualize)
Definition: NativeWrapper.cpp:165
destroyNativeApplication
void destroyNativeApplication(const void *object)
Definition: NativeWrapper.cpp:48
setCameraNative
void setCameraNative(const void *object, int type)
Definition: NativeWrapper.cpp:275
setDepthConfidenceNative
void setDepthConfidenceNative(const void *object, int value)
Definition: NativeWrapper.cpp:583
setMapCloudShownNative
void setMapCloudShownNative(const void *object, bool shown)
Definition: NativeWrapper.cpp:380
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:85
setWireframeNative
void setWireframeNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:443
setGraphVisibleNative
void setGraphVisibleNative(const void *object, bool visible)
Definition: NativeWrapper.cpp:478
setClusterRatioNative
void setClusterRatioNative(const void *object, float value)
Definition: NativeWrapper.cpp:555
openDatabaseNative
int openDatabaseNative(const void *object, const char *databasePath, bool databaseInMemory, bool optimize, bool clearDatabase)
Definition: NativeWrapper.cpp:72
ImageNative::data
void * data
Definition: NativeWrapper.hpp:119
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))
Definition: NativeWrapper.cpp:23
setAppendModeNative
void setAppendModeNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:506
setBackgroundColorNative
void setBackgroundColorNative(const void *object, float gray)
Definition: NativeWrapper.cpp:576
setNodesFilteringNative
void setNodesFilteringNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:471
setFOVNative
void setFOVNative(const void *object, float angle)
Definition: NativeWrapper.cpp:408
setMaxCloudDepthNative
void setMaxCloudDepthNative(const void *object, float value)
Definition: NativeWrapper.cpp:513
setMeshAngleToleranceNative
void setMeshAngleToleranceNative(const void *object, float value)
Definition: NativeWrapper.cpp:534
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:300
ImageNative
struct ImageNative ImageNative
postProcessingNative
int postProcessingNative(const void *object, int approach)
Definition: NativeWrapper.cpp:122
recoverNative
bool recoverNative(const void *object, const char *from, const char *to)
Definition: NativeWrapper.cpp:97
setupGraphicNative
void setupGraphicNative(const void *object, int width, int height)
Definition: NativeWrapper.cpp:202
setLightingNative
void setLightingNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:429
setBackfaceCullingNative
void setBackfaceCullingNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:436
ImageNative
Definition: NativeWrapper.hpp:116
releasePreviewImageNative
void releasePreviewImageNative(ImageNative image)
Definition: NativeWrapper.cpp:363
initGlContentNative
void initGlContentNative(const void *object)
Definition: NativeWrapper.cpp:191
setCloudDensityLevelNative
void setCloudDensityLevelNative(const void *object, int value)
Definition: NativeWrapper.cpp:527
setGraphOptimizationNative
void setGraphOptimizationNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:464
conf
setSmoothingNative
void setSmoothingNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:499
setGridVisibleNative
void setGridVisibleNative(const void *object, bool visible)
Definition: NativeWrapper.cpp:485
postCameraPoseEventNative
void postCameraPoseEventNative(const void *object, float x, float y, float z, float qx, float qy, float qz, float qw, double stamp)
Definition: NativeWrapper.cpp:286
renderNative
int renderNative(const void *object)
Definition: NativeWrapper.cpp:240
writeExportedMeshNative
bool writeExportedMeshNative(const void *object, const char *directory, const char *name)
Definition: NativeWrapper.cpp:178


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:13