6#include "../component_descriptor.hpp"
7#include "../result.hpp"
31 std::optional<rerun::datatypes::Utf8>
label;
34 std::optional<rerun::datatypes::Rgba32>
color;
38 uint16_t _id, std::optional<std::string> _label = std::nullopt,
39 std::optional<datatypes::Rgba32> _color = std::nullopt
59 struct Loggable<datatypes::AnnotationInfo> {
60 static constexpr ComponentDescriptor Descriptor =
"rerun.datatypes.AnnotationInfo";
63 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
66 static Result<std::shared_ptr<arrow::Array>> to_arrow(
67 const datatypes::AnnotationInfo* instances,
size_t num_instances
72 arrow::StructBuilder* builder,
const datatypes::AnnotationInfo* elements,
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:83
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Datatype: Annotation info annotating a class id or key-point id.
Definition annotation_info.hpp:26
uint16_t id
datatypes::ClassId or datatypes::KeypointId to which this annotation info belongs.
Definition annotation_info.hpp:28
std::optional< rerun::datatypes::Rgba32 > color
The color that will be applied to the annotated entity.
Definition annotation_info.hpp:34
std::optional< rerun::datatypes::Utf8 > label
The label that will be shown in the UI.
Definition annotation_info.hpp:31
Datatype: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.
Definition rgba32.hpp:28