[][src]Struct pbrt::cameras::environment::EnvironmentCamera

pub struct EnvironmentCamera {
    pub camera_to_world: AnimatedTransform,
    pub shutter_open: Float,
    pub shutter_close: Float,
    pub film: Arc<Film>,
    pub medium: Option<Arc<dyn Medium + Send + Sync>>,
}

Fields

camera_to_world: AnimatedTransformshutter_open: Floatshutter_close: Floatfilm: Arc<Film>medium: Option<Arc<dyn Medium + Send + Sync>>

Methods

impl EnvironmentCamera[src]

pub fn new(
    camera_to_world: AnimatedTransform,
    shutter_open: Float,
    shutter_close: Float,
    film: Arc<Film>,
    medium: Option<Arc<dyn Medium + Send + Sync>>
) -> Self
[src]

pub fn create(
    params: &ParamSet,
    cam2world: AnimatedTransform,
    film: Arc<Film>,
    medium: Option<Arc<dyn Medium + Send + Sync>>
) -> Arc<dyn Camera + Send + Sync>
[src]

Trait Implementations

impl Camera for EnvironmentCamera[src]

Auto Trait Implementations

impl Send for EnvironmentCamera

impl Sync for EnvironmentCamera

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.