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: 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<Filter>
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>>
Implementations
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more