Rerun C++ SDK
Loading...
Searching...
No Matches
rerun::archetypes::DisconnectedSpace Struct Reference

Archetype: Spatially disconnect this entity from its parent. More...

#include <rerun/archetypes/disconnected_space.hpp>

Public Types

using IndicatorComponent = rerun::components::IndicatorComponent< IndicatorComponentName >
 Indicator component, used to identify the archetype when converting to a list of components.
 

Public Member Functions

 DisconnectedSpace (DisconnectedSpace &&other)=default
 
 DisconnectedSpace (rerun::components::DisconnectedSpace _disconnected_space)
 

Public Attributes

rerun::components::DisconnectedSpace disconnected_space
 Whether the entity path at which this is logged is disconnected from its parent.
 

Static Public Attributes

static constexpr const char IndicatorComponentName []
 

Detailed Description

Archetype: Spatially disconnect this entity from its parent.

Specifies that the entity path at which this is logged is spatially disconnected from its parent, making it impossible to transform the entity path into its parent's space and vice versa. It only applies to space views that work with spatial transformations, i.e. 2D & 3D space views. This is useful for specifying that a subgraph is independent of the rest of the scene.

Example

Disconnected space

image

#include <rerun.hpp>
int main() {
const auto rec = rerun::RecordingStream("rerun_example_disconnected_space");
rec.spawn().exit_on_failure();
// These two points can be projected into the same space..
rec.log("world/room1/point", rerun::Points3D({{0.0f, 0.0f, 0.0f}}));
rec.log("world/room2/point", rerun::Points3D({{1.0f, 1.0f, 1.0f}}));
// ..but this one lives in a completely separate space!
rec.log("world/wormhole", rerun::DisconnectedSpace(true));
rec.log("world/wormhole/point", rerun::Points3D({{2.0f, 2.0f, 2.0f}}));
}
A RecordingStream handles everything related to logging data into Rerun.
Definition recording_stream.hpp:60
Archetype: Spatially disconnect this entity from its parent.
Definition disconnected_space.hpp:45
Archetype: A 3D point cloud with positions and optional colors, radii, labels, etc.
Definition points3d.hpp:156

Member Data Documentation

◆ IndicatorComponentName

constexpr const char rerun::archetypes::DisconnectedSpace::IndicatorComponentName[]
staticconstexpr
Initial value:
=
"rerun.components.DisconnectedSpaceIndicator"

The documentation for this struct was generated from the following file: