Ocean
RoomElement.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #ifndef META_OCEAN_DEVICES_ARKIT_ROOMPLAN_SWIFT_ROOM_ELEMENT_H
9 #define META_OCEAN_DEVICES_ARKIT_ROOMPLAN_SWIFT_ROOM_ELEMENT_H
10 
11 #include <ARKit/ARKit.h>
12 #include <Foundation/Foundation.h>
13 
14 NS_ASSUME_NONNULL_BEGIN
15 
16 /**
17  * Definition of the base class of all room objects.
18  * @ingroup devicesarkit
19  */
20 @interface RoomObject : NSObject
21 
22  /// The type of the object.
23  @property NSString* type_;
24 
25  /// The unique identifier of the object.
26  @property NSString* identifier_;
27 
28  /// The confidence of this object, with range [0, 1], higher is better;
29  @property float confidence_;
30 
31  /// A matrix that defines the object’s position and orientation in the scene.
32  @property simd_float4x4 transform_;
33 
34  /// A bounding box that contains the object.
35  @property simd_float3 dimension_;
36 
37 @end
38 
39 /**
40  * Definition of a planar (2D) room object.
41  * @ingroup devicesarkit
42  */
44 @end
45 
46 /**
47  * Definition of a volumetric (3D) room object.
48  * @ingroup devicesarkit
49  */
51 @end
52 
53 NS_ASSUME_NONNULL_END
54 
55 #endif // META_OCEAN_DEVICES_ARKIT_ROOMPLAN_SWIFT_ROOM_ELEMENT_H
Definition of a planar (2D) room object.
Definition: RoomElement.h:44
Definition of the base class of all room objects.
Definition: RoomElement.h:21
NSString * identifier_
The unique identifier of the object.
Definition: RoomElement.h:26
simd_float4x4 transform_
A matrix that defines the object’s position and orientation in the scene.
Definition: RoomElement.h:32
simd_float3 dimension_
A bounding box that contains the object.
Definition: RoomElement.h:35
float confidence_
The confidence of this object, with range [0, 1], higher is better;.
Definition: RoomElement.h:29
NSString * type_
The type of the object.
Definition: RoomElement.h:23
Definition of a volumetric (3D) room object.
Definition: RoomElement.h:51