pub struct Panorama<R> { /* private fields */ }
Expand description
Represents a panorama (containing one or more acquisitions)
Implementations§
Source§impl<R> Panorama<R>
impl<R> Panorama<R>
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the given description for the panorama
Sourcepub fn dimensions(&self) -> (i64, i64)
pub fn dimensions(&self) -> (i64, i64)
Return the dimensions in pixels (width, height) of the panorama image
Sourcepub fn pixel_scale_coef(&self) -> f64
pub fn pixel_scale_coef(&self) -> f64
Returns a scaling coefficient for pixel sizes
Sourcepub fn panorama_type(&self) -> Option<&PanoramaType>
pub fn panorama_type(&self) -> Option<&PanoramaType>
Returns the type of the panorama image, if known. This is unknown in the first version of the schema
Sourcepub fn is_locked(&self) -> Option<bool>
pub fn is_locked(&self) -> Option<bool>
Returns whether the panorama is locked or not (if known). This is unknown in the first version of the schema
Sourcepub fn rotation_angle(&self) -> Option<f64>
pub fn rotation_angle(&self) -> Option<f64>
Returns the rotation angle of the panorama (if known). This is unknown in the first version of the schema
Sourcepub fn acquisition_ids(&self) -> Vec<u16>
pub fn acquisition_ids(&self) -> Vec<u16>
Returns a sorted (acsending) list of acquisition IDs
Sourcepub fn acquisition(&self, id: u16) -> Option<&Acquisition<R>>
pub fn acquisition(&self, id: u16) -> Option<&Acquisition<R>>
Returns an acquisition with the supplied ID, or None if none exists
Sourcepub fn acquisitions(&self) -> Vec<&Acquisition<R>>
pub fn acquisitions(&self) -> Vec<&Acquisition<R>>
Returns a vector of acquisition references ordered by acquistion ID number
Sourcepub fn image(&self) -> Option<OpticalImage<R>>
pub fn image(&self) -> Option<OpticalImage<R>>
Returns the optical image
Trait Implementations§
Source§impl<R> OnSlide for Panorama<R>
impl<R> OnSlide for Panorama<R>
Source§fn slide_bounding_box(&self) -> BoundingBox<f64>
fn slide_bounding_box(&self) -> BoundingBox<f64>
Returns the bounding box encompasing the panorama image area on the slide (in μm)
Source§fn to_slide_transform(&self) -> AffineTransform<f64>
fn to_slide_transform(&self) -> AffineTransform<f64>
Returns the affine transformation from pixel coordinates within the panorama to to the slide coordinates (μm)
Auto Trait Implementations§
impl<R> Freeze for Panorama<R>
impl<R> RefUnwindSafe for Panorama<R>
impl<R> Send for Panorama<R>where
R: Send,
impl<R> Sync for Panorama<R>where
R: Send,
impl<R> Unpin for Panorama<R>
impl<R> UnwindSafe for Panorama<R>
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
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>
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>
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>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.