6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../component_batch.hpp"
9#include "../components/color.hpp"
10#include "../components/graph_node.hpp"
11#include "../components/position2d.hpp"
12#include "../components/radius.hpp"
13#include "../components/show_labels.hpp"
14#include "../components/text.hpp"
15#include "../indicator_component.hpp"
16#include "../result.hpp"
54 std::optional<Collection<rerun::components::Position2D>>
positions;
57 std::optional<Collection<rerun::components::Color>>
colors;
60 std::optional<Collection<rerun::components::Text>>
labels;
66 std::optional<Collection<rerun::components::Radius>>
radii;
69 static constexpr const char IndicatorComponentName[] =
70 "rerun.components.GraphNodesIndicator";
86 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
91 colors = std::move(_colors);
93 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
98 labels = std::move(_labels);
100 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
107 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
112 radii = std::move(_radii);
114 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
122 template <
typename T>
127 struct AsComponents<archetypes::GraphNodes> {
129 static Result<std::vector<ComponentBatch>> serialize(
const archetypes::GraphNodes& archetype
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:77
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Archetype: A list of nodes in a graph with optional labels, colors, etc.
Definition graph_nodes.hpp:49
GraphNodes with_colors(Collection< rerun::components::Color > _colors) &&
Optional colors for the boxes.
Definition graph_nodes.hpp:90
std::optional< Collection< rerun::components::Text > > labels
Optional text labels for the node.
Definition graph_nodes.hpp:60
GraphNodes with_radii(Collection< rerun::components::Radius > _radii) &&
Optional radii for nodes.
Definition graph_nodes.hpp:111
Collection< rerun::components::GraphNode > node_ids
A list of node IDs.
Definition graph_nodes.hpp:51
std::optional< Collection< rerun::components::Color > > colors
Optional colors for the boxes.
Definition graph_nodes.hpp:57
GraphNodes with_positions(Collection< rerun::components::Position2D > _positions) &&
Optional center positions of the nodes.
Definition graph_nodes.hpp:83
std::optional< Collection< rerun::components::Radius > > radii
Optional radii for nodes.
Definition graph_nodes.hpp:66
std::optional< rerun::components::ShowLabels > show_labels
Optional choice of whether the text labels should be shown by default.
Definition graph_nodes.hpp:63
GraphNodes with_show_labels(rerun::components::ShowLabels _show_labels) &&
Optional choice of whether the text labels should be shown by default.
Definition graph_nodes.hpp:104
GraphNodes with_labels(Collection< rerun::components::Text > _labels) &&
Optional text labels for the node.
Definition graph_nodes.hpp:97
std::optional< Collection< rerun::components::Position2D > > positions
Optional center positions of the nodes.
Definition graph_nodes.hpp:54
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32
Component: Whether the entity's components::Text label is shown.
Definition show_labels.hpp:19