pub struct BasePixelSampler {
pub base: BaseSampler,
pub samples1d: Vec<Vec<Float>>,
pub samples2d: Vec<Vec<Point2f>>,
pub current1d_dimension: u32,
pub current2d_dimension: u32,
pub rng: RNG,
}Fields§
§base: BaseSampler§samples1d: Vec<Vec<Float>>§samples2d: Vec<Vec<Point2f>>§current1d_dimension: u32§current2d_dimension: u32§rng: RNGImplementations§
Source§impl BasePixelSampler
impl BasePixelSampler
pub fn new(samples_per_pixel: u32, n_sampled_dimensions: u32) -> Self
pub fn start_pixel(&mut self, p: &Point2i)
pub fn start_next_sample(&mut self) -> bool
pub fn set_sample_number(&mut self, sample_num: u32) -> bool
pub fn get_1d(&mut self) -> Float
pub fn get_2d(&mut self) -> Point2f
pub fn request_1d_array(&mut self, n: u32)
pub fn request_2d_array(&mut self, n: u32)
pub fn get_1d_array(&mut self, n: u32) -> Option<Vec<Float>>
pub fn get_2d_array(&mut self, n: u32) -> Option<Vec<Vector2f>>
Trait Implementations§
Source§impl Clone for BasePixelSampler
impl Clone for BasePixelSampler
Source§fn clone(&self) -> BasePixelSampler
fn clone(&self) -> BasePixelSampler
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 moreSource§impl Debug for BasePixelSampler
impl Debug for BasePixelSampler
Source§impl Default for BasePixelSampler
impl Default for BasePixelSampler
Source§fn default() -> BasePixelSampler
fn default() -> BasePixelSampler
Returns the “default value” for a type. Read more
Source§impl PartialEq for BasePixelSampler
impl PartialEq for BasePixelSampler
impl StructuralPartialEq for BasePixelSampler
Auto Trait Implementations§
impl Freeze for BasePixelSampler
impl RefUnwindSafe for BasePixelSampler
impl Send for BasePixelSampler
impl Sync for BasePixelSampler
impl Unpin for BasePixelSampler
impl UnwindSafe for BasePixelSampler
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().