6#include "../../blueprint/components/grid_spacing.hpp"
7#include "../../collection.hpp"
8#include "../../component_batch.hpp"
9#include "../../component_column.hpp"
10#include "../../components/color.hpp"
11#include "../../components/plane3d.hpp"
12#include "../../components/stroke_width.hpp"
13#include "../../components/visible.hpp"
14#include "../../indicator_component.hpp"
15#include "../../result.hpp"
22namespace rerun::blueprint::archetypes {
42 std::optional<ComponentBatch>
plane;
53 std::optional<ComponentBatch>
color;
56 static constexpr const char IndicatorComponentName[] =
57 "rerun.blueprint.components.LineGrid3DIndicator";
62 static constexpr const char ArchetypeName[] =
"rerun.blueprint.archetypes.LineGrid3D";
108 return std::move(*
this);
117 return std::move(*
this);
125 return std::move(*
this);
134 return std::move(*
this);
143 return std::move(*
this);
167 template <
typename T>
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
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
static Result< ComponentBatch > from_loggable(const rerun::Collection< T > &components, const ComponentDescriptor &descriptor=rerun::Loggable< T >::Descriptor)
Creates a new component batch from a collection of component instances.
Definition component_batch.hpp:46
A ComponentDescriptor fully describes the semantics of a column of data.
Definition component_descriptor.hpp:14
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Archetype: Configuration for the 3D line grid.
Definition line_grid3d.hpp:27
std::optional< ComponentBatch > spacing
Space between grid lines spacing of one line to the next in scene units.
Definition line_grid3d.hpp:37
static constexpr auto Descriptor_stroke_width
ComponentDescriptor for the stroke_width field.
Definition line_grid3d.hpp:79
std::optional< ComponentBatch > stroke_width
How thick the lines should be in ui units.
Definition line_grid3d.hpp:47
LineGrid3D with_spacing(const rerun::blueprint::components::GridSpacing &_spacing) &&
Space between grid lines spacing of one line to the next in scene units.
Definition line_grid3d.hpp:115
static LineGrid3D clear_fields()
Clear all the fields of a LineGrid3D.
static LineGrid3D update_fields()
Update only some specific fields of a LineGrid3D.
Definition line_grid3d.hpp:96
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
std::optional< ComponentBatch > color
Color used for the grid.
Definition line_grid3d.hpp:53
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
std::optional< ComponentBatch > plane
In what plane the grid is drawn.
Definition line_grid3d.hpp:42
static constexpr auto Descriptor_plane
ComponentDescriptor for the plane field.
Definition line_grid3d.hpp:75
std::optional< ComponentBatch > visible
Whether the grid is visible.
Definition line_grid3d.hpp:31
static constexpr auto Descriptor_visible
ComponentDescriptor for the visible field.
Definition line_grid3d.hpp:65
static constexpr auto Descriptor_color
ComponentDescriptor for the color field.
Definition line_grid3d.hpp:84
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition line_grid3d.hpp:62
LineGrid3D with_color(const rerun::components::Color &_color) &&
Color used for the grid.
Definition line_grid3d.hpp:141
LineGrid3D with_stroke_width(const rerun::components::StrokeWidth &_stroke_width) &&
How thick the lines should be in ui units.
Definition line_grid3d.hpp:131
LineGrid3D with_visible(const rerun::components::Visible &_visible) &&
Whether the grid is visible.
Definition line_grid3d.hpp:106
LineGrid3D with_plane(const rerun::components::Plane3D &_plane) &&
In what plane the grid is drawn.
Definition line_grid3d.hpp:123
static constexpr auto Descriptor_spacing
ComponentDescriptor for the spacing field.
Definition line_grid3d.hpp:70
Component: Space between grid lines of one line to the next in scene units.
Definition grid_spacing.hpp:18
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
Component: Whether the container, view, entity or instance is currently visible.
Definition visible.hpp:15