Skip to main content

PcdReader

Struct PcdReader 

Source
pub struct PcdReader<R: BufRead> { /* private fields */ }
Expand description

Reads point clouds from PCD files or streams.

Implementations§

Source§

impl<R: BufRead> PcdReader<R>

Source

pub fn new(reader: R) -> Result<Self, IoError>

Creates a reader and parses the PCD header eagerly.

Source

pub fn header(&self) -> &PcdHeader

Returns the parsed PCD header.

Source

pub fn read_cloud(&mut self) -> Result<PointCloud, IoError>

Reads the point cloud payload.

Trait Implementations§

Source§

impl<R: BufRead> PointReader for PcdReader<R>

Source§

fn schema(&self) -> SpatialResult<PointSchema>

Returns the schema declared by the source.
Source§

fn metadata(&self) -> SpatialResult<SpatialMetadata>

Returns spatial metadata associated with the source.
Source§

fn read(&mut self, _options: &ReadOptions) -> SpatialResult<PointCloud>

Reads the full point cloud.

Auto Trait Implementations§

§

impl<R> Freeze for PcdReader<R>
where R: Freeze,

§

impl<R> RefUnwindSafe for PcdReader<R>
where R: RefUnwindSafe,

§

impl<R> Send for PcdReader<R>
where R: Send,

§

impl<R> Sync for PcdReader<R>
where R: Sync,

§

impl<R> Unpin for PcdReader<R>
where R: Unpin,

§

impl<R> UnsafeUnpin for PcdReader<R>
where R: UnsafeUnpin,

§

impl<R> UnwindSafe for PcdReader<R>
where R: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.