6#include "../collection.hpp"
7#include "../result.hpp"
8#include "annotation_info.hpp"
9#include "keypoint_pair.hpp"
50 uint16_t
id, std::optional<std::string> label = std::nullopt,
51 std::optional<datatypes::Rgba32> color = std::nullopt
53 :
info(id, label, color) {}
59 :
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();
82 arrow::StructBuilder* builder,
const datatypes::ClassDescription* elements,
87 static Result<std::shared_ptr<arrow::Array>> to_arrow(
88 const datatypes::ClassDescription* instances,
size_t num_instances
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:47
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:72
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
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 AnnotationInfo for the class.
Definition class_description.hpp:37
rerun::Collection< rerun::datatypes::AnnotationInfo > keypoint_annotations
The 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:49