pub struct PointCloudView<'a> {
pub positions: PositionColumns3<'a>,
pub rgb: Option<Rgb8Columns<'a>>,
pub scalar: Option<ScalarColumn<'a>>,
}Expand description
Borrowed point-cloud geometry.
Fields§
§positions: PositionColumns3<'a>Point positions.
rgb: Option<Rgb8Columns<'a>>Optional RGB attributes.
scalar: Option<ScalarColumn<'a>>Optional scalar attribute.
Implementations§
Source§impl<'a> PointCloudView<'a>
impl<'a> PointCloudView<'a>
Sourcepub const fn positions_only(positions: PositionColumns3<'a>) -> Self
pub const fn positions_only(positions: PositionColumns3<'a>) -> Self
Creates a position-only point-cloud view.
Sourcepub fn with_rgb(self, rgb: Rgb8Columns<'a>) -> VizResult<Self>
pub fn with_rgb(self, rgb: Rgb8Columns<'a>) -> VizResult<Self>
Attaches validated RGB attributes.
Sourcepub fn with_scalar(self, scalar: ScalarColumn<'a>) -> VizResult<Self>
pub fn with_scalar(self, scalar: ScalarColumn<'a>) -> VizResult<Self>
Attaches a validated scalar attribute.
Trait Implementations§
Source§impl<'a> Clone for PointCloudView<'a>
impl<'a> Clone for PointCloudView<'a>
Source§fn clone(&self) -> PointCloudView<'a>
fn clone(&self) -> PointCloudView<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PointCloudView<'a>
impl<'a> Debug for PointCloudView<'a>
Source§impl<'a> PartialEq for PointCloudView<'a>
impl<'a> PartialEq for PointCloudView<'a>
Source§fn eq(&self, other: &PointCloudView<'a>) -> bool
fn eq(&self, other: &PointCloudView<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Copy for PointCloudView<'a>
impl<'a> StructuralPartialEq for PointCloudView<'a>
Auto Trait Implementations§
impl<'a> Freeze for PointCloudView<'a>
impl<'a> RefUnwindSafe for PointCloudView<'a>
impl<'a> Send for PointCloudView<'a>
impl<'a> Sync for PointCloudView<'a>
impl<'a> Unpin for PointCloudView<'a>
impl<'a> UnsafeUnpin for PointCloudView<'a>
impl<'a> UnwindSafe for PointCloudView<'a>
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