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

Archetype: Specifies that the entity path at which this is logged is disconnected from its parent. More...

#include <rerun/archetypes/disconnected_space.hpp>

Public Types

using IndicatorComponent = 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)
 
size_t num_instances () const
 Returns the number of primary instances of this archetype.
 

Public Attributes

rerun::components::DisconnectedSpace disconnected_space
 

Static Public Attributes

static constexpr const char IndicatorComponentName []
 

Detailed Description

Archetype: Specifies that the entity path at which this is logged is disconnected from its parent.

This is useful for specifying that a subgraph is independent of the rest of the scene.

If a transform or pinhole is logged on the same path, this archetype's components will be ignored.

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:57
Archetype: Specifies that the entity path at which this is logged is disconnected from its parent.
Definition disconnected_space.hpp:45
Archetype: A 3D point cloud with positions and optional colors, radii, labels, etc.
Definition points3d.hpp:67

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: