class MRUKRoom(var anchor: Anchor)
MRUKRoom
(
anchor
)
|
anchor
: Anchor
[Get][Set] |
The primary anchor that represents this room's coordinate system
Signature
var anchor: Anchor |
anchors
: MutableList
[Get] |
List of all anchor entities in this room.
This includes all spatial anchors detected in the room such as walls, floors, ceilings, and furniture. Each entity contains components like MRUKAnchor, MRUKPlane, or MRUKVolume that describe its properties.
Signature
var anchors: MutableList<Entity> |
ceilings
: MutableList
[Get] |
List of all ceiling anchor entities in this room.
Contains entities representing the horizontal surfaces at the top of the room.
Signature
var ceilings: MutableList<Entity> |
entity
: Entity?
[Get][Set] |
The entity representing this room in the scene graph.
This entity is created when MRUKRoom.create is called and serves as the root for room-related components and transforms. May be null if MRUKRoom.create has not been called yet.
Signature
var entity: Entity? |
floors
: MutableList
[Get] |
List of all floor anchor entities in this room.
Contains entities representing the horizontal surfaces at the bottom of the room.
Signature
var floors: MutableList<Entity> |
globalMesh
: MRUKMesh?
[Get][Set] |
The global mesh representation of the room, if available.
Provides a unified mesh that combines all surfaces in the room. May be null if mesh data is not available or has not been generated.
Signature
var globalMesh: MRUKMesh? |
roomBounds
: Bound3D
[Get][Set] |
The 3D bounding box that encompasses the entire room.
Defines the spatial extents of the room in all three dimensions, useful for spatial queries and collision detection.
Signature
var roomBounds: Bound3D |
roomMesh
: MRUKRoomMesh?
[Get][Set] |
The high-fidelity room mesh data, if available.
Contains detailed mesh geometry including vertex positions and semantic face definitions. Only available when using High Fidelity Scene (Scene V2). May be null for standard scenes.
Signature
var roomMesh: MRUKRoomMesh? |
walls
: MutableList
[Get] |
List of all wall anchor entities in this room.
Contains entities representing the vertical surfaces that form the room's boundaries.
Signature
var walls: MutableList<Entity> |
create
()
|
Creates and initializes the room entity.
This method must be called before using the room to ensure the entity is properly initialized.
Signature
fun create() |
destroy
()
|
Destroys this room and all associated entities and anchors.
This method cleans up all resources associated with the room, including destroying all anchor entities and the room entity itself. After calling this method, the room should not be used.
Signature
fun destroy() |
getKeyWall
()
|
Returns the wall entity with the largest width in the room.
The width is determined by measuring the x-axis extent of each wall's plane component. This is typically used to identify the most prominent wall for content placement or alignment.
Signature
fun getKeyWall(): Entity? Returns
The widest wall entity, or null if no walls exist or no walls have a MRUKPlane component
|
isPositionInRoom
(
position
, testVerticalBounds
)
|
Checks if a given position is contained within the room's boundaries.
This method determines whether a 3D position falls within the spatial bounds of the room. It can optionally test vertical bounds to check if the position is between the floor and ceiling.
Signature
fun isPositionInRoom(position: Vector3, testVerticalBounds: Boolean = true): Boolean Parameters
testVerticalBounds:
Boolean
Returns
Boolean
|
setPose
(
pose
)
|
Sets the pose (position and orientation) of the room entity.
Updates the room's transform component with the specified pose, affecting the spatial positioning of the room and all its child anchors.
Signature
fun setPose(pose: Pose) Parameters |