pub struct AnimatedVisualizer {
pub frames: Vec<PhaseSpacePlot>,
pub animation_settings: AnimationSettings,
pub current_frame: usize,
}Expand description
Animated visualization for time-series or dynamic systems
Fields§
§frames: Vec<PhaseSpacePlot>Frame data
animation_settings: AnimationSettingsAnimation settings
current_frame: usizeCurrent frame index
Implementations§
Source§impl AnimatedVisualizer
impl AnimatedVisualizer
Sourcepub fn create_animation_from_ode<F: IntegrateFloat>(
&mut self,
ode_result: &ODEResult<F>,
x_index: usize,
y_index: usize,
frames_per_time_unit: usize,
) -> IntegrateResult<()>
pub fn create_animation_from_ode<F: IntegrateFloat>( &mut self, ode_result: &ODEResult<F>, x_index: usize, y_index: usize, frames_per_time_unit: usize, ) -> IntegrateResult<()>
Create animation from ODE solution
Sourcepub fn current_frame(&self) -> Option<&PhaseSpacePlot>
pub fn current_frame(&self) -> Option<&PhaseSpacePlot>
Get current frame
Sourcepub fn next_frame(&mut self) -> bool
pub fn next_frame(&mut self) -> bool
Advance to next frame
Sourcepub fn previous_frame(&mut self) -> bool
pub fn previous_frame(&mut self) -> bool
Go to previous frame
Trait Implementations§
Source§impl Clone for AnimatedVisualizer
impl Clone for AnimatedVisualizer
Source§fn clone(&self) -> AnimatedVisualizer
fn clone(&self) -> AnimatedVisualizer
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 AnimatedVisualizer
impl Debug for AnimatedVisualizer
Auto Trait Implementations§
impl Freeze for AnimatedVisualizer
impl RefUnwindSafe for AnimatedVisualizer
impl Send for AnimatedVisualizer
impl Sync for AnimatedVisualizer
impl Unpin for AnimatedVisualizer
impl UnwindSafe for AnimatedVisualizer
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 more