Blender V5.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
8
9#pragma once
10
11#include "ED_view3d.hh"
12
13namespace blender {
14
15/* internal exports only */
16
17struct ARegion;
18struct ARegionType;
19struct BoundBox;
20struct Depsgraph;
21struct Object;
22struct Scene;
23struct bContext;
26struct wmGizmoGroupType;
27struct wmGizmoType;
28struct wmKeyConfig;
29struct wmOperatorType;
30
31/* `view3d_header.cc` */
32
34
35/* `view3d_context.cc` */
36
37int view3d_context(const bContext *C, const char *member, bContextDataResult *result);
38
39/* `view3d_ops.cc` */
40
42
43/* `view3d_edit.cc` */
44
63
64/* `view3d_draw.cc` */
65
66void view3d_main_region_draw(const bContext *C, ARegion *region);
70void view3d_draw_region_info(const bContext *C, ARegion *region);
71
72void view3d_depths_rect_create(ARegion *region, rcti *rect, ViewDepths *r_d);
78float view3d_depth_near_ex(ViewDepths *d, int r_xy[2]);
80
81/* view3d_dropboxes.cc */
82
83void view3d_dropboxes();
84
85/* view3d_select.cc */
86
93
94/* `view3d_utils.cc` */
95
99void view3d_boxview_copy(ScrArea *area, ARegion *region);
103void view3d_boxview_sync(ScrArea *area, ARegion *region);
104
105bool ED_view3d_boundbox_clip_ex(const RegionView3D *rv3d, const BoundBox *bb, float obmat[4][4]);
106bool ED_view3d_boundbox_clip(RegionView3D *rv3d, const BoundBox *bb);
107
108/* `view3d_view.cc` */
109
115
119void view3d_winmatrix_set(const Depsgraph *depsgraph,
120 ARegion *region,
121 const View3D *v3d,
122 const rcti *rect);
135void view3d_viewmatrix_set(const Depsgraph *depsgraph,
136 const Scene *scene,
137 const View3D *v3d,
138 RegionView3D *rv3d,
139 const float rect_scale[2]);
140
141/* Called in `transform_ops.cc`, on each regeneration of key-maps. */
142
143/* `view3d_placement.cc` */
144
146
147/* `view3d_buttons.cc` */
148
151
152/* `view3d_camera_control.cc` */
153
159 Scene *scene,
160 View3D *v3d,
161 RegionView3D *rv3d);
166 View3DCameraControl *vctrl, bool use_autokey, bContext *C, bool do_rotate, bool do_translate);
178
179/* `view3d_snap.cc` */
180
185bool ED_view3d_minmax_verts(const Scene *scene, Object *obedit, float min[3], float max[3]);
186
194
195/* `view3d_placement.cc` */
196
198
199/* `view3d_location_scouting.cc` */
200
203
204/* space_view3d.cc */
205
206extern "C" const char *view3d_context_dir[]; /* doc access */
207
208/* view3d_gizmo_*.cc */
209
225
230
232
234
235/* workaround for trivial but noticeable camera bug caused by imprecision
236 * between view border calculation in 2D/3D space, workaround for bug #28037.
237 * without this define we get the old behavior which is to try and align them
238 * both which _mostly_ works fine, but when the camera moves beyond ~1000 in
239 * any direction it starts to fail */
240#define VIEW3D_CAMERA_BORDER_HACK
241#ifdef VIEW3D_CAMERA_BORDER_HACK
244#endif
245
246/* view3d_navigate_smoothview.cc */
247void view3d_smooth_free(RegionView3D *rv3d);
248
249} // namespace blender
#define C
Definition RandGen.cpp:29
btScalar max
unsigned int uchar
BMesh Iterators.
void VIEW3D_OT_view_roll_set(wmOperatorType *ot)
void view3d_operatortypes()
void view3d_viewmatrix_set(const Depsgraph *depsgraph, const Scene *scene, const View3D *v3d, RegionView3D *rv3d, const float rect_scale[2])
void VIEW3D_OT_view_center_lock(wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_active(wmOperatorType *ot)
void VIEW3D_OT_clear_render_border(wmOperatorType *ot)
void VIEW3D_OT_object_as_camera(wmOperatorType *ot)
void VIEW3D_OT_view_persportho(wmOperatorType *ot)
void VIEW3D_OT_clip_border(wmOperatorType *ot)
void VIEW3D_OT_localview(wmOperatorType *ot)
void VIEW3D_GT_navigate_rotate(wmGizmoType *gzt)
void VIEW3D_OT_localview_remove_from(wmOperatorType *ot)
void view3d_depths_rect_create(ARegion *region, rcti *rect, ViewDepths *r_d)
Object * ED_view3d_cameracontrol_object_get(View3DCameraControl *vctrl)
void VIEW3D_OT_view_lock_clear(wmOperatorType *ot)
float view3d_depth_near_ex(ViewDepths *d, int r_xy[2])
void VIEW3D_OT_snap_selected_to_active(wmOperatorType *ot)
void VIEW3D_OT_toggle_shading(wmOperatorType *ot)
void VIEW3D_GGT_force_field(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_geometry_nodes(wmGizmoGroupType *gzgt)
void VIEW3D_OT_view_lock_to_active(wmOperatorType *ot)
void VIEW3D_GGT_mesh_preselect_edgering(wmGizmoGroupType *gzgt)
void VIEW3D_OT_object_mode_pie_or_toggle(wmOperatorType *ot)
void VIEW3D_OT_select_circle(wmOperatorType *ot)
bool ED_view3d_boundbox_clip(RegionView3D *rv3d, const BoundBox *bb)
void VIEW3D_GGT_empty_image(wmGizmoGroupType *gzgt)
void VIEW3D_OT_camera_to_view_selected(wmOperatorType *ot)
void VIEW3D_GGT_light_point(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_camera(wmGizmoGroupType *gzgt)
void VIEW3D_OT_view_center_camera(wmOperatorType *ot)
void view3d_dropboxes()
void vr_location_scouting_capture_review_modal_keymap(wmKeyConfig *keyconf)
void VIEW3D_OT_select(wmOperatorType *ot)
void ED_view3d_cameracontrol_release(View3DCameraControl *vctrl, const bool restore)
void VIEW3D_GGT_camera_view(wmGizmoGroupType *gzgt)
int view3d_context(const bContext *C, const char *member, bContextDataResult *result)
bool ED_view3d_boundbox_clip_ex(const RegionView3D *rv3d, const BoundBox *bb, float obmat[4][4])
void VIEW3D_OT_navigate(wmOperatorType *ot)
void VIEW3D_OT_snap_selected_to_grid(wmOperatorType *ot)
void VIEW3D_OT_bone_select_menu(wmOperatorType *ot)
void VIEW3D_OT_cursor3d(wmOperatorType *ot)
void VIEW3D_OT_render_border(wmOperatorType *ot)
void VIEW3D_GGT_tool_generic_handle_free(wmGizmoGroupType *gzgt)
View3DCameraControl * ED_view3d_cameracontrol_acquire(Depsgraph *depsgraph, Scene *scene, View3D *v3d, RegionView3D *rv3d)
void VIEW3D_GGT_placement(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_mesh_preselect_elem(wmGizmoGroupType *gzgt)
void VIEW3D_OT_ruler_remove(wmOperatorType *ot)
void viewplace_modal_keymap(wmKeyConfig *keyconf)
void VIEW3D_OT_zoom_camera_1_to_1(wmOperatorType *ot)
void VIEW3D_OT_select_lasso(wmOperatorType *ot)
void view3d_smooth_free(RegionView3D *rv3d)
void VIEW3D_GGT_light_spot(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_light_target(wmGizmoGroupType *gzgt)
bool view3d_camera_border_hack_test
Definition drawobject.cc:15
void VIEW3D_OT_toggle_matcap_flip(wmOperatorType *ot)
void VIEW3D_OT_snap_selected_to_cursor(wmOperatorType *ot)
void VIEW3D_OT_vr_location_scouting_capture_review(wmOperatorType *ot)
const char * view3d_context_dir[]
void VIEW3D_OT_snap_cursor_to_grid(wmOperatorType *ot)
void view3d_boxview_copy(ScrArea *area, ARegion *region)
void VIEW3D_OT_view_flip(wmOperatorType *ot)
void VIEW3D_GGT_armature_spline(wmGizmoGroupType *gzgt)
void VIEW3D_GGT_tool_generic_handle_normal(wmGizmoGroupType *gzgt)
void view3d_winmatrix_set(const Depsgraph *depsgraph, ARegion *region, const View3D *v3d, const rcti *rect)
void view3d_draw_region_info(const bContext *C, ARegion *region)
void VIEW3D_GGT_light_area(wmGizmoGroupType *gzgt)
void VIEW3D_OT_toggle_xray(wmOperatorType *ot)
void VIEW3D_OT_camera_to_view(wmOperatorType *ot)
void VIEW3D_OT_interactive_add(wmOperatorType *ot)
uchar view3d_camera_border_hack_col[3]
Definition drawobject.cc:14
void VIEW3D_GGT_ruler(wmGizmoGroupType *gzgt)
void VIEW3D_GT_ruler_item(wmGizmoType *gzt)
void VIEW3D_OT_ruler_add(wmOperatorType *ot)
float view3d_depth_near(ViewDepths *d)
void VIEW3D_OT_camera_background_image_remove(wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_center(wmOperatorType *ot)
void VIEW3D_GGT_navigate(wmGizmoGroupType *gzgt)
void VIEW3D_OT_select_box(wmOperatorType *ot)
bool ED_view3d_minmax_verts(const Scene *scene, Object *obedit, float min[3], float max[3])
void ED_view3d_cameracontrol_update(View3DCameraControl *vctrl, const bool use_autokey, bContext *C, const bool do_rotate, const bool do_translate)
void VIEW3D_OT_snap_cursor_to_selected(wmOperatorType *ot)
void VIEW3D_OT_drop_world(wmOperatorType *ot)
void view3d_main_region_draw(const bContext *C, ARegion *region)
void view3d_buttons_register(ARegionType *art)
void view3d_boxview_sync(ScrArea *area, ARegion *region)
void VIEW3D_OT_camera_background_image_add(wmOperatorType *ot)
void VIEW3D_OT_select_menu(wmOperatorType *ot)
#define min(a, b)
Definition sort.cc:38