Blender V2.61 - r43446
|
Go to the source code of this file.
Classes | |
struct | BlenderCamera |
Functions | |
static void | blender_camera_init (BlenderCamera *bcam) |
static float | blender_camera_focal_distance (BL::Object b_ob, BL::Camera b_camera) |
static void | blender_camera_from_object (BlenderCamera *bcam, BL::Object b_ob) |
static void | blender_camera_sync (Camera *cam, BlenderCamera *bcam, int width, int height) |
static float blender_camera_focal_distance | ( | BL::Object | b_ob, |
BL::Camera | b_camera | ||
) | [static] |
Definition at line 68 of file blender_camera.cpp.
References fabsf, get_transform(), transform_clear_scale(), transform_get_column(), and transform_inverse().
Referenced by blender_camera_from_object().
static void blender_camera_from_object | ( | BlenderCamera * | bcam, |
BL::Object | b_ob | ||
) | [static] |
Definition at line 83 of file blender_camera.cpp.
References BlenderCamera::apertureblades, BlenderCamera::aperturerotation, BlenderCamera::aperturesize, BlenderCamera::AUTO, blender_camera_focal_distance(), BlenderCamera::farclip, BlenderCamera::focaldistance, BlenderCamera::HORIZONTAL, BlenderCamera::lens, BlenderCamera::ortho, BlenderCamera::ortho_scale, RNA_Camera, RNA_float_get(), RNA_int_get(), RNA_pointer_get(), BlenderCamera::sensor_fit, BlenderCamera::sensor_height, BlenderCamera::sensor_width, BlenderCamera::shift, BlenderCamera::VERTICAL, float2::x, and float2::y.
Referenced by BlenderSync::sync_camera(), and BlenderSync::sync_view().
static void blender_camera_init | ( | BlenderCamera * | bcam | ) | [static] |
Definition at line 57 of file blender_camera.cpp.
References BlenderCamera::AUTO, make_float2(), BlenderCamera::pixelaspect, BlenderCamera::sensor_fit, BlenderCamera::sensor_height, BlenderCamera::sensor_width, and BlenderCamera::zoom.
Referenced by BlenderSync::sync_camera(), and BlenderSync::sync_view().
static void blender_camera_sync | ( | Camera * | cam, |
BlenderCamera * | bcam, | ||
int | width, | ||
int | height | ||
) | [static] |
Definition at line 121 of file blender_camera.cpp.
References BlenderCamera::apertureblades, BlenderCamera::aperturerotation, BlenderCamera::aperturesize, Camera::aperturesize, KDL::atan(), BlenderCamera::AUTO, Camera::blades, Camera::bladesrotation, Camera::bottom, BlenderCamera::farclip, Camera::farclip, Camera::focaldistance, BlenderCamera::focaldistance, Camera::fov, BlenderCamera::HORIZONTAL, Camera::left, BlenderCamera::lens, Camera::matrix, BlenderCamera::matrix, Camera::modified(), Camera::nearclip, BlenderCamera::offset, Camera::ortho, BlenderCamera::ortho, BlenderCamera::ortho_scale, BlenderCamera::pixelaspect, Camera::right, BlenderCamera::sensor_fit, BlenderCamera::sensor_height, BlenderCamera::sensor_width, BlenderCamera::shift, Camera::tag_update(), Camera::top, transform_clear_scale(), transform_scale(), float2::x, float2::y, and BlenderCamera::zoom.
Referenced by BlenderSync::sync_camera(), and BlenderSync::sync_view().