pub struct VisualizerOverrides {
pub ranges: Option<SerializedComponentBatch>,
}
Expand description
Archetype: Override the visualizers for an entity.
This archetype is a stop-gap mechanism based on the current implementation details of the visualizer system. It is not intended to be a long-term solution, but provides enough utility to be useful in the short term.
The long-term solution is likely to be based off: https://github.com/rerun-io/rerun/issues/6626
This can only be used as part of blueprints. It will have no effect if used in a regular entity.
⚠️ This type is unstable and may change significantly in a way that the data won’t be backwards compatible.
Fields§
§ranges: Option<SerializedComponentBatch>
Names of the visualizers that should be active.
Implementations§
Source§impl VisualizerOverrides
impl VisualizerOverrides
Sourcepub fn descriptor_ranges() -> ComponentDescriptor
pub fn descriptor_ranges() -> ComponentDescriptor
Returns the ComponentDescriptor
for Self::ranges
.
Sourcepub fn descriptor_indicator() -> ComponentDescriptor
pub fn descriptor_indicator() -> ComponentDescriptor
Returns the ComponentDescriptor
for the associated indicator component.
Source§impl VisualizerOverrides
impl VisualizerOverrides
Sourcepub const NUM_COMPONENTS: usize = 2usize
pub const NUM_COMPONENTS: usize = 2usize
The total number of components in the archetype: 1 required, 1 recommended, 0 optional
Source§impl VisualizerOverrides
impl VisualizerOverrides
Sourcepub fn new(
ranges: impl IntoIterator<Item = impl Into<VisualizerOverride>>,
) -> Self
pub fn new( ranges: impl IntoIterator<Item = impl Into<VisualizerOverride>>, ) -> Self
Create a new VisualizerOverrides
.
Sourcepub fn update_fields() -> Self
pub fn update_fields() -> Self
Update only some specific fields of a VisualizerOverrides
.
Sourcepub fn clear_fields() -> Self
pub fn clear_fields() -> Self
Clear all the fields of a VisualizerOverrides
.
Sourcepub fn with_ranges(
self,
ranges: impl IntoIterator<Item = impl Into<VisualizerOverride>>,
) -> Self
pub fn with_ranges( self, ranges: impl IntoIterator<Item = impl Into<VisualizerOverride>>, ) -> Self
Names of the visualizers that should be active.
Trait Implementations§
Source§impl Archetype for VisualizerOverrides
impl Archetype for VisualizerOverrides
Source§type Indicator = GenericIndicatorComponent<VisualizerOverrides>
type Indicator = GenericIndicatorComponent<VisualizerOverrides>
Source§fn name() -> ArchetypeName
fn name() -> ArchetypeName
rerun.archetypes.Points2D
.Source§fn display_name() -> &'static str
fn display_name() -> &'static str
Source§fn required_components() -> Cow<'static, [ComponentDescriptor]>
fn required_components() -> Cow<'static, [ComponentDescriptor]>
Source§fn recommended_components() -> Cow<'static, [ComponentDescriptor]>
fn recommended_components() -> Cow<'static, [ComponentDescriptor]>
Source§fn optional_components() -> Cow<'static, [ComponentDescriptor]>
fn optional_components() -> Cow<'static, [ComponentDescriptor]>
Source§fn all_components() -> Cow<'static, [ComponentDescriptor]>
fn all_components() -> Cow<'static, [ComponentDescriptor]>
Source§fn from_arrow_components(
arrow_data: impl IntoIterator<Item = (ComponentDescriptor, ArrayRef)>,
) -> DeserializationResult<Self>
fn from_arrow_components( arrow_data: impl IntoIterator<Item = (ComponentDescriptor, ArrayRef)>, ) -> DeserializationResult<Self>
ComponentNames
, deserializes them
into this archetype. Read moreSource§fn from_arrow(
data: impl IntoIterator<Item = (Field, Arc<dyn Array>)>,
) -> Result<Self, DeserializationError>where
Self: Sized,
fn from_arrow(
data: impl IntoIterator<Item = (Field, Arc<dyn Array>)>,
) -> Result<Self, DeserializationError>where
Self: Sized,
Source§impl AsComponents for VisualizerOverrides
impl AsComponents for VisualizerOverrides
Source§fn as_serialized_batches(&self) -> Vec<SerializedComponentBatch>
fn as_serialized_batches(&self) -> Vec<SerializedComponentBatch>
SerializedComponentBatch
es. Read moreSource§impl Clone for VisualizerOverrides
impl Clone for VisualizerOverrides
Source§fn clone(&self) -> VisualizerOverrides
fn clone(&self) -> VisualizerOverrides
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VisualizerOverrides
impl Debug for VisualizerOverrides
Source§impl Default for VisualizerOverrides
impl Default for VisualizerOverrides
Source§fn default() -> VisualizerOverrides
fn default() -> VisualizerOverrides
Source§impl SizeBytes for VisualizerOverrides
impl SizeBytes for VisualizerOverrides
Source§fn heap_size_bytes(&self) -> u64
fn heap_size_bytes(&self) -> u64
self
uses on the heap. Read moreSource§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 ArchetypeReflectionMarker for VisualizerOverrides
Auto Trait Implementations§
impl Freeze for VisualizerOverrides
impl !RefUnwindSafe for VisualizerOverrides
impl Send for VisualizerOverrides
impl Sync for VisualizerOverrides
impl Unpin for VisualizerOverrides
impl !UnwindSafe for VisualizerOverrides
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more