Struct rerun::ClassDescription
source · pub struct ClassDescription {
pub info: AnnotationInfo,
pub keypoint_annotations: Vec<AnnotationInfo>,
pub keypoint_connections: Vec<KeypointPair>,
}
Expand description
Datatype: The description of a semantic Class.
If an entity is annotated with a corresponding ClassId
, Rerun will use
the attached AnnotationInfo
to derive labels and colors.
Keypoints within an annotation class can similarly be annotated with a
KeypointId
in which case we should defer to the label and color for the
AnnotationInfo
specifically associated with the Keypoint.
Keypoints within the class can also be decorated with skeletal edges.
Keypoint-connections are pairs of KeypointId
s. If an edge is
defined, and both keypoints exist within the instance of the class, then the
keypoints should be connected with an edge. The edge should be labeled and
colored as described by the class’s AnnotationInfo
.
Fields§
§info: AnnotationInfo
The AnnotationInfo
for the class.
keypoint_annotations: Vec<AnnotationInfo>
The AnnotationInfo
for all of the keypoints.
keypoint_connections: Vec<KeypointPair>
The connections between keypoints.
Trait Implementations§
source§impl Clone for ClassDescription
impl Clone for ClassDescription
source§fn clone(&self) -> ClassDescription
fn clone(&self) -> ClassDescription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClassDescription
impl Debug for ClassDescription
source§impl Default for ClassDescription
impl Default for ClassDescription
source§fn default() -> ClassDescription
fn default() -> ClassDescription
source§impl From<AnnotationInfo> for ClassDescription
impl From<AnnotationInfo> for ClassDescription
source§fn from(info: AnnotationInfo) -> ClassDescription
fn from(info: AnnotationInfo) -> ClassDescription
source§impl From<ClassDescription> for ClassDescriptionMapElem
impl From<ClassDescription> for ClassDescriptionMapElem
source§fn from(class_description: ClassDescription) -> ClassDescriptionMapElem
fn from(class_description: ClassDescription) -> ClassDescriptionMapElem
source§impl Loggable for ClassDescription
impl Loggable for ClassDescription
type Name = DatatypeName
source§fn name() -> <ClassDescription as Loggable>::Name
fn name() -> <ClassDescription as Loggable>::Name
rerun.datatypes.Vec2D
.source§fn arrow_datatype() -> DataType
fn arrow_datatype() -> DataType
arrow2::datatypes::DataType
, excluding datatype extensions.source§fn to_arrow_opt<'a>(
data: impl IntoIterator<Item = Option<impl Into<Cow<'a, ClassDescription>>>>
) -> Result<Box<dyn Array>, SerializationError>where
ClassDescription: Clone + 'a,
fn to_arrow_opt<'a>(
data: impl IntoIterator<Item = Option<impl Into<Cow<'a, ClassDescription>>>>
) -> Result<Box<dyn Array>, SerializationError>where
ClassDescription: Clone + 'a,
Loggable
, serializes them into an Arrow array.
The Arrow array’s datatype will match Loggable::arrow_field
. Read moresource§fn from_arrow_opt(
arrow_data: &(dyn Array + 'static)
) -> Result<Vec<Option<ClassDescription>>, DeserializationError>where
ClassDescription: Sized,
fn from_arrow_opt(
arrow_data: &(dyn Array + 'static)
) -> Result<Vec<Option<ClassDescription>>, DeserializationError>where
ClassDescription: Sized,
source§fn extended_arrow_datatype() -> DataType
fn extended_arrow_datatype() -> DataType
arrow2::datatypes::DataType
, including datatype extensions. Read moresource§fn arrow_field() -> Field
fn arrow_field() -> Field
arrow2::datatypes::Field
, including datatype extensions. Read moresource§fn to_arrow<'a>(
data: impl IntoIterator<Item = impl Into<Cow<'a, Self>>>
) -> Result<Box<dyn Array>, SerializationError>where
Self: 'a,
fn to_arrow<'a>(
data: impl IntoIterator<Item = impl Into<Cow<'a, Self>>>
) -> Result<Box<dyn Array>, SerializationError>where
Self: 'a,
Loggable
, serializes
them into an Arrow array.
The Arrow array’s datatype will match Loggable::arrow_field
. Read moresource§fn from_arrow(
data: &(dyn Array + 'static)
) -> Result<Vec<Self>, DeserializationError>
fn from_arrow( data: &(dyn Array + 'static) ) -> Result<Vec<Self>, DeserializationError>
source§impl PartialEq for ClassDescription
impl PartialEq for ClassDescription
source§fn eq(&self, other: &ClassDescription) -> bool
fn eq(&self, other: &ClassDescription) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl SizeBytes for ClassDescription
impl SizeBytes for ClassDescription
source§fn heap_size_bytes(&self) -> u64
fn heap_size_bytes(&self) -> u64
self
on the heap, in bytes.source§fn total_size_bytes(&self) -> u64
fn total_size_bytes(&self) -> u64
self
in bytes, accounting for both stack and heap space.source§fn stack_size_bytes(&self) -> u64
fn stack_size_bytes(&self) -> u64
self
on the stack, in bytes. Read moreimpl Eq for ClassDescription
impl StructuralPartialEq for ClassDescription
Auto Trait Implementations§
impl Freeze for ClassDescription
impl RefUnwindSafe for ClassDescription
impl Send for ClassDescription
impl Sync for ClassDescription
impl Unpin for ClassDescription
impl UnwindSafe for ClassDescription
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<L> LoggableBatch for L
impl<L> LoggableBatch for L
type Name = <L as Loggable>::Name
source§fn name(&self) -> <L as LoggableBatch>::Name
fn name(&self) -> <L as LoggableBatch>::Name
rerun.datatypes.Vec2D
.source§fn num_instances(&self) -> usize
fn num_instances(&self) -> usize
source§fn arrow_field(&self) -> Field
fn arrow_field(&self) -> Field
arrow2::datatypes::Field
, including datatype extensions.