Struct pasture_io::las::LASMetadata
source · 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 copy 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 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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.