|
Blender V5.0
|
#include "ED_view3d.hh"Go to the source code of this file.
Macros | |
| #define | VIEW3D_CAMERA_BORDER_HACK |
Variables | |
| const char * | view3d_context_dir [] |
| uchar | view3d_camera_border_hack_col [3] |
| bool | view3d_camera_border_hack_test |
| #define VIEW3D_CAMERA_BORDER_HACK |
Definition at line 231 of file view3d_intern.hh.
| bool ED_view3d_boundbox_clip | ( | RegionView3D * | rv3d, |
| const BoundBox * | bb ) |
Definition at line 475 of file view3d_utils.cc.
References RegionView3D::persmatob, and view3d_boundbox_clip_m4().
| bool ED_view3d_boundbox_clip_ex | ( | const RegionView3D * | rv3d, |
| const BoundBox * | bb, | ||
| float | obmat[4][4] ) |
Definition at line 460 of file view3d_utils.cc.
References mul_m4_m4m4(), RegionView3D::persmat, and view3d_boundbox_clip_m4().
| View3DCameraControl * ED_view3d_cameracontrol_acquire | ( | Depsgraph * | depsgraph, |
| Scene * | scene, | ||
| View3D * | v3d, | ||
| RegionView3D * | rv3d ) |
Creates a View3DCameraControl handle and sets up the view for first-person style navigation.
Definition at line 111 of file view3d_camera_control.cc.
References BKE_object_tfm_backup(), BKE_object_where_is_calc(), CAM_PERSP, View3D::camera, copy_qt_qt(), copy_v3_v3(), View3DCameraControl::ctx_rv3d, View3DCameraControl::ctx_scene, View3DCameraControl::ctx_v3d, Object::data, depsgraph, RegionView3D::dist, View3DCameraControl::dist_backup, ED_view3d_distance_set(), ED_view3d_to_m4(), View3DCameraControl::is_ortho_cam, RegionView3D::is_persp, MEM_callocN(), negate_v3_v3(), OB_TRANSFORM_ADJUST_ROOT_PARENT_FOR_VIEW_LOCK, View3DCameraControl::obtfm, RegionView3D::ofs, View3DCameraControl::ofs_backup, Object::parent, RegionView3D::persp, View3DCameraControl::persp_backup, View3DCameraControl::root_parent, View3DCameraControl::rot_backup, RV3D_CAMOB, RV3D_ORTHO, RV3D_PERSP, Object::transflag, View3DCameraControl::use_parent_root, View3DCameraControl::view_mat_prev, and RegionView3D::viewquat.
Referenced by initFlyInfo(), and initWalkInfo().
| Object * ED_view3d_cameracontrol_object_get | ( | View3DCameraControl * | vctrl | ) |
Returns the object which is being manipulated or NULL.
Definition at line 100 of file view3d_camera_control.cc.
References View3DCameraControl::ctx_rv3d, RegionView3D::persp, RV3D_CAMOB, and view3d_cameracontrol_object().
Referenced by drawFlyPixel(), drawWalkPixel(), fly_modal(), initFlyInfo(), and walk_modal().
| void ED_view3d_cameracontrol_release | ( | View3DCameraControl * | vctrl, |
| bool | restore ) |
Release view control.
| restore | Sets the view state to the values that were set before #ED_view3d_control_acquire was called. |
Definition at line 304 of file view3d_camera_control.cc.
References BKE_object_tfm_restore(), CAM_ORTHO, View3D::camera, copy_qt_qt(), copy_v3_v3(), View3DCameraControl::ctx_rv3d, View3DCameraControl::ctx_v3d, Object::data, DEG_id_tag_update(), RegionView3D::dist, View3DCameraControl::dist_backup, ED_view3d_distance_set(), Object::id, ID_RECALC_TRANSFORM, View3DCameraControl::is_ortho_cam, MEM_freeN(), View3DCameraControl::obtfm, RegionView3D::ofs, View3DCameraControl::ofs_backup, RegionView3D::persp, View3DCameraControl::persp_backup, View3DCameraControl::rot_backup, RV3D_CAMOB, view3d_cameracontrol_object(), and RegionView3D::viewquat.
| void ED_view3d_cameracontrol_update | ( | View3DCameraControl * | vctrl, |
| bool | use_autokey, | ||
| bContext * | C, | ||
| bool | do_rotate, | ||
| bool | do_translate ) |
Updates cameras from the rv3d values, optionally auto-keyframing.
Definition at line 234 of file view3d_camera_control.cc.
References C, View3D::camera, copy_m4_m4(), copy_v3_v3(), View3DCameraControl::ctx_rv3d, View3DCameraControl::ctx_scene, View3DCameraControl::ctx_v3d, DEG_id_tag_update(), RegionView3D::dist, ED_view3d_camera_autokey(), ED_view3d_to_m4(), Object::id, ID_RECALC_TRANSFORM, invert_m4_m4(), mul_m4_m4m4(), object_apply_mat4_with_protect(), RegionView3D::ofs, Object::parent, View3DCameraControl::root_parent, Object::scale, size_to_mat4(), View3DCameraControl::view_mat_prev, and RegionView3D::viewquat.
Referenced by flyMoveCamera(), and walkMoveCamera().
Calculates the bounding box corners (min and max) for obedit. The returned values are in global space.
Definition at line 1148 of file view3d_snap.cc.
References add_v3_v3(), BKE_mball_minmax_ex(), bounds(), bounds_min_max_with_transform(), copy_m3_m4(), copy_v3_v3(), Object::data, DEG_get_original(), ED_transverts_check_obedit(), ED_transverts_create_from_obedit(), ED_transverts_free(), TransVert::flag, Curves::geometry, blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::bke::crazyspace::get_evaluated_grease_pencil_drawing_deformation(), IndexMask::is_empty(), TransVert::loc, TransVert::maploc, mask(), blender::bounds::merge(), minmax_v3v3_v3(), mul_m3_v3(), OB_CURVES, OB_GREASE_PENCIL, OB_MBALL, OB_POINTCLOUD, blender::bke::crazyspace::GeometryDeformation::positions, blender::ed::greasepencil::retrieve_editable_and_selected_points(), blender::ed::greasepencil::retrieve_editable_drawings(), blender::ed::curves::retrieve_selected_points(), blender::ed::pointcloud::retrieve_selected_points(), SELECT, TM_ALL_JOINTS, TM_CALC_MAPLOC, blender::bke::greasepencil::Layer::to_world_space(), TransVertStore::transverts, TransVertStore::transverts_tot, TX_VERT_USE_MAPLOC, and Object::type.
Referenced by view3d_calc_minmax_selected().
For home, center etc.
Definition at line 988 of file view3d_utils.cc.
References copy_v3_v3(), RegionView3D::dist, ED_region_tag_redraw(), LISTBASE_FOREACH, RegionView3D::ofs, ScrArea::regionbase, ARegion::regiondata, ARegion::regiontype, RGN_TYPE_WINDOW, RV3D_BOXCLIP, RV3D_LOCK_FLAGS, and view3d_boxview_clip().
Referenced by ED_view3d_smooth_view_ex(), and view3d_smoothview_apply_from_timer().
Sync center/zoom view of region to others, for view transforms.
Definition at line 964 of file view3d_utils.cc.
References RegionView3D::dist, ED_region_tag_redraw(), LISTBASE_FOREACH, ScrArea::regionbase, ARegion::regiondata, ARegion::regiontype, RGN_TYPE_WINDOW, RV3D_BOXCLIP, RV3D_LOCK_FLAGS, RV3D_LOCK_ROTATION, view3d_boxview_clip(), and view3d_boxview_sync_axis().
Referenced by ED_view3d_quadview_update(), ViewOpsData::state_restore(), view3d_zoom_border_exec(), view_zoom_apply_step(), viewdolly_apply(), viewdolly_exec(), viewmove_apply(), viewroll_apply(), and viewzoom_apply_3d().
| void view3d_buttons_register | ( | ARegionType * | art | ) |
Definition at line 2541 of file view3d_buttons.cc.
References BLI_addtail(), BLT_I18NCONTEXT_DEFAULT_BPYRNA, PanelType::category, PanelType::draw, PanelType::idname, PanelType::label, MEM_callocN(), N_, ARegionType::paneltypes, PanelType::poll, STRNCPY_UTF8, PanelType::translation_context, view3d_panel_curve_data(), view3d_panel_curve_data_poll(), view3d_panel_transform(), view3d_panel_transform_poll(), view3d_panel_vgroup(), and view3d_panel_vgroup_poll().
Referenced by ED_spacetype_view3d().
| int view3d_context | ( | const bContext * | C, |
| const char * | member, | ||
| bContextDataResult * | result ) |
Definition at line 31 of file view3d_context.cc.
References BASE_ENABLED_AND_MAYBE_VISIBLE_IN_VIEWPORT, BKE_view_layer_active_base_get(), BKE_view_layer_synced_ensure(), C, Collection, CTX_data_dir(), CTX_data_dir_set(), CTX_data_equals(), CTX_data_id_list_add(), CTX_data_id_pointer_set(), CTX_data_scene(), CTX_data_selected_objects(), CTX_data_type_set(), CTX_data_view_layer(), CTX_RESULT_MEMBER_NOT_FOUND, CTX_RESULT_OK, Base::flag, Object::id, Object::mode, OB_MODE_OBJECT, Base::object, ptr, result, and view3d_context_dir.
Referenced by ED_spacetype_view3d().
| float view3d_depth_near | ( | ViewDepths * | d | ) |
Definition at line 2496 of file view3d_draw.cc.
References view3d_depth_near_ex().
Referenced by view3d_zoom_border_exec(), and view_autodist_depth_margin().
| float view3d_depth_near_ex | ( | ViewDepths * | d, |
| int | r_xy[2] ) |
Utility function to find the closest Z value, use for auto-depth.
| r_xy | When non-null, set this to the region relative position of the hit. |
Definition at line 2458 of file view3d_draw.cc.
References ViewDepths::depth_range, ViewDepths::depths, float, FLT_MAX, ViewDepths::h, i, ViewDepths::w, ViewDepths::x, and ViewDepths::y.
Referenced by view3d_depth_near().
| void view3d_depths_rect_create | ( | ARegion * | region, |
| rcti * | rect, | ||
| ViewDepths * | r_d ) |
Definition at line 2401 of file view3d_draw.cc.
References BLI_rcti_isect(), BLI_rcti_size_x(), BLI_rcti_size_y(), ViewDepths::depth_range, ViewDepths::depths, ViewDepths::h, MEM_malloc_arrayN(), view3d_gpu_read_Z_pixels(), ViewDepths::w, w(), ARegion::winx, ARegion::winy, WM_draw_region_get_viewport(), ViewDepths::x, x, rcti::xmax, rcti::xmin, ViewDepths::y, y, rcti::ymax, and rcti::ymin.
Referenced by view3d_zoom_border_exec(), and view_autodist_depth_margin().
Information drawn on top of the solid plates and composed data.
Definition at line 1519 of file view3d_draw.cc.
References BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), BLF_batch_draw_begin(), BLF_batch_draw_end(), BLF_color4fv(), BLF_default(), BLF_default_size(), BLF_disable(), BLF_enable(), BLF_set_default(), BLF_SHADOW, BLF_shadow(), BLF_shadow_offset(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_manager(), CTX_wm_view3d(), draw_grid_unit_name(), draw_selected_name(), draw_view_axis(), draw_viewport_name(), DRW_draw_region_engine_info(), ED_info_draw_stats(), ED_region_pixelspace(), ED_region_visible_rect(), ED_scene_draw_fps(), ED_screen_animation_no_scrub(), ED_view3d_text_colors_get(), View3DOverlay::flag, View3D::flag2, View3D::gizmo_flag, View3D::gridflag, View3D::localvd, RegionView3D::ndof_flag, NDOF_IS_ORBIT_AROUND_CENTER_MODE, NDOF_ORBIT_CENTER_AUTO, RegionView3D::ndof_rot_angle, NDOF_SHOW_GUIDE_ORBIT_AXIS, NDOF_SHOW_GUIDE_ORBIT_CENTER, View3D::ob_center, View3D::ob_center_cursor, Outline, View3D::overlay, uiFontStyle::points, ARegion::regiondata, RV3D_LOCK_FLAGS, RV3D_LOCK_ROTATION, RV3D_NDOF_OFS_IS_VALID, U, UI_DEFAULT_TEXT_POINTS, UI_fontstyle_set(), UI_FSTYLE_WIDGET, USER_DRAWVIEWINFO, USER_MINI_AXIS_TYPE_GIZMO, USER_MINI_AXIS_TYPE_MINIMAL, USER_MINI_AXIS_TYPE_NONE, USER_SHOW_FPS, USER_SHOW_VIEWPORTNAME, V3D_GIZMO_HIDE, V3D_GIZMO_HIDE_NAVIGATE, V3D_HIDE_OVERLAYS, V3D_OVERLAY_HIDE_TEXT, V3D_OVERLAY_STATS, V3D_SHOW_FLOOR, V3D_SHOW_X, V3D_SHOW_Y, V3D_SHOW_Z, view3d_draw_border(), view3d_draw_grease_pencil(), VIEW3D_OVERLAY_LINEHEIGHT, rcti::xmin, and rcti::ymax.
Referenced by DRW_draw_region_info().
| void view3d_dropboxes | ( | ) |
Definition at line 656 of file view3d_dropboxes.cc.
References wmDropBox::draw_droptip, wmDropBox::on_enter, wmDropBox::on_exit, RGN_TYPE_WINDOW, SPACE_VIEW3D, view3d_collection_drop_copy_external_asset(), view3d_collection_drop_copy_local_id(), view3d_collection_drop_on_enter(), view3d_collection_drop_poll_external_asset(), view3d_collection_drop_poll_local_id(), view3d_drop_snap_exit(), view3d_geometry_nodes_drop_copy(), view3d_geometry_nodes_drop_poll(), view3d_geometry_nodes_drop_tooltip(), view3d_id_drop_copy(), view3d_id_drop_copy_with_type(), view3d_id_path_drop_copy(), view3d_ima_bg_drop_poll(), view3d_ima_empty_drop_poll(), view3d_mat_drop_poll(), view3d_mat_drop_tooltip(), view3d_ob_drop_copy_external_asset(), view3d_ob_drop_copy_local_id(), view3d_ob_drop_on_enter(), view3d_ob_drop_poll_external_asset(), view3d_ob_drop_poll_local_id(), view3d_object_data_drop_poll(), view3d_object_data_drop_tooltip(), view3d_world_drop_poll(), WM_drag_draw_item_name_fn(), WM_drag_free_imported_drag_ID(), WM_dropbox_add(), and WM_dropboxmap_find().
Referenced by ED_spacetype_view3d().
| void VIEW3D_GGT_armature_spline | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 203 of file view3d_gizmo_armature.cc.
References wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_armature_spline_poll(), WIDGETGROUP_armature_spline_refresh(), WIDGETGROUP_armature_spline_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by view3d_widgets().
| void VIEW3D_GGT_camera | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 307 of file view3d_gizmo_camera.cc.
References wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::message_subscribe, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_camera_message_subscribe(), WIDGETGROUP_camera_poll(), WIDGETGROUP_camera_refresh(), WIDGETGROUP_camera_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DEPTH_3D, and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by view3d_widgets().
| void VIEW3D_GGT_camera_view | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 506 of file view3d_gizmo_camera.cc.
References wmGizmoGroupType::draw_prepare, wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, WIDGETGROUP_camera_view_draw_prepare(), WIDGETGROUP_camera_view_poll(), WIDGETGROUP_camera_view_refresh(), WIDGETGROUP_camera_view_setup(), WM_GIZMOGROUPTYPE_PERSISTENT, and WM_GIZMOGROUPTYPE_SCALE.
Referenced by view3d_widgets().
| void VIEW3D_GGT_empty_image | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 196 of file view3d_gizmo_empty.cc.
References wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_empty_image_poll(), WIDGETGROUP_empty_image_refresh(), WIDGETGROUP_empty_image_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DEPTH_3D, and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by view3d_widgets().
| void VIEW3D_GGT_force_field | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 108 of file view3d_gizmo_forcefield.cc.
References wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_forcefield_poll(), WIDGETGROUP_forcefield_refresh(), WIDGETGROUP_forcefield_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DEPTH_3D, WM_GIZMOGROUPTYPE_PERSISTENT, and WM_GIZMOGROUPTYPE_SCALE.
Referenced by view3d_widgets().
| void VIEW3D_GGT_geometry_nodes | ( | struct wmGizmoGroupType * | gzgt | ) |
Definition at line 1111 of file view3d_gizmo_geometry_nodes.cc.
References wmGizmoGroupType::draw_prepare, wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, blender::ed::view3d::geometry_nodes_gizmos::WIDGETGROUP_geometry_nodes_draw_prepare(), blender::ed::view3d::geometry_nodes_gizmos::WIDGETGROUP_geometry_nodes_poll(), blender::ed::view3d::geometry_nodes_gizmos::WIDGETGROUP_geometry_nodes_refresh(), blender::ed::view3d::geometry_nodes_gizmos::WIDGETGROUP_geometry_nodes_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by view3d_widgets().
| void VIEW3D_GGT_light_area | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 556 of file view3d_gizmo_light.cc.
References wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_light_area_poll(), WIDGETGROUP_light_area_refresh(), WIDGETGROUP_light_area_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DEPTH_3D, and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by view3d_widgets().
| void VIEW3D_GGT_light_point | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 410 of file view3d_gizmo_light.cc.
References wmGizmoGroupType::draw_prepare, wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_light_point_draw_prepare(), WIDGETGROUP_light_point_poll(), WIDGETGROUP_light_point_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DEPTH_3D, and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by view3d_widgets().
| void VIEW3D_GGT_light_spot | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 315 of file view3d_gizmo_light.cc.
References wmGizmoGroupType::draw_prepare, wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_light_spot_draw_prepare(), WIDGETGROUP_light_spot_poll(), WIDGETGROUP_light_spot_refresh(), WIDGETGROUP_light_spot_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DEPTH_3D, and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by view3d_widgets().
| void VIEW3D_GGT_light_target | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 655 of file view3d_gizmo_light.cc.
References wmGizmoGroupType::draw_prepare, wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_light_target_draw_prepare(), WIDGETGROUP_light_target_poll(), WIDGETGROUP_light_target_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by view3d_widgets().
| void VIEW3D_GGT_mesh_preselect_edgering | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 75 of file view3d_gizmo_preselect.cc.
References ED_gizmo_poll_or_unlink_delayed_from_tool(), wmGizmoGroupType::flag, wmGizmoGroupType::gzmap_params, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoMapType_Params::regionid, RGN_TYPE_WINDOW, wmGizmoGroupType::setup, SPACE_VIEW3D, wmGizmoMapType_Params::spaceid, WIDGETGROUP_mesh_preselect_edgering_setup(), WM_GIZMOGROUPTYPE_3D, and WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP.
Referenced by view3d_widgets().
| void VIEW3D_GGT_mesh_preselect_elem | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 39 of file view3d_gizmo_preselect.cc.
References ED_gizmo_poll_or_unlink_delayed_from_tool(), wmGizmoGroupType::flag, wmGizmoGroupType::gzmap_params, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoMapType_Params::regionid, RGN_TYPE_WINDOW, wmGizmoGroupType::setup, SPACE_VIEW3D, wmGizmoMapType_Params::spaceid, WIDGETGROUP_mesh_preselect_elem_setup(), WM_GIZMOGROUPTYPE_3D, and WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP.
Referenced by view3d_widgets().
| void VIEW3D_GGT_navigate | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 395 of file view3d_gizmo_navigate.cc.
References wmGizmoGroupType::draw_prepare, wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::setup, WIDGETGROUP_navigate_draw_prepare(), WIDGETGROUP_navigate_poll(), WIDGETGROUP_navigate_setup(), WM_GIZMOGROUPTYPE_DRAW_MODAL_ALL, WM_GIZMOGROUPTYPE_PERSISTENT, and WM_GIZMOGROUPTYPE_SCALE.
Referenced by view3d_widgets().
| void VIEW3D_GGT_placement | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 1411 of file view3d_placement.cc.
References wmGizmoGroupType::flag, wmGizmoGroupType::gzmap_params, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoMapType_Params::regionid, RGN_TYPE_WINDOW, wmGizmoGroupType::setup, SPACE_VIEW3D, wmGizmoMapType_Params::spaceid, view3d_gzgt_placement_id, WIDGETGROUP_placement_poll(), WIDGETGROUP_placement_setup(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DRAW_MODAL_ALL, and WM_GIZMOGROUPTYPE_SCALE.
Referenced by view3d_widgets().
| void VIEW3D_GGT_ruler | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 1337 of file view3d_gizmo_ruler.cc.
References ED_gizmo_poll_or_unlink_delayed_from_tool(), wmGizmoGroupType::flag, wmGizmoGroupType::gzmap_params, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoMapType_Params::regionid, RGN_TYPE_WINDOW, wmGizmoGroupType::setup, SPACE_VIEW3D, wmGizmoMapType_Params::spaceid, view3d_gzgt_ruler_id, WIDGETGROUP_ruler_setup(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DRAW_MODAL_ALL, and WM_GIZMOGROUPTYPE_SCALE.
Referenced by view3d_widgets().
| void VIEW3D_GGT_tool_generic_handle_free | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 219 of file view3d_gizmo_tool_generic.cc.
References wmGizmoGroupType::flag, wmGizmoGroupType::gzmap_params, handle_free_id, handle_free_radius_default, wmGizmoGroupType::idname, wmGizmoGroupType::message_subscribe, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoMapType_Params::regionid, RGN_TYPE_WINDOW, RNA_def_float(), wmGizmoGroupType::setup, SPACE_VIEW3D, wmGizmoMapType_Params::spaceid, wmGizmoGroupType::srna, WIDGETGROUP_gizmo_message_subscribe(), WIDGETGROUP_tool_generic_poll(), WIDGETGROUP_tool_generic_refresh(), WIDGETGROUP_tool_generic_setup(), WM_GIZMOGROUPTYPE_3D, and WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP.
Referenced by view3d_widgets().
| void VIEW3D_GGT_tool_generic_handle_normal | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 192 of file view3d_gizmo_tool_generic.cc.
References wmGizmoGroupType::flag, wmGizmoGroupType::gzmap_params, handle_normal_id, handle_normal_radius_default, wmGizmoGroupType::idname, wmGizmoGroupType::message_subscribe, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoMapType_Params::regionid, RGN_TYPE_WINDOW, RNA_def_float(), wmGizmoGroupType::setup, SPACE_VIEW3D, wmGizmoMapType_Params::spaceid, wmGizmoGroupType::srna, WIDGETGROUP_gizmo_message_subscribe(), WIDGETGROUP_tool_generic_poll(), WIDGETGROUP_tool_generic_refresh(), WIDGETGROUP_tool_generic_setup(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DELAY_REFRESH_FOR_TWEAK, and WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP.
Referenced by view3d_widgets().
| void VIEW3D_GT_navigate_rotate | ( | wmGizmoType * | gzt | ) |
Definition at line 360 of file view3d_gizmo_navigate_type.cc.
References wmGizmoType::cursor_get, wmGizmoType::draw, gizmo_axis_cursor_get(), gizmo_axis_draw(), gizmo_axis_screen_bounds_get(), gizmo_axis_test_select(), wmGizmoType::idname, wmGizmoType::screen_bounds_get, wmGizmoType::struct_size, and wmGizmoType::test_select.
Referenced by view3d_widgets().
| void VIEW3D_GT_ruler_item | ( | wmGizmoType * | gzt | ) |
Definition at line 1276 of file view3d_gizmo_ruler.cc.
References wmGizmoType::cursor_get, wmGizmoType::draw, wmGizmoType::exit, gizmo_ruler_cursor_get(), gizmo_ruler_draw(), gizmo_ruler_exit(), gizmo_ruler_invoke(), gizmo_ruler_modal(), gizmo_ruler_test_select(), wmGizmoType::idname, wmGizmoType::invoke, wmGizmoType::modal, wmGizmoType::struct_size, and wmGizmoType::test_select.
Referenced by view3d_widgets().
Definition at line 1685 of file view3d_draw.cc.
References BKE_image_free_old_gputextures(), C, CTX_data_main(), CTX_wm_view3d(), DRW_cache_free_old_batches(), blender::draw::DRW_cache_free_old_subdiv(), View3D_Runtime::flag, GPU_DEPTH_NONE, GPU_depth_test(), View3D::runtime, V3D_RUNTIME_DEPTHBUF_OVERRIDDEN, view3d_draw_view(), and view3d_update_viewer_path().
Referenced by ED_spacetype_view3d().
| void view3d_operatortypes | ( | ) |
Definition at line 180 of file view3d_ops.cc.
References blender::ed::transform::transform_operatortypes(), VIEW3D_OT_bone_select_menu(), VIEW3D_OT_camera_background_image_add(), VIEW3D_OT_camera_background_image_remove(), VIEW3D_OT_camera_to_view(), VIEW3D_OT_camera_to_view_selected(), VIEW3D_OT_clear_render_border(), VIEW3D_OT_clip_border(), VIEW3D_OT_copybuffer(), VIEW3D_OT_cursor3d(), VIEW3D_OT_dolly(), VIEW3D_OT_drop_world(), VIEW3D_OT_fly(), VIEW3D_OT_interactive_add(), VIEW3D_OT_localview(), VIEW3D_OT_localview_remove_from(), VIEW3D_OT_move(), VIEW3D_OT_navigate(), VIEW3D_OT_object_as_camera(), VIEW3D_OT_object_mode_pie_or_toggle(), VIEW3D_OT_pastebuffer(), VIEW3D_OT_render_border(), VIEW3D_OT_rotate(), VIEW3D_OT_ruler_add(), VIEW3D_OT_ruler_remove(), VIEW3D_OT_select(), VIEW3D_OT_select_box(), VIEW3D_OT_select_circle(), VIEW3D_OT_select_lasso(), VIEW3D_OT_select_menu(), VIEW3D_OT_smoothview(), VIEW3D_OT_snap_cursor_to_active(), VIEW3D_OT_snap_cursor_to_center(), VIEW3D_OT_snap_cursor_to_grid(), VIEW3D_OT_snap_cursor_to_selected(), VIEW3D_OT_snap_selected_to_active(), VIEW3D_OT_snap_selected_to_cursor(), VIEW3D_OT_snap_selected_to_grid(), VIEW3D_OT_toggle_matcap_flip(), VIEW3D_OT_toggle_shading(), VIEW3D_OT_toggle_xray(), VIEW3D_OT_view_all(), VIEW3D_OT_view_axis(), VIEW3D_OT_view_camera(), VIEW3D_OT_view_center_camera(), VIEW3D_OT_view_center_cursor(), VIEW3D_OT_view_center_lock(), VIEW3D_OT_view_center_pick(), VIEW3D_OT_view_lock_clear(), VIEW3D_OT_view_lock_to_active(), VIEW3D_OT_view_orbit(), VIEW3D_OT_view_pan(), VIEW3D_OT_view_persportho(), VIEW3D_OT_view_roll(), VIEW3D_OT_view_selected(), VIEW3D_OT_walk(), VIEW3D_OT_zoom(), VIEW3D_OT_zoom_border(), VIEW3D_OT_zoom_camera_1_to_1(), and WM_operatortype_append().
Referenced by ED_spacetype_view3d().
| void VIEW3D_OT_bone_select_menu | ( | wmOperatorType * | ot | ) |
Definition at line 1911 of file view3d_select.cc.
References bone_select_menu_exec(), object_select_menu_enum_itemf(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_ENUM_NO_TRANSLATE, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), rna_enum_dummy_NULL_items, and WM_menu_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_camera_background_image_add | ( | wmOperatorType * | ot | ) |
Definition at line 610 of file view3d_edit.cc.
References camera_background_image_add_exec(), camera_background_image_add_poll(), FILE_MAX, OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_FILEPATH, PROP_HIDDEN, PROP_PATH_SUPPORTS_BLEND_RELATIVE, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), RNA_def_property_subtype(), RNA_def_string(), and WM_operator_properties_id_lookup().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_camera_background_image_remove | ( | wmOperatorType * | ot | ) |
Definition at line 677 of file view3d_edit.cc.
References camera_background_image_remove_exec(), ED_operator_camera_poll(), ot, and RNA_def_int().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_camera_to_view | ( | wmOperatorType * | ot | ) |
Definition at line 109 of file view3d_view.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, view3d_camera_to_view_exec(), and view3d_camera_to_view_poll().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_camera_to_view_selected | ( | wmOperatorType * | ot | ) |
Definition at line 154 of file view3d_view.cc.
References ED_operator_scene_editable(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and view3d_camera_to_view_selected_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_clear_render_border | ( | wmOperatorType * | ot | ) |
Definition at line 397 of file view3d_edit.cc.
References clear_render_border_exec(), ED_operator_view3d_active(), OPTYPE_REGISTER, and ot.
Referenced by view3d_operatortypes().
| void VIEW3D_OT_clip_border | ( | wmOperatorType * | ot | ) |
Definition at line 810 of file view3d_edit.cc.
References ED_operator_region_view3d_active(), ot, view3d_clipping_exec(), view3d_clipping_invoke(), WM_gesture_box_cancel(), WM_gesture_box_modal(), and WM_operator_properties_border().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_cursor3d | ( | wmOperatorType * | ot | ) |
Definition at line 1101 of file view3d_edit.cc.
References ED_operator_region_view3d_active(), ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), V3D_CURSOR_ORIENT_GEOM, V3D_CURSOR_ORIENT_NONE, V3D_CURSOR_ORIENT_VIEW, V3D_CURSOR_ORIENT_XFORM, and view3d_cursor3d_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_drop_world | ( | wmOperatorType * | ot | ) |
Definition at line 730 of file view3d_edit.cc.
References drop_world_exec(), drop_world_poll(), OPTYPE_INTERNAL, OPTYPE_UNDO, ot, and WM_operator_properties_id_lookup().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_interactive_add | ( | wmOperatorType * | ot | ) |
Definition at line 1290 of file view3d_placement.cc.
References i, ot, PLACE_ASPECT_FIXED, PLACE_ASPECT_FREE, PLACE_ORIGIN_BASE, PLACE_ORIGIN_CENTER, PLACE_PRIMITIVE_TYPE_CONE, PLACE_PRIMITIVE_TYPE_CUBE, PLACE_PRIMITIVE_TYPE_CYLINDER, PLACE_PRIMITIVE_TYPE_SPHERE_ICO, PLACE_PRIMITIVE_TYPE_SPHERE_UV, PROP_ENUM, PROP_HIDDEN, PROP_NONE, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property(), RNA_def_property_enum_default(), RNA_def_property_enum_items(), RNA_def_property_flag(), RNA_def_property_ui_text(), view3d_interactive_add_cancel(), view3d_interactive_add_invoke(), view3d_interactive_add_modal(), and view3d_interactive_add_poll().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_localview | ( | wmOperatorType * | ot | ) |
Definition at line 1108 of file view3d_view.cc.
References ED_operator_view3d_active(), localview_exec(), OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_localview_remove_from | ( | wmOperatorType * | ot | ) |
Definition at line 1184 of file view3d_view.cc.
References localview_remove_from_exec(), localview_remove_from_poll(), OPTYPE_UNDO, and ot.
Referenced by view3d_operatortypes().
| void VIEW3D_OT_navigate | ( | wmOperatorType * | ot | ) |
Definition at line 552 of file view3d_edit.cc.
References ED_operator_view3d_active(), ot, and view3d_navigate_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_object_as_camera | ( | wmOperatorType * | ot | ) |
Definition at line 292 of file view3d_view.cc.
References ED_operator_rv3d_user_region_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and view3d_setobjectascamera_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_object_mode_pie_or_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 2590 of file view3d_buttons.cc.
References ED_operator_view3d_active(), ot, and view3d_object_mode_menu_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_render_border | ( | wmOperatorType * | ot | ) |
Definition at line 334 of file view3d_edit.cc.
References ED_operator_region_view3d_active(), OPTYPE_REGISTER, ot, render_border_exec(), WM_gesture_box_cancel(), WM_gesture_box_invoke(), WM_gesture_box_modal(), and WM_operator_properties_border().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_ruler_add | ( | wmOperatorType * | ot | ) |
Definition at line 1424 of file view3d_gizmo_ruler.cc.
References OPTYPE_INTERNAL, OPTYPE_UNDO, ot, view3d_ruler_add_invoke(), and view3d_ruler_poll().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_ruler_remove | ( | wmOperatorType * | ot | ) |
Definition at line 1485 of file view3d_gizmo_ruler.cc.
References OPTYPE_INTERNAL, OPTYPE_UNDO, ot, view3d_ruler_poll(), and view3d_ruler_remove_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_select | ( | wmOperatorType * | ot | ) |
Definition at line 3665 of file view3d_select.cc.
References ED_operator_view3d_active(), ED_select_pick_get_name(), OPTYPE_UNDO, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_int_vector(), RNA_def_property_flag(), view3d_select_exec(), view3d_select_invoke(), and WM_operator_properties_mouse_select().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 4680 of file view3d_select.cc.
References OPTYPE_UNDO, ot, view3d_box_select_exec(), view3d_selectable_data(), WM_gesture_box_cancel(), WM_gesture_box_invoke(), WM_gesture_box_modal(), WM_operator_properties_gesture_box(), and WM_operator_properties_select_operation().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_select_circle | ( | wmOperatorType * | ot | ) |
Definition at line 5728 of file view3d_select.cc.
References ED_select_circle_get_name(), OPTYPE_UNDO, ot, view3d_circle_select_cancel(), view3d_circle_select_exec(), view3d_circle_select_modal(), view3d_selectable_data(), WM_gesture_circle_invoke(), WM_operator_properties_gesture_circle(), and WM_operator_properties_select_operation_simple().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_select_lasso | ( | wmOperatorType * | ot | ) |
Definition at line 1542 of file view3d_select.cc.
References OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_UNDO, ot, view3d_lasso_select_exec(), view3d_selectable_data(), WM_gesture_lasso_cancel(), WM_gesture_lasso_invoke(), WM_gesture_lasso_modal(), WM_operator_properties_gesture_lasso(), and WM_operator_properties_select_operation().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_select_menu | ( | wmOperatorType * | ot | ) |
Definition at line 1697 of file view3d_select.cc.
References object_select_menu_enum_itemf(), object_select_menu_exec(), object_select_menu_get_name(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_ENUM_NO_TRANSLATE, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), rna_enum_dummy_NULL_items, and WM_menu_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_snap_cursor_to_active | ( | wmOperatorType * | ot | ) |
Definition at line 1071 of file view3d_snap.cc.
References ED_operator_view3d_active(), OPTYPE_REGISTER, ot, and snap_curs_to_active_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_snap_cursor_to_center | ( | wmOperatorType * | ot | ) |
Definition at line 1105 of file view3d_snap.cc.
References ED_operator_view3d_active(), OPTYPE_REGISTER, ot, and snap_curs_to_center_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_snap_cursor_to_grid | ( | wmOperatorType * | ot | ) |
Definition at line 830 of file view3d_snap.cc.
References ED_operator_region_view3d_active(), OPTYPE_REGISTER, ot, and snap_curs_to_grid_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_snap_cursor_to_selected | ( | wmOperatorType * | ot | ) |
Definition at line 1022 of file view3d_snap.cc.
References ED_operator_view3d_active(), OPTYPE_REGISTER, ot, and snap_curs_to_sel_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_snap_selected_to_active | ( | wmOperatorType * | ot | ) |
Definition at line 788 of file view3d_snap.cc.
References ED_operator_view3d_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and snap_selected_to_active_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_snap_selected_to_cursor | ( | wmOperatorType * | ot | ) |
Definition at line 739 of file view3d_snap.cc.
References ED_operator_view3d_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), and snap_selected_to_cursor_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_snap_selected_to_grid | ( | wmOperatorType * | ot | ) |
Definition at line 267 of file view3d_snap.cc.
References ED_operator_region_view3d_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and snap_sel_to_grid_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_toggle_matcap_flip | ( | wmOperatorType * | ot | ) |
Definition at line 59 of file view3d_header.cc.
References ot, and toggle_matcap_flip_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_toggle_shading | ( | wmOperatorType * | ot | ) |
Definition at line 1195 of file view3d_edit.cc.
References ED_operator_view3d_active(), ot, prop_shading_type_items, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), and toggle_shading_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_toggle_xray | ( | wmOperatorType * | ot | ) |
Definition at line 1251 of file view3d_edit.cc.
References ED_operator_view3d_active(), ot, and toggle_xray_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_center_camera | ( | wmOperatorType * | ot | ) |
Definition at line 207 of file view3d_edit.cc.
References ot, view3d_camera_user_poll(), and view3d_center_camera_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_center_lock | ( | wmOperatorType * | ot | ) |
Definition at line 239 of file view3d_edit.cc.
References ot, view3d_center_lock_exec(), and view3d_lock_poll().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_lock_clear | ( | wmOperatorType * | ot | ) |
Definition at line 97 of file view3d_edit.cc.
References ED_operator_region_view3d_active(), ot, and view_lock_clear_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_lock_to_active | ( | wmOperatorType * | ot | ) |
Definition at line 154 of file view3d_edit.cc.
References ED_operator_region_view3d_active(), ot, and view_lock_to_active_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_persportho | ( | wmOperatorType * | ot | ) |
Definition at line 508 of file view3d_edit.cc.
References ED_operator_rv3d_user_region_poll(), ot, and viewpersportho_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_zoom_camera_1_to_1 | ( | wmOperatorType * | ot | ) |
Definition at line 460 of file view3d_edit.cc.
References ot, view3d_camera_user_poll(), and view3d_zoom_1_to_1_camera_exec().
Referenced by view3d_operatortypes().
| void view3d_smooth_free | ( | RegionView3D * | rv3d | ) |
Definition at line 623 of file view3d_navigate_smoothview.cc.
References MEM_SAFE_FREE, and RegionView3D::sms.
Referenced by view3d_main_region_free().
| void view3d_viewmatrix_set | ( | const Depsgraph * | depsgraph, |
| const Scene * | scene, | ||
| const View3D * | v3d, | ||
| RegionView3D * | rv3d, | ||
| const float | rect_scale[2] ) |
Sets RegionView3D.viewmat
| depsgraph | Depsgraph. |
| scene | Scene for camera and cursor location. |
| v3d | View 3D space data. |
| rv3d | 3D region which stores the final matrices. |
| rect_scale | Optional 2D scale argument, Use when displaying a sub-region, eg: when view3d_winmatrix_set takes a 'rect' argument. |
Definition at line 390 of file view3d_view.cc.
References BKE_pose_channel_find_name(), View3D::camera, copy_v3_v3(), Scene::cursor, DEG_get_evaluated(), depsgraph, RegionView3D::dist, ED_view3d_lock(), invert_m4_m4(), RegionView3D::is_persp, View3DCursor::location, mul_m4_m4m4(), mul_m4_v3(), mul_mat3_m4_v3(), mul_v2_v2fl(), OB_ARMATURE, View3D::ob_center, View3D::ob_center_bone, View3D::ob_center_cursor, obmat_to_viewmat(), RegionView3D::ofs, RegionView3D::ofs_lock, RegionView3D::persp, Object::pose, bPoseChannel::pose_mat, quat_to_mat4(), RV3D_CAMOB, RV3D_LOCK_FLAGS, RV3D_LOCK_ROTATION, RV3D_PERSP, translate_m4(), Object::type, RegionView3D::viewmat, RegionView3D::viewquat, and RegionView3D::winmat.
Referenced by ED_view3d_update_viewmat().
| void view3d_winmatrix_set | ( | const Depsgraph * | depsgraph, |
| ARegion * | region, | ||
| const View3D * | v3d, | ||
| const rcti * | rect ) |
| rect | optional for picking (can be NULL). |
Definition at line 313 of file view3d_view.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), depsgraph, ED_view3d_viewplane_get(), float, GPU_matrix_frustum_set(), GPU_matrix_ortho_set(), GPU_matrix_projection_get, RegionView3D::is_persp, printf, ARegion::regiondata, RegionView3D::winmat, ARegion::winx, ARegion::winy, rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by ED_view3d_update_viewmat().
| void viewplace_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 949 of file view3d_placement.cc.
References wmKeyMap::modal_items, PLACE_MODAL_FIXED_ASPECT_OFF, PLACE_MODAL_FIXED_ASPECT_ON, PLACE_MODAL_PIVOT_CENTER_OFF, PLACE_MODAL_PIVOT_CENTER_ON, PLACE_MODAL_SNAP_OFF, PLACE_MODAL_SNAP_ON, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by view3d_keymap().
|
extern |
Definition at line 12 of file drawobject.cc.
Referenced by drawviewborder().
|
extern |
Definition at line 13 of file drawobject.cc.
Referenced by drawviewborder().
| const char* view3d_context_dir[] |
Definition at line 197 of file view3d_intern.hh.