|
Blender V4.3
|
#include <DNA_camera_types.h>
Inherits Node.
Public Types | |
| enum | RollingShutterType { ROLLING_SHUTTER_NONE = 0 , ROLLING_SHUTTER_TOP = 1 , ROLLING_SHUTTER_NUM_TYPES } |
| enum | StereoEye { STEREO_NONE , STEREO_LEFT , STEREO_RIGHT } |
Public Member Functions | |
| Camera () | |
| ~Camera () | |
| void | compute_auto_viewplane () |
| void | update (Scene *scene) |
| void | device_update (Device *device, DeviceScene *dscene, Scene *scene) |
| void | device_update_volume (Device *device, DeviceScene *dscene, Scene *scene) |
| void | device_free (Device *device, DeviceScene *dscene, Scene *scene) |
| BoundBox | viewplane_bounds_get () |
| float | world_to_raster_size (float3 P) |
| float | motion_time (int step) const |
| int | motion_step (float time) const |
| bool | use_motion () const |
| void | set_screen_size (int width_, int height_) |
Public Member Functions inherited from Node | |
| Node (const NodeType *type, ustring name=ustring()) | |
| virtual | ~Node ()=0 |
| void | set (const SocketType &input, bool value) |
| void | set (const SocketType &input, int value) |
| void | set (const SocketType &input, uint value) |
| void | set (const SocketType &input, uint64_t value) |
| void | set (const SocketType &input, float value) |
| void | set (const SocketType &input, float2 value) |
| void | set (const SocketType &input, float3 value) |
| void | set (const SocketType &input, const char *value) |
| void | set (const SocketType &input, ustring value) |
| void | set (const SocketType &input, const Transform &value) |
| void | set (const SocketType &input, Node *value) |
| template<class ValueType , std::enable_if_t< std::is_enum_v< ValueType >, bool > = true> | |
| void | set (const SocketType &input, const ValueType &value) |
| void | set (const SocketType &input, array< bool > &value) |
| void | set (const SocketType &input, array< int > &value) |
| void | set (const SocketType &input, array< float > &value) |
| void | set (const SocketType &input, array< float2 > &value) |
| void | set (const SocketType &input, array< float3 > &value) |
| void | set (const SocketType &input, array< ustring > &value) |
| void | set (const SocketType &input, array< Transform > &value) |
| void | set (const SocketType &input, array< Node * > &value) |
| bool | get_bool (const SocketType &input) const |
| int | get_int (const SocketType &input) const |
| uint | get_uint (const SocketType &input) const |
| uint64_t | get_uint64 (const SocketType &input) const |
| float | get_float (const SocketType &input) const |
| float2 | get_float2 (const SocketType &input) const |
| float3 | get_float3 (const SocketType &input) const |
| ustring | get_string (const SocketType &input) const |
| Transform | get_transform (const SocketType &input) const |
| Node * | get_node (const SocketType &input) const |
| const array< bool > & | get_bool_array (const SocketType &input) const |
| const array< int > & | get_int_array (const SocketType &input) const |
| const array< float > & | get_float_array (const SocketType &input) const |
| const array< float2 > & | get_float2_array (const SocketType &input) const |
| const array< float3 > & | get_float3_array (const SocketType &input) const |
| const array< ustring > & | get_string_array (const SocketType &input) const |
| const array< Transform > & | get_transform_array (const SocketType &input) const |
| const array< Node * > & | get_node_array (const SocketType &input) const |
| bool | has_default_value (const SocketType &input) const |
| void | set_default_value (const SocketType &input) |
| bool | equals_value (const Node &other, const SocketType &input) const |
| void | copy_value (const SocketType &input, const Node &other, const SocketType &other_input) |
| void | set_value (const SocketType &input, const Node &other, const SocketType &other_input) |
| bool | equals (const Node &other) const |
| void | hash (MD5Hash &md5) |
| size_t | get_total_size_in_bytes () const |
| bool | is_a (const NodeType *type) |
| bool | socket_is_modified (const SocketType &input) const |
| bool | is_modified () const |
| void | tag_modified () |
| void | clear_modified () |
| void | print_modified_sockets () const |
| const NodeOwner * | get_owner () const |
| void | set_owner (const NodeOwner *owner_) |
| int | reference_count () const |
| void | reference () |
| void | dereference () |
| void | clear_reference_count () |
Additional Inherited Members | |
Protected Member Functions inherited from Node | |
| template<typename T > | |
| void | set_if_different (const SocketType &input, T value) |
| void | set_if_different (const SocketType &input, Node *value) |
| template<typename T > | |
| void | set_if_different (const SocketType &input, array< T > &value) |
| void | set_if_different (const SocketType &input, array< Node * > &value) |
| void | dereference_all_used_nodes () |
Static Protected Member Functions inherited from Node | |
| template<typename T > | |
| static T & | get_socket_value (const Node *node, const SocketType &socket) |
Protected Attributes inherited from Node | |
| const NodeOwner * | owner |
| int | ref_count {0} |
| SocketModifiedFlags | socket_modified |
Definition at line 73 of file DNA_camera_types.h.
| Enumerator | |
|---|---|
| ROLLING_SHUTTER_NONE | |
| ROLLING_SHUTTER_TOP | |
| ROLLING_SHUTTER_NUM_TYPES | |
Definition at line 35 of file scene/camera.h.
| enum Camera::StereoEye |
| Enumerator | |
|---|---|
| STEREO_NONE | |
| STEREO_LEFT | |
| STEREO_RIGHT | |
Definition at line 45 of file scene/camera.h.
| Camera::Camera | ( | ) |
Definition at line 163 of file scene/camera.cpp.
References cameratoworld, compute_auto_viewplane(), dx, dy, full_rastertocamera, kernel_camera, ndctoworld, need_device_update, need_flags_update, previous_need_motion, projection_identity(), RAMP_TABLE_SIZE, rastertocamera, rastertoworld, screentoworld, shutter_table_offset, TABLE_OFFSET_INVALID, transform_identity(), worldtoraster, and zero_float3().
| Camera::~Camera | ( | ) |
Definition at line 198 of file scene/camera.cpp.
| void Camera::compute_auto_viewplane | ( | ) |
Definition at line 200 of file scene/camera.cpp.
References BoundBox2D::bottom, CAMERA_PANORAMA, float, BoundBox2D::left, BoundBox2D::right, BoundBox2D::top, and viewplane.
Referenced by Camera().
| void Camera::device_free | ( | Device * | device, |
| DeviceScene * | dscene, | ||
| Scene * | scene ) |
Definition at line 570 of file scene/camera.cpp.
References DeviceScene::camera_motion, device_vector< T >::free(), and shutter_table_offset.
| void Camera::device_update | ( | Device * | device, |
| DeviceScene * | dscene, | ||
| Scene * | scene ) |
Definition at line 492 of file scene/camera.cpp.
References need_device_update, timer, and update().
| void Camera::device_update_volume | ( | Device * | device, |
| DeviceScene * | dscene, | ||
| Scene * | scene ) |
Definition at line 532 of file scene/camera.cpp.
References DeviceScene::data, KernelCamera::is_inside_volume, need_device_update, need_flags_update, viewplane_bounds_get(), and VLOG_INFO.
Definition at line 844 of file scene/camera.cpp.
References motion_time(), and use_motion().
Definition at line 839 of file scene/camera.cpp.
References use_motion().
Referenced by motion_step().
Definition at line 830 of file scene/camera.cpp.
References Node::tag_modified().
Referenced by Session::update_scene().
| void Camera::update | ( | Scene * | scene | ) |
Definition at line 225 of file scene/camera.cpp.
References Node::is_modified(), need_device_update, previous_need_motion, and timer.
Referenced by device_update(), and xml_read_camera().
| bool Camera::use_motion | ( | ) | const |
Definition at line 825 of file scene/camera.cpp.
Referenced by motion_step(), and motion_time().
| BoundBox Camera::viewplane_bounds_get | ( | ) |
Definition at line 605 of file scene/camera.cpp.
References bounds(), CAMERA_PANORAMA, CAMERA_PERSPECTIVE, cameratoworld, BoundBox::empty, make_float3(), max, Transform::x, Transform::y, and Transform::z.
Referenced by device_update_volume().
Definition at line 680 of file scene/camera.cpp.
References b, CAMERA_ORTHOGRAPHIC, CAMERA_PANORAMA, CAMERA_PERSPECTIVE, camera_sample_panorama(), cameratoworld, array< T, alignment >::data(), differential_transfer_compact(), direction_to_panorama(), dot(), dx, frustum_bottom_normal, frustum_left_normal, frustum_right_normal, frustum_top_normal, full_dx, full_dy, full_rastertocamera, kernel_camera, kernel_camera_motion, l, len, len_squared(), make_float2(), make_float3(), max, min, normalize(), P, sqrtf, transform_direction(), transform_perspective(), transform_point(), v2, worldtocamera, float2::x, float3::x, float2::y, float3::y, float3::z, zero_float2(), and zero_float3().
| char Camera::_pad[2] |
Definition at line 92 of file DNA_camera_types.h.
| float Camera::_pad2 |
Definition at line 111 of file DNA_camera_types.h.
| struct AnimData* Camera::adt |
Animation data (must be immediately after id for utilities to use it).
Definition at line 76 of file DNA_camera_types.h.
Referenced by acf_dscam_setting_ptr(), make_new_animlistelem(), and AnimationImporter::translate_Animations().
| struct ListBase Camera::bg_images |
Definition at line 121 of file DNA_camera_types.h.
Referenced by BKE_camera_background_image_clear(), BKE_camera_background_image_new(), BKE_camera_background_image_remove(), camera_background_image_remove_exec(), camera_blend_read_data(), camera_blend_write(), camera_copy_data(), camera_free_data(), image_open_exec(), image_walk_id_all_users(), OVERLAY_camera_cache_populate(), OVERLAY_image_camera_cache_populate(), and wm_draw_region_stereo_set().
| BoundBox2D Camera::border |
Definition at line 129 of file scene/camera.h.
Referenced by BlenderSync::get_buffer_params().
| Transform Camera::cameratoworld |
Definition at line 154 of file scene/camera.h.
Referenced by Camera(), viewplane_bounds_get(), and world_to_raster_size().
| float Camera::central_cylindrical_radius |
Definition at line 110 of file DNA_camera_types.h.
| float Camera::central_cylindrical_range_u_max |
Definition at line 107 of file DNA_camera_types.h.
| float Camera::central_cylindrical_range_u_min |
Definition at line 106 of file DNA_camera_types.h.
| float Camera::central_cylindrical_range_v_max |
Definition at line 109 of file DNA_camera_types.h.
| float Camera::central_cylindrical_range_v_min |
Definition at line 108 of file DNA_camera_types.h.
| float Camera::clip_end |
Definition at line 84 of file DNA_camera_types.h.
Referenced by BKE_camera_params_from_object(), camera_stereoscopy_extra(), blender::io::alembic::ABCCameraWriter::do_write(), lineart_create_render_buffer_v3(), lineart_main_load_geometries(), CamerasExporter::operator()(), OVERLAY_camera_cache_populate(), blender::io::usd::USDCameraReader::read_object_data(), blender::io::alembic::AbcCameraReader::readObjectData(), and DocumentImporter::writeCamera().
| float Camera::clip_start |
Definition at line 84 of file DNA_camera_types.h.
Referenced by BKE_camera_params_from_object(), camera_stereoscopy_extra(), blender::io::alembic::ABCCameraWriter::do_write(), lineart_create_render_buffer_v3(), lineart_main_load_geometries(), CamerasExporter::operator()(), OVERLAY_camera_cache_populate(), blender::io::usd::USDCameraReader::read_object_data(), blender::io::alembic::AbcCameraReader::readObjectData(), and DocumentImporter::writeCamera().
| float dof_distance Camera::DNA_DEPRECATED |
Definition at line 88 of file DNA_camera_types.h.
| struct Ipo* ipo Camera::DNA_DEPRECATED |
Old animation system, deprecated for 2.5.
Definition at line 114 of file DNA_camera_types.h.
| struct Object* dof_ob Camera::DNA_DEPRECATED |
Definition at line 116 of file DNA_camera_types.h.
| struct GPUDOFSettings gpu_dof Camera::DNA_DEPRECATED |
Definition at line 117 of file DNA_camera_types.h.
| struct CameraDOFSettings Camera::dof |
Definition at line 118 of file DNA_camera_types.h.
Referenced by BKE_camera_object_dof_distance(), do_versions_after_linking_280(), blender::io::alembic::ABCCameraWriter::do_write(), ED_armature_bone_rename(), GPENCIL_cache_init(), blender::io::usd::USDCameraReader::read_object_data(), blender::io::alembic::AbcCameraReader::readObjectData(), blender::ed::object::single_obdata_users(), WIDGETGROUP_camera_refresh(), and DocumentImporter::writeCamera().
| float Camera::drawsize |
Definition at line 85 of file DNA_camera_types.h.
Referenced by BKE_object_obdata_size_init(), blender::ed::object::object_camera_add_exec(), OVERLAY_camera_cache_populate(), and WIDGETGROUP_camera_refresh().
| char Camera::dtx |
| float3 Camera::dx |
Definition at line 165 of file scene/camera.h.
Referenced by Camera(), and world_to_raster_size().
| float3 Camera::dy |
Definition at line 166 of file scene/camera.h.
Referenced by Camera().
| float Camera::fisheye_fov |
Definition at line 95 of file DNA_camera_types.h.
Referenced by blo_do_versions_400(), and camera_write_cycles_compatibility_data_create().
| float Camera::fisheye_lens |
Definition at line 96 of file DNA_camera_types.h.
Referenced by blo_do_versions_400(), and camera_write_cycles_compatibility_data_create().
| float Camera::fisheye_polynomial_k0 |
Definition at line 99 of file DNA_camera_types.h.
Referenced by blo_do_versions_400(), and camera_write_cycles_compatibility_data_create().
| float Camera::fisheye_polynomial_k1 |
Definition at line 100 of file DNA_camera_types.h.
Referenced by blo_do_versions_400(), and camera_write_cycles_compatibility_data_create().
| float Camera::fisheye_polynomial_k2 |
Definition at line 101 of file DNA_camera_types.h.
Referenced by blo_do_versions_400(), and camera_write_cycles_compatibility_data_create().
| float Camera::fisheye_polynomial_k3 |
Definition at line 102 of file DNA_camera_types.h.
Referenced by blo_do_versions_400(), and camera_write_cycles_compatibility_data_create().
| float Camera::fisheye_polynomial_k4 |
Definition at line 103 of file DNA_camera_types.h.
Referenced by blo_do_versions_400(), and camera_write_cycles_compatibility_data_create().
| short Camera::flag |
Definition at line 82 of file DNA_camera_types.h.
Referenced by acf_dscam_setting_ptr(), blo_do_versions_250(), blo_do_versions_pre250(), camera_background_image_add_exec(), drawviewborder(), OVERLAY_camera_cache_populate(), and WIDGETGROUP_camera_refresh().
| float3 Camera::frustum_bottom_normal |
Definition at line 174 of file scene/camera.h.
Referenced by world_to_raster_size().
| float3 Camera::frustum_left_normal |
Definition at line 173 of file scene/camera.h.
Referenced by world_to_raster_size().
| float3 Camera::frustum_right_normal |
Definition at line 171 of file scene/camera.h.
Referenced by world_to_raster_size().
| float3 Camera::frustum_top_normal |
Definition at line 172 of file scene/camera.h.
Referenced by world_to_raster_size().
| float3 Camera::full_dx |
Definition at line 168 of file scene/camera.h.
Referenced by world_to_raster_size().
| float3 Camera::full_dy |
Definition at line 169 of file scene/camera.h.
Referenced by world_to_raster_size().
| ProjectionTransform Camera::full_rastertocamera |
Definition at line 163 of file scene/camera.h.
Referenced by Camera(), and world_to_raster_size().
| ID Camera::id |
Definition at line 74 of file DNA_camera_types.h.
Referenced by blo_do_versions_pre250(), camera_background_image_add_exec(), camera_background_image_remove_exec(), camera_blend_write(), do_versions_ipos_to_animato(), ED_armature_bone_rename(), AnimationImporter::translate_Animations(), WIDGETGROUP_camera_message_subscribe(), and WIDGETGROUP_camera_refresh().
| KernelCamera Camera::kernel_camera |
Definition at line 182 of file scene/camera.h.
Referenced by Camera(), and world_to_raster_size().
| array<DecomposedTransform> Camera::kernel_camera_motion |
Definition at line 183 of file scene/camera.h.
Referenced by world_to_raster_size().
| float Camera::latitude_max |
Definition at line 97 of file DNA_camera_types.h.
Referenced by blo_do_versions_400(), and camera_write_cycles_compatibility_data_create().
| float Camera::latitude_min |
Definition at line 97 of file DNA_camera_types.h.
Referenced by blo_do_versions_400(), and camera_write_cycles_compatibility_data_create().
| float Camera::lens |
Definition at line 85 of file DNA_camera_types.h.
Referenced by BKE_camera_params_from_object(), blo_do_versions_pre250(), blender::io::alembic::ABCCameraWriter::do_write(), GPENCIL_cache_init(), lineart_main_load_geometries(), CamerasExporter::operator()(), blender::io::usd::USDCameraReader::read_object_data(), blender::io::alembic::AbcCameraReader::readObjectData(), and DocumentImporter::writeCamera().
| float Camera::longitude_max |
Definition at line 98 of file DNA_camera_types.h.
Referenced by blo_do_versions_400(), and camera_write_cycles_compatibility_data_create().
| float Camera::longitude_min |
Definition at line 98 of file DNA_camera_types.h.
Referenced by blo_do_versions_400(), and camera_write_cycles_compatibility_data_create().
| ProjectionTransform Camera::ndctoworld |
Definition at line 153 of file scene/camera.h.
Referenced by Camera().
| bool Camera::need_device_update |
Definition at line 177 of file scene/camera.h.
Referenced by Camera(), device_update(), device_update_volume(), and update().
| bool Camera::need_flags_update |
Definition at line 178 of file scene/camera.h.
Referenced by Camera(), device_update_volume(), and xml_read_camera().
| float Camera::ortho_scale |
Definition at line 85 of file DNA_camera_types.h.
Referenced by BKE_camera_params_from_object(), blo_do_versions_pre250(), image_camera_background_matrix_get(), lineart_main_load_geometries(), CamerasExporter::operator()(), blender::io::usd::USDCameraReader::read_object_data(), WIDGETGROUP_camera_refresh(), and DocumentImporter::writeCamera().
| char Camera::panorama_type |
Definition at line 91 of file DNA_camera_types.h.
Referenced by blo_do_versions_400(), and camera_write_cycles_compatibility_data_create().
| float Camera::passepartalpha |
Definition at line 83 of file DNA_camera_types.h.
Referenced by blo_do_versions_pre250(), and drawviewborder().
| int Camera::previous_need_motion |
Definition at line 179 of file scene/camera.h.
| ProjectionTransform Camera::rastertocamera |
Definition at line 161 of file scene/camera.h.
Referenced by Camera().
| ProjectionTransform Camera::rastertoworld |
Definition at line 152 of file scene/camera.h.
Referenced by Camera().
| Camera_Runtime Camera::runtime |
Runtime data (keep last).
Definition at line 127 of file DNA_camera_types.h.
| ProjectionTransform Camera::screentoworld |
Definition at line 151 of file scene/camera.h.
Referenced by Camera().
| char Camera::sensor_fit |
Definition at line 90 of file DNA_camera_types.h.
Referenced by BKE_camera_params_from_object(), drawviewborder(), ED_view3d_win_to_3d(), GPENCIL_cache_init(), lineart_create_render_buffer_v3(), lineart_main_load_geometries(), blender::io::usd::USDCameraReader::read_object_data(), and WIDGETGROUP_camera_refresh().
| float Camera::sensor_x |
Definition at line 86 of file DNA_camera_types.h.
Referenced by AnimationImporter::Assign_lens_animations(), BKE_camera_params_from_object(), blender::io::alembic::ABCCameraWriter::do_write(), drawviewborder(), GPENCIL_cache_init(), lineart_main_load_geometries(), CamerasExporter::operator()(), blender::io::usd::USDCameraReader::read_object_data(), blender::io::alembic::AbcCameraReader::readObjectData(), WIDGETGROUP_camera_refresh(), and DocumentImporter::writeCamera().
| float Camera::sensor_y |
Definition at line 86 of file DNA_camera_types.h.
Referenced by BKE_camera_params_from_object(), blender::io::alembic::ABCCameraWriter::do_write(), drawviewborder(), GPENCIL_cache_init(), lineart_main_load_geometries(), blender::io::usd::USDCameraReader::read_object_data(), blender::io::alembic::AbcCameraReader::readObjectData(), and WIDGETGROUP_camera_refresh().
| float Camera::shiftx |
Definition at line 87 of file DNA_camera_types.h.
Referenced by BKE_camera_params_from_object(), camera_offaxis_shiftx_get(), camera_offaxis_shiftx_get(), camera_stereo3d_shift_x(), blender::io::alembic::ABCCameraWriter::do_write(), ED_view3d_win_to_3d(), lineart_create_render_buffer_v3(), blender::io::usd::USDCameraReader::read_object_data(), blender::io::alembic::AbcCameraReader::readObjectData(), view3d_stereo3d_setup(), WIDGETGROUP_camera_refresh(), and DocumentImporter::writeCamera().
| float Camera::shifty |
Definition at line 87 of file DNA_camera_types.h.
Referenced by BKE_camera_params_from_object(), blender::io::alembic::ABCCameraWriter::do_write(), ED_view3d_win_to_3d(), lineart_create_render_buffer_v3(), blender::io::usd::USDCameraReader::read_object_data(), blender::io::alembic::AbcCameraReader::readObjectData(), WIDGETGROUP_camera_refresh(), and DocumentImporter::writeCamera().
| size_t Camera::shutter_table_offset |
Definition at line 55 of file scene/camera.h.
Referenced by Camera(), and device_free().
| struct CameraStereoSettings Camera::stereo |
Definition at line 124 of file DNA_camera_types.h.
Referenced by BKE_camera_multiview_spherical_stereo(), camera_offaxis_shiftx_get(), camera_offaxis_shiftx_get(), camera_stereoscopy_extra(), blender::io::alembic::ABCCameraWriter::do_write(), and blender::io::alembic::AbcCameraReader::readObjectData().
| char Camera::type |
CAM_PERSP, CAM_ORTHO or CAM_PANO.
Definition at line 79 of file DNA_camera_types.h.
Referenced by BKE_camera_multiview_spherical_stereo(), BKE_camera_params_from_object(), blo_do_versions_pre250(), image_camera_background_matrix_get(), blender::io::alembic::ABCCameraWriter::is_supported(), blender::io::usd::USDCameraWriter::is_supported(), lineart_create_render_buffer_v3(), lineart_main_load_geometries(), CamerasExporter::operator()(), blender::io::usd::USDCameraReader::read_object_data(), uvprojectModifier_do(), view3d_get_name(), WIDGETGROUP_camera_refresh(), and DocumentImporter::writeCamera().
| BoundBox2D Camera::viewplane |
Definition at line 116 of file scene/camera.h.
Referenced by compute_auto_viewplane().
| BoundBox2D Camera::viewport_camera_border |
Definition at line 135 of file scene/camera.h.
| Transform Camera::worldtocamera |
Definition at line 159 of file scene/camera.h.
Referenced by world_to_raster_size().
| ProjectionTransform Camera::worldtondc |
Definition at line 158 of file scene/camera.h.
| ProjectionTransform Camera::worldtoraster |
Definition at line 156 of file scene/camera.h.
Referenced by Camera(), and QuadDice::eval_projected().
| ProjectionTransform Camera::worldtoscreen |
Definition at line 157 of file scene/camera.h.