[−][src]Struct pbrt::core::paramset::ParamSet
Fields
key_word: String
name: String
tex_type: String
tex_name: String
bools: Vec<ParamSetItem<bool>>
ints: Vec<ParamSetItem<i32>>
floats: Vec<ParamSetItem<Float>>
point2fs: Vec<ParamSetItem<Point2f>>
vector2fs: Vec<ParamSetItem<Vector2f>>
point3fs: Vec<ParamSetItem<Point3f>>
vector3fs: Vec<ParamSetItem<Vector3f>>
normals: Vec<ParamSetItem<Normal3f>>
spectra: Vec<ParamSetItem<Spectrum>>
strings: Vec<ParamSetItem<String>>
textures: Vec<ParamSetItem<String>>
Methods
impl ParamSet
[src]
impl ParamSet
pub fn reset(
&mut self,
key_word: String,
name: String,
tex_type: String,
tex_name: String
)
[src]
pub fn reset(
&mut self,
key_word: String,
name: String,
tex_type: String,
tex_name: String
)
pub fn add_float(&mut self, name: String, value: Float)
[src]
pub fn add_float(&mut self, name: String, value: Float)
pub fn add_floats(&mut self, name: String, values: Vec<Float>)
[src]
pub fn add_floats(&mut self, name: String, values: Vec<Float>)
pub fn add_int(&mut self, name: String, value: i32)
[src]
pub fn add_int(&mut self, name: String, value: i32)
pub fn add_ints(&mut self, name: String, values: Vec<i32>)
[src]
pub fn add_ints(&mut self, name: String, values: Vec<i32>)
pub fn add_bool(&mut self, name: String, value: bool)
[src]
pub fn add_bool(&mut self, name: String, value: bool)
pub fn add_point2f(&mut self, name: String, value: Point2f)
[src]
pub fn add_point2f(&mut self, name: String, value: Point2f)
pub fn add_point2fs(&mut self, name: String, values: Vec<Float>)
[src]
pub fn add_point2fs(&mut self, name: String, values: Vec<Float>)
pub fn add_point3f(&mut self, name: String, value: Point3f)
[src]
pub fn add_point3f(&mut self, name: String, value: Point3f)
pub fn add_point3fs(&mut self, name: String, values: Vec<Float>)
[src]
pub fn add_point3fs(&mut self, name: String, values: Vec<Float>)
pub fn add_sampled_spectrum_files(&mut self, name: String, names: Vec<String>)
[src]
pub fn add_sampled_spectrum_files(&mut self, name: String, names: Vec<String>)
pub fn add_string(&mut self, name: String, value: String)
[src]
pub fn add_string(&mut self, name: String, value: String)
pub fn add_texture(&mut self, name: String, value: String)
[src]
pub fn add_texture(&mut self, name: String, value: String)
pub fn add_vector3f(&mut self, name: String, value: Vector3f)
[src]
pub fn add_vector3f(&mut self, name: String, value: Vector3f)
pub fn add_vector3fs(&mut self, name: String, values: Vec<Float>)
[src]
pub fn add_vector3fs(&mut self, name: String, values: Vec<Float>)
pub fn add_normal3f(&mut self, name: String, value: Normal3f)
[src]
pub fn add_normal3f(&mut self, name: String, value: Normal3f)
pub fn add_normal3fs(&mut self, name: String, values: Vec<Float>)
[src]
pub fn add_normal3fs(&mut self, name: String, values: Vec<Float>)
pub fn add_rgb_spectrum(&mut self, name: String, value: Spectrum)
[src]
pub fn add_rgb_spectrum(&mut self, name: String, value: Spectrum)
pub fn add_blackbody_spectrum(&mut self, name: String, values: Vec<Float>)
[src]
pub fn add_blackbody_spectrum(&mut self, name: String, values: Vec<Float>)
pub fn copy_from(&mut self, param_set: &ParamSet)
[src]
pub fn copy_from(&mut self, param_set: &ParamSet)
pub fn erase_spectrum(&mut self, name: String) -> bool
[src]
pub fn erase_spectrum(&mut self, name: String) -> bool
pub fn find_one_float(&self, name: &str, d: Float) -> Float
[src]
pub fn find_one_float(&self, name: &str, d: Float) -> Float
pub fn find_one_int(&self, name: &str, d: i32) -> i32
[src]
pub fn find_one_int(&self, name: &str, d: i32) -> i32
pub fn find_one_bool(&self, name: &str, d: bool) -> bool
[src]
pub fn find_one_bool(&self, name: &str, d: bool) -> bool
pub fn find_one_point3f(&self, name: &str, d: Point3f) -> Point3f
[src]
pub fn find_one_point3f(&self, name: &str, d: Point3f) -> Point3f
pub fn find_one_vector3f(&self, name: &str, d: Vector3f) -> Vector3f
[src]
pub fn find_one_vector3f(&self, name: &str, d: Vector3f) -> Vector3f
pub fn find_one_spectrum(&self, name: &str, d: Spectrum) -> Spectrum
[src]
pub fn find_one_spectrum(&self, name: &str, d: Spectrum) -> Spectrum
pub fn find_one_string(&self, name: &str, d: String) -> String
[src]
pub fn find_one_string(&self, name: &str, d: String) -> String
pub fn find_one_filename(&self, name: &str, d: String) -> String
[src]
pub fn find_one_filename(&self, name: &str, d: String) -> String
pub fn find_texture(&self, name: &str) -> String
[src]
pub fn find_texture(&self, name: &str) -> String
pub fn find_int(&self, name: &str) -> Vec<i32>
[src]
pub fn find_int(&self, name: &str) -> Vec<i32>
pub fn find_float(&self, name: &str) -> Vec<Float>
[src]
pub fn find_float(&self, name: &str) -> Vec<Float>
pub fn find_point2f(&self, name: &str) -> Vec<Point2f>
[src]
pub fn find_point2f(&self, name: &str) -> Vec<Point2f>
pub fn find_vector2f(&self, name: &str) -> Vec<Vector2f>
[src]
pub fn find_vector2f(&self, name: &str) -> Vec<Vector2f>
pub fn find_point3f(&self, name: &str) -> Vec<Point3f>
[src]
pub fn find_point3f(&self, name: &str) -> Vec<Point3f>
pub fn find_vector3f(&self, name: &str) -> Vec<Vector3f>
[src]
pub fn find_vector3f(&self, name: &str) -> Vec<Vector3f>
pub fn find_normal3f(&self, name: &str) -> Vec<Normal3f>
[src]
pub fn find_normal3f(&self, name: &str) -> Vec<Normal3f>
pub fn find_spectrum(&self, name: &str) -> Vec<Spectrum>
[src]
pub fn find_spectrum(&self, name: &str) -> Vec<Spectrum>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<E> SpecializationError for E
[src]
impl<E> SpecializationError for E
fn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized,
[src]
fn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Create an error for a missing method specialization. Defaults to panicking with type, trait & method names. S
is the encoder/decoder state type, T
is the type being encoded/decoded, and the arguments are the names of the trait and method that should've been overridden. Read more
impl<T> Erased for T
[src]
impl<T> Erased for T
impl<T> Send for T where
T: ?Sized,
[src]
impl<T> Send for T where
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
impl<T> Sync for T where
T: ?Sized,
impl<T> Erased for T
[src]
impl<T> Erased for T
impl<T> SetParameter for T
[src]
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> Erased for T
[src]
impl<T> Erased for T