6#include "../collection.hpp"
7#include "../component_descriptor.hpp"
8#include "../result.hpp"
9#include "annotation_info.hpp"
10#include "keypoint_pair.hpp"
49 uint16_t
id, std::optional<std::string> label = std::nullopt,
50 std::optional<datatypes::Rgba32> color = std::nullopt
52 :
info(id, label, color) {}
58 :
info(std::move(info_)),
75 struct Loggable<datatypes::ClassDescription> {
76 static constexpr ComponentDescriptor Descriptor =
"rerun.datatypes.ClassDescription";
79 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
82 static Result<std::shared_ptr<arrow::Array>> to_arrow(
83 const datatypes::ClassDescription* instances,
size_t num_instances
88 arrow::StructBuilder* builder,
const datatypes::ClassDescription* elements,
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
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
Datatype: The description of a semantic Class.
Definition class_description.hpp:36
rerun::datatypes::AnnotationInfo info
The datatypes::AnnotationInfo for the class.
Definition class_description.hpp:38
rerun::Collection< rerun::datatypes::AnnotationInfo > keypoint_annotations
The datatypes::AnnotationInfo for all of the keypoints.
Definition class_description.hpp:41
rerun::Collection< rerun::datatypes::KeypointPair > keypoint_connections
The connections between keypoints.
Definition class_description.hpp:44
ClassDescription(uint16_t id, std::optional< std::string > label=std::nullopt, std::optional< datatypes::Rgba32 > color=std::nullopt)
Create a new ClassDescription from a single annotation info.
Definition class_description.hpp:48