pub struct Visualizer<D, B>where
D: Directivity,
B: Backend,{ /* private fields */ }
Implementations§
Source§impl Visualizer<Sphere, PlottersBackend>
impl Visualizer<Sphere, PlottersBackend>
pub fn builder() -> VisualizerBuilder<Sphere, PlottersBackend>
Source§impl Visualizer<Sphere, PlottersBackend>
impl Visualizer<Sphere, PlottersBackend>
pub fn plotters() -> VisualizerBuilder<Sphere, PlottersBackend>
Source§impl Visualizer<Sphere, NullBackend>
impl Visualizer<Sphere, NullBackend>
pub fn null() -> VisualizerBuilder<Sphere, NullBackend>
Source§impl<D: Directivity, B: Backend> Visualizer<D, B>
impl<D: Directivity, B: Backend> Visualizer<D, B>
pub fn phases(&self, segment: Segment, idx: usize) -> Vec<Phase>
pub fn intensities(&self, segment: Segment, idx: usize) -> Vec<EmitIntensity>
pub fn modulation(&self, segment: Segment) -> Vec<u8> ⓘ
pub fn calc_field<'a, I: IntoIterator<Item = &'a Vector3>>( &self, observe_points: I, segment: Segment, idx: usize, ) -> Result<Vec<Complex>, VisualizerError>
pub fn plot_field( &self, config: B::PlotConfig, range: PlotRange, segment: Segment, idx: usize, ) -> Result<(), VisualizerError>
pub fn plot_phase( &self, config: B::PlotConfig, segment: Segment, idx: usize, ) -> Result<(), VisualizerError>
pub fn plot_modulation( &self, config: B::PlotConfig, segment: Segment, ) -> Result<(), VisualizerError>
Trait Implementations§
Source§impl<D: Directivity, B: Backend> Link for Visualizer<D, B>
impl<D: Directivity, B: Backend> Link for Visualizer<D, B>
async fn close(&mut self) -> Result<(), AUTDInternalError>
async fn send(&mut self, tx: &TxDatagram) -> Result<bool, AUTDInternalError>
async fn receive( &mut self, rx: &mut [RxMessage], ) -> Result<bool, AUTDInternalError>
async fn update(&mut self, geometry: &Geometry) -> Result<(), AUTDInternalError>
fn is_open(&self) -> bool
fn timeout(&self) -> Duration
fn trace(&mut self, _: &TxDatagram, _: &mut [RxMessage], _: Option<Duration>)
Auto Trait Implementations§
impl<D, B> Freeze for Visualizer<D, B>
impl<D, B> !RefUnwindSafe for Visualizer<D, B>
impl<D, B> Send for Visualizer<D, B>
impl<D, B> !Sync for Visualizer<D, B>
impl<D, B> Unpin for Visualizer<D, B>
impl<D, B> UnwindSafe for Visualizer<D, B>where
D: UnwindSafe,
B: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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.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.