6#include "../../blueprint/components/enabled.hpp"
7#include "../../blueprint/components/force_strength.hpp"
8#include "../../collection.hpp"
9#include "../../compiler_utils.hpp"
10#include "../../component_batch.hpp"
11#include "../../components/position2d.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::ForceStrength>
strength;
32 std::optional<rerun::components::Position2D>
position;
35 static constexpr const char IndicatorComponentName[] =
36 "rerun.blueprint.components.ForcePositionIndicator";
51 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
58 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
65 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
78 struct AsComponents<blueprint::archetypes::ForcePosition> {
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: Similar to gravity, this force pulls nodes towards a specific position.
Definition force_position.hpp:22
ForcePosition with_enabled(rerun::blueprint::components::Enabled _enabled) &&
Whether the position force is enabled.
Definition force_position.hpp:48
ForcePosition with_position(rerun::components::Position2D _position) &&
The position where the nodes should be pulled towards.
Definition force_position.hpp:62
ForcePosition with_strength(rerun::blueprint::components::ForceStrength _strength) &&
The strength of the force.
Definition force_position.hpp:55
std::optional< rerun::components::Position2D > position
The position where the nodes should be pulled towards.
Definition force_position.hpp:32
std::optional< rerun::blueprint::components::Enabled > enabled
Whether the position force is enabled.
Definition force_position.hpp:26
std::optional< rerun::blueprint::components::ForceStrength > strength
The strength of the force.
Definition force_position.hpp:29
Component: Whether a procedure is enabled.
Definition enabled.hpp:15
Component: The strength of a given force.
Definition force_strength.hpp:17
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32
Component: A position in 2D space.
Definition position2d.hpp:16