Blender V4.5
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);
73
74/* view3d_dropboxes.cc */
75
76void view3d_dropboxes();
77
78/* view3d_select.cc */
79
86
87/* `view3d_utils.cc` */
88
92void view3d_boxview_copy(ScrArea *area, ARegion *region);
96void view3d_boxview_sync(ScrArea *area, ARegion *region);
97
98bool ED_view3d_boundbox_clip_ex(const RegionView3D *rv3d, const BoundBox *bb, float obmat[4][4]);
99bool ED_view3d_boundbox_clip(RegionView3D *rv3d, const BoundBox *bb);
100
101/* `view3d_view.cc` */
102
108
112void view3d_winmatrix_set(const Depsgraph *depsgraph,
113 ARegion *region,
114 const View3D *v3d,
115 const rcti *rect);
128void view3d_viewmatrix_set(const Depsgraph *depsgraph,
129 const Scene *scene,
130 const View3D *v3d,
131 RegionView3D *rv3d,
132 const float rect_scale[2]);
133
134/* Called in `transform_ops.cc`, on each regeneration of key-maps. */
135
136/* `view3d_placement.cc` */
137
139
140/* `view3d_buttons.cc` */
141
144
145/* `view3d_camera_control.cc` */
146
152 Scene *scene,
153 View3D *v3d,
154 RegionView3D *rv3d);
159 View3DCameraControl *vctrl, bool use_autokey, bContext *C, bool do_rotate, bool do_translate);
171
172/* `view3d_snap.cc` */
173
178bool ED_view3d_minmax_verts(const Scene *scene, Object *obedit, float min[3], float max[3]);
179
187
188/* `view3d_placement.cc` */
189
191
192/* space_view3d.cc */
193
194extern "C" const char *view3d_context_dir[]; /* doc access */
195
196/* view3d_widgets.c */
197
213
218
220
222
223/* workaround for trivial but noticeable camera bug caused by imprecision
224 * between view border calculation in 2D/3D space, workaround for bug #28037.
225 * without this define we get the old behavior which is to try and align them
226 * both which _mostly_ works fine, but when the camera moves beyond ~1000 in
227 * any direction it starts to fail */
228#define VIEW3D_CAMERA_BORDER_HACK
229#ifdef VIEW3D_CAMERA_BORDER_HACK
232#endif
233
234/* 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)
void VIEW3D_OT_object_as_camera(wmOperatorType *ot)
void VIEW3D_OT_camera_background_image_add(wmOperatorType *ot)
wmOperatorType * ot
Definition wm_files.cc:4226