pub struct LASMetadata { /* private fields */ }
Expand description
Metadata
implementation for LAS/LAZ files
Implementations§
Source§impl LASMetadata
impl LASMetadata
Sourcepub fn new(bounds: AABB<f64>, point_count: usize, point_format: Format) -> Self
pub fn new(bounds: AABB<f64>, point_count: usize, point_format: Format) -> Self
Creates a new LASMetadata
from the given parameters
let min = Point3::new(0.0, 0.0, 0.0);
let max = Point3::new(1.0, 1.0, 1.0);
let format = pasture_io::las_rs::point::Format::new(0).unwrap();
let metadata = LASMetadata::new(AABB::from_min_max(min, max), 1024, format);
Sourcepub fn point_count(&self) -> usize
pub fn point_count(&self) -> usize
Returns the number of points for the associated LASMetadata
Sourcepub fn point_format(&self) -> Format
pub fn point_format(&self) -> Format
Returns the LAS point format for the associated LASMetadata
Sourcepub fn raw_las_header(&self) -> Option<&Header>
pub fn raw_las_header(&self) -> Option<&Header>
Returns the raw LAS header for the associated LASMetadata
. This value is only present if the
associated LASMetadata
was created from a raw LAS header
Sourcepub fn classification_lookup_vlr(&self) -> Option<&ClassificationLookup>
pub fn classification_lookup_vlr(&self) -> Option<&ClassificationLookup>
Returns the Classification Lookup VLR, if it exists
Sourcepub fn text_area_description_vlr(&self) -> Option<&TextAreaDescription>
pub fn text_area_description_vlr(&self) -> Option<&TextAreaDescription>
Returns the Text Area Description VLR, if it exists
Sourcepub fn extra_bytes_vlr(&self) -> Option<&ExtraBytesVlr>
pub fn extra_bytes_vlr(&self) -> Option<&ExtraBytesVlr>
Returns the Extra Bytes VLR, if it exists
Trait Implementations§
Source§impl Clone for LASMetadata
impl Clone for LASMetadata
Source§fn clone(&self) -> LASMetadata
fn clone(&self) -> LASMetadata
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 LASMetadata
impl Debug for LASMetadata
Source§impl Display for LASMetadata
impl Display for LASMetadata
Source§impl Metadata for LASMetadata
impl Metadata for LASMetadata
Source§fn bounds(&self) -> Option<AABB<f64>>
fn bounds(&self) -> Option<AABB<f64>>
Returns the bounding box of the associated
Metadata
. Not every point cloud Metadata
will have
bounding box information readily available, in which case None
is returned.Source§fn number_of_points(&self) -> Option<usize>
fn number_of_points(&self) -> Option<usize>
Returns the number of points of the associated
Metadata
. Not every point cloud Metadata
will have
the number of points readily available, in which case None
is returned.Source§fn get_named_field(&self, field_name: &str) -> Option<Box<dyn Any>>
fn get_named_field(&self, field_name: &str) -> Option<Box<dyn Any>>
Returns the value of the metadata field named
field_name
, if it exists.Source§fn clone_into_box(&self) -> Box<dyn Metadata>
fn clone_into_box(&self) -> Box<dyn Metadata>
Clone the associated
Metadata
and put it into a Box
Source§impl TryFrom<&Header> for LASMetadata
impl TryFrom<&Header> for LASMetadata
Auto Trait Implementations§
impl Freeze for LASMetadata
impl RefUnwindSafe for LASMetadata
impl Send for LASMetadata
impl Sync for LASMetadata
impl Unpin for LASMetadata
impl UnwindSafe for LASMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.