Blender V5.3
view3d_navigate_view_all.cc File Reference
#include "BKE_armature.hh"
#include "BKE_context.hh"
#include "BKE_layer.hh"
#include "BKE_library.hh"
#include "BKE_object.hh"
#include "BKE_paint.hh"
#include "BKE_paint_types.hh"
#include "BKE_scene.hh"
#include "BKE_screen.hh"
#include "BLI_bounds.hh"
#include "BLI_listbase.hh"
#include "BLI_math_matrix.hh"
#include "BLI_math_vector_c.hh"
#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.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

View All Operator

Move & Zoom the view to fit all of its contents.

static bool blender::view3d_object_skip_minmax (const View3D *v3d, const RegionView3D *rv3d, const Object *ob, const bool skip_camera, bool *r_only_center)
static void blender::view3d_object_calc_minmax (Depsgraph *depsgraph, Object *ob_eval, const bool only_center, float3 &min, float3 &max)
static void blender::view3d_from_minmax (bContext *C, View3D *v3d, ARegion *region, const float min[3], const float max[3], bool do_zoom, const int smooth_viewtx)
static void blender::view3d_from_minmax_multi (bContext *C, View3D *v3d, const float min[3], const float max[3], const bool do_zoom, const int smooth_viewtx)
static wmOperatorStatus blender::view3d_all_exec (bContext *C, wmOperator *op)
void blender::VIEW3D_OT_view_all (wmOperatorType *ot)
High Level Viewport Bounds Calculation

Move & Zoom the view to fit all of its contents.

std::optional< Bounds< float3 > > blender::view3d_calc_minmax_visible (Depsgraph *depsgraph, ScrArea *area, ARegion *region, bool use_all_regions, bool clip_bounds)
std::optional< Bounds< float3 > > blender::view3d_calc_minmax_selected (Depsgraph *depsgraph, ScrArea *area, ARegion *region, bool use_all_regions, bool clip_bounds, bool *r_do_zoom)
bool blender::view3d_calc_point_in_selected_bounds (Depsgraph *depsgraph, struct ViewLayer *view_layer_eval, const View3D *v3d, const float3 &point, const float scale_margin)
Frame Selected Operator

Move & Zoom the view to fit selected contents.

static wmOperatorStatus blender::viewselected_exec (bContext *C, wmOperator *op)
void blender::VIEW3D_OT_view_selected (wmOperatorType *ot)