6#include "../result.hpp"
30 std::optional<rerun::encodings::Utf8>
label;
33 std::optional<rerun::encodings::Rgba32>
color;
37 uint16_t _id, std::optional<std::string> _label = std::nullopt,
38 std::optional<encodings::Rgba32> _color = std::nullopt
58 struct Loggable<encodings::AnnotationInfo> {
59 static constexpr std::string_view ComponentType =
"rerun.encodings.AnnotationInfo";
62 static const std::shared_ptr<arrow::DataType>& arrow_data_type();
65 static Result<std::shared_ptr<arrow::Array>> to_arrow(
66 const encodings::AnnotationInfo* instances,
size_t num_instances
71 arrow::StructBuilder* builder,
const encodings::AnnotationInfo* elements,
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:103
All built-in encodings. See Types in the Rerun manual.
Definition rerun.hpp:96
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:26
Encoding: Annotation info annotating a class id or key-point id.
Definition annotation_info.hpp:25
std::optional< rerun::encodings::Rgba32 > color
The color that will be applied to the annotated entity.
Definition annotation_info.hpp:33
std::optional< rerun::encodings::Utf8 > label
The label that will be shown in the UI.
Definition annotation_info.hpp:30
uint16_t id
encodings::ClassId or encodings::KeypointId to which this annotation info belongs.
Definition annotation_info.hpp:27
Encoding: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.
Definition rgba32.hpp:27