Struct evoxel_core::VoxelGrid
source · pub struct VoxelGrid { /* private fields */ }Implementations§
source§impl VoxelGrid
impl VoxelGrid
pub fn new( voxel_data: DataFrame, info: VoxelGridInfo, reference_frames: ReferenceFrames, ) -> Result<Self, Error>
pub fn from_data_frame( voxel_data: DataFrame, info: VoxelGridInfo, reference_frames: ReferenceFrames, ) -> Result<Self, Error>
pub fn voxel_data(&self) -> &DataFrame
pub fn info(&self) -> &VoxelGridInfo
pub fn reference_frames(&self) -> &ReferenceFrames
pub fn set_reference_frames(&mut self, reference_frames: ReferenceFrames)
pub fn size(&self) -> usize
pub fn min_index(&self) -> Point3<i64>
pub fn min_local_center_point(&self) -> Point3<f64>
pub fn min_center_point(&self, frame_id: FrameId) -> Result<Point3<f64>, Error>
pub fn max_index(&self) -> Point3<i64>
pub fn max_local_center_point(&self) -> Point3<f64>
pub fn max_center_point(&self, frame_id: FrameId) -> Result<Point3<f64>, Error>
sourcepub fn get_all_cell_indices_in_local_frame(&self) -> Vec<Point3<i64>>
pub fn get_all_cell_indices_in_local_frame(&self) -> Vec<Point3<i64>>
Returns all cell indices as a vector in the local coordinate frame.
pub fn get_all_center_points_in_local_frame(&self) -> Vec<Point3<f64>>
pub fn get_cell_index(&self, row_index: usize) -> Point3<i64>
sourcepub fn get_local_frame_id(&self) -> FrameId
pub fn get_local_frame_id(&self) -> FrameId
Returns the frame id of the voxel grid coordinates
pub fn get_local_center_point(&self, row_idx: usize) -> Point3<f64>
pub fn get_center_point( &self, row_idx: usize, frame_id: &FrameId, timestamp: DateTime<Utc>, ) -> Result<Point3<f64>, Error>
pub fn get_all_center_points( &self, frame_id: &FrameId, timestamp: DateTime<Utc>, ) -> Result<Vec<Point3<f64>>, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VoxelGrid
impl !RefUnwindSafe for VoxelGrid
impl Send for VoxelGrid
impl Sync for VoxelGrid
impl Unpin for VoxelGrid
impl !UnwindSafe for VoxelGrid
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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<T> Pointable for T
impl<T> Pointable for T
source§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.