Blender V4.3
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
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_select.cc */
75
82
83/* `view3d_utils.cc` */
84
88void view3d_boxview_copy(ScrArea *area, ARegion *region);
92void view3d_boxview_sync(ScrArea *area, ARegion *region);
93
94bool ED_view3d_boundbox_clip_ex(const RegionView3D *rv3d, const BoundBox *bb, float obmat[4][4]);
95bool ED_view3d_boundbox_clip(RegionView3D *rv3d, const BoundBox *bb);
96
97/* `view3d_view.cc` */
98
104
108void view3d_winmatrix_set(const Depsgraph *depsgraph,
109 ARegion *region,
110 const View3D *v3d,
111 const rcti *rect);
124void view3d_viewmatrix_set(const Depsgraph *depsgraph,
125 const Scene *scene,
126 const View3D *v3d,
127 RegionView3D *rv3d,
128 const float rect_scale[2]);
129
130/* Called in `transform_ops.cc`, on each regeneration of key-maps. */
131
132/* `view3d_placement.cc` */
133
135
136/* `view3d_buttons.cc` */
137
140
141/* `view3d_camera_control.cc` */
142
148 Scene *scene,
149 View3D *v3d,
150 RegionView3D *rv3d);
155 View3DCameraControl *vctrl, bool use_autokey, bContext *C, bool do_rotate, bool do_translate);
167
168/* `view3d_snap.cc` */
169
174bool ED_view3d_minmax_verts(const Scene *scene, Object *obedit, float min[3], float max[3]);
175
183
184/* `view3d_placement.cc` */
185
187
188/* space_view3d.cc */
189
190extern "C" const char *view3d_context_dir[]; /* doc access */
191
192/* view3d_widgets.c */
193
209
214
216
218
219/* workaround for trivial but noticeable camera bug caused by imprecision
220 * between view border calculation in 2D/3D space, workaround for bug #28037.
221 * without this define we get the old behavior which is to try and align them
222 * both which _mostly_ works fine, but when the camera moves beyond ~1000 in
223 * any direction it starts to fail */
224#define VIEW3D_CAMERA_BORDER_HACK
225#ifdef VIEW3D_CAMERA_BORDER_HACK
228#endif
unsigned char uchar
const Depsgraph * depsgraph
#define min(a, b)
Definition sort.c:32
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_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)
uchar view3d_camera_border_hack_col[3]
Definition drawobject.cc:14
void VIEW3D_GGT_light_area(wmGizmoGroupType *gzgt)
bool view3d_camera_border_hack_test
Definition drawobject.cc:15
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)
const char * view3d_context_dir[]
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_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:4125