|
Blender V4.3
|
#include "DNA_gpencil_legacy_types.h"#include "BKE_armature.hh"#include "BKE_context.hh"#include "BKE_gpencil_geom_legacy.h"#include "BKE_layer.hh"#include "BKE_object.hh"#include "BKE_paint.hh"#include "BKE_scene.hh"#include "BLI_bounds_types.hh"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "DEG_depsgraph_query.hh"#include "ED_mesh.hh"#include "ED_particle.hh"#include "ED_screen.hh"#include "WM_api.hh"#include "WM_message.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "view3d_intern.hh"#include "view3d_navigate.hh"Go to the source code of this file.
Functions | |
View All Operator | |
Move & Zoom the view to fit all of its contents. | |
| static bool | view3d_object_skip_minmax (const View3D *v3d, const RegionView3D *rv3d, const Object *ob, const bool skip_camera, bool *r_only_center) |
| static void | view3d_object_calc_minmax (Depsgraph *depsgraph, Scene *scene, Object *ob_eval, const bool only_center, float min[3], float max[3]) |
| static void | view3d_from_minmax (bContext *C, View3D *v3d, ARegion *region, const float min[3], const float max[3], bool ok_dist, const int smooth_viewtx) |
| static void | view3d_from_minmax_multi (bContext *C, View3D *v3d, const float min[3], const float max[3], const bool ok_dist, const int smooth_viewtx) |
| static int | view3d_all_exec (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_view_all (wmOperatorType *ot) |
Frame Selected Operator | |
Move & Zoom the view to fit selected contents. | |
| static int | viewselected_exec (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_view_selected (wmOperatorType *ot) |
|
static |
Definition at line 189 of file view3d_navigate_view_all.cc.
References BASE_VISIBLE, BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_area(), CTX_wm_message_bus(), CTX_wm_region(), CTX_wm_region_view3d(), CTX_wm_view3d(), DEG_get_evaluated_scene(), DEG_get_evaluated_view_layer(), DEG_get_original_object(), DEG_id_tag_update(), depsgraph, ED_region_tag_redraw(), ED_view3d_camera_lock_check(), ED_view3d_clipping_clamp_minmax(), ED_view3d_smooth_view_undo_begin(), ED_view3d_smooth_view_undo_end(), View3D::flag2, ID_RECALC_SYNC_TO_EVAL, blender::MatBase< float, 4, 4 >::identity(), INIT_MINMAX, LISTBASE_FOREACH, min, wmOperatorType::name, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RV3D_CLIPPING_ENABLED, wmOperator::type, V3D_LOCK_CAMERA, view3d_from_minmax(), view3d_from_minmax_multi(), view3d_object_calc_minmax(), view3d_object_skip_minmax(), WM_msg_publish_rna_prop, WM_operator_smooth_viewtx_get(), and zero_v3().
Referenced by VIEW3D_OT_view_all().
|
static |
Definition at line 85 of file view3d_navigate_view_all.cc.
References View3D::camera, V3D_SmoothParams::camera_old, View3D::clip_start, CTX_data_ensure_evaluated_depsgraph(), depsgraph, V3D_SmoothParams::dist, ED_view3d_camera_lock_check(), ED_view3d_radius_to_dist(), ED_view3d_smooth_view(), ED_view3d_smooth_view_force_finish(), RegionView3D::is_persp, max_ff(), max_fff(), mid_v3_v3v3(), min, negate_v3(), V3D_SmoothParams::ofs, RegionView3D::persp, RV3D_CAMOB, RV3D_ORTHO, RV3D_PERSP, size(), sub_v3_v3v3(), V3D_SmoothParams::undo_str, and VIEW3D_MARGIN.
Referenced by view3d_all_exec(), view3d_from_minmax_multi(), and viewselected_exec().
|
static |
Same as view3d_from_minmax but for all regions (except cameras).
Definition at line 161 of file view3d_navigate_view_all.cc.
References CTX_wm_area(), ED_view3d_camera_lock_check(), LISTBASE_FOREACH, min, RegionView3D::persp, RGN_TYPE_WINDOW, RV3D_CAMOB, and view3d_from_minmax().
Referenced by view3d_all_exec(), and viewselected_exec().
|
static |
Definition at line 66 of file view3d_navigate_view_all.cc.
References BKE_object_minmax(), BKE_object_minmax_dupli(), depsgraph, min, and minmax_v3v3_v3().
Referenced by view3d_all_exec(), and viewselected_exec().
|
static |
Definition at line 43 of file view3d_navigate_view_all.cc.
References BKE_object_empty_image_frame_is_visible_in_view3d(), BLI_assert, View3D::camera, Object::empty_drawtype, Object::id, OB_EMPTY, OB_EMPTY_IMAGE, ID::orig_id, and Object::type.
Referenced by view3d_all_exec(), and viewselected_exec().
| void VIEW3D_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 271 of file view3d_navigate_view_all.cc.
References wmOperatorType::description, ED_operator_region_view3d_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, V3D_OP_PROP_USE_ALL_REGIONS, view3d_all_exec(), and view3d_operator_properties_common().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_selected | ( | wmOperatorType * | ot | ) |
Definition at line 431 of file view3d_navigate_view_all.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, V3D_OP_PROP_USE_ALL_REGIONS, view3d_operator_properties_common(), view3d_zoom_or_dolly_poll(), and viewselected_exec().
Referenced by view3d_operatortypes().
|
static |
Definition at line 298 of file view3d_navigate_view_all.cc.
References BASE_SELECTED, BASE_SELECTED_EDITABLE, BKE_paint_select_face_test(), BKE_paint_stroke_get_average(), BKE_pose_minmax(), BKE_view_layer_active_object_get(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), bounds(), copy_v3_v3(), CTX_data_edit_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_area(), CTX_wm_region(), CTX_wm_region_view3d(), CTX_wm_view3d(), DEG_get_evaluated_scene(), DEG_get_evaluated_view_layer(), DEG_get_original_object(), depsgraph, ED_view3d_camera_lock_check(), ED_view3d_clipping_clamp_minmax(), ED_view3d_minmax_verts(), ED_view3d_smooth_view_undo_begin(), ED_view3d_smooth_view_undo_end(), View3D::flag2, FOREACH_OBJECT_IN_MODE_BEGIN, FOREACH_OBJECT_IN_MODE_END, INIT_MINMAX, LISTBASE_FOREACH, max, min, minmax_v3v3_v3(), Object::mode, wmOperatorType::name, Base::next, OB_ARMATURE, OB_MODE_PARTICLE_EDIT, OB_MODE_POSE, OB_MODE_SCULPT, OB_MODE_SCULPT_CURVES, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, Base::object, OPERATOR_FINISHED, paintface_minmax(), PE_minmax(), wmOperator::ptr, RNA_boolean_get(), RV3D_CLIPPING_ENABLED, Object::type, wmOperator::type, V3D_LOCK_CAMERA, view3d_from_minmax(), view3d_from_minmax_multi(), view3d_object_calc_minmax(), view3d_object_skip_minmax(), WM_gizmomap_is_any_selected(), WM_gizmomap_minmax(), and WM_operator_smooth_viewtx_get().
Referenced by VIEW3D_OT_view_selected().