react-native-nitro-ar 2026.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +347 -0
- package/app.plugin.js +24 -0
- package/ios/Bridge.h +8 -0
- package/ios/HybridARAnchor.swift +58 -0
- package/ios/HybridARBoundingBoxBuilder.swift +142 -0
- package/ios/HybridARDepthData.swift +138 -0
- package/ios/HybridARFrame.swift +121 -0
- package/ios/HybridARLightEstimate.swift +58 -0
- package/ios/HybridARMeasurement.swift +33 -0
- package/ios/HybridARMeshAnchor.swift +108 -0
- package/ios/HybridARPlaneAnchor.swift +114 -0
- package/ios/HybridARRaycastResult.swift +53 -0
- package/ios/HybridARSession.swift +505 -0
- package/ios/HybridARView.swift +725 -0
- package/ios/HybridARVolume.swift +52 -0
- package/ios/HybridARWorldMap.swift +55 -0
- package/lib/commonjs/index.js +24 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +3 -0
- package/lib/commonjs/specs/ARAnchor.nitro.js +6 -0
- package/lib/commonjs/specs/ARAnchor.nitro.js.map +1 -0
- package/lib/commonjs/specs/ARBoundingBoxBuilder.nitro.js +6 -0
- package/lib/commonjs/specs/ARBoundingBoxBuilder.nitro.js.map +1 -0
- package/lib/commonjs/specs/ARDepthData.nitro.js +6 -0
- package/lib/commonjs/specs/ARDepthData.nitro.js.map +1 -0
- package/lib/commonjs/specs/ARFrame.nitro.js +6 -0
- package/lib/commonjs/specs/ARFrame.nitro.js.map +1 -0
- package/lib/commonjs/specs/ARLightEstimate.nitro.js +6 -0
- package/lib/commonjs/specs/ARLightEstimate.nitro.js.map +1 -0
- package/lib/commonjs/specs/ARMeasurement.nitro.js +6 -0
- package/lib/commonjs/specs/ARMeasurement.nitro.js.map +1 -0
- package/lib/commonjs/specs/ARPlaneAnchor.nitro.js +6 -0
- package/lib/commonjs/specs/ARPlaneAnchor.nitro.js.map +1 -0
- package/lib/commonjs/specs/ARRaycastResult.nitro.js +6 -0
- package/lib/commonjs/specs/ARRaycastResult.nitro.js.map +1 -0
- package/lib/commonjs/specs/ARSceneMesh.nitro.js +6 -0
- package/lib/commonjs/specs/ARSceneMesh.nitro.js.map +1 -0
- package/lib/commonjs/specs/ARSession.nitro.js +6 -0
- package/lib/commonjs/specs/ARSession.nitro.js.map +1 -0
- package/lib/commonjs/specs/ARView.nitro.js +6 -0
- package/lib/commonjs/specs/ARView.nitro.js.map +1 -0
- package/lib/commonjs/specs/ARVolume.nitro.js +6 -0
- package/lib/commonjs/specs/ARVolume.nitro.js.map +1 -0
- package/lib/commonjs/specs/ARWorldMap.nitro.js +6 -0
- package/lib/commonjs/specs/ARWorldMap.nitro.js.map +1 -0
- package/lib/module/index.js +18 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/specs/ARAnchor.nitro.js +4 -0
- package/lib/module/specs/ARAnchor.nitro.js.map +1 -0
- package/lib/module/specs/ARBoundingBoxBuilder.nitro.js +4 -0
- package/lib/module/specs/ARBoundingBoxBuilder.nitro.js.map +1 -0
- package/lib/module/specs/ARDepthData.nitro.js +4 -0
- package/lib/module/specs/ARDepthData.nitro.js.map +1 -0
- package/lib/module/specs/ARFrame.nitro.js +4 -0
- package/lib/module/specs/ARFrame.nitro.js.map +1 -0
- package/lib/module/specs/ARLightEstimate.nitro.js +4 -0
- package/lib/module/specs/ARLightEstimate.nitro.js.map +1 -0
- package/lib/module/specs/ARMeasurement.nitro.js +4 -0
- package/lib/module/specs/ARMeasurement.nitro.js.map +1 -0
- package/lib/module/specs/ARPlaneAnchor.nitro.js +4 -0
- package/lib/module/specs/ARPlaneAnchor.nitro.js.map +1 -0
- package/lib/module/specs/ARRaycastResult.nitro.js +4 -0
- package/lib/module/specs/ARRaycastResult.nitro.js.map +1 -0
- package/lib/module/specs/ARSceneMesh.nitro.js +4 -0
- package/lib/module/specs/ARSceneMesh.nitro.js.map +1 -0
- package/lib/module/specs/ARSession.nitro.js +4 -0
- package/lib/module/specs/ARSession.nitro.js.map +1 -0
- package/lib/module/specs/ARView.nitro.js +4 -0
- package/lib/module/specs/ARView.nitro.js.map +1 -0
- package/lib/module/specs/ARVolume.nitro.js +4 -0
- package/lib/module/specs/ARVolume.nitro.js.map +1 -0
- package/lib/module/specs/ARWorldMap.nitro.js +4 -0
- package/lib/module/specs/ARWorldMap.nitro.js.map +1 -0
- package/lib/typescript/src/index.d.ts +20 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/specs/ARAnchor.nitro.d.ts +18 -0
- package/lib/typescript/src/specs/ARAnchor.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/ARBoundingBoxBuilder.nitro.d.ts +11 -0
- package/lib/typescript/src/specs/ARBoundingBoxBuilder.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/ARDepthData.nitro.d.ts +26 -0
- package/lib/typescript/src/specs/ARDepthData.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/ARFrame.nitro.d.ts +32 -0
- package/lib/typescript/src/specs/ARFrame.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/ARLightEstimate.nitro.d.ts +18 -0
- package/lib/typescript/src/specs/ARLightEstimate.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/ARMeasurement.nitro.d.ts +11 -0
- package/lib/typescript/src/specs/ARMeasurement.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/ARPlaneAnchor.nitro.d.ts +32 -0
- package/lib/typescript/src/specs/ARPlaneAnchor.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/ARRaycastResult.nitro.d.ts +26 -0
- package/lib/typescript/src/specs/ARRaycastResult.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/ARSceneMesh.nitro.d.ts +47 -0
- package/lib/typescript/src/specs/ARSceneMesh.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/ARSession.nitro.d.ts +75 -0
- package/lib/typescript/src/specs/ARSession.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/ARView.nitro.d.ts +51 -0
- package/lib/typescript/src/specs/ARView.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/ARVolume.nitro.d.ts +14 -0
- package/lib/typescript/src/specs/ARVolume.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/ARWorldMap.nitro.d.ts +17 -0
- package/lib/typescript/src/specs/ARWorldMap.nitro.d.ts.map +1 -0
- package/nitro.json +23 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/ios/NitroAR+autolinking.rb +60 -0
- package/nitrogen/generated/ios/NitroAR-Swift-Cxx-Bridge.cpp +335 -0
- package/nitrogen/generated/ios/NitroAR-Swift-Cxx-Bridge.hpp +934 -0
- package/nitrogen/generated/ios/NitroAR-Swift-Cxx-Umbrella.hpp +169 -0
- package/nitrogen/generated/ios/NitroARAutolinking.mm +49 -0
- package/nitrogen/generated/ios/NitroARAutolinking.swift +50 -0
- package/nitrogen/generated/ios/c++/HybridARAnchorSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridARAnchorSpecSwift.hpp +99 -0
- package/nitrogen/generated/ios/c++/HybridARBoundingBoxBuilderSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridARBoundingBoxBuilderSpecSwift.hpp +95 -0
- package/nitrogen/generated/ios/c++/HybridARDepthDataSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridARDepthDataSpecSwift.hpp +103 -0
- package/nitrogen/generated/ios/c++/HybridARDirectionalLightEstimateSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridARDirectionalLightEstimateSpecSwift.hpp +88 -0
- package/nitrogen/generated/ios/c++/HybridARFrameSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridARFrameSpecSwift.hpp +135 -0
- package/nitrogen/generated/ios/c++/HybridARLightEstimateSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridARLightEstimateSpecSwift.hpp +80 -0
- package/nitrogen/generated/ios/c++/HybridARMeasurementSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridARMeasurementSpecSwift.hpp +90 -0
- package/nitrogen/generated/ios/c++/HybridARMeshAnchorSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridARMeshAnchorSpecSwift.hpp +107 -0
- package/nitrogen/generated/ios/c++/HybridARPlaneAnchorSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridARPlaneAnchorSpecSwift.hpp +116 -0
- package/nitrogen/generated/ios/c++/HybridARPlaneGeometrySpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridARPlaneGeometrySpecSwift.hpp +90 -0
- package/nitrogen/generated/ios/c++/HybridARRaycastResultSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridARRaycastResultSpecSwift.hpp +97 -0
- package/nitrogen/generated/ios/c++/HybridARSessionSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridARSessionSpecSwift.hpp +296 -0
- package/nitrogen/generated/ios/c++/HybridARViewSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridARViewSpecSwift.hpp +243 -0
- package/nitrogen/generated/ios/c++/HybridARVolumeSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridARVolumeSpecSwift.hpp +94 -0
- package/nitrogen/generated/ios/c++/HybridARWorldMapSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridARWorldMapSpecSwift.hpp +97 -0
- package/nitrogen/generated/ios/c++/views/HybridARViewComponent.mm +152 -0
- package/nitrogen/generated/ios/swift/ARSessionConfiguration.swift +189 -0
- package/nitrogen/generated/ios/swift/ARViewHitResult.swift +39 -0
- package/nitrogen/generated/ios/swift/CameraPose.swift +46 -0
- package/nitrogen/generated/ios/swift/EnvironmentTexturing.swift +44 -0
- package/nitrogen/generated/ios/swift/Func_void.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_TrackingState_TrackingStateReason.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__shared_ptr_HybridARFrameSpec_.swift +50 -0
- package/nitrogen/generated/ios/swift/Func_void_std__shared_ptr_HybridARWorldMapSpec_.swift +50 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_HybridARAnchorSpec___std__vector_std__shared_ptr_HybridARAnchorSpec___std__vector_std__string_.swift +54 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_HybridARMeshAnchorSpec___std__vector_std__shared_ptr_HybridARMeshAnchorSpec___std__vector_std__string_.swift +54 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_HybridARPlaneAnchorSpec___std__vector_std__shared_ptr_HybridARPlaneAnchorSpec___std__vector_std__string_.swift +54 -0
- package/nitrogen/generated/ios/swift/HybridARAnchorSpec.swift +60 -0
- package/nitrogen/generated/ios/swift/HybridARAnchorSpec_cxx.swift +192 -0
- package/nitrogen/generated/ios/swift/HybridARBoundingBoxBuilderSpec.swift +56 -0
- package/nitrogen/generated/ios/swift/HybridARBoundingBoxBuilderSpec_cxx.swift +161 -0
- package/nitrogen/generated/ios/swift/HybridARDepthDataSpec.swift +59 -0
- package/nitrogen/generated/ios/swift/HybridARDepthDataSpec_cxx.swift +188 -0
- package/nitrogen/generated/ios/swift/HybridARDirectionalLightEstimateSpec.swift +57 -0
- package/nitrogen/generated/ios/swift/HybridARDirectionalLightEstimateSpec_cxx.swift +162 -0
- package/nitrogen/generated/ios/swift/HybridARFrameSpec.swift +65 -0
- package/nitrogen/generated/ios/swift/HybridARFrameSpec_cxx.swift +285 -0
- package/nitrogen/generated/ios/swift/HybridARLightEstimateSpec.swift +56 -0
- package/nitrogen/generated/ios/swift/HybridARLightEstimateSpec_cxx.swift +140 -0
- package/nitrogen/generated/ios/swift/HybridARMeasurementSpec.swift +58 -0
- package/nitrogen/generated/ios/swift/HybridARMeasurementSpec_cxx.swift +160 -0
- package/nitrogen/generated/ios/swift/HybridARMeshAnchorSpec.swift +62 -0
- package/nitrogen/generated/ios/swift/HybridARMeshAnchorSpec_cxx.swift +212 -0
- package/nitrogen/generated/ios/swift/HybridARPlaneAnchorSpec.swift +62 -0
- package/nitrogen/generated/ios/swift/HybridARPlaneAnchorSpec_cxx.swift +209 -0
- package/nitrogen/generated/ios/swift/HybridARPlaneGeometrySpec.swift +58 -0
- package/nitrogen/generated/ios/swift/HybridARPlaneGeometrySpec_cxx.swift +178 -0
- package/nitrogen/generated/ios/swift/HybridARRaycastResultSpec.swift +59 -0
- package/nitrogen/generated/ios/swift/HybridARRaycastResultSpec_cxx.swift +179 -0
- package/nitrogen/generated/ios/swift/HybridARSessionSpec.swift +78 -0
- package/nitrogen/generated/ios/swift/HybridARSessionSpec_cxx.swift +591 -0
- package/nitrogen/generated/ios/swift/HybridARViewSpec.swift +78 -0
- package/nitrogen/generated/ios/swift/HybridARViewSpec_cxx.swift +561 -0
- package/nitrogen/generated/ios/swift/HybridARVolumeSpec.swift +60 -0
- package/nitrogen/generated/ios/swift/HybridARVolumeSpec_cxx.swift +180 -0
- package/nitrogen/generated/ios/swift/HybridARWorldMapSpec.swift +58 -0
- package/nitrogen/generated/ios/swift/HybridARWorldMapSpec_cxx.swift +176 -0
- package/nitrogen/generated/ios/swift/LiDARCapabilities.swift +39 -0
- package/nitrogen/generated/ios/swift/MeshClassification.swift +64 -0
- package/nitrogen/generated/ios/swift/PlaneAlignment.swift +40 -0
- package/nitrogen/generated/ios/swift/PlaneClassification.swift +64 -0
- package/nitrogen/generated/ios/swift/PlaneDetectionMode.swift +40 -0
- package/nitrogen/generated/ios/swift/RaycastAlignment.swift +44 -0
- package/nitrogen/generated/ios/swift/RaycastQuery.swift +44 -0
- package/nitrogen/generated/ios/swift/RaycastTarget.swift +48 -0
- package/nitrogen/generated/ios/swift/SceneReconstructionMode.swift +44 -0
- package/nitrogen/generated/ios/swift/TrackingState.swift +44 -0
- package/nitrogen/generated/ios/swift/TrackingStateReason.swift +52 -0
- package/nitrogen/generated/ios/swift/WorldAlignment.swift +44 -0
- package/nitrogen/generated/ios/swift/WorldMappingStatus.swift +48 -0
- package/nitrogen/generated/shared/c++/ARSessionConfiguration.hpp +132 -0
- package/nitrogen/generated/shared/c++/ARViewHitResult.hpp +91 -0
- package/nitrogen/generated/shared/c++/CameraPose.hpp +87 -0
- package/nitrogen/generated/shared/c++/EnvironmentTexturing.hpp +80 -0
- package/nitrogen/generated/shared/c++/HybridARAnchorSpec.cpp +26 -0
- package/nitrogen/generated/shared/c++/HybridARAnchorSpec.hpp +69 -0
- package/nitrogen/generated/shared/c++/HybridARBoundingBoxBuilderSpec.cpp +23 -0
- package/nitrogen/generated/shared/c++/HybridARBoundingBoxBuilderSpec.hpp +68 -0
- package/nitrogen/generated/shared/c++/HybridARDepthDataSpec.cpp +26 -0
- package/nitrogen/generated/shared/c++/HybridARDepthDataSpec.hpp +66 -0
- package/nitrogen/generated/shared/c++/HybridARDirectionalLightEstimateSpec.cpp +24 -0
- package/nitrogen/generated/shared/c++/HybridARDirectionalLightEstimateSpec.hpp +67 -0
- package/nitrogen/generated/shared/c++/HybridARFrameSpec.cpp +32 -0
- package/nitrogen/generated/shared/c++/HybridARFrameSpec.hpp +83 -0
- package/nitrogen/generated/shared/c++/HybridARLightEstimateSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridARLightEstimateSpec.hpp +63 -0
- package/nitrogen/generated/shared/c++/HybridARMeasurementSpec.cpp +24 -0
- package/nitrogen/generated/shared/c++/HybridARMeasurementSpec.hpp +67 -0
- package/nitrogen/generated/shared/c++/HybridARMeshAnchorSpec.cpp +28 -0
- package/nitrogen/generated/shared/c++/HybridARMeshAnchorSpec.hpp +72 -0
- package/nitrogen/generated/shared/c++/HybridARPlaneAnchorSpec.cpp +28 -0
- package/nitrogen/generated/shared/c++/HybridARPlaneAnchorSpec.hpp +79 -0
- package/nitrogen/generated/shared/c++/HybridARPlaneGeometrySpec.cpp +24 -0
- package/nitrogen/generated/shared/c++/HybridARPlaneGeometrySpec.hpp +65 -0
- package/nitrogen/generated/shared/c++/HybridARRaycastResultSpec.cpp +25 -0
- package/nitrogen/generated/shared/c++/HybridARRaycastResultSpec.hpp +70 -0
- package/nitrogen/generated/shared/c++/HybridARSessionSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridARSessionSpec.hpp +131 -0
- package/nitrogen/generated/shared/c++/HybridARViewSpec.cpp +55 -0
- package/nitrogen/generated/shared/c++/HybridARViewSpec.hpp +101 -0
- package/nitrogen/generated/shared/c++/HybridARVolumeSpec.cpp +26 -0
- package/nitrogen/generated/shared/c++/HybridARVolumeSpec.hpp +67 -0
- package/nitrogen/generated/shared/c++/HybridARWorldMapSpec.cpp +25 -0
- package/nitrogen/generated/shared/c++/HybridARWorldMapSpec.hpp +66 -0
- package/nitrogen/generated/shared/c++/LiDARCapabilities.hpp +91 -0
- package/nitrogen/generated/shared/c++/MeshClassification.hpp +100 -0
- package/nitrogen/generated/shared/c++/PlaneAlignment.hpp +76 -0
- package/nitrogen/generated/shared/c++/PlaneClassification.hpp +100 -0
- package/nitrogen/generated/shared/c++/PlaneDetectionMode.hpp +76 -0
- package/nitrogen/generated/shared/c++/RaycastAlignment.hpp +80 -0
- package/nitrogen/generated/shared/c++/RaycastQuery.hpp +99 -0
- package/nitrogen/generated/shared/c++/RaycastTarget.hpp +84 -0
- package/nitrogen/generated/shared/c++/SceneReconstructionMode.hpp +80 -0
- package/nitrogen/generated/shared/c++/TrackingState.hpp +80 -0
- package/nitrogen/generated/shared/c++/TrackingStateReason.hpp +88 -0
- package/nitrogen/generated/shared/c++/WorldAlignment.hpp +80 -0
- package/nitrogen/generated/shared/c++/WorldMappingStatus.hpp +84 -0
- package/nitrogen/generated/shared/c++/views/HybridARViewComponent.cpp +182 -0
- package/nitrogen/generated/shared/c++/views/HybridARViewComponent.hpp +120 -0
- package/nitrogen/generated/shared/json/ARViewConfig.json +19 -0
- package/package.json +98 -0
- package/react-native-nitro-ar.podspec +40 -0
- package/src/index.ts +60 -0
- package/src/specs/ARAnchor.nitro.ts +21 -0
- package/src/specs/ARBoundingBoxBuilder.nitro.ts +11 -0
- package/src/specs/ARDepthData.nitro.ts +29 -0
- package/src/specs/ARFrame.nitro.ts +41 -0
- package/src/specs/ARLightEstimate.nitro.ts +20 -0
- package/src/specs/ARMeasurement.nitro.ts +10 -0
- package/src/specs/ARPlaneAnchor.nitro.ts +46 -0
- package/src/specs/ARRaycastResult.nitro.ts +32 -0
- package/src/specs/ARSceneMesh.nitro.ts +63 -0
- package/src/specs/ARSession.nitro.ts +112 -0
- package/src/specs/ARView.nitro.ts +84 -0
- package/src/specs/ARVolume.nitro.ts +15 -0
- package/src/specs/ARWorldMap.nitro.ts +20 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridARDirectionalLightEstimateSpecSwift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include "HybridARDirectionalLightEstimateSpec.hpp"
|
|
11
|
+
|
|
12
|
+
// Forward declaration of `HybridARDirectionalLightEstimateSpec_cxx` to properly resolve imports.
|
|
13
|
+
namespace NitroAR { class HybridARDirectionalLightEstimateSpec_cxx; }
|
|
14
|
+
|
|
15
|
+
// Forward declaration of `HybridARLightEstimateSpecSwift` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::ar { class HybridARLightEstimateSpecSwift; }
|
|
17
|
+
|
|
18
|
+
#include <vector>
|
|
19
|
+
#include "HybridARLightEstimateSpecSwift.hpp"
|
|
20
|
+
|
|
21
|
+
#include "NitroAR-Swift-Cxx-Umbrella.hpp"
|
|
22
|
+
|
|
23
|
+
namespace margelo::nitro::ar {
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The C++ part of HybridARDirectionalLightEstimateSpec_cxx.swift.
|
|
27
|
+
*
|
|
28
|
+
* HybridARDirectionalLightEstimateSpecSwift (C++) accesses HybridARDirectionalLightEstimateSpec_cxx (Swift), and might
|
|
29
|
+
* contain some additional bridging code for C++ <> Swift interop.
|
|
30
|
+
*
|
|
31
|
+
* Since this obviously introduces an overhead, I hope at some point in
|
|
32
|
+
* the future, HybridARDirectionalLightEstimateSpec_cxx can directly inherit from the C++ class HybridARDirectionalLightEstimateSpec
|
|
33
|
+
* to simplify the whole structure and memory management.
|
|
34
|
+
*/
|
|
35
|
+
class HybridARDirectionalLightEstimateSpecSwift: public virtual HybridARDirectionalLightEstimateSpec, public virtual HybridARLightEstimateSpecSwift {
|
|
36
|
+
public:
|
|
37
|
+
// Constructor from a Swift instance
|
|
38
|
+
explicit HybridARDirectionalLightEstimateSpecSwift(const NitroAR::HybridARDirectionalLightEstimateSpec_cxx& swiftPart):
|
|
39
|
+
HybridObject(HybridARDirectionalLightEstimateSpec::TAG),
|
|
40
|
+
HybridARLightEstimateSpecSwift(swiftPart),
|
|
41
|
+
_swiftPart(swiftPart) { }
|
|
42
|
+
|
|
43
|
+
public:
|
|
44
|
+
// Get the Swift part
|
|
45
|
+
inline NitroAR::HybridARDirectionalLightEstimateSpec_cxx& getSwiftPart() noexcept {
|
|
46
|
+
return _swiftPart;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public:
|
|
50
|
+
inline size_t getExternalMemorySize() noexcept override {
|
|
51
|
+
return _swiftPart.getMemorySize();
|
|
52
|
+
}
|
|
53
|
+
bool equals(const std::shared_ptr<HybridObject>& other) override {
|
|
54
|
+
if (auto otherCast = std::dynamic_pointer_cast<HybridARDirectionalLightEstimateSpecSwift>(other)) {
|
|
55
|
+
return _swiftPart.equals(otherCast->_swiftPart);
|
|
56
|
+
}
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
void dispose() noexcept override {
|
|
60
|
+
_swiftPart.dispose();
|
|
61
|
+
}
|
|
62
|
+
std::string toString() override {
|
|
63
|
+
return _swiftPart.toString();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
public:
|
|
67
|
+
// Properties
|
|
68
|
+
inline std::vector<double> getPrimaryLightDirection() noexcept override {
|
|
69
|
+
auto __result = _swiftPart.getPrimaryLightDirection();
|
|
70
|
+
return __result;
|
|
71
|
+
}
|
|
72
|
+
inline double getPrimaryLightIntensity() noexcept override {
|
|
73
|
+
return _swiftPart.getPrimaryLightIntensity();
|
|
74
|
+
}
|
|
75
|
+
inline std::vector<double> getSphericalHarmonicsCoefficients() noexcept override {
|
|
76
|
+
auto __result = _swiftPart.getSphericalHarmonicsCoefficients();
|
|
77
|
+
return __result;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
public:
|
|
81
|
+
// Methods
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
private:
|
|
85
|
+
NitroAR::HybridARDirectionalLightEstimateSpec_cxx _swiftPart;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
} // namespace margelo::nitro::ar
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridARFrameSpecSwift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include "HybridARFrameSpecSwift.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::ar {
|
|
11
|
+
} // namespace margelo::nitro::ar
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridARFrameSpecSwift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include "HybridARFrameSpec.hpp"
|
|
11
|
+
|
|
12
|
+
// Forward declaration of `HybridARFrameSpec_cxx` to properly resolve imports.
|
|
13
|
+
namespace NitroAR { class HybridARFrameSpec_cxx; }
|
|
14
|
+
|
|
15
|
+
// Forward declaration of `HybridARLightEstimateSpec` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::ar { class HybridARLightEstimateSpec; }
|
|
17
|
+
// Forward declaration of `HybridARDirectionalLightEstimateSpec` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::ar { class HybridARDirectionalLightEstimateSpec; }
|
|
19
|
+
// Forward declaration of `HybridARDepthDataSpec` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::ar { class HybridARDepthDataSpec; }
|
|
21
|
+
|
|
22
|
+
#include <vector>
|
|
23
|
+
#include <memory>
|
|
24
|
+
#include "HybridARLightEstimateSpec.hpp"
|
|
25
|
+
#include <optional>
|
|
26
|
+
#include "HybridARDirectionalLightEstimateSpec.hpp"
|
|
27
|
+
#include "HybridARDepthDataSpec.hpp"
|
|
28
|
+
#include <string>
|
|
29
|
+
|
|
30
|
+
#include "NitroAR-Swift-Cxx-Umbrella.hpp"
|
|
31
|
+
|
|
32
|
+
namespace margelo::nitro::ar {
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The C++ part of HybridARFrameSpec_cxx.swift.
|
|
36
|
+
*
|
|
37
|
+
* HybridARFrameSpecSwift (C++) accesses HybridARFrameSpec_cxx (Swift), and might
|
|
38
|
+
* contain some additional bridging code for C++ <> Swift interop.
|
|
39
|
+
*
|
|
40
|
+
* Since this obviously introduces an overhead, I hope at some point in
|
|
41
|
+
* the future, HybridARFrameSpec_cxx can directly inherit from the C++ class HybridARFrameSpec
|
|
42
|
+
* to simplify the whole structure and memory management.
|
|
43
|
+
*/
|
|
44
|
+
class HybridARFrameSpecSwift: public virtual HybridARFrameSpec {
|
|
45
|
+
public:
|
|
46
|
+
// Constructor from a Swift instance
|
|
47
|
+
explicit HybridARFrameSpecSwift(const NitroAR::HybridARFrameSpec_cxx& swiftPart):
|
|
48
|
+
HybridObject(HybridARFrameSpec::TAG),
|
|
49
|
+
_swiftPart(swiftPart) { }
|
|
50
|
+
|
|
51
|
+
public:
|
|
52
|
+
// Get the Swift part
|
|
53
|
+
inline NitroAR::HybridARFrameSpec_cxx& getSwiftPart() noexcept {
|
|
54
|
+
return _swiftPart;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
public:
|
|
58
|
+
inline size_t getExternalMemorySize() noexcept override {
|
|
59
|
+
return _swiftPart.getMemorySize();
|
|
60
|
+
}
|
|
61
|
+
bool equals(const std::shared_ptr<HybridObject>& other) override {
|
|
62
|
+
if (auto otherCast = std::dynamic_pointer_cast<HybridARFrameSpecSwift>(other)) {
|
|
63
|
+
return _swiftPart.equals(otherCast->_swiftPart);
|
|
64
|
+
}
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
void dispose() noexcept override {
|
|
68
|
+
_swiftPart.dispose();
|
|
69
|
+
}
|
|
70
|
+
std::string toString() override {
|
|
71
|
+
return _swiftPart.toString();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
public:
|
|
75
|
+
// Properties
|
|
76
|
+
inline double getTimestamp() noexcept override {
|
|
77
|
+
return _swiftPart.getTimestamp();
|
|
78
|
+
}
|
|
79
|
+
inline std::vector<double> getCameraPosition() noexcept override {
|
|
80
|
+
auto __result = _swiftPart.getCameraPosition();
|
|
81
|
+
return __result;
|
|
82
|
+
}
|
|
83
|
+
inline std::vector<double> getCameraRotation() noexcept override {
|
|
84
|
+
auto __result = _swiftPart.getCameraRotation();
|
|
85
|
+
return __result;
|
|
86
|
+
}
|
|
87
|
+
inline std::vector<double> getProjectionMatrix() noexcept override {
|
|
88
|
+
auto __result = _swiftPart.getProjectionMatrix();
|
|
89
|
+
return __result;
|
|
90
|
+
}
|
|
91
|
+
inline std::vector<double> getViewMatrix() noexcept override {
|
|
92
|
+
auto __result = _swiftPart.getViewMatrix();
|
|
93
|
+
return __result;
|
|
94
|
+
}
|
|
95
|
+
inline std::vector<double> getCameraIntrinsics() noexcept override {
|
|
96
|
+
auto __result = _swiftPart.getCameraIntrinsics();
|
|
97
|
+
return __result;
|
|
98
|
+
}
|
|
99
|
+
inline std::vector<double> getImageResolution() noexcept override {
|
|
100
|
+
auto __result = _swiftPart.getImageResolution();
|
|
101
|
+
return __result;
|
|
102
|
+
}
|
|
103
|
+
inline std::optional<std::shared_ptr<HybridARLightEstimateSpec>> getLightEstimate() noexcept override {
|
|
104
|
+
auto __result = _swiftPart.getLightEstimate();
|
|
105
|
+
return __result;
|
|
106
|
+
}
|
|
107
|
+
inline std::optional<std::shared_ptr<HybridARDirectionalLightEstimateSpec>> getDirectionalLightEstimate() noexcept override {
|
|
108
|
+
auto __result = _swiftPart.getDirectionalLightEstimate();
|
|
109
|
+
return __result;
|
|
110
|
+
}
|
|
111
|
+
inline std::optional<std::shared_ptr<HybridARDepthDataSpec>> getSceneDepth() noexcept override {
|
|
112
|
+
auto __result = _swiftPart.getSceneDepth();
|
|
113
|
+
return __result;
|
|
114
|
+
}
|
|
115
|
+
inline std::optional<std::shared_ptr<HybridARDepthDataSpec>> getSmoothedSceneDepth() noexcept override {
|
|
116
|
+
auto __result = _swiftPart.getSmoothedSceneDepth();
|
|
117
|
+
return __result;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
public:
|
|
121
|
+
// Methods
|
|
122
|
+
inline std::string getCapturedImage(double quality) override {
|
|
123
|
+
auto __result = _swiftPart.getCapturedImage(std::forward<decltype(quality)>(quality));
|
|
124
|
+
if (__result.hasError()) [[unlikely]] {
|
|
125
|
+
std::rethrow_exception(__result.error());
|
|
126
|
+
}
|
|
127
|
+
auto __value = std::move(__result.value());
|
|
128
|
+
return __value;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
private:
|
|
132
|
+
NitroAR::HybridARFrameSpec_cxx _swiftPart;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
} // namespace margelo::nitro::ar
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridARLightEstimateSpecSwift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include "HybridARLightEstimateSpecSwift.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::ar {
|
|
11
|
+
} // namespace margelo::nitro::ar
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridARLightEstimateSpecSwift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include "HybridARLightEstimateSpec.hpp"
|
|
11
|
+
|
|
12
|
+
// Forward declaration of `HybridARLightEstimateSpec_cxx` to properly resolve imports.
|
|
13
|
+
namespace NitroAR { class HybridARLightEstimateSpec_cxx; }
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
#include "NitroAR-Swift-Cxx-Umbrella.hpp"
|
|
20
|
+
|
|
21
|
+
namespace margelo::nitro::ar {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The C++ part of HybridARLightEstimateSpec_cxx.swift.
|
|
25
|
+
*
|
|
26
|
+
* HybridARLightEstimateSpecSwift (C++) accesses HybridARLightEstimateSpec_cxx (Swift), and might
|
|
27
|
+
* contain some additional bridging code for C++ <> Swift interop.
|
|
28
|
+
*
|
|
29
|
+
* Since this obviously introduces an overhead, I hope at some point in
|
|
30
|
+
* the future, HybridARLightEstimateSpec_cxx can directly inherit from the C++ class HybridARLightEstimateSpec
|
|
31
|
+
* to simplify the whole structure and memory management.
|
|
32
|
+
*/
|
|
33
|
+
class HybridARLightEstimateSpecSwift: public virtual HybridARLightEstimateSpec {
|
|
34
|
+
public:
|
|
35
|
+
// Constructor from a Swift instance
|
|
36
|
+
explicit HybridARLightEstimateSpecSwift(const NitroAR::HybridARLightEstimateSpec_cxx& swiftPart):
|
|
37
|
+
HybridObject(HybridARLightEstimateSpec::TAG),
|
|
38
|
+
_swiftPart(swiftPart) { }
|
|
39
|
+
|
|
40
|
+
public:
|
|
41
|
+
// Get the Swift part
|
|
42
|
+
inline NitroAR::HybridARLightEstimateSpec_cxx& getSwiftPart() noexcept {
|
|
43
|
+
return _swiftPart;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public:
|
|
47
|
+
inline size_t getExternalMemorySize() noexcept override {
|
|
48
|
+
return _swiftPart.getMemorySize();
|
|
49
|
+
}
|
|
50
|
+
bool equals(const std::shared_ptr<HybridObject>& other) override {
|
|
51
|
+
if (auto otherCast = std::dynamic_pointer_cast<HybridARLightEstimateSpecSwift>(other)) {
|
|
52
|
+
return _swiftPart.equals(otherCast->_swiftPart);
|
|
53
|
+
}
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
void dispose() noexcept override {
|
|
57
|
+
_swiftPart.dispose();
|
|
58
|
+
}
|
|
59
|
+
std::string toString() override {
|
|
60
|
+
return _swiftPart.toString();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
public:
|
|
64
|
+
// Properties
|
|
65
|
+
inline double getAmbientIntensity() noexcept override {
|
|
66
|
+
return _swiftPart.getAmbientIntensity();
|
|
67
|
+
}
|
|
68
|
+
inline double getAmbientColorTemperature() noexcept override {
|
|
69
|
+
return _swiftPart.getAmbientColorTemperature();
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
public:
|
|
73
|
+
// Methods
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
private:
|
|
77
|
+
NitroAR::HybridARLightEstimateSpec_cxx _swiftPart;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
} // namespace margelo::nitro::ar
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridARMeasurementSpecSwift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include "HybridARMeasurementSpecSwift.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::ar {
|
|
11
|
+
} // namespace margelo::nitro::ar
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridARMeasurementSpecSwift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include "HybridARMeasurementSpec.hpp"
|
|
11
|
+
|
|
12
|
+
// Forward declaration of `HybridARMeasurementSpec_cxx` to properly resolve imports.
|
|
13
|
+
namespace NitroAR { class HybridARMeasurementSpec_cxx; }
|
|
14
|
+
|
|
15
|
+
// Forward declaration of `HybridARAnchorSpec` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::ar { class HybridARAnchorSpec; }
|
|
17
|
+
|
|
18
|
+
#include <memory>
|
|
19
|
+
#include "HybridARAnchorSpec.hpp"
|
|
20
|
+
|
|
21
|
+
#include "NitroAR-Swift-Cxx-Umbrella.hpp"
|
|
22
|
+
|
|
23
|
+
namespace margelo::nitro::ar {
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The C++ part of HybridARMeasurementSpec_cxx.swift.
|
|
27
|
+
*
|
|
28
|
+
* HybridARMeasurementSpecSwift (C++) accesses HybridARMeasurementSpec_cxx (Swift), and might
|
|
29
|
+
* contain some additional bridging code for C++ <> Swift interop.
|
|
30
|
+
*
|
|
31
|
+
* Since this obviously introduces an overhead, I hope at some point in
|
|
32
|
+
* the future, HybridARMeasurementSpec_cxx can directly inherit from the C++ class HybridARMeasurementSpec
|
|
33
|
+
* to simplify the whole structure and memory management.
|
|
34
|
+
*/
|
|
35
|
+
class HybridARMeasurementSpecSwift: public virtual HybridARMeasurementSpec {
|
|
36
|
+
public:
|
|
37
|
+
// Constructor from a Swift instance
|
|
38
|
+
explicit HybridARMeasurementSpecSwift(const NitroAR::HybridARMeasurementSpec_cxx& swiftPart):
|
|
39
|
+
HybridObject(HybridARMeasurementSpec::TAG),
|
|
40
|
+
_swiftPart(swiftPart) { }
|
|
41
|
+
|
|
42
|
+
public:
|
|
43
|
+
// Get the Swift part
|
|
44
|
+
inline NitroAR::HybridARMeasurementSpec_cxx& getSwiftPart() noexcept {
|
|
45
|
+
return _swiftPart;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public:
|
|
49
|
+
inline size_t getExternalMemorySize() noexcept override {
|
|
50
|
+
return _swiftPart.getMemorySize();
|
|
51
|
+
}
|
|
52
|
+
bool equals(const std::shared_ptr<HybridObject>& other) override {
|
|
53
|
+
if (auto otherCast = std::dynamic_pointer_cast<HybridARMeasurementSpecSwift>(other)) {
|
|
54
|
+
return _swiftPart.equals(otherCast->_swiftPart);
|
|
55
|
+
}
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
void dispose() noexcept override {
|
|
59
|
+
_swiftPart.dispose();
|
|
60
|
+
}
|
|
61
|
+
std::string toString() override {
|
|
62
|
+
return _swiftPart.toString();
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
public:
|
|
66
|
+
// Properties
|
|
67
|
+
inline std::shared_ptr<HybridARAnchorSpec> getStart() noexcept override {
|
|
68
|
+
auto __result = _swiftPart.getStart();
|
|
69
|
+
return __result;
|
|
70
|
+
}
|
|
71
|
+
inline std::shared_ptr<HybridARAnchorSpec> getEnd() noexcept override {
|
|
72
|
+
auto __result = _swiftPart.getEnd();
|
|
73
|
+
return __result;
|
|
74
|
+
}
|
|
75
|
+
inline double getLength() noexcept override {
|
|
76
|
+
return _swiftPart.getLength();
|
|
77
|
+
}
|
|
78
|
+
inline bool getIsValid() noexcept override {
|
|
79
|
+
return _swiftPart.isValid();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
public:
|
|
83
|
+
// Methods
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
private:
|
|
87
|
+
NitroAR::HybridARMeasurementSpec_cxx _swiftPart;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
} // namespace margelo::nitro::ar
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridARMeshAnchorSpecSwift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include "HybridARMeshAnchorSpecSwift.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::ar {
|
|
11
|
+
} // namespace margelo::nitro::ar
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridARMeshAnchorSpecSwift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include "HybridARMeshAnchorSpec.hpp"
|
|
11
|
+
|
|
12
|
+
// Forward declaration of `HybridARMeshAnchorSpec_cxx` to properly resolve imports.
|
|
13
|
+
namespace NitroAR { class HybridARMeshAnchorSpec_cxx; }
|
|
14
|
+
|
|
15
|
+
// Forward declaration of `MeshClassification` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::ar { enum class MeshClassification; }
|
|
17
|
+
|
|
18
|
+
#include <string>
|
|
19
|
+
#include <vector>
|
|
20
|
+
#include "MeshClassification.hpp"
|
|
21
|
+
|
|
22
|
+
#include "NitroAR-Swift-Cxx-Umbrella.hpp"
|
|
23
|
+
|
|
24
|
+
namespace margelo::nitro::ar {
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The C++ part of HybridARMeshAnchorSpec_cxx.swift.
|
|
28
|
+
*
|
|
29
|
+
* HybridARMeshAnchorSpecSwift (C++) accesses HybridARMeshAnchorSpec_cxx (Swift), and might
|
|
30
|
+
* contain some additional bridging code for C++ <> Swift interop.
|
|
31
|
+
*
|
|
32
|
+
* Since this obviously introduces an overhead, I hope at some point in
|
|
33
|
+
* the future, HybridARMeshAnchorSpec_cxx can directly inherit from the C++ class HybridARMeshAnchorSpec
|
|
34
|
+
* to simplify the whole structure and memory management.
|
|
35
|
+
*/
|
|
36
|
+
class HybridARMeshAnchorSpecSwift: public virtual HybridARMeshAnchorSpec {
|
|
37
|
+
public:
|
|
38
|
+
// Constructor from a Swift instance
|
|
39
|
+
explicit HybridARMeshAnchorSpecSwift(const NitroAR::HybridARMeshAnchorSpec_cxx& swiftPart):
|
|
40
|
+
HybridObject(HybridARMeshAnchorSpec::TAG),
|
|
41
|
+
_swiftPart(swiftPart) { }
|
|
42
|
+
|
|
43
|
+
public:
|
|
44
|
+
// Get the Swift part
|
|
45
|
+
inline NitroAR::HybridARMeshAnchorSpec_cxx& getSwiftPart() noexcept {
|
|
46
|
+
return _swiftPart;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public:
|
|
50
|
+
inline size_t getExternalMemorySize() noexcept override {
|
|
51
|
+
return _swiftPart.getMemorySize();
|
|
52
|
+
}
|
|
53
|
+
bool equals(const std::shared_ptr<HybridObject>& other) override {
|
|
54
|
+
if (auto otherCast = std::dynamic_pointer_cast<HybridARMeshAnchorSpecSwift>(other)) {
|
|
55
|
+
return _swiftPart.equals(otherCast->_swiftPart);
|
|
56
|
+
}
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
void dispose() noexcept override {
|
|
60
|
+
_swiftPart.dispose();
|
|
61
|
+
}
|
|
62
|
+
std::string toString() override {
|
|
63
|
+
return _swiftPart.toString();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
public:
|
|
67
|
+
// Properties
|
|
68
|
+
inline std::string getIdentifier() noexcept override {
|
|
69
|
+
auto __result = _swiftPart.getIdentifier();
|
|
70
|
+
return __result;
|
|
71
|
+
}
|
|
72
|
+
inline std::vector<double> getTransform() noexcept override {
|
|
73
|
+
auto __result = _swiftPart.getTransform();
|
|
74
|
+
return __result;
|
|
75
|
+
}
|
|
76
|
+
inline double getVertexCount() noexcept override {
|
|
77
|
+
return _swiftPart.getVertexCount();
|
|
78
|
+
}
|
|
79
|
+
inline double getFaceCount() noexcept override {
|
|
80
|
+
return _swiftPart.getFaceCount();
|
|
81
|
+
}
|
|
82
|
+
inline std::vector<double> getVertices() noexcept override {
|
|
83
|
+
auto __result = _swiftPart.getVertices();
|
|
84
|
+
return __result;
|
|
85
|
+
}
|
|
86
|
+
inline std::vector<double> getFaces() noexcept override {
|
|
87
|
+
auto __result = _swiftPart.getFaces();
|
|
88
|
+
return __result;
|
|
89
|
+
}
|
|
90
|
+
inline std::vector<double> getNormals() noexcept override {
|
|
91
|
+
auto __result = _swiftPart.getNormals();
|
|
92
|
+
return __result;
|
|
93
|
+
}
|
|
94
|
+
inline std::vector<MeshClassification> getClassifications() noexcept override {
|
|
95
|
+
auto __result = _swiftPart.getClassifications();
|
|
96
|
+
return __result;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
public:
|
|
100
|
+
// Methods
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
private:
|
|
104
|
+
NitroAR::HybridARMeshAnchorSpec_cxx _swiftPart;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
} // namespace margelo::nitro::ar
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridARPlaneAnchorSpecSwift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include "HybridARPlaneAnchorSpecSwift.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::ar {
|
|
11
|
+
} // namespace margelo::nitro::ar
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridARPlaneAnchorSpecSwift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include "HybridARPlaneAnchorSpec.hpp"
|
|
11
|
+
|
|
12
|
+
// Forward declaration of `HybridARPlaneAnchorSpec_cxx` to properly resolve imports.
|
|
13
|
+
namespace NitroAR { class HybridARPlaneAnchorSpec_cxx; }
|
|
14
|
+
|
|
15
|
+
// Forward declaration of `PlaneAlignment` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::ar { enum class PlaneAlignment; }
|
|
17
|
+
// Forward declaration of `PlaneClassification` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::ar { enum class PlaneClassification; }
|
|
19
|
+
// Forward declaration of `HybridARPlaneGeometrySpec` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::ar { class HybridARPlaneGeometrySpec; }
|
|
21
|
+
|
|
22
|
+
#include <string>
|
|
23
|
+
#include <vector>
|
|
24
|
+
#include "PlaneAlignment.hpp"
|
|
25
|
+
#include "PlaneClassification.hpp"
|
|
26
|
+
#include <memory>
|
|
27
|
+
#include "HybridARPlaneGeometrySpec.hpp"
|
|
28
|
+
|
|
29
|
+
#include "NitroAR-Swift-Cxx-Umbrella.hpp"
|
|
30
|
+
|
|
31
|
+
namespace margelo::nitro::ar {
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The C++ part of HybridARPlaneAnchorSpec_cxx.swift.
|
|
35
|
+
*
|
|
36
|
+
* HybridARPlaneAnchorSpecSwift (C++) accesses HybridARPlaneAnchorSpec_cxx (Swift), and might
|
|
37
|
+
* contain some additional bridging code for C++ <> Swift interop.
|
|
38
|
+
*
|
|
39
|
+
* Since this obviously introduces an overhead, I hope at some point in
|
|
40
|
+
* the future, HybridARPlaneAnchorSpec_cxx can directly inherit from the C++ class HybridARPlaneAnchorSpec
|
|
41
|
+
* to simplify the whole structure and memory management.
|
|
42
|
+
*/
|
|
43
|
+
class HybridARPlaneAnchorSpecSwift: public virtual HybridARPlaneAnchorSpec {
|
|
44
|
+
public:
|
|
45
|
+
// Constructor from a Swift instance
|
|
46
|
+
explicit HybridARPlaneAnchorSpecSwift(const NitroAR::HybridARPlaneAnchorSpec_cxx& swiftPart):
|
|
47
|
+
HybridObject(HybridARPlaneAnchorSpec::TAG),
|
|
48
|
+
_swiftPart(swiftPart) { }
|
|
49
|
+
|
|
50
|
+
public:
|
|
51
|
+
// Get the Swift part
|
|
52
|
+
inline NitroAR::HybridARPlaneAnchorSpec_cxx& getSwiftPart() noexcept {
|
|
53
|
+
return _swiftPart;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
public:
|
|
57
|
+
inline size_t getExternalMemorySize() noexcept override {
|
|
58
|
+
return _swiftPart.getMemorySize();
|
|
59
|
+
}
|
|
60
|
+
bool equals(const std::shared_ptr<HybridObject>& other) override {
|
|
61
|
+
if (auto otherCast = std::dynamic_pointer_cast<HybridARPlaneAnchorSpecSwift>(other)) {
|
|
62
|
+
return _swiftPart.equals(otherCast->_swiftPart);
|
|
63
|
+
}
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
66
|
+
void dispose() noexcept override {
|
|
67
|
+
_swiftPart.dispose();
|
|
68
|
+
}
|
|
69
|
+
std::string toString() override {
|
|
70
|
+
return _swiftPart.toString();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
public:
|
|
74
|
+
// Properties
|
|
75
|
+
inline std::string getIdentifier() noexcept override {
|
|
76
|
+
auto __result = _swiftPart.getIdentifier();
|
|
77
|
+
return __result;
|
|
78
|
+
}
|
|
79
|
+
inline std::vector<double> getPosition() noexcept override {
|
|
80
|
+
auto __result = _swiftPart.getPosition();
|
|
81
|
+
return __result;
|
|
82
|
+
}
|
|
83
|
+
inline std::vector<double> getRotation() noexcept override {
|
|
84
|
+
auto __result = _swiftPart.getRotation();
|
|
85
|
+
return __result;
|
|
86
|
+
}
|
|
87
|
+
inline PlaneAlignment getAlignment() noexcept override {
|
|
88
|
+
auto __result = _swiftPart.getAlignment();
|
|
89
|
+
return static_cast<PlaneAlignment>(__result);
|
|
90
|
+
}
|
|
91
|
+
inline PlaneClassification getClassification() noexcept override {
|
|
92
|
+
auto __result = _swiftPart.getClassification();
|
|
93
|
+
return static_cast<PlaneClassification>(__result);
|
|
94
|
+
}
|
|
95
|
+
inline std::vector<double> getExtent() noexcept override {
|
|
96
|
+
auto __result = _swiftPart.getExtent();
|
|
97
|
+
return __result;
|
|
98
|
+
}
|
|
99
|
+
inline std::vector<double> getCenter() noexcept override {
|
|
100
|
+
auto __result = _swiftPart.getCenter();
|
|
101
|
+
return __result;
|
|
102
|
+
}
|
|
103
|
+
inline std::shared_ptr<HybridARPlaneGeometrySpec> getGeometry() noexcept override {
|
|
104
|
+
auto __result = _swiftPart.getGeometry();
|
|
105
|
+
return __result;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
public:
|
|
109
|
+
// Methods
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
private:
|
|
113
|
+
NitroAR::HybridARPlaneAnchorSpec_cxx _swiftPart;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
} // namespace margelo::nitro::ar
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridARPlaneGeometrySpecSwift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include "HybridARPlaneGeometrySpecSwift.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::ar {
|
|
11
|
+
} // namespace margelo::nitro::ar
|