pub struct Film {
    pub full_resolution: Point2i,
    pub diagonal: Float,
    pub filter: Box<Filter>,
    pub filename: String,
    pub cropped_pixel_bounds: Bounds2i,
    pub pixels: RwLock<Vec<Pixel>>,
    /* private fields */
}Fields§
§full_resolution: Point2iThe overall resolution of the image in pixels
diagonal: FloatThe length of the diagonal of the film’s physical area (specified in mm, stored in meters)
filter: Box<Filter>A filter function
filename: StringThe filename of the output image
cropped_pixel_bounds: Bounds2iA crop window that may specify a subset of the image to render
pixels: RwLock<Vec<Pixel>>Implementations§
source§impl Film
 
impl Film
pub fn new( resolution: Point2i, crop_window: Bounds2f, filter: Box<Filter>, diagonal: Float, filename: String, scale: Float, max_sample_luminance: Float ) -> Self
pub fn create( params: &ParamSet, filter: Box<Filter>, crop_window: &Bounds2f ) -> Arc<Film>
pub fn get_cropped_pixel_bounds(&self) -> Bounds2i
pub fn get_sample_bounds(&self) -> Bounds2i
pub fn get_physical_extent(&self) -> Bounds2f
pub fn get_film_tile(&self, sample_bounds: &Bounds2i) -> FilmTile<'_>
pub fn merge_film_tile(&self, tile: &FilmTile<'_>)
pub fn set_image(&self, img: &[Spectrum])
pub fn add_splat(&self, p: Point2f, v: &Spectrum)
pub fn write_image(&self, splat_scale: Float)
Auto Trait Implementations§
impl RefUnwindSafe for Film
impl Send for Film
impl Sync for Film
impl Unpin for Film
impl UnwindSafe for Film
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