pub struct RenderOptions {Show 22 fields
pub transform_start_time: Float,
pub transform_end_time: Float,
pub filter_name: String,
pub filter_params: ParamSet,
pub film_name: String,
pub film_params: ParamSet,
pub sampler_name: String,
pub sampler_params: ParamSet,
pub accelerator_name: String,
pub accelerator_params: ParamSet,
pub integrator_name: String,
pub integrator_params: ParamSet,
pub camera_name: String,
pub camera_params: ParamSet,
pub camera_to_world: TransformSet,
pub named_media: HashMap<String, Arc<Medium>>,
pub lights: Vec<Arc<Light>>,
pub primitives: Vec<Arc<Primitive>>,
pub instances: HashMap<String, Vec<Arc<Primitive>>>,
pub current_instance: String,
pub have_scattering_media: bool,
pub crop_window: Bounds2f,
}
Fields§
§transform_start_time: Float
§transform_end_time: Float
§filter_name: String
§filter_params: ParamSet
§film_name: String
§film_params: ParamSet
§sampler_name: String
§sampler_params: ParamSet
§accelerator_name: String
§accelerator_params: ParamSet
§integrator_name: String
§integrator_params: ParamSet
§camera_name: String
§camera_params: ParamSet
§camera_to_world: TransformSet
§named_media: HashMap<String, Arc<Medium>>
§lights: Vec<Arc<Light>>
§primitives: Vec<Arc<Primitive>>
§instances: HashMap<String, Vec<Arc<Primitive>>>
§current_instance: String
§have_scattering_media: bool
§crop_window: Bounds2f
Implementations§
Source§impl RenderOptions
impl RenderOptions
pub fn make_integrator( &self, pixelsamples: u32, integrator_arg: &Option<String>, ) -> Option<Box<Integrator>>
pub fn make_scene(&self) -> Scene
pub fn make_camera(&self) -> Option<Arc<Camera>>
Trait Implementations§
Source§impl Default for RenderOptions
impl Default for RenderOptions
Source§fn default() -> RenderOptions
fn default() -> RenderOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RenderOptions
impl !RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl !UnwindSafe for RenderOptions
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> 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()
.