[][src]Struct pbrt::core::film::Film

pub struct Film {
    pub full_resolution: Point2i,
    pub diagonal: Float,
    pub filter: Box<dyn Filter + Sync + Send>,
    pub filename: String,
    pub cropped_pixel_bounds: Bounds2i,
    pub pixels: RwLock<Vec<Pixel>>,
    // some fields omitted
}

Fields

full_resolution: Point2i

The overall resolution of the image in pixels

diagonal: Float

The length of the diagonal of the film's physical area (specified in mm, stored in meters)

filter: Box<dyn Filter + Sync + Send>

A filter function

filename: String

The filename of the output image

cropped_pixel_bounds: Bounds2i

A crop window that may specify a subset of the image to render

pixels: RwLock<Vec<Pixel>>

Methods

impl Film[src]

pub fn new(
    resolution: Point2i,
    crop_window: Bounds2f,
    filter: Box<dyn Filter + Sync + Send>,
    diagonal: Float,
    filename: String,
    scale: Float,
    max_sample_luminance: Float
) -> Self
[src]

pub fn get_cropped_pixel_bounds(&self) -> Bounds2i[src]

pub fn get_sample_bounds(&self) -> Bounds2i[src]

pub fn get_physical_extent(&self) -> Bounds2f[src]

pub fn get_film_tile(&self, sample_bounds: &Bounds2i) -> FilmTile[src]

pub fn merge_film_tile(&self, tile: &FilmTile)[src]

pub fn set_image(&self, img: &[Spectrum])[src]

pub fn add_splat(&self, p: &Point2f, v: &Spectrum)[src]

pub fn write_image(&self, splat_scale: Float)[src]

Auto Trait Implementations

impl Send for Film

impl Sync for Film

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.