Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/camera.h
| Show First 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | public: | ||||
| /* Kernel camera data, copied here for dicing. */ | /* Kernel camera data, copied here for dicing. */ | ||||
| KernelCamera kernel_camera; | KernelCamera kernel_camera; | ||||
| array<DecomposedTransform> kernel_camera_motion; | array<DecomposedTransform> kernel_camera_motion; | ||||
| private: | private: | ||||
| int width; | int width; | ||||
| int height; | int height; | ||||
| int resolution; | |||||
| public: | public: | ||||
| /* functions */ | /* functions */ | ||||
| Camera(); | Camera(); | ||||
| ~Camera(); | ~Camera(); | ||||
| void compute_auto_viewplane(); | void compute_auto_viewplane(); | ||||
| Show All 9 Lines | public: | ||||
| /* Calculates the width of a pixel at point in world space. */ | /* Calculates the width of a pixel at point in world space. */ | ||||
| float world_to_raster_size(float3 P); | float world_to_raster_size(float3 P); | ||||
| /* Motion blur. */ | /* Motion blur. */ | ||||
| float motion_time(int step) const; | float motion_time(int step) const; | ||||
| int motion_step(float time) const; | int motion_step(float time) const; | ||||
| bool use_motion() const; | bool use_motion() const; | ||||
| void set_screen_size_and_resolution(int width_, int height_, int resolution_); | void set_screen_size(int width_, int height_); | ||||
| private: | private: | ||||
| /* Private utility functions. */ | /* Private utility functions. */ | ||||
| float3 transform_raster_to_world(float raster_x, float raster_y); | float3 transform_raster_to_world(float raster_x, float raster_y); | ||||
| }; | }; | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #endif /* __CAMERA_H__ */ | #endif /* __CAMERA_H__ */ | ||||