Struct rerun::external::re_entity_db::EntityProperties
source · pub struct EntityProperties {
pub interactive: bool,
pub color_mapper: EditableAutoValue<ColorMapper>,
pub pinhole_image_plane_distance: EditableAutoValue<f32>,
pub backproject_depth: EditableAutoValue<bool>,
pub depth_from_world_scale: EditableAutoValue<f32>,
pub backproject_radius_scale: EditableAutoValue<f32>,
pub transform_3d_visible: EditableAutoValue<bool>,
pub transform_3d_size: EditableAutoValue<f32>,
pub show_legend: EditableAutoValue<bool>,
pub legend_location: Option<LegendCorner>,
pub time_series_aggregator: EditableAutoValue<TimeSeriesAggregator>,
}Fields§
§interactive: bool§color_mapper: EditableAutoValue<ColorMapper>What kind of color mapping should be applied (none, map, texture, transfer..)?
pinhole_image_plane_distance: EditableAutoValue<f32>Distance of the projection plane (frustum far plane).
Only applies to pinhole cameras when in a spatial view, using 3D navigation.
backproject_depth: EditableAutoValue<bool>Should the depth texture be backprojected into a point cloud?
Only applies to tensors with meaning=depth that are affected by a pinhole transform.
The default for 3D views is true, but for 2D views it is false.
depth_from_world_scale: EditableAutoValue<f32>How many depth units per world-space unit. e.g. 1000 for millimeters.
This corresponds to re_components::Tensor::meter.
backproject_radius_scale: EditableAutoValue<f32>Used to scale the radii of the points in the resulting point cloud.
transform_3d_visible: EditableAutoValue<bool>Whether to show the 3D transform visualization at all.
transform_3d_size: EditableAutoValue<f32>The length of the arrows in the entity’s own coordinate system (space).
show_legend: EditableAutoValue<bool>Should the legend be shown (for plot space views).
legend_location: Option<LegendCorner>The location of the legend (for plot space views).
This is an Option instead of an EditableAutoValue to let each space view class decide on what’s the best default.
time_series_aggregator: EditableAutoValue<TimeSeriesAggregator>What kind of data aggregation to perform (for plot space views).
Implementations§
source§impl EntityProperties
impl EntityProperties
sourcepub fn with_child(&self, child: &EntityProperties) -> EntityProperties
pub fn with_child(&self, child: &EntityProperties) -> EntityProperties
Multiply/and these together.
sourcepub fn merge_with(&self, other: &EntityProperties) -> EntityProperties
pub fn merge_with(&self, other: &EntityProperties) -> EntityProperties
Merge this EntityProperty with the values from another EntityProperty.
When merging, other values are preferred over self values unless they are auto values, in which case self values are preferred.
This is important to combine the base-layer of up-to-date auto-values with values loaded from the Blueprint store where the Auto values are not up-to-date.
sourcepub fn has_edits(&self, other: &EntityProperties) -> bool
pub fn has_edits(&self, other: &EntityProperties) -> bool
Determine whether this EntityProperty has user-edits relative to another EntityProperty
Trait Implementations§
source§impl Clone for EntityProperties
impl Clone for EntityProperties
source§fn clone(&self) -> EntityProperties
fn clone(&self) -> EntityProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EntityProperties
impl Debug for EntityProperties
source§impl Default for EntityProperties
impl Default for EntityProperties
source§fn default() -> EntityProperties
fn default() -> EntityProperties
source§impl<'de> Deserialize<'de> for EntityPropertieswhere
EntityProperties: Default,
impl<'de> Deserialize<'de> for EntityPropertieswhere
EntityProperties: Default,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EntityProperties, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<EntityProperties, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl From<EntityProperties> for EntityPropertiesComponent
impl From<EntityProperties> for EntityPropertiesComponent
source§fn from(props: EntityProperties) -> EntityPropertiesComponent
fn from(props: EntityProperties) -> EntityPropertiesComponent
source§impl From<EntityPropertiesComponent> for EntityProperties
impl From<EntityPropertiesComponent> for EntityProperties
source§fn from(value: EntityPropertiesComponent) -> EntityProperties
fn from(value: EntityPropertiesComponent) -> EntityProperties
source§impl PartialEq for EntityProperties
impl PartialEq for EntityProperties
source§fn eq(&self, other: &EntityProperties) -> bool
fn eq(&self, other: &EntityProperties) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for EntityProperties
impl Serialize for EntityProperties
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for EntityProperties
Auto Trait Implementations§
impl Freeze for EntityProperties
impl RefUnwindSafe for EntityProperties
impl Send for EntityProperties
impl Sync for EntityProperties
impl Unpin for EntityProperties
impl UnwindSafe for EntityProperties
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§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.source§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.source§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.source§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.source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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 more