6#include "../../blueprint/components/grid_spacing.hpp"
7#include "../../blueprint/components/visible.hpp"
8#include "../../collection.hpp"
9#include "../../compiler_utils.hpp"
10#include "../../component_batch.hpp"
11#include "../../components/color.hpp"
12#include "../../components/plane3d.hpp"
13#include "../../components/stroke_width.hpp"
14#include "../../indicator_component.hpp"
15#include "../../result.hpp"
22namespace rerun::blueprint::archetypes {
28 std::optional<rerun::blueprint::components::Visible>
visible;
34 std::optional<rerun::blueprint::components::GridSpacing>
spacing;
39 std::optional<rerun::components::Plane3D>
plane;
50 std::optional<rerun::components::Color>
color;
53 static constexpr const char IndicatorComponentName[] =
54 "rerun.blueprint.components.LineGrid3DIndicator";
69 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
79 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
86 plane = std::move(_plane);
88 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
97 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
105 color = std::move(_color);
107 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
115 template <
typename T>
120 struct AsComponents<blueprint::archetypes::LineGrid3D> {
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: Configuration for the 3D line grid.
Definition line_grid3d.hpp:24
std::optional< rerun::components::Color > color
Color used for the grid.
Definition line_grid3d.hpp:50
std::optional< rerun::blueprint::components::GridSpacing > spacing
Space between grid lines spacing of one line to the next in scene units.
Definition line_grid3d.hpp:34
LineGrid3D with_visible(rerun::blueprint::components::Visible _visible) &&
Whether the grid is visible.
Definition line_grid3d.hpp:66
std::optional< rerun::components::Plane3D > plane
In what plane the grid is drawn.
Definition line_grid3d.hpp:39
std::optional< rerun::blueprint::components::Visible > visible
Whether the grid is visible.
Definition line_grid3d.hpp:28
LineGrid3D with_spacing(rerun::blueprint::components::GridSpacing _spacing) &&
Space between grid lines spacing of one line to the next in scene units.
Definition line_grid3d.hpp:76
LineGrid3D with_plane(rerun::components::Plane3D _plane) &&
In what plane the grid is drawn.
Definition line_grid3d.hpp:85
std::optional< rerun::components::StrokeWidth > stroke_width
How thick the lines should be in ui units.
Definition line_grid3d.hpp:44
LineGrid3D with_stroke_width(rerun::components::StrokeWidth _stroke_width) &&
How thick the lines should be in ui units.
Definition line_grid3d.hpp:94
LineGrid3D with_color(rerun::components::Color _color) &&
Color used for the grid.
Definition line_grid3d.hpp:104
Component: Space between grid lines of one line to the next in scene units.
Definition grid_spacing.hpp:15
Component: Whether the container, view, entity or instance is currently visible.
Definition visible.hpp:15
Component: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.
Definition color.hpp:18
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32
Component: An infinite 3D plane represented by a unit normal vector and a distance.
Definition plane3d.hpp:23
Component: The width of a stroke specified in UI points.
Definition stroke_width.hpp:15