Blender V5.0
view3d_intern.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2008 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "ED_view3d.hh"
12
13/* internal exports only */
14
15struct ARegion;
16struct ARegionType;
17struct BoundBox;
18struct Depsgraph;
19struct Object;
20struct Scene;
21struct bContext;
24struct wmGizmoGroupType;
25struct wmGizmoType;
26struct wmKeyConfig;
27struct wmOperatorType;
28
29/* `view3d_header.cc` */
30
32
33/* `view3d_context.cc` */
34
35int view3d_context(const bContext *C, const char *member, bContextDataResult *result);
36
37/* `view3d_ops.cc` */
38
40
41/* `view3d_edit.cc` */
42
59
60/* `view3d_draw.cc` */
61
62void view3d_main_region_draw(const bContext *C, ARegion *region);
66void view3d_draw_region_info(const bContext *C, ARegion *region);
67
68void view3d_depths_rect_create(ARegion *region, rcti *rect, ViewDepths *r_d);
74float view3d_depth_near_ex(ViewDepths *d, int r_xy[2]);
76
77/* view3d_dropboxes.cc */
78
79void view3d_dropboxes();
80
81/* view3d_select.cc */
82
89
90/* `view3d_utils.cc` */
91
95void view3d_boxview_copy(ScrArea *area, ARegion *region);
99void view3d_boxview_sync(ScrArea *area, ARegion *region);
100
101bool ED_view3d_boundbox_clip_ex(const RegionView3D *rv3d, const BoundBox *bb, float obmat[4][4]);
102bool ED_view3d_boundbox_clip(RegionView3D *rv3d, const BoundBox *bb);
103
104/* `view3d_view.cc` */
105
111
115void view3d_winmatrix_set(const Depsgraph *depsgraph,
116 ARegion *region,
117 const View3D *v3d,
118 const rcti *rect);
131void view3d_viewmatrix_set(const Depsgraph *depsgraph,
132 const Scene *scene,
133 const View3D *v3d,
134 RegionView3D *rv3d,
135 const float rect_scale[2]);
136
137/* Called in `transform_ops.cc`, on each regeneration of key-maps. */
138
139/* `view3d_placement.cc` */
140
142
143/* `view3d_buttons.cc` */
144
147
148/* `view3d_camera_control.cc` */
149
155 Scene *scene,
156 View3D *v3d,
157 RegionView3D *rv3d);
162 View3DCameraControl *vctrl, bool use_autokey, bContext *C, bool do_rotate, bool do_translate);
174
175/* `view3d_snap.cc` */
176
181bool ED_view3d_minmax_verts(const Scene *scene, Object *obedit, float min[3], float max[3]);
182
190
191/* `view3d_placement.cc` */
192
194
195/* space_view3d.cc */
196
197extern "C" const char *view3d_context_dir[]; /* doc access */
198
199/* view3d_widgets.c */
200
216
221
223
225
226/* workaround for trivial but noticeable camera bug caused by imprecision
227 * between view border calculation in 2D/3D space, workaround for bug #28037.
228 * without this define we get the old behavior which is to try and align them
229 * both which _mostly_ works fine, but when the camera moves beyond ~1000 in
230 * any direction it starts to fail */
231#define VIEW3D_CAMERA_BORDER_HACK
232#ifdef VIEW3D_CAMERA_BORDER_HACK
235#endif
236
237/* view3d_navigate_smoothview.cc */
unsigned char uchar
#define C
Definition RandGen.cpp:29
BPy_StructRNA * depsgraph
uchar view3d_camera_border_hack_col[3]
Definition drawobject.cc:12
bool view3d_camera_border_hack_test
Definition drawobject.cc:13
#define min(a, b)
Definition sort.cc:36
max
Definition text_draw.cc:251
const char * view3d_context_dir[]
bool ED_view3d_boundbox_clip(RegionView3D *rv3d, const BoundBox *bb)
void VIEW3D_OT_select(wmOperatorType *ot)
void view3d_viewmatrix_set(const Depsgraph *depsgraph, const Scene *scene, const View3D *v3d, RegionView3D *rv3d, const float rect_scale[2])
void ED_view3d_cameracontrol_update(View3DCameraControl *vctrl, bool use_autokey, bContext *C, bool do_rotate, bool do_translate)
View3DCameraControl * ED_view3d_cameracontrol_acquire(Depsgraph *depsgraph, Scene *scene, View3D *v3d, RegionView3D *rv3d)
void VIEW3D_OT_localview(wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_grid(wmOperatorType *ot)
void VIEW3D_OT_bone_select_menu(wmOperatorType *ot)
void VIEW3D_OT_view_persportho(wmOperatorType *ot)
void view3d_draw_region_info(const bContext *C, ARegion *region)
void VIEW3D_GGT_navigate(wmGizmoGroupType *gzgt)
void VIEW3D_OT_select_box(wmOperatorType *ot)
void VIEW3D_OT_localview_remove_from(wmOperatorType *ot)
void VIEW3D_OT_ruler_remove(wmOperatorType *ot)
void VIEW3D_OT_toggle_xray(wmOperatorType *ot)
void VIEW3D_OT_camera_to_view_selected(wmOperatorType *ot)
void view3d_main_region_draw(const bContext *C, ARegion *region)
void VIEW3D_GGT_light_spot(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_ruler(wmGizmoGroupType *gzgt)
void VIEW3D_OT_view_center_camera(wmOperatorType *ot)
void VIEW3D_OT_view_center_lock(wmOperatorType *ot)
void VIEW3D_OT_zoom_camera_1_to_1(wmOperatorType *ot)
void view3d_depths_rect_create(ARegion *region, rcti *rect, ViewDepths *r_d)
void VIEW3D_OT_clip_border(wmOperatorType *ot)
void VIEW3D_OT_ruler_add(wmOperatorType *ot)
void VIEW3D_GGT_placement(wmGizmoGroupType *gzgt)
void view3d_dropboxes()
void VIEW3D_GGT_tool_generic_handle_free(wmGizmoGroupType *gzgt)
float view3d_depth_near(ViewDepths *d)
bool ED_view3d_minmax_verts(const Scene *scene, Object *obedit, float min[3], float max[3])
void VIEW3D_OT_snap_selected_to_grid(wmOperatorType *ot)
void VIEW3D_GGT_empty_image(wmGizmoGroupType *gzgt)
void VIEW3D_OT_toggle_matcap_flip(wmOperatorType *ot)
void VIEW3D_OT_view_lock_to_active(wmOperatorType *ot)
void VIEW3D_GGT_light_area(wmGizmoGroupType *gzgt)
void view3d_buttons_register(ARegionType *art)
void VIEW3D_OT_interactive_add(wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_selected(wmOperatorType *ot)
void VIEW3D_OT_cursor3d(wmOperatorType *ot)
void VIEW3D_OT_select_menu(wmOperatorType *ot)
void VIEW3D_OT_clear_render_border(wmOperatorType *ot)
void VIEW3D_OT_view_lock_clear(wmOperatorType *ot)
void VIEW3D_GGT_camera(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_tool_generic_handle_normal(wmGizmoGroupType *gzgt)
void view3d_operatortypes()
void VIEW3D_GGT_mesh_preselect_edgering(wmGizmoGroupType *gzgt)
void VIEW3D_OT_navigate(wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_center(wmOperatorType *ot)
void view3d_boxview_copy(ScrArea *area, ARegion *region)
void VIEW3D_GGT_mesh_preselect_elem(wmGizmoGroupType *gzgt)
int view3d_context(const bContext *C, const char *member, bContextDataResult *result)
void ED_view3d_cameracontrol_release(View3DCameraControl *vctrl, bool restore)
bool ED_view3d_boundbox_clip_ex(const RegionView3D *rv3d, const BoundBox *bb, float obmat[4][4])
void view3d_boxview_sync(ScrArea *area, ARegion *region)
void VIEW3D_OT_object_mode_pie_or_toggle(wmOperatorType *ot)
void VIEW3D_GGT_light_point(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_force_field(wmGizmoGroupType *gzgt)
void VIEW3D_OT_camera_background_image_remove(wmOperatorType *ot)
void VIEW3D_OT_snap_selected_to_active(wmOperatorType *ot)
void VIEW3D_OT_render_border(wmOperatorType *ot)
void VIEW3D_OT_select_circle(wmOperatorType *ot)
void VIEW3D_GGT_camera_view(wmGizmoGroupType *gzgt)
Object * ED_view3d_cameracontrol_object_get(View3DCameraControl *vctrl)
void VIEW3D_GT_ruler_item(wmGizmoType *gzt)
void VIEW3D_OT_select_lasso(wmOperatorType *ot)
void VIEW3D_OT_toggle_shading(wmOperatorType *ot)
void view3d_winmatrix_set(const Depsgraph *depsgraph, ARegion *region, const View3D *v3d, const rcti *rect)
void VIEW3D_GT_navigate_rotate(wmGizmoType *gzt)
void VIEW3D_OT_snap_cursor_to_active(wmOperatorType *ot)
void VIEW3D_OT_camera_to_view(wmOperatorType *ot)
void viewplace_modal_keymap(wmKeyConfig *keyconf)
void VIEW3D_OT_snap_selected_to_cursor(wmOperatorType *ot)
void VIEW3D_GGT_armature_spline(wmGizmoGroupType *gzgt)
void VIEW3D_OT_drop_world(wmOperatorType *ot)
void view3d_smooth_free(RegionView3D *rv3d)
void VIEW3D_GGT_light_target(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_geometry_nodes(struct wmGizmoGroupType *gzgt)
float view3d_depth_near_ex(ViewDepths *d, int r_xy[2])
void VIEW3D_OT_object_as_camera(wmOperatorType *ot)
void VIEW3D_OT_camera_background_image_add(wmOperatorType *ot)
wmOperatorType * ot
Definition wm_files.cc:4237