6#include "../../blueprint/components/enabled.hpp"
7#include "../../blueprint/components/force_distance.hpp"
8#include "../../blueprint/components/force_iterations.hpp"
9#include "../../collection.hpp"
10#include "../../compiler_utils.hpp"
11#include "../../component_batch.hpp"
12#include "../../indicator_component.hpp"
13#include "../../result.hpp"
20namespace rerun::blueprint::archetypes {
26 std::optional<rerun::blueprint::components::Enabled>
enabled;
29 std::optional<rerun::blueprint::components::ForceDistance>
distance;
34 std::optional<rerun::blueprint::components::ForceIterations>
iterations;
37 static constexpr const char IndicatorComponentName[] =
38 "rerun.blueprint.components.ForceLinkIndicator";
53 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
60 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
69 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
82 struct AsComponents<blueprint::archetypes::ForceLink> {
A class for representing either a usable value, or an error.
Definition result.hpp:14
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Archetype: Aims to achieve a target distance between two nodes that are connected by an edge.
Definition force_link.hpp:22
std::optional< rerun::blueprint::components::ForceDistance > distance
The target distance between two nodes.
Definition force_link.hpp:29
std::optional< rerun::blueprint::components::Enabled > enabled
Whether the link force is enabled.
Definition force_link.hpp:26
ForceLink with_iterations(rerun::blueprint::components::ForceIterations _iterations) &&
Specifies how often this force should be applied per iteration.
Definition force_link.hpp:66
ForceLink with_distance(rerun::blueprint::components::ForceDistance _distance) &&
The target distance between two nodes.
Definition force_link.hpp:57
ForceLink with_enabled(rerun::blueprint::components::Enabled _enabled) &&
Whether the link force is enabled.
Definition force_link.hpp:50
std::optional< rerun::blueprint::components::ForceIterations > iterations
Specifies how often this force should be applied per iteration.
Definition force_link.hpp:34
Component: Whether a procedure is enabled.
Definition enabled.hpp:15
Component: The target distance between two nodes.
Definition force_distance.hpp:17
Component: Specifies how often this force should be applied per iteration.
Definition force_iterations.hpp:17
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32