6#include "../collection.hpp"
7#include "../components/clear_is_recursive.hpp"
8#include "../data_cell.hpp"
9#include "../indicator_component.hpp"
10#include "../result.hpp"
77 static constexpr const char IndicatorComponentName[] =
"rerun.components.ClearIndicator";
85 static const Clear FLAT;
87 static const Clear RECURSIVE;
89 Clear(
bool _is_recursive =
false) :
Clear(components::ClearIsRecursive(_is_recursive)) {}
96 : is_recursive(std::move(_is_recursive)) {}
108 template <
typename T>
113 struct AsComponents<archetypes::Clear> {
115 static Result<std::vector<DataCell>> serialize(
const archetypes::Clear& archetype);
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:66
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Archetype: Empties all the components of an entity.
Definition clear.hpp:73
size_t num_instances() const
Returns the number of primary instances of this archetype.
Definition clear.hpp:99
Component: Configures how a clear operation should behave - recursive or not.
Definition clear_is_recursive.hpp:19
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:23