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);
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 setRawScanSavedNative(const void *object, bool enabled);
101 void setFullResolutionNative(const void *object, bool enabled);
102 void setSmoothingNative(const void *object, bool enabled);
103 void setAppendModeNative(const void *object, bool enabled);
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 int setMappingParameterNative(const void *object, const char * key, const char * value);
116 
117 typedef struct ImageNative
118 {
119  const void * objectPtr;
120  void * data;
121  int width;
122  int height;
123  int channels;
125 } ImageNative;
126 
127 ImageNative getPreviewImageNative(const char * databasePath);
129 
130 void setGPSNative(const void *object, double stamp, double longitude, double latitude, double altitude, double accuracy, double bearing);
131 void addEnvSensorNative(const void *object, int type, float value);
132 
133 #ifdef __cplusplus
134 }
135 #endif
136 
137 #endif /* NativeWrapper_hpp */
void setTrajectoryModeNative(const void *object, bool enabled)
void setOrthoCropFactorNative(const void *object, float value)
void setRenderingTextureDecimationNative(const void *object, int value)
void setCameraNative(const void *object, int type)
void setDepthConfidenceNative(const void *object, int value)
void setOdomCloudShownNative(const void *object, bool shown)
void setNodesFilteringNative(const void *object, bool enabled)
void saveNative(const void *object, const char *databasePath)
int renderNative(const void *object)
void setOnlineBlendingNative(const void *object, bool enabled)
void setFOVNative(const void *object, float angle)
void setMaxCloudDepthNative(const void *object, float value)
void addEnvSensorNative(const void *object, int type, float value)
int postProcessingNative(const void *object, int approach)
void setupGraphicNative(const void *object, int width, int height)
void setLightingNative(const void *object, bool enabled)
struct ImageNative ImageNative
bool postExportationNative(const void *object, bool visualize)
void initGlContentNative(const void *object)
void setMeshTriangleSizeNative(const void *object, int value)
void setMapCloudShownNative(const void *object, bool shown)
GLM_FUNC_DECL T angle(detail::tquat< T, P > const &x)
void setMeshAngleToleranceNative(const void *object, float value)
void postCameraPoseEventNative(const void *object, float x, float y, float z, float qx, float qy, float qz, float qw)
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)
ImageNative getPreviewImageNative(const char *databasePath)
void cancelProcessingNative(const void *object)
bool recoverNative(const void *object, const char *from, const char *to)
int setMappingParameterNative(const void *object, const char *key, const char *value)
const void * objectPtr
void destroyNativeApplication(const void *object)
int openDatabaseNative(const void *object, const char *databasePath, bool databaseInMemory, bool optimize, bool clearDatabase)
void setGPSNative(const void *object, double stamp, double longitude, double latitude, double altitude, double accuracy, double bearing)
bool startCameraNative(const void *object)
bool writeExportedMeshNative(const void *object, const char *directory, const char *name)
void setGraphVisibleNative(const void *object, bool visible)
void setFullResolutionNative(const void *object, bool enabled)
void setBackfaceCullingNative(const void *object, bool enabled)
void stopCameraNative(const void *object)
void releasePreviewImageNative(ImageNative image)
void setCloudDensityLevelNative(const void *object, int value)
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 onTouchEventNative(const void *object, int touch_count, int event, float x0, float y0, float x1, float y1)
void setAppendModeNative(const void *object, bool enabled)
void setBackgroundColorNative(const void *object, float gray)
void setSmoothingNative(const void *object, bool enabled)
void setMeshDecimationFactorNative(const void *object, float value)
void setGridVisibleNative(const void *object, bool visible)
void setGridRotationNative(const void *object, float value)
void setPointSizeNative(const void *object, float value)
void setPausedMappingNative(const void *object, bool paused)
void setGraphOptimizationNative(const void *object, bool enabled)
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)
void setMaxGainRadiusNative(const void *object, float value)
void setRawScanSavedNative(const void *object, bool enabled)
void setScreenRotationNative(const void *object, int displayRotation)
void setMeshRenderingNative(const void *object, bool enabled, bool withTexture)
void setWireframeNative(const void *object, bool enabled)
void setLocalizationModeNative(const void *object, bool enabled)
void setMinCloudDepthNative(const void *object, float value)
void setClusterRatioNative(const void *object, float value)
const void * createNativeApplication()


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:37:29