6#include "../collection.hpp"
7#include "../result.hpp"
8#include "annotation_info.hpp"
9#include "keypoint_pair.hpp"
48 uint16_t
id, std::optional<std::string> label = std::nullopt,
49 std::optional<datatypes::Rgba32> color = std::nullopt
51 :
info(id, label, color) {}
57 :
info(std::move(info_)),
74 struct Loggable<datatypes::ClassDescription> {
75 static constexpr const char Name[] =
"rerun.datatypes.ClassDescription";
78 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
81 static Result<std::shared_ptr<arrow::Array>> to_arrow(
82 const datatypes::ClassDescription* instances,
size_t num_instances
87 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:82
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Datatype: Annotation info annotating a class id or key-point id.
Definition annotation_info.hpp:25
Datatype: The description of a semantic Class.
Definition class_description.hpp:35
rerun::datatypes::AnnotationInfo info
The datatypes::AnnotationInfo for the class.
Definition class_description.hpp:37
rerun::Collection< rerun::datatypes::AnnotationInfo > keypoint_annotations
The datatypes::AnnotationInfo for all of the keypoints.
Definition class_description.hpp:40
rerun::Collection< rerun::datatypes::KeypointPair > keypoint_connections
The connections between keypoints.
Definition class_description.hpp:43
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:47