Skip to main content

EvalDyn

Trait EvalDyn 

Source
trait EvalDyn {
    // Required method
    fn eval_alpha_dyn_into(&self, alpha: f64, output: &mut Vec<DynItem>);

    // Provided methods
    fn sample_dyn(&self, time: &SegmentTime, output: &mut Vec<DynItem>) { ... }
    fn reset_dyn(&mut self) { ... }
    fn step_dyn(&mut self, _time: &SegmentTime) { ... }
    fn info_kind(&self) -> AnimationInfoKind { ... }
    fn content_duration_secs(&self) -> f64 { ... }
    fn child_infos(&self) -> Vec<AnimationInfo> { ... }
}
Expand description

An auto implemented trait for erasing Evaluator<Output = T> where T: AnyExtractCoreItem

Required Methods§

Source

fn eval_alpha_dyn_into(&self, alpha: f64, output: &mut Vec<DynItem>)

Provided Methods§

Source

fn sample_dyn(&self, time: &SegmentTime, output: &mut Vec<DynItem>)

Sample at a full time context. Default rides the pure alpha path for containers and functional leaves; iterative leaves override it via the blanket impl below.

Source

fn reset_dyn(&mut self)

Reset the internal state. No-op by default.

Source

fn step_dyn(&mut self, _time: &SegmentTime)

Advance one logic step. No-op by default (functional segments and containers without iterative leaves step for free).

Source

fn info_kind(&self) -> AnimationInfoKind

Source

fn content_duration_secs(&self) -> f64

Source

fn child_infos(&self) -> Vec<AnimationInfo>

Implementors§