Struct ray_tracing_utility::serialization::core::Scene [−][src]
pub struct Scene {
pub configuration_id: usize,
pub camera_id: usize,
pub sky_id: usize,
pub root_node_id: usize,
pub light_node_id: usize,
pub objects: Vec<RayTracingObject>,
}
Fields
configuration_id: usize
camera_id: usize
sky_id: usize
root_node_id: usize
light_node_id: usize
objects: Vec<RayTracingObject>
Implementations
pub fn insert_texture<T, F>(
container: &mut HashMap<usize, Arc<dyn Texture>>,
id: &IdConstructor,
object: &T,
convert: F
) where
F: Fn(&T, usize, &HashMap<usize, Arc<dyn Texture>>) -> Arc<dyn Texture>,
pub fn insert_material<T, F>(
container: &mut HashMap<usize, Arc<dyn Material>>,
id: &IdConstructor,
object: &T,
convert: F
) where
F: Fn(&T, usize, &HashMap<usize, Arc<dyn Material>>) -> Arc<dyn Material>,
pub fn insert_geometry<T, F>(
container: &mut HashMap<usize, Arc<dyn Geometry>>,
id: &IdConstructor,
object: &T,
convert: F
) where
F: Fn(&T, usize, &HashMap<usize, Arc<dyn Geometry>>) -> Arc<dyn Geometry>,
pub fn to_scene_with_options(
&self,
deserialize_options: &DeserializeOptions
) -> Result<Scene, Box<dyn Error>>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Scene
impl UnwindSafe for Scene
Blanket Implementations
Mutably borrows from an owned value. Read more