6#include "../collection.hpp"
7#include "../datatypes/class_description_map_elem.hpp"
8#include "../result.hpp"
46 typename = std::enable_if_t<
47 std::is_constructible_v<datatypes::ClassDescriptionMapElem, TElement>>
50 std::vector<datatypes::ClassDescriptionMapElem> class_map_new;
51 class_map_new.reserve(class_descriptions.size());
52 for (
const auto& class_description : class_descriptions) {
53 class_map_new.emplace_back(std::move(class_description));
56 std::move(class_map_new)
81 struct Loggable<components::AnnotationContext> {
82 static constexpr const char Name[] =
"rerun.components.AnnotationContext";
85 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
89 arrow::ListBuilder* builder,
const components::AnnotationContext* elements,
94 static Result<std::shared_ptr<arrow::Array>> to_arrow(
95 const components::AnnotationContext* instances,
size_t num_instances
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:47
static Collection< TElement > take_ownership(std::vector< TElement > &&data)
Takes ownership of a temporary std::vector, moving it into the collection.
Definition collection.hpp:183
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:69
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Archetype: The AnnotationContext provides additional information on how to display entities.
Definition annotation_context.hpp:63
Component: The AnnotationContext provides additional information on how to display entities.
Definition annotation_context.hpp:29
rerun::Collection< rerun::datatypes::ClassDescriptionMapElem > class_map
List of class descriptions, mapping class indices to class names, colors etc.
Definition annotation_context.hpp:31
AnnotationContext(std::initializer_list< TElement > class_descriptions)
Construct from an initializer list of elements from which rerun::datatypes::ClassDescriptionMapElems ...
Definition annotation_context.hpp:49