|
Blender V4.5
|
#include "MEM_guardedalloc.h"#include "BLI_listbase.h"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BKE_context.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_prototypes.hh"#include "BKE_global.hh"#include "BKE_idprop.hh"#include "BKE_main.hh"#include "WM_api.hh"#include "WM_toolsystem.hh"#include "WM_types.hh"#include "ED_screen.hh"#include "ED_view3d.hh"#include "wm_gizmo_intern.hh"#include "wm_gizmo_wmapi.hh"Go to the source code of this file.
|
static |
Initialize default values and allocate needed memory for members.
Definition at line 107 of file wm_gizmo.cc.
References wmGizmo::color, wmGizmo::color_hi, copy_v4_v4(), gizmo_init(), wmGizmo::line_width, and wmGizmo::scale_basis.
Referenced by gizmo_init(), and wm_gizmo_register().
|
static |
Definition at line 479 of file wm_gizmo.cc.
References gizmo_update_prop_data(), wmGizmoType::property_update, wmGizmo::target_properties, wmGizmo::type, and WM_gizmo_target_property_is_valid().
Referenced by gizmo_update_prop_data(), and wm_gizmo_update().
| void WM_gizmo_calc_matrix_final | ( | const wmGizmo * | gz, |
| float | r_mat[4][4] ) |
Definition at line 570 of file wm_gizmo.cc.
References WM_GizmoMatrixParams::matrix_basis, WM_GizmoMatrixParams::matrix_offset, WM_GizmoMatrixParams::matrix_space, WM_GizmoMatrixParams::scale_final, WM_gizmo_calc_matrix_final(), and WM_gizmo_calc_matrix_final_params().
Referenced by arrow_draw_intern(), button2d_draw_intern(), dial_draw_intern(), gizmo_arrow_invoke(), gizmo_arrow_test_select(), gizmo_button2d_bounds(), gizmo_cage2d_draw_intern(), gizmo_cage3d_draw_intern(), gizmo_move_invoke(), gizmo_primitive_draw_intern(), gizmo_primitive_invoke(), move3d_draw_intern(), and WM_gizmo_calc_matrix_final().
| void WM_gizmo_calc_matrix_final_no_offset | ( | const wmGizmo * | gz, |
| float | r_mat[4][4] ) |
Definition at line 557 of file wm_gizmo.cc.
References WM_GizmoMatrixParams::matrix_basis, WM_GizmoMatrixParams::matrix_offset, WM_GizmoMatrixParams::matrix_space, WM_GizmoMatrixParams::scale_final, unit_m4(), WM_gizmo_calc_matrix_final_no_offset(), and WM_gizmo_calc_matrix_final_params().
Referenced by button2d_draw_intern(), gizmo_button2d_bounds(), gizmo_cage2d_invoke(), gizmo_calc_rect_view_scale(), and WM_gizmo_calc_matrix_final_no_offset().
| void WM_gizmo_calc_matrix_final_params | ( | const wmGizmo * | gz, |
| const WM_GizmoMatrixParams * | params, | ||
| float | r_mat[4][4] ) |
Definition at line 520 of file wm_gizmo.cc.
References copy_m4_m4(), wmGizmo::flag, WM_GizmoMatrixParams::matrix_basis, wmGizmo::matrix_basis, wmGizmoType::matrix_basis_get, WM_GizmoMatrixParams::matrix_offset, wmGizmo::matrix_offset, WM_GizmoMatrixParams::matrix_space, wmGizmo::matrix_space, mul_m4_m4m4(), mul_mat3_m4_fl(), WM_GizmoMatrixParams::scale_final, wmGizmo::scale_final, wmGizmo::type, WM_gizmo_calc_matrix_final_params(), WM_GIZMO_DRAW_NO_SCALE, and WM_GIZMO_DRAW_OFFSET_SCALE.
Referenced by gizmo_axis_draw(), gizmo_calc_matrix_final_no_offset(), gizmo_window_project_2d(), gizmo_window_project_3d(), WM_gizmo_calc_matrix_final(), WM_gizmo_calc_matrix_final_no_offset(), and WM_gizmo_calc_matrix_final_params().
Definition at line 452 of file wm_gizmo.cc.
References C, CTX_wm_region_view3d(), ED_view3d_pixel_size_no_ui_scale(), wmGizmoGroupType::flag, wmGizmo::matrix_basis, wmGizmoType::matrix_basis_get, wmGizmo::matrix_space, mul_m4_m4m4(), wmGizmo::parent_gzgroup, wmGizmo::scale_basis, wmGizmo::scale_final, wmGizmo::type, wmGizmoGroup::type, U, UI_SCALE_FAC, wm_gizmo_calculate_scale(), and WM_GIZMOGROUPTYPE_SCALE.
Referenced by wm_gizmo_calculate_scale(), WM_gizmo_modal_set_while_modal(), and wm_gizmo_update().
| bool WM_gizmo_context_check_drawstep | ( | const bContext * | C, |
| eWM_GizmoFlagMapDrawStep | step ) |
Definition at line 726 of file wm_gizmo.cc.
References C, CTX_wm_manager(), ED_screen_animation_playing(), step, WM_gizmo_context_check_drawstep(), WM_GIZMOMAP_DRAWSTEP_2D, and WM_GIZMOMAP_DRAWSTEP_3D.
Referenced by edbm_preselect_or_active(), WM_gizmo_context_check_drawstep(), WM_gizmomap_draw(), and wm_gizmomap_highlight_find().
|
static |
Definition at line 47 of file wm_gizmo.cc.
References BLI_assert, blender::bke::idprop::create_group(), PointerRNA::data, wmGizmo::drag_part, G_MAIN, IDP_CopyProperty(), wmGizmo::matrix_basis, wmGizmo::matrix_offset, wmGizmo::matrix_space, MEM_callocN(), wmGizmo::properties, wmGizmo::ptr, Vector< T, InlineBufferCapacity, Allocator >::resize(), RNA_pointer_create_discrete(), wmGizmoType::srna, wmGizmoType::struct_size, wmGizmo::target_properties, wmGizmoType::target_property_defs_len, wmGizmo::type, unit_m4(), wm_gizmo_create(), and WM_gizmo_properties_sanitize().
Referenced by wm_gizmo_create(), and WM_gizmo_new_ptr().
| void WM_gizmo_free | ( | wmGizmo * | gz | ) |
Definition at line 130 of file wm_gizmo.cc.
References BPY_DECREF_RNA_INVALIDATE(), wmGizmoProperty::custom_func, wmGizmoType::free, MEM_freeN(), wmGizmo::op_data, wmGizmo::ptr, wmGizmoOpElem::ptr, wmGizmo::py_instance, wmGizmo::target_properties, wmGizmo::type, WM_gizmo_free(), WM_gizmo_properties_free(), and WM_operator_properties_free().
Referenced by WM_gizmo_free(), WM_gizmo_unlink(), and wm_gizmogroup_free().
| void WM_gizmo_get_color | ( | const wmGizmo * | gz, |
| float | color[4] ) |
Definition at line 326 of file wm_gizmo.cc.
References wmGizmo::color, copy_v4_v4(), and WM_gizmo_get_color().
Referenced by WM_gizmo_get_color().
| void WM_gizmo_get_color_highlight | ( | const wmGizmo * | gz, |
| float | color_hi[4] ) |
Definition at line 335 of file wm_gizmo.cc.
References wmGizmo::color_hi, copy_v4_v4(), and WM_gizmo_get_color_highlight().
Referenced by WM_gizmo_get_color_highlight().
| bool WM_gizmo_group_is_modal | ( | const wmGizmoGroup * | gzgroup | ) |
Definition at line 717 of file wm_gizmo.cc.
References wmGizmo::parent_gzgroup, wmGizmoGroup::parent_gzmap, WM_gizmo_group_is_modal(), and WM_gizmomap_get_modal().
Referenced by WIDGETGROUP_camera_refresh(), blender::ed::transform::WIDGETGROUP_gizmo_draw_prepare(), blender::ed::transform::WIDGETGROUP_gizmo_refresh(), and WM_gizmo_group_is_modal().
| bool WM_gizmo_highlight_set | ( | wmGizmoMap * | gzmap, |
| wmGizmo * | gz ) |
Definition at line 404 of file wm_gizmo.cc.
References wmGizmo::highlight_part, WM_gizmo_highlight_set(), and wm_gizmomap_highlight_set().
Referenced by ED_screen_set_active_region(), blender::ed::transform::transform_gizmo_3d_model_from_constraint_and_mode_set(), view3d_ruler_add_invoke(), WM_gizmo_highlight_set(), and WM_gizmo_modal_set_from_setup().
| int wm_gizmo_is_visible | ( | wmGizmo * | gz | ) |
Definition at line 499 of file wm_gizmo.cc.
References wmGizmo::flag, wmGizmo::state, WM_GIZMO_DRAW_HOVER, WM_GIZMO_DRAW_MODAL, WM_GIZMO_DRAW_VALUE, WM_GIZMO_HIDDEN, wm_gizmo_is_visible(), WM_GIZMO_IS_VISIBLE_DRAW, WM_GIZMO_IS_VISIBLE_UPDATE, WM_GIZMO_STATE_HIGHLIGHT, WM_GIZMO_STATE_MODAL, and WM_GIZMO_STATE_SELECT.
Referenced by gizmo_prepare_drawing(), and wm_gizmo_is_visible().
| void WM_gizmo_modal_set_from_setup | ( | wmGizmoMap * | gzmap, |
| bContext * | C, | ||
| wmGizmo * | gz, | ||
| int | part_index, | ||
| const wmEvent * | event ) |
Special function to run from setup so gizmos start out interactive.
We could do this when linking them, but this complicates things since the window update code needs to run first.
Definition at line 418 of file wm_gizmo.cc.
References C, wmGizmo::highlight_part, WM_gizmo_highlight_set(), WM_gizmo_modal_set_from_setup(), wm_gizmomap_modal_set(), WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().
Referenced by gizmo_mesh_placement_modal_from_setup(), gizmo_mesh_spin_redo_modal_from_setup(), and WM_gizmo_modal_set_from_setup().
| void WM_gizmo_modal_set_while_modal | ( | wmGizmoMap * | gzmap, |
| bContext * | C, | ||
| wmGizmo * | gz, | ||
| const wmEvent * | event ) |
Replaces the current gizmo modal. The substitute gizmo start out interactive. It is similar to WM_gizmo_modal_set_from_setup but without operator initialization.
Definition at line 432 of file wm_gizmo.cc.
References C, wmGizmoMap::gzmap_context, wmGizmo::highlight_part, wm_gizmo_calculate_scale(), WM_gizmo_modal_set_while_modal(), and wm_gizmomap_modal_set().
Referenced by blender::ed::transform::transform_gizmo_3d_model_from_constraint_and_mode_set(), blender::ed::transform::transform_mode_snap_source_init(), and WM_gizmo_modal_set_while_modal().
| wmGizmo * WM_gizmo_new | ( | blender::StringRef | idname, |
| wmGizmoGroup * | gzgroup, | ||
| PointerRNA * | properties ) |
| idname | Must be a valid gizmo type name, if you need to check it exists use WM_gizmo_new_ptr because callers of this function don't NULL check the return value. |
Definition at line 98 of file wm_gizmo.cc.
References WM_gizmo_new(), WM_gizmo_new_ptr(), and WM_gizmotype_find().
Referenced by blender::ed::view3d::geometry_nodes_gizmos::DialGizmo::create_gizmos(), blender::ed::view3d::geometry_nodes_gizmos::LinearGizmo::create_gizmos(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::create_gizmos(), tool_generic_create_gizmo(), WIDGETGROUP_camera_view_setup(), WIDGETGROUP_empty_image_setup(), WIDGETGROUP_forcefield_setup(), WIDGETGROUP_light_area_setup(), WIDGETGROUP_light_point_setup(), WIDGETGROUP_light_spot_setup(), WIDGETGROUP_light_target_setup(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_navigate_setup(), blender::ed::space_node::WIDGETGROUP_node_box_mask_setup(), blender::ed::space_node::WIDGETGROUP_node_crop_setup(), blender::ed::space_node::WIDGETGROUP_node_ellipse_mask_setup(), blender::ed::space_node::WIDGETGROUP_node_sbeam_setup(), blender::ed::space_node::WIDGETGROUP_node_split_setup(), blender::ed::space_node::WIDGETGROUP_node_transform_setup(), and WM_gizmo_new().
| wmGizmo * WM_gizmo_new_ptr | ( | const wmGizmoType * | gzt, |
| wmGizmoGroup * | gzgroup, | ||
| PointerRNA * | properties ) |
Definition at line 85 of file wm_gizmo.cc.
References wmGizmoType::setup, wmGizmo::type, wm_gizmo_create(), WM_gizmo_new_ptr(), and wm_gizmo_register().
Referenced by gizmo_mesh_bisect_setup(), blender::ed::transform::gizmo_mesh_extrude_setup(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), blender::ed::transform::gizmogroup2d_init(), blender::ed::transform::gizmogroup2d_resize_init(), blender::ed::transform::gizmogroup2d_rotate_init(), ruler_item_add(), WIDGETGROUP_armature_spline_setup(), WIDGETGROUP_camera_setup(), WIDGETGROUP_mesh_preselect_edgering_setup(), WIDGETGROUP_mesh_preselect_elem_setup(), blender::ed::space_node::WIDGETGROUP_node_corner_pin_setup(), WIDGETGROUP_ruler_setup(), blender::ed::transform::WIDGETGROUP_xform_cage_setup(), blender::ed::transform::WIDGETGROUP_xform_shear_setup(), WM_gizmo_new(), and WM_gizmo_new_ptr().
| wmGizmoOpElem * WM_gizmo_operator_get | ( | wmGizmo * | gz, |
| int | part_index ) |
Definition at line 195 of file wm_gizmo.cc.
References wmGizmo::op_data, and WM_gizmo_operator_get().
Referenced by blender::ed::transform::gizmo2d_resize_invoke_prepare(), blender::ed::transform::gizmo2d_xform_invoke_prepare(), blender::ed::transform::gizmo_mesh_extrude_invoke_prepare(), blender::ed::transform::gizmo_mesh_extrude_setup(), gizmo_tweak_start_and_finish(), ui_tooltip_data_from_gizmo(), blender::ed::transform::WIDGETGROUP_gizmo_invoke_prepare(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_navigate_setup(), blender::ed::transform::WIDGETGROUP_xform_cage_refresh(), blender::ed::transform::WIDGETGROUP_xform_shear_refresh(), blender::ed::transform::WIDGETGROUP_xform_shear_setup(), WM_gizmo_operator_get(), wm_gizmomap_modal_set(), and wm_gizmomaps_handled_modal_update().
| wmOperatorStatus WM_gizmo_operator_invoke | ( | bContext * | C, |
| wmGizmo * | gz, | ||
| wmGizmoOpElem * | gzop, | ||
| const wmEvent * | event ) |
Definition at line 227 of file wm_gizmo.cc.
References C, blender::bke::idprop::create_group(), PointerRNA::data, wmGizmo::flag, IDP_MergeGroup(), wmGizmoOpElem::ptr, wmGizmoOpElem::type, WM_gizmo_operator_invoke(), WM_GIZMO_OPERATOR_TOOL_INIT, WM_OP_INVOKE_DEFAULT, WM_operator_name_call_ptr(), WM_toolsystem_ref_from_context(), and WM_toolsystem_ref_properties_get_from_operator.
Referenced by gizmo_tweak_start_and_finish(), WM_gizmo_operator_invoke(), and wm_gizmomap_modal_set().
| PointerRNA * WM_gizmo_operator_set | ( | wmGizmo * | gz, |
| int | part_index, | ||
| wmOperatorType * | ot, | ||
| IDProperty * | properties ) |
Definition at line 203 of file wm_gizmo.cc.
References BLI_assert, PointerRNA::data, wmGizmo::op_data, wmGizmoOpElem::ptr, Vector< T, InlineBufferCapacity, Allocator >::resize(), Vector< T, InlineBufferCapacity, Allocator >::size(), wmGizmoOpElem::type, WM_gizmo_operator_set(), WM_operator_properties_create_ptr(), and WM_operator_properties_free().
Referenced by blender::ed::transform::gizmo2d_resize_setup(), blender::ed::transform::gizmo2d_rotate_setup(), blender::ed::transform::gizmo2d_xform_setup(), blender::ed::transform::gizmo_mesh_extrude_setup(), gizmo_mesh_spin_init_refresh_axis_orientation(), blender::ed::transform::gizmogroup_init_properties_from_twtype(), WIDGETGROUP_light_target_setup(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_ruler_setup(), blender::ed::transform::WIDGETGROUP_xform_cage_setup(), blender::ed::transform::WIDGETGROUP_xform_shear_setup(), and WM_gizmo_operator_set().
| void WM_gizmo_properties_alloc | ( | PointerRNA ** | ptr, |
| IDProperty ** | properties, | ||
| blender::StringRef | gtstring ) |
Similar to WM_gizmo_properties_create except its uses ID properties used for key-maps and macros.
Definition at line 604 of file wm_gizmo.cc.
References blender::bke::idprop::create_group(), WM_gizmo_properties_alloc(), and WM_gizmo_properties_create().
Referenced by WM_gizmo_properties_alloc().
| void WM_gizmo_properties_clear | ( | PointerRNA * | ptr | ) |
Definition at line 692 of file wm_gizmo.cc.
References PointerRNA::data, IDP_ClearProperty(), and WM_gizmo_properties_clear().
Referenced by WM_gizmo_properties_clear().
| void WM_gizmo_properties_create | ( | PointerRNA * | ptr, |
| const StringRef | gtstring ) |
Definition at line 592 of file wm_gizmo.cc.
References RNA_pointer_create_discrete(), WM_gizmo_properties_create(), WM_gizmo_properties_create_ptr(), and WM_gizmotype_find().
Referenced by WM_gizmo_properties_alloc(), and WM_gizmo_properties_create().
| void WM_gizmo_properties_create_ptr | ( | PointerRNA * | ptr, |
| wmGizmoType * | gzt ) |
Definition at line 587 of file wm_gizmo.cc.
References RNA_pointer_create_discrete(), wmGizmoType::srna, and WM_gizmo_properties_create_ptr().
Referenced by WM_gizmo_properties_create(), and WM_gizmo_properties_create_ptr().
| bool WM_gizmo_properties_default | ( | PointerRNA * | ptr, |
| bool | do_update ) |
Set all props to their default.
| do_update | Only update un-initialized props. |
Definition at line 647 of file wm_gizmo.cc.
References do_update, PROP_POINTER, RNA_property_is_set(), RNA_property_pointer_get(), RNA_property_pointer_type(), RNA_property_reset(), RNA_property_type(), RNA_STRUCT_BEGIN, RNA_STRUCT_END, and WM_gizmo_properties_default().
Referenced by WM_gizmo_properties_default().
| void WM_gizmo_properties_free | ( | PointerRNA * | ptr | ) |
Definition at line 701 of file wm_gizmo.cc.
References PointerRNA::data, IDP_FreeProperty(), and WM_gizmo_properties_free().
Referenced by WM_gizmo_free(), and WM_gizmo_properties_free().
| void WM_gizmo_properties_reset | ( | wmGizmo * | gz | ) |
Remove all props without PROP_SKIP_SAVE.
Definition at line 674 of file wm_gizmo.cc.
References PointerRNA::data, PROP_SKIP_SAVE, wmGizmo::ptr, RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_flag(), RNA_property_identifier(), RNA_struct_idprops_unset(), RNA_struct_iterator_property(), wmGizmoType::srna, wmGizmo::type, and WM_gizmo_properties_reset().
Referenced by WM_gizmo_properties_reset().
| void WM_gizmo_properties_sanitize | ( | PointerRNA * | ptr, |
| const bool | no_context ) |
Definition at line 618 of file wm_gizmo.cc.
References PROP_ENUM, PROP_ENUM_NO_CONTEXT, PROP_POINTER, RNA_def_property_clear_flag(), RNA_def_property_flag(), RNA_property_pointer_get(), RNA_property_pointer_type(), RNA_property_type(), RNA_STRUCT_BEGIN, RNA_STRUCT_END, RNA_struct_is_a(), and WM_gizmo_properties_sanitize().
Referenced by wm_gizmo_create(), and WM_gizmo_properties_sanitize().
|
static |
Register gizmo.
Definition at line 124 of file wm_gizmo.cc.
References gizmo_init(), wm_gizmo_register(), and wm_gizmogroup_gizmo_register().
Referenced by WM_gizmo_new_ptr(), and wm_gizmo_register().
| bool wm_gizmo_select_and_highlight | ( | bContext * | C, |
| wmGizmoMap * | gzmap, | ||
| wmGizmo * | gz ) |
Definition at line 409 of file wm_gizmo.cc.
References C, wmGizmo::highlight_part, wm_gizmo_select_and_highlight(), WM_gizmo_select_set(), and wm_gizmomap_highlight_set().
Referenced by gizmo_select_invoke(), and wm_gizmo_select_and_highlight().
| bool WM_gizmo_select_set | ( | wmGizmoMap * | gzmap, |
| wmGizmo * | gz, | ||
| bool | select ) |
Definition at line 399 of file wm_gizmo.cc.
References select, WM_gizmo_select_set(), and wm_gizmo_select_set_ex().
Referenced by gizmo_select_invoke(), wm_gizmo_select_and_highlight(), WM_gizmo_select_set(), and wm_gizmomap_select_all_intern().
| bool wm_gizmo_select_set_ex | ( | wmGizmoMap * | gzmap, |
| wmGizmo * | gz, | ||
| bool | select, | ||
| bool | use_array, | ||
| bool | use_callback ) |
Add/Remove gizmo to selection. Reallocates memory for selected gizmos so better not call for selecting multiple ones.
Definition at line 359 of file wm_gizmo.cc.
References select, wmGizmoType::select_refresh, wmGizmo::state, wmGizmo::type, wm_gizmo_select_set_ex(), WM_GIZMO_STATE_SELECT, wm_gizmomap_select_array_push_back(), and wm_gizmomap_select_array_remove().
Referenced by WM_gizmo_select_set(), wm_gizmo_select_set_ex(), WM_gizmo_select_unlink(), and wm_gizmomap_deselect_all().
| bool WM_gizmo_select_unlink | ( | wmGizmoMap * | gzmap, |
| wmGizmo * | gz ) |
Remove from selection array without running callbacks.
Definition at line 394 of file wm_gizmo.cc.
References wm_gizmo_select_set_ex(), and WM_gizmo_select_unlink().
Referenced by WM_gizmo_select_unlink(), WM_gizmo_unlink(), and wm_gizmogroup_free().
| void WM_gizmo_set_color | ( | wmGizmo * | gz, |
| const float | color[4] ) |
Definition at line 330 of file wm_gizmo.cc.
References wmGizmo::color, copy_v4_v4(), and WM_gizmo_set_color().
Referenced by blender::ed::transform::gizmo2d_resize_setup(), blender::ed::transform::gizmo2d_rotate_setup(), blender::ed::transform::gizmo2d_xform_setup(), gizmo_mesh_spin_init_setup(), blender::ed::transform::WIDGETGROUP_gizmo_draw_prepare(), WIDGETGROUP_ruler_setup(), and WM_gizmo_set_color().
| void WM_gizmo_set_color_highlight | ( | wmGizmo * | gz, |
| const float | color_hi[4] ) |
Definition at line 339 of file wm_gizmo.cc.
References wmGizmo::color_hi, copy_v4_v4(), and WM_gizmo_set_color_highlight().
Referenced by blender::ed::transform::gizmo2d_resize_setup(), blender::ed::transform::gizmo2d_rotate_setup(), blender::ed::transform::gizmo2d_xform_setup(), gizmo_mesh_spin_init_setup(), blender::ed::transform::WIDGETGROUP_gizmo_draw_prepare(), and WM_gizmo_set_color_highlight().
| void WM_gizmo_set_flag | ( | wmGizmo * | gz, |
| const int | flag, | ||
| const bool | enable ) |
Definition at line 306 of file wm_gizmo.cc.
References wmGizmo::flag, and WM_gizmo_set_flag().
Referenced by blender::ed::transform::gizmo_3d_draw_invoke(), blender::ed::transform::gizmo_3d_setup_draw_default(), blender::ed::transform::gizmo_3d_setup_draw_from_twtype(), blender::ed::transform::gizmo_3d_setup_draw_modal(), gizmo_mesh_bisect_setup(), blender::ed::transform::gizmo_mesh_extrude_refresh(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_init_draw_prepare(), gizmo_mesh_spin_init_refresh(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), blender::ed::transform::gizmogroup_hide_all(), blender::ed::view3d::geometry_nodes_gizmos::NodeGizmos::hide_all(), ruler_item_add(), ruler_state_set(), blender::ed::view3d::geometry_nodes_gizmos::NodeGizmos::show_all(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_rotate_style(), blender::ed::view3d::geometry_nodes_gizmos::DialGizmo::update_style(), blender::ed::view3d::geometry_nodes_gizmos::DialGizmo::update_transform(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_translate_style(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_visibility(), WIDGETGROUP_armature_spline_setup(), WIDGETGROUP_camera_refresh(), WIDGETGROUP_camera_setup(), WIDGETGROUP_camera_view_refresh(), WIDGETGROUP_empty_image_setup(), WIDGETGROUP_forcefield_refresh(), WIDGETGROUP_forcefield_setup(), blender::ed::view3d::geometry_nodes_gizmos::WIDGETGROUP_geometry_nodes_refresh(), blender::ed::transform::WIDGETGROUP_gizmo_draw_prepare(), WIDGETGROUP_light_area_setup(), WIDGETGROUP_light_point_setup(), WIDGETGROUP_light_spot_setup(), WIDGETGROUP_light_target_draw_prepare(), WIDGETGROUP_navigate_draw_prepare(), WIDGETGROUP_navigate_draw_prepare(), blender::ed::space_node::WIDGETGROUP_node_corner_pin_refresh(), blender::ed::space_node::WIDGETGROUP_node_crop_refresh(), blender::ed::space_node::WIDGETGROUP_node_mask_refresh(), blender::ed::space_node::WIDGETGROUP_node_sbeam_refresh(), blender::ed::space_node::WIDGETGROUP_node_split_refresh(), blender::ed::space_node::WIDGETGROUP_node_transform_refresh(), WIDGETGROUP_tool_generic_refresh(), blender::ed::transform::WIDGETGROUP_xform_cage_refresh(), blender::ed::transform::WIDGETGROUP_xform_shear_refresh(), blender::ed::transform::WIDGETGROUP_xform_shear_setup(), and WM_gizmo_set_flag().
| void WM_gizmo_set_fn_custom_modal | ( | wmGizmo * | gz, |
| wmGizmoFnModal | fn ) |
Definition at line 350 of file wm_gizmo.cc.
References wmGizmo::custom_modal, and WM_gizmo_set_fn_custom_modal().
Referenced by blender::ed::transform::gizmo2d_resize_setup(), blender::ed::transform::gizmo2d_rotate_setup(), blender::ed::transform::gizmo2d_xform_setup(), blender::ed::transform::gizmogroup_init_properties_from_twtype(), and WM_gizmo_set_fn_custom_modal().
| void WM_gizmo_set_line_width | ( | wmGizmo * | gz, |
| const float | line_width ) |
Definition at line 321 of file wm_gizmo.cc.
References wmGizmo::line_width, and WM_gizmo_set_line_width().
Referenced by blender::ed::transform::gizmo2d_resize_setup(), blender::ed::transform::gizmo2d_rotate_setup(), blender::ed::transform::gizmo2d_xform_setup(), blender::ed::transform::gizmo_3d_setup_draw_default(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), tool_generic_create_gizmo(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_rotate_style(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_scale_style(), blender::ed::view3d::geometry_nodes_gizmos::DialGizmo::update_style(), blender::ed::view3d::geometry_nodes_gizmos::LinearGizmo::update_style(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_translate_style(), and WM_gizmo_set_line_width().
| void WM_gizmo_set_matrix_location | ( | wmGizmo * | gz, |
| const float | origin[3] ) |
Definition at line 286 of file wm_gizmo.cc.
References copy_v3_v3(), wmGizmo::matrix_basis, and WM_gizmo_set_matrix_location().
Referenced by blender::ed::transform::gizmo2d_modal(), blender::ed::transform::gizmo2d_resize_draw_prepare(), blender::ed::transform::gizmo2d_rotate_draw_prepare(), blender::ed::transform::gizmo2d_xform_draw_prepare(), gizmo_mesh_bisect_update_from_op(), blender::ed::transform::gizmo_mesh_extrude_refresh(), gizmo_mesh_spin_init_refresh(), gizmo_mesh_spin_redo_update_from_op(), blender::ed::transform::gizmo_modal(), blender::ed::transform::gizmo_refresh_from_matrix(), WIDGETGROUP_camera_refresh(), WIDGETGROUP_forcefield_refresh(), WIDGETGROUP_light_point_draw_prepare(), WIDGETGROUP_light_spot_draw_prepare(), WIDGETGROUP_light_spot_refresh(), blender::ed::space_node::WIDGETGROUP_node_transform_refresh(), blender::ed::transform::WIDGETGROUP_xform_shear_draw_prepare(), blender::ed::transform::WIDGETGROUP_xform_shear_refresh(), and WM_gizmo_set_matrix_location().
| void WM_gizmo_set_matrix_offset_location | ( | wmGizmo * | gz, |
| const float | offset[3] ) |
Definition at line 301 of file wm_gizmo.cc.
References copy_v3_v3(), wmGizmo::matrix_offset, and WM_gizmo_set_matrix_offset_location().
Referenced by blender::ed::transform::gizmo2d_xform_draw_prepare(), blender::ed::transform::gizmo2d_xform_setup(), blender::ed::transform::gizmo_3d_setup_draw_modal(), WIDGETGROUP_camera_refresh(), WIDGETGROUP_forcefield_refresh(), and WM_gizmo_set_matrix_offset_location().
| void WM_gizmo_set_matrix_offset_rotation_from_yz_axis | ( | wmGizmo * | gz, |
| const float | y_axis[3], | ||
| const float | z_axis[3] ) |
wmGizmo.matrix_offset utility, set the orientation by its Y/Z axis.
Definition at line 295 of file wm_gizmo.cc.
References wmGizmo::matrix_offset, WM_gizmo_set_matrix_offset_rotation_from_yz_axis(), and wm_gizmo_set_matrix_rotation_from_yz_axis__internal().
Referenced by WM_gizmo_set_matrix_offset_rotation_from_yz_axis().
| void WM_gizmo_set_matrix_offset_rotation_from_z_axis | ( | wmGizmo * | gz, |
| const float | z_axis[3] ) |
wmGizmo.matrix_offset utility, set the orientation by its Z axis.
Definition at line 291 of file wm_gizmo.cc.
References wmGizmo::matrix_offset, WM_gizmo_set_matrix_offset_rotation_from_z_axis(), and wm_gizmo_set_matrix_rotation_from_z_axis__internal().
Referenced by WM_gizmo_set_matrix_offset_rotation_from_z_axis().
| void WM_gizmo_set_matrix_rotation_from_yz_axis | ( | wmGizmo * | gz, |
| const float | y_axis[3], | ||
| const float | z_axis[3] ) |
#wmGizmo.matrix utility, set the orientation by its Y/Z axis.
Definition at line 280 of file wm_gizmo.cc.
References wmGizmo::matrix_basis, WM_gizmo_set_matrix_rotation_from_yz_axis(), and wm_gizmo_set_matrix_rotation_from_yz_axis__internal().
Referenced by gizmo_mesh_spin_init_refresh_axis_orientation(), gizmo_mesh_spin_redo_draw_prepare(), gizmo_mesh_spin_redo_update_from_op(), WIDGETGROUP_camera_refresh(), blender::ed::transform::WIDGETGROUP_xform_shear_draw_prepare(), blender::ed::transform::WIDGETGROUP_xform_shear_refresh(), and WM_gizmo_set_matrix_rotation_from_yz_axis().
|
static |
Definition at line 266 of file wm_gizmo.cc.
References cross_v3_v3v3(), normalize_v3(), normalize_v3_v3(), and wm_gizmo_set_matrix_rotation_from_yz_axis__internal().
Referenced by WM_gizmo_set_matrix_offset_rotation_from_yz_axis(), WM_gizmo_set_matrix_rotation_from_yz_axis(), and wm_gizmo_set_matrix_rotation_from_yz_axis__internal().
| void WM_gizmo_set_matrix_rotation_from_z_axis | ( | wmGizmo * | gz, |
| const float | z_axis[3] ) |
#wmGizmo.matrix utility, set the orientation by its Z axis.
Definition at line 276 of file wm_gizmo.cc.
References wmGizmo::matrix_basis, WM_gizmo_set_matrix_rotation_from_z_axis(), and wm_gizmo_set_matrix_rotation_from_z_axis__internal().
Referenced by blender::ed::transform::gizmo2d_resize_draw_prepare(), blender::ed::transform::gizmo2d_xform_setup(), blender::ed::transform::gizmo_3d_draw_invoke(), gizmo_mesh_bisect_update_from_op(), gizmo_mesh_spin_init_refresh_axis_orientation(), gizmo_mesh_spin_redo_draw_prepare(), gizmo_mesh_spin_redo_update_from_op(), WIDGETGROUP_forcefield_refresh(), blender::ed::transform::WIDGETGROUP_gizmo_draw_prepare(), WIDGETGROUP_light_point_draw_prepare(), WIDGETGROUP_light_spot_draw_prepare(), WIDGETGROUP_light_spot_refresh(), and WM_gizmo_set_matrix_rotation_from_z_axis().
|
static |
Definition at line 248 of file wm_gizmo.cc.
References copy_v3_v3(), normalize_v3_v3(), ortho_basis_v3v3_v3(), rot, rotation_between_vecs_to_mat3(), and wm_gizmo_set_matrix_rotation_from_z_axis__internal().
Referenced by WM_gizmo_set_matrix_offset_rotation_from_z_axis(), WM_gizmo_set_matrix_rotation_from_z_axis(), and wm_gizmo_set_matrix_rotation_from_z_axis__internal().
| void WM_gizmo_set_scale | ( | wmGizmo * | gz, |
| const float | scale ) |
Definition at line 316 of file wm_gizmo.cc.
References wmGizmo::scale_basis, and WM_gizmo_set_scale().
Referenced by blender::ed::transform::gizmo2d_resize_setup(), blender::ed::transform::gizmo2d_rotate_setup(), blender::ed::transform::gizmo2d_xform_setup(), blender::ed::transform::gizmo_3d_setup_draw_default(), gizmo_mesh_bisect_update_from_op(), blender::ed::transform::gizmo_mesh_extrude_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), blender::ed::transform::gizmo_refresh_from_matrix(), WIDGETGROUP_camera_refresh(), WIDGETGROUP_camera_view_setup(), and WM_gizmo_set_scale().
| void WM_gizmo_unlink | ( | ListBase * | gizmolist, |
| wmGizmoMap * | gzmap, | ||
| wmGizmo * | gz, | ||
| bContext * | C ) |
Free gizmo and unlink from gizmolist. gizmolist is allowed to be NULL.
Definition at line 165 of file wm_gizmo.cc.
References BLI_assert, BLI_remlink(), C, wmGizmoMap::gzmap_context, wmGizmo::state, WM_gizmo_free(), WM_gizmo_select_unlink(), WM_GIZMO_STATE_HIGHLIGHT, WM_GIZMO_STATE_MODAL, WM_GIZMO_STATE_SELECT, WM_gizmo_unlink(), wm_gizmomap_highlight_set(), and wm_gizmomap_modal_set().
Referenced by gizmotype_unlink(), ruler_item_remove(), blender::ed::view3d::geometry_nodes_gizmos::WIDGETGROUP_geometry_nodes_refresh(), and WM_gizmo_unlink().
Definition at line 491 of file wm_gizmo.cc.
References C, gizmo_update_prop_data(), wm_gizmo_calculate_scale(), and wm_gizmo_update().
Referenced by gizmo_prepare_drawing(), and wm_gizmo_update().