pub struct ParticleTrajectory { /* private fields */ }Expand description
Pure coupled-trajectory collection, without snapshots or previous-frame state.
Implementations§
Source§impl ParticleTrajectory
impl ParticleTrajectory
Sourcepub fn style(self, style: ParticleStyle) -> Self
pub fn style(self, style: ParticleStyle) -> Self
Replaces presentation without adding simulation state.
Sourcepub fn try_render(
&self,
context: &SceneContext<'_>,
) -> Result<Node, ValidationError>
pub fn try_render( &self, context: &SceneContext<'_>, ) -> Result<Node, ValidationError>
Evaluates trajectories in Rust before uploading renderable instance states.
Source§impl ParticleTrajectory
impl ParticleTrajectory
Sourcepub fn new(model: impl TrajectoryModel + 'static) -> Self
pub fn new(model: impl TrajectoryModel + 'static) -> Self
Captures a pure coupled trajectory, without a simulation or snapshots.
Trait Implementations§
Source§impl Clone for ParticleTrajectory
impl Clone for ParticleTrajectory
Source§impl Scene for ParticleTrajectory
impl Scene for ParticleTrajectory
Source§fn render(&self, context: &SceneContext<'_>) -> Node
fn render(&self, context: &SceneContext<'_>) -> Node
Builds one snapshot without retaining previous-frame state.
Source§fn duration(&self) -> Option<Duration>
fn duration(&self) -> Option<Duration>
Natural finite duration, or None when a caller must provide one.
Source§fn validate(&self) -> Result<(), Error>
fn validate(&self) -> Result<(), Error>
Validates deferred authoring errors without evaluating a frame.
Source§fn audio_clips(&self) -> Result<Vec<AudioClip>, Error>
fn audio_clips(&self) -> Result<Vec<AudioClip>, Error>
Returns pure audio metadata for precomposition/export, not playback.
Default scenes are silent; callers must preserve local clip coordinates.
Source§fn audio_composition(&self) -> Option<&Timeline>
fn audio_composition(&self) -> Option<&Timeline>
Optional nested timeline ownership, preserved when its audio is relocated.
Source§fn with_duration(self, duration: Time) -> WithDuration<Self>where
Self: Sized,
fn with_duration(self, duration: Time) -> WithDuration<Self>where
Self: Sized,
Overrides clip metadata without retiming or clamping the callback. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ParticleTrajectory
impl !UnwindSafe for ParticleTrajectory
impl Forget for ParticleTrajectory
impl Freeze for ParticleTrajectory
impl Send for ParticleTrajectory
impl Sync for ParticleTrajectory
impl Unpin for ParticleTrajectory
impl UnsafeUnpin for ParticleTrajectory
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