Struct re_components::context::ClassDescription
source · pub struct ClassDescription {
pub info: AnnotationInfo,
pub keypoint_map: HashMap<KeypointId, AnnotationInfo>,
pub keypoint_connections: Vec<(KeypointId, KeypointId)>,
}
Expand description
The description of a semantic Class.
If an entity is annotated with a corresponding ClassId
, we should use
the attached AnnotationInfo
for 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
§keypoint_map: HashMap<KeypointId, AnnotationInfo>
§keypoint_connections: Vec<(KeypointId, KeypointId)>
Semantic connections between two keypoints.
This indicates that an edge line should be drawn between two Keypoints. Typically used for skeleton edges.
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<'de> Deserialize<'de> for ClassDescription
impl<'de> Deserialize<'de> for ClassDescription
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl PartialEq<ClassDescription> for ClassDescription
impl PartialEq<ClassDescription> 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 ==
.