pub struct DebugContext {
pub operations: RefCell<Vec<Operation>>,
pub indent: Cell<i32>,
}
Fields§
§operations: RefCell<Vec<Operation>>
§indent: Cell<i32>
Implementations§
Source§impl DebugContext
impl DebugContext
pub fn new() -> Self
pub fn inc_indent(&mut self)
pub fn dec_indent(&mut self)
pub fn get_indent(&self) -> String
Trait Implementations§
Source§impl Default for DebugContext
impl Default for DebugContext
Source§fn default() -> DebugContext
fn default() -> DebugContext
Returns the “default value” for a type. Read more
Source§impl ParseContext for DebugContext
impl ParseContext for DebugContext
fn pbrt_cleanup(&mut self)
fn pbrt_identity(&mut self)
fn pbrt_translate(&mut self, dx: Float, dy: Float, dz: Float)
fn pbrt_rotate(&mut self, angle: Float, ax: Float, ay: Float, az: Float)
fn pbrt_scale(&mut self, sx: Float, sy: Float, sz: Float)
fn pbrt_look_at( &mut self, ex: Float, ey: Float, ez: Float, lx: Float, ly: Float, lz: Float, ux: Float, uy: Float, uz: Float, )
fn pbrt_concat_transform(&mut self, _tansform: &[Float])
fn pbrt_transform(&mut self, _tansform: &[Float])
fn pbrt_coordinate_system(&mut self, name: &str)
fn pbrt_coord_sys_transform(&mut self, name: &str)
fn pbrt_active_transform_all(&mut self)
fn pbrt_active_transform_end_time(&mut self)
fn pbrt_active_transform_start_time(&mut self)
fn pbrt_transform_times(&mut self, _start: Float, _end: Float)
fn pbrt_pixel_filter(&mut self, name: &str, _params: &ParamSet)
fn pbrt_film(&mut self, name: &str, _params: &ParamSet)
fn pbrt_sampler(&mut self, name: &str, _params: &ParamSet)
fn pbrt_accelerator(&mut self, name: &str, _params: &ParamSet)
fn pbrt_integrator(&mut self, name: &str, _params: &ParamSet)
fn pbrt_camera(&mut self, name: &str, _params: &ParamSet)
fn pbrt_make_named_medium(&mut self, name: &str, _params: &ParamSet)
fn pbrt_medium_interface(&mut self, inside_name: &str, outside_name: &str)
fn pbrt_world_begin(&mut self)
fn pbrt_attribute_begin(&mut self)
fn pbrt_attribute_end(&mut self)
fn pbrt_transform_begin(&mut self)
fn pbrt_transform_end(&mut self)
fn pbrt_texture( &mut self, name: &str, t: &str, tex_name: &str, _params: &ParamSet, )
fn pbrt_material(&mut self, name: &str, _params: &ParamSet)
fn pbrt_make_named_material(&mut self, name: &str, _params: &ParamSet)
fn pbrt_named_material(&mut self, name: &str)
fn pbrt_light_source(&mut self, name: &str, _params: &ParamSet)
fn pbrt_area_light_source(&mut self, name: &str, _params: &ParamSet)
fn pbrt_shape(&mut self, name: &str, _params: &ParamSet)
fn pbrt_reverse_orientation(&mut self)
fn pbrt_object_begin(&mut self, name: &str)
fn pbrt_object_end(&mut self)
fn pbrt_object_instance(&mut self, name: &str)
fn pbrt_world_end(&mut self)
fn pbrt_parse_file(&mut self, file_name: &str)
fn pbrt_parse_string(&mut self, _s: &str)
fn pbrt_work_dir_begin(&mut self, path: &str)
fn pbrt_work_dir_end(&mut self)
fn pbrt_include(&mut self, filename: &str, _params: &ParamSet)
Auto Trait Implementations§
impl !Freeze for DebugContext
impl !RefUnwindSafe for DebugContext
impl Send for DebugContext
impl !Sync for DebugContext
impl Unpin for DebugContext
impl UnwindSafe for DebugContext
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()
.