Rerun C++ SDK
|
Archetype: General visualization behavior of an entity. More...
#include <rerun/blueprint/archetypes/entity_behavior.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 | |
EntityBehavior (EntityBehavior &&other)=default | |
EntityBehavior (const EntityBehavior &other)=default | |
EntityBehavior & | operator= (const EntityBehavior &other)=default |
EntityBehavior & | operator= (EntityBehavior &&other)=default |
EntityBehavior | with_interactive (const rerun::components::Interactive &_interactive) && |
Whether the entity can be interacted with. | |
EntityBehavior | with_visible (const rerun::components::Visible &_visible) && |
Whether the entity is visible. | |
Collection< ComponentColumn > | columns (const Collection< uint32_t > &lengths_) |
Partitions the component data into multiple sub-batches. | |
Collection< ComponentColumn > | columns () |
Partitions the component data into unit-length sub-batches. | |
Static Public Member Functions | |
static EntityBehavior | update_fields () |
Update only some specific fields of a EntityBehavior . | |
static EntityBehavior | clear_fields () |
Clear all the fields of a EntityBehavior . | |
Public Attributes | |
std::optional< ComponentBatch > | interactive |
Whether the entity can be interacted with. | |
std::optional< ComponentBatch > | visible |
Whether the entity is visible. | |
Static Public Attributes | |
static constexpr const char | IndicatorComponentName [] |
static constexpr const char | ArchetypeName [] = "rerun.blueprint.archetypes.EntityBehavior" |
The name of the archetype as used in ComponentDescriptor s. | |
static constexpr auto | Descriptor_interactive |
ComponentDescriptor for the interactive field. | |
static constexpr auto | Descriptor_visible |
ComponentDescriptor for the visible field. | |
Archetype: General visualization behavior of an entity.
TODO(#6541): Fields of this archetype currently only have an effect when logged in the blueprint store.
|
inline |
Whether the entity can be interacted with.
This property is propagated down the entity hierarchy until another child entity sets interactive
to a different value at which point propagation continues with that value instead.
Defaults to parent's interactive
value or true if there is no parent.
|
inline |
Whether the entity is visible.
This property is propagated down the entity hierarchy until another child entity sets visible
to a different value at which point propagation continues with that value instead.
Defaults to parent's visible
value or true if there is no parent.
Collection< ComponentColumn > rerun::blueprint::archetypes::EntityBehavior::columns | ( | const Collection< uint32_t > & | lengths_ | ) |
Partitions the component data into multiple sub-batches.
Specifically, this transforms the existing ComponentBatch
data into ComponentColumn
s instead, via ComponentBatch::partitioned
.
This makes it possible to use RecordingStream::send_columns
to send columnar data directly into Rerun.
The specified lengths
must sum to the total length of the component batch.
Collection< ComponentColumn > rerun::blueprint::archetypes::EntityBehavior::columns | ( | ) |
Partitions the component data into unit-length sub-batches.
This is semantically similar to calling columns
with std::vector<uint32_t>(n, 1)
, where n
is automatically guessed.
std::optional<ComponentBatch> rerun::blueprint::archetypes::EntityBehavior::interactive |
Whether the entity can be interacted with.
This property is propagated down the entity hierarchy until another child entity sets interactive
to a different value at which point propagation continues with that value instead.
Defaults to parent's interactive
value or true if there is no parent.
std::optional<ComponentBatch> rerun::blueprint::archetypes::EntityBehavior::visible |
Whether the entity is visible.
This property is propagated down the entity hierarchy until another child entity sets visible
to a different value at which point propagation continues with that value instead.
Defaults to parent's visible
value or true if there is no parent.
|
staticconstexpr |
|
staticconstexpr |
ComponentDescriptor
for the interactive
field.
|
staticconstexpr |
ComponentDescriptor
for the visible
field.