Struct re_types::blueprint::archetypes::LineGrid3D
source · pub struct LineGrid3D {
pub visible: Option<Visible>,
pub spacing: Option<GridSpacing>,
pub plane: Option<Plane3D>,
pub stroke_width: Option<StrokeWidth>,
pub color: Option<Color>,
}
Expand description
Archetype: Configuration for the 3D line grid.
Fields§
§visible: Option<Visible>
Whether the grid is visible.
Defaults to true.
spacing: Option<GridSpacing>
Space between grid lines spacing of one line to the next in scene units.
As you zoom out, successively only every tenth line is shown. This controls the closest zoom level.
plane: Option<Plane3D>
In what plane the grid is drawn.
Defaults to whatever plane is determined as the plane at zero units up/down as defined by components::ViewCoordinates
if present.
stroke_width: Option<StrokeWidth>
How thick the lines should be in ui units.
Default is 1.0 ui unit.
color: Option<Color>
Color used for the grid.
Transparency via alpha channel is supported. Defaults to a slightly transparent light gray.
Implementations§
source§impl LineGrid3D
impl LineGrid3D
sourcepub const NUM_COMPONENTS: usize = 6usize
pub const NUM_COMPONENTS: usize = 6usize
The total number of components in the archetype: 0 required, 1 recommended, 5 optional
source§impl LineGrid3D
impl LineGrid3D
sourcepub fn with_visible(self, visible: impl Into<Visible>) -> Self
pub fn with_visible(self, visible: impl Into<Visible>) -> Self
Whether the grid is visible.
Defaults to true.
sourcepub fn with_spacing(self, spacing: impl Into<GridSpacing>) -> Self
pub fn with_spacing(self, spacing: impl Into<GridSpacing>) -> Self
Space between grid lines spacing of one line to the next in scene units.
As you zoom out, successively only every tenth line is shown. This controls the closest zoom level.
sourcepub fn with_plane(self, plane: impl Into<Plane3D>) -> Self
pub fn with_plane(self, plane: impl Into<Plane3D>) -> Self
In what plane the grid is drawn.
Defaults to whatever plane is determined as the plane at zero units up/down as defined by components::ViewCoordinates
if present.
sourcepub fn with_stroke_width(self, stroke_width: impl Into<StrokeWidth>) -> Self
pub fn with_stroke_width(self, stroke_width: impl Into<StrokeWidth>) -> Self
How thick the lines should be in ui units.
Default is 1.0 ui unit.
sourcepub fn with_color(self, color: impl Into<Color>) -> Self
pub fn with_color(self, color: impl Into<Color>) -> Self
Color used for the grid.
Transparency via alpha channel is supported. Defaults to a slightly transparent light gray.
Trait Implementations§
source§impl Archetype for LineGrid3D
impl Archetype for LineGrid3D
§type Indicator = GenericIndicatorComponent<LineGrid3D>
type Indicator = GenericIndicatorComponent<LineGrid3D>
source§fn name() -> ArchetypeName
fn name() -> ArchetypeName
rerun.archetypes.Points2D
.source§fn display_name() -> &'static str
fn display_name() -> &'static str
source§fn indicator() -> ComponentBatchCowWithDescriptor<'static>
fn indicator() -> ComponentBatchCowWithDescriptor<'static>
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_arrow2_components(
arrow_data: impl IntoIterator<Item = (ComponentName, Box<dyn Array>)>,
) -> DeserializationResult<Self>
fn from_arrow2_components( arrow_data: impl IntoIterator<Item = (ComponentName, Box<dyn Array>)>, ) -> 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§fn from_arrow2(
data: impl IntoIterator<Item = (Field, Box<dyn Array>)>,
) -> Result<Self, DeserializationError>where
Self: Sized,
fn from_arrow2(
data: impl IntoIterator<Item = (Field, Box<dyn Array>)>,
) -> Result<Self, DeserializationError>where
Self: Sized,
source§fn from_arrow_components(
data: impl IntoIterator<Item = (ComponentName, Arc<dyn Array>)>,
) -> Result<Self, DeserializationError>where
Self: Sized,
fn from_arrow_components(
data: impl IntoIterator<Item = (ComponentName, Arc<dyn Array>)>,
) -> Result<Self, DeserializationError>where
Self: Sized,
ComponentNames
, deserializes them
into this archetype. Read moresource§impl AsComponents for LineGrid3D
impl AsComponents for LineGrid3D
source§fn as_component_batches(&self) -> Vec<ComponentBatchCowWithDescriptor<'_>>
fn as_component_batches(&self) -> Vec<ComponentBatchCowWithDescriptor<'_>>
ComponentBatch
s. Read moresource§impl Clone for LineGrid3D
impl Clone for LineGrid3D
source§fn clone(&self) -> LineGrid3D
fn clone(&self) -> LineGrid3D
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LineGrid3D
impl Debug for LineGrid3D
source§impl SizeBytes for LineGrid3D
impl SizeBytes for LineGrid3D
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 ArchetypeReflectionMarker for LineGrid3D
Auto Trait Implementations§
impl Freeze for LineGrid3D
impl RefUnwindSafe for LineGrid3D
impl Send for LineGrid3D
impl Sync for LineGrid3D
impl Unpin for LineGrid3D
impl UnwindSafe for LineGrid3D
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>
§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 moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request