pub struct SceneState {
pub timestamp: StateTime,
pub background_color: Color,
pub lighting: LightingCondition,
pub environment: EnvironmentType,
pub complexity: BackgroundComplexity,
pub objects: Vec<SceneObject>,
pub background_motion: bool,
pub blur: f32,
pub noise: f32,
pub detail_level: f32,
}Expand description
Complete scene state
Fields§
§timestamp: StateTimeTimestamp
background_color: ColorDominant background color
lighting: LightingConditionLighting condition
environment: EnvironmentTypeEnvironment type
complexity: BackgroundComplexityBackground complexity
objects: Vec<SceneObject>Detected objects in scene
background_motion: boolIs there significant motion in the background?
blur: f32Blur level (0.0 = sharp, 1.0 = very blurred)
noise: f32Noise level (0.0 = clean, 1.0 = very noisy)
detail_level: f32Detail level (0.0 - 1.0, for degradation)
Implementations§
Source§impl SceneState
impl SceneState
Sourcepub fn simple(timestamp: StateTime, color: Color) -> Self
pub fn simple(timestamp: StateTime, color: Color) -> Self
Simple scene (solid color background)
Sourcepub fn add_object(&mut self, object: SceneObject)
pub fn add_object(&mut self, object: SceneObject)
Add an object to the scene
Sourcepub fn reduce_detail(&mut self, factor: f32)
pub fn reduce_detail(&mut self, factor: f32)
Reduce detail level (for degradation)
Sourcepub fn lerp(&self, other: &SceneState, t: f32) -> SceneState
pub fn lerp(&self, other: &SceneState, t: f32) -> SceneState
Interpolate between two scene states
Trait Implementations§
Source§impl Clone for SceneState
impl Clone for SceneState
Source§fn clone(&self) -> SceneState
fn clone(&self) -> SceneState
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 moreAuto Trait Implementations§
impl Freeze for SceneState
impl RefUnwindSafe for SceneState
impl Send for SceneState
impl Sync for SceneState
impl Unpin for SceneState
impl UnsafeUnpin for SceneState
impl UnwindSafe for SceneState
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