pub struct SealedRanimScene {
pub(crate) total_secs: f64,
pub(crate) animations: Vec<AnimNode>,
pub(crate) audio: Arc<[f32]>,
pub(crate) time_marks: Vec<(f64, TimeMark)>,
}Expand description
Immutable animation recipe produced by RanimScene::seal.
Fields§
§total_secs: f64§animations: Vec<AnimNode>§audio: Arc<[f32]>The baked audio plane: interleaved stereo at the master sample rate
over [0, total_secs], produced once at seal. Empty when the tree
has no sound leaves.
time_marks: Vec<(f64, TimeMark)>Implementations§
Source§impl SealedRanimScene
impl SealedRanimScene
Sourcepub fn into_evaluator(self, logic_fps: f64) -> SceneEvaluator
pub fn into_evaluator(self, logic_fps: f64) -> SceneEvaluator
Consume this scene into a SceneEvaluator driving session.
logic_fps is retained for call-site compatibility; it no longer drives
stepping (each iterative segment owns its own sim_step).
Sourcepub fn audio(&self) -> &Arc<[f32]> ⓘ
pub fn audio(&self) -> &Arc<[f32]> ⓘ
The baked audio plane: interleaved stereo at the master sample rate
over [0, total_secs] (shared, cheap to clone). Empty when the scene
has no sound leaves.
Sourcepub fn total_secs(&self) -> f64
pub fn total_secs(&self) -> f64
Total scene duration.
Sourcepub fn time_marks(&self) -> &[(f64, TimeMark)]
pub fn time_marks(&self) -> &[(f64, TimeMark)]
Scene time marks.
Sourcepub fn get_animation_infos(&self) -> Vec<AnimationInfo>
pub fn get_animation_infos(&self) -> Vec<AnimationInfo>
Hierarchical runtime animation information for preview tooling.
Sourcepub fn eval_at_sec(
&self,
target_sec: f64,
) -> impl Iterator<Item = ((usize, usize), CoreItem)>
pub fn eval_at_sec( &self, target_sec: f64, ) -> impl Iterator<Item = ((usize, usize), CoreItem)>
Sample all clips active at target_sec and extract scene primitives.
Pure query path: every active cell evaluates itself at target_sec
(stateful segments reset/replay or integrate internally as needed).
Auto Trait Implementations§
impl !RefUnwindSafe for SealedRanimScene
impl !Send for SealedRanimScene
impl !Sync for SealedRanimScene
impl !UnwindSafe for SealedRanimScene
impl Freeze for SealedRanimScene
impl Unpin for SealedRanimScene
impl UnsafeUnpin for SealedRanimScene
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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 more§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> TransformedExt for T
impl<T> TransformedExt for T
Source§fn transformed<G>(self, transform: G) -> Transformed<Self, G>
fn transformed<G>(self, transform: G) -> Transformed<Self, G>
self wrapped with transform stored exactly as G.