pub struct PointCloudLayer {
pub points: PointInstanceSet,
pub ramp: ColorRamp,
/* private fields */
}Expand description
A point-cloud / scatter visualization layer.
Fields§
§points: PointInstanceSetPoint instances.
ramp: ColorRampFallback colour ramp for points without per-instance colour.
Implementations§
Source§impl PointCloudLayer
impl PointCloudLayer
Sourcepub fn new(
name: impl Into<String>,
points: PointInstanceSet,
ramp: ColorRamp,
) -> Self
pub fn new( name: impl Into<String>, points: PointInstanceSet, ramp: ColorRamp, ) -> Self
Create a new point-cloud layer.
Sourcepub fn set_points(&mut self, points: PointInstanceSet)
pub fn set_points(&mut self, points: PointInstanceSet)
Replace the point set.
Trait Implementations§
Source§impl Clone for PointCloudLayer
impl Clone for PointCloudLayer
Source§fn clone(&self) -> PointCloudLayer
fn clone(&self) -> PointCloudLayer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PointCloudLayer
impl Debug for PointCloudLayer
Source§impl Layer for PointCloudLayer
impl Layer for PointCloudLayer
Source§fn set_visible(&mut self, visible: bool)
fn set_visible(&mut self, visible: bool)
Toggle visibility on or off.
Source§fn set_opacity(&mut self, opacity: f32)
fn set_opacity(&mut self, opacity: f32)
Set the layer opacity. Read more
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Borrow the layer as
&mut dyn Any for mutable concrete type access.Auto Trait Implementations§
impl Freeze for PointCloudLayer
impl RefUnwindSafe for PointCloudLayer
impl Send for PointCloudLayer
impl Sync for PointCloudLayer
impl Unpin for PointCloudLayer
impl UnsafeUnpin for PointCloudLayer
impl UnwindSafe for PointCloudLayer
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
Mutably borrows from an owned value. Read more