|
Blender
V2.93
|
Go to the source code of this file.
Classes | |
| struct | Dial3dParams |
| #define USE_SNAP_DETECT_FROM_KEYMAP_HACK |
Definition at line 251 of file ED_gizmo_library.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ED_GIZMO_ARROW_STYLE_NORMAL | |
| ED_GIZMO_ARROW_STYLE_CROSS | |
| ED_GIZMO_ARROW_STYLE_BOX | |
| ED_GIZMO_ARROW_STYLE_CONE | |
Definition at line 78 of file ED_gizmo_library.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ED_GIZMO_ARROW_XFORM_FLAG_INVERTED | |
| ED_GIZMO_ARROW_XFORM_FLAG_CONSTRAINED | |
Definition at line 86 of file ED_gizmo_library.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ED_GIZMO_ARROW_DRAW_FLAG_STEM | |
Definition at line 94 of file ED_gizmo_library.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ED_GIZMO_CAGE2D_XFORM_FLAG_TRANSLATE | |
| ED_GIZMO_CAGE2D_XFORM_FLAG_ROTATE | |
| ED_GIZMO_CAGE2D_XFORM_FLAG_SCALE | |
| ED_GIZMO_CAGE2D_XFORM_FLAG_SCALE_UNIFORM | |
| ED_GIZMO_CAGE2D_XFORM_FLAG_SCALE_SIGNED | |
Definition at line 105 of file ED_gizmo_library.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ED_GIZMO_CAGE2D_STYLE_BOX | |
| ED_GIZMO_CAGE2D_STYLE_CIRCLE | |
Definition at line 114 of file ED_gizmo_library.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ED_GIZMO_CAGE2D_DRAW_FLAG_XFORM_CENTER_HANDLE | Draw a central handle (instead of having the entire area selectable) Needed for large rectangles that we don't want to swallow all events. |
Definition at line 120 of file ED_gizmo_library.h.
| anonymous enum |
Definition at line 127 of file ED_gizmo_library.h.
| anonymous enum |
Definition at line 143 of file ED_gizmo_library.h.
| anonymous enum |
Definition at line 182 of file ED_gizmo_library.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ED_GIZMO_MOVE_DRAW_FLAG_NOP | |
| ED_GIZMO_MOVE_DRAW_FLAG_FILL | |
| ED_GIZMO_MOVE_DRAW_FLAG_FILL_SELECT | |
| ED_GIZMO_MOVE_DRAW_FLAG_ALIGN_VIEW | |
Definition at line 197 of file ED_gizmo_library.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ED_GIZMO_MOVE_STYLE_RING_2D | |
| ED_GIZMO_MOVE_STYLE_CROSS_2D | |
Definition at line 205 of file ED_gizmo_library.h.
| anonymous enum |
Definition at line 213 of file ED_gizmo_library.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ED_GIZMO_PRIMITIVE_STYLE_PLANE | |
Definition at line 226 of file ED_gizmo_library.h.
| enum eSnapGizmo |
| Enumerator | |
|---|---|
| ED_SNAPGIZMO_TOGGLE_ALWAYS_TRUE | |
Definition at line 264 of file ED_gizmo_library.h.
Define a custom factor for arrow min/max distance
Definition at line 475 of file arrow3d_gizmo.c.
References BLI_assert, ArrowGizmo3D::data, GizmoCommonData::range_fac, WM_gizmo_target_property_find(), and WM_gizmo_target_property_is_valid().
Referenced by WIDGETGROUP_camera_refresh(), WIDGETGROUP_forcefield_setup(), and WIDGETGROUP_light_spot_setup().
Define a custom property UI range
Definition at line 456 of file arrow3d_gizmo.c.
References BLI_assert, ArrowGizmo3D::data, GizmoCommonData::is_custom_range_set, GizmoCommonData::max, max, min, GizmoCommonData::min, GizmoCommonData::range, WM_gizmo_target_property_find(), and WM_gizmo_target_property_is_valid().
Referenced by WIDGETGROUP_forcefield_setup().
| void ED_gizmo_draw_preset_arrow | ( | const struct wmGizmo * | gz, |
| float | mat[4][4], | ||
| int | axis, | ||
| int | select_id | ||
| ) |
Definition at line 98 of file gizmo_library_presets.c.
References ed_gizmo_draw_preset_geometry(), OB_POSZ, single_axis_convert(), and wm_gizmo_geom_data_arrow.
Definition at line 93 of file gizmo_library_presets.c.
References ed_gizmo_draw_preset_geometry(), and wm_gizmo_geom_data_cube.
| void ED_gizmo_draw_preset_circle | ( | const struct wmGizmo * | gz, |
| float | mat[4][4], | ||
| int | axis, | ||
| int | select_id | ||
| ) |
Definition at line 105 of file gizmo_library_presets.c.
References ed_gizmo_draw_preset_geometry(), OB_POSZ, single_axis_convert(), and wm_gizmo_geom_data_dial.
| void ED_gizmo_draw_preset_facemap | ( | const struct bContext * | C, |
| const struct wmGizmo * | gz, | ||
| struct Object * | ob, | ||
| const int | facemap, | ||
| int | select_id | ||
| ) |
| void ED_gizmotypes_arrow_3d | ( | void | ) |
Definition at line 541 of file arrow3d_gizmo.c.
References GIZMO_GT_arrow_3d(), and WM_gizmotype_append().
Referenced by ED_spacetypes_init().
| void ED_gizmotypes_blank_3d | ( | void | ) |
Definition at line 73 of file blank3d_gizmo.c.
References GIZMO_GT_blank_3d(), and WM_gizmotype_append().
Referenced by ED_spacetypes_init().
| void ED_gizmotypes_button_2d | ( | void | ) |
Definition at line 424 of file button2d_gizmo.c.
References GIZMO_GT_button_2d(), and WM_gizmotype_append().
Referenced by ED_spacetypes_init().
| void ED_gizmotypes_cage_2d | ( | void | ) |
Definition at line 1209 of file cage2d_gizmo.c.
References GIZMO_GT_cage_2d(), and WM_gizmotype_append().
Referenced by ED_spacetypes_init().
| void ED_gizmotypes_cage_3d | ( | void | ) |
Definition at line 697 of file cage3d_gizmo.c.
References GIZMO_GT_cage_3d(), and WM_gizmotype_append().
Referenced by ED_spacetypes_init().
| void ED_gizmotypes_dial_3d | ( | void | ) |
Definition at line 706 of file dial3d_gizmo.c.
References GIZMO_GT_dial_3d(), and WM_gizmotype_append().
Referenced by ED_spacetypes_init().
| void ED_gizmotypes_dial_3d_draw_util | ( | const float | matrix_basis[4][4], |
| const float | matrix_final[4][4], | ||
| const float | line_width, | ||
| const float | color[4], | ||
| const bool | select, | ||
| struct Dial3dParams * | params | ||
| ) |
Definition at line 600 of file dial3d_gizmo.c.
References dial_geom_draw(), dial_ghostarc_draw_incremental_angle(), dial_ghostarc_draw_with_helplines(), ED_GIZMO_DIAL_DRAW_FLAG_ANGLE_MIRROR, ED_GIZMO_DIAL_DRAW_FLAG_ANGLE_VALUE, GPU_matrix_mul, GPU_matrix_pop(), GPU_matrix_push(), GPU_polygon_smooth(), M_PI, params, and select().
Referenced by dial_draw_intern(), and drawDial3d().
| void ED_gizmotypes_facemap_3d | ( | void | ) |
| void ED_gizmotypes_move_3d | ( | void | ) |
Definition at line 478 of file move3d_gizmo.c.
References GIZMO_GT_move_3d(), and WM_gizmotype_append().
Referenced by ED_spacetypes_init().
| void ED_gizmotypes_preselect_3d | ( | void | ) |
Definition at line 442 of file view3d_gizmo_preselect_type.c.
References GIZMO_GT_mesh_preselect_edgering_3d(), GIZMO_GT_mesh_preselect_elem_3d(), and WM_gizmotype_append().
Referenced by ED_spacetypes_init().
| void ED_gizmotypes_primitive_3d | ( | void | ) |
Definition at line 179 of file primitive3d_gizmo.c.
References GIZMO_GT_primitive_3d(), and WM_gizmotype_append().
Referenced by ED_spacetypes_init().
| void ED_gizmotypes_snap_3d | ( | void | ) |
Definition at line 768 of file snap3d_gizmo.c.
References GIZMO_GT_snap_3d(), and WM_gizmotype_append().
Referenced by ED_spacetypes_init().
| struct SnapObjectContext* ED_gizmotypes_snap_3d_context_ensure | ( | struct Scene * | scene, |
| const struct ARegion * | region, | ||
| const struct View3D * | v3d, | ||
| struct wmGizmo * | gz | ||
| ) |
| void ED_gizmotypes_snap_3d_data_get | ( | struct wmGizmo * | gz, |
| float | r_loc[3], | ||
| float | r_nor[3], | ||
| int | r_elem_index[3], | ||
| int * | r_snap_elem | ||
| ) |
Definition at line 412 of file snap3d_gizmo.c.
References BLI_assert, copy_v3_v3(), copy_v3_v3_int(), SnapGizmo3D::elem_index, SnapGizmo3D::is_enabled, SnapGizmo3D::loc, SnapGizmo3D::nor, and SnapGizmo3D::snap_elem.
Referenced by view3d_interactive_add_modal(), and view3d_ruler_item_mousemove().
| void ED_gizmotypes_snap_3d_draw_util | ( | struct RegionView3D * | rv3d, |
| const float | loc_prev[3], | ||
| const float | loc_curr[3], | ||
| const float | normal[3], | ||
| const uchar | color_line[4], | ||
| const uchar | color_point[4], | ||
| const short | snap_elem_type | ||
| ) |
Definition at line 181 of file snap3d_gizmo.c.
References add_v3_v3(), add_v3_v3v3(), copy_m4_m4(), ED_view3d_pixel_size(), GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), GPU_viewport_size_get_f(), imm_drawcircball(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniform1f(), immUniform2f(), immUniformColor4ubv(), immVertex3f(), immVertex3fv(), immVertexFormat(), mul_v3_v3fl(), negate_v3_v3(), normal, pos, SCE_SNAP_MODE_EDGE_PERPENDICULAR, sub_v3_v3v3(), TH_VERTEX_SIZE, UI_GetThemeValuef(), v1, v2, and RegionView3D::viewinv.
Referenced by drawSnapping(), and snap_gizmo_draw().
| void ED_gizmotypes_snap_3d_flag_clear | ( | struct wmGizmo * | gz, |
| eSnapGizmo | flag | ||
| ) |
Definition at line 290 of file snap3d_gizmo.c.
References SnapGizmo3D::flag.
Referenced by view3d_interactive_add_modal().
| void ED_gizmotypes_snap_3d_flag_set | ( | struct wmGizmo * | gz, |
| eSnapGizmo | flag | ||
| ) |
Definition at line 284 of file snap3d_gizmo.c.
References SnapGizmo3D::flag.
Referenced by view3d_interactive_add_modal().
| bool ED_gizmotypes_snap_3d_flag_test | ( | struct wmGizmo * | gz, |
| eSnapGizmo | flag | ||
| ) |
Definition at line 296 of file snap3d_gizmo.c.
References SnapGizmo3D::flag.
| bool ED_gizmotypes_snap_3d_invert_snap_get | ( | struct wmGizmo * | gz | ) |
Definition at line 302 of file snap3d_gizmo.c.
References SnapGizmo3D::invert_snap.
Referenced by view3d_interactive_add_begin().
| bool ED_gizmotypes_snap_3d_is_enabled | ( | struct wmGizmo * | gz | ) |
Definition at line 312 of file snap3d_gizmo.c.
References SnapGizmo3D::is_enabled.
Referenced by view3d_interactive_add_calc_plane(), and view3d_ruler_item_mousemove().