Blender
V3.3
|
#include "BLI_array_utils.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_scene.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_message.h"
#include "WM_toolsystem.h"
#include "WM_types.h"
#include "ED_gizmo_library.h"
#include "ED_gizmo_utils.h"
#include "ED_screen.h"
#include "ED_transform.h"
#include "UI_resources.h"
#include "MEM_guardedalloc.h"
Go to the source code of this file.
Classes | |
struct | GizmoExtrudeGroup |
typedef struct GizmoExtrudeGroup GizmoExtrudeGroup |
anonymous enum |
Enumerator | |
---|---|
EXTRUDE_AXIS_NORMAL | |
EXTRUDE_AXIS_XYZ |
Definition at line 37 of file transform_gizmo_extrude_3d.c.
|
static |
Definition at line 378 of file transform_gizmo_extrude_3d.c.
References GizmoExtrudeGroup::adjust, BLI_listbase_sort(), C, copy_m3_m4(), copy_v3_v3(), CTX_wm_region_view3d(), wmGizmoGroup::customdata, GizmoExtrudeGroup::data, dot_v3v3(), wmGizmo::flag, gizmo_mesh_extrude_orientation_matrix_set(), wmGizmoGroup::gizmos, GizmoExtrudeGroup::invoke_view, LISTBASE_FOREACH, wmGizmo::matrix_basis, normalize_m3(), GizmoExtrudeGroup::orientation_index, V3D_ORIENT_VIEW, RegionView3D::viewinv, WM_gizmo_cmp_temp_fl_reverse(), and WM_GIZMO_HIDDEN.
Referenced by VIEW3D_GGT_xform_extrude().
|
static |
Definition at line 413 of file transform_gizmo_extrude_3d.c.
References GizmoExtrudeGroup::adjust, ARRAY_SIZE, BLI_array_findindex, BLI_assert, GizmoExtrudeGroup::constraint_axis, wmGizmoGroup::customdata, GizmoExtrudeGroup::data, ELEM, GizmoExtrudeGroup::invoke_view, GizmoExtrudeGroup::invoke_xyz_no, GizmoExtrudeGroup::normal_mat3, GizmoExtrudeGroup::orient_matrix, GizmoExtrudeGroup::orient_type, GizmoExtrudeGroup::orientation_index, wmGizmoOpElem::ptr, GizmoExtrudeGroup::redo_xform, RNA_boolean_set_array(), RNA_enum_set(), RNA_float_set_array(), RNA_pointer_get(), V3D_ORIENT_NORMAL, GizmoExtrudeGroup::value, and WM_gizmo_operator_get().
Referenced by VIEW3D_GGT_xform_extrude().
|
static |
Definition at line 454 of file transform_gizmo_extrude_3d.c.
References ARRAY_SIZE, C, CTX_data_scene(), CTX_wm_region(), wmGizmoGroup::customdata, GizmoExtrudeGroup::gzgt_axis_type_prop, Scene::id, wmMsgSubscribeValue::owner, wmGizmoGroup::parent_gzmap, RNA_pointer_create(), scene, wmGizmoGroupType::srna, Scene::toolsettings, type, wmGizmoGroup::type, WM_gizmo_do_msg_notify_tag_refresh(), WM_msg_subscribe_rna(), WM_msg_subscribe_rna_anon_prop, and WM_msg_subscribe_rna_params().
Referenced by VIEW3D_GGT_xform_extrude().
|
static |
Definition at line 86 of file transform_gizmo_extrude_3d.c.
References extrude_arrow_xyz_axis_scale, extrude_button_offset_scale, extrude_button_scale, GizmoExtrudeGroup::invoke_xyz_no, wmGizmo::matrix_offset, and mul_v3_v3fl().
Referenced by gizmo_mesh_extrude_draw_prepare(), and gizmo_mesh_extrude_refresh().
|
static |
Definition at line 97 of file transform_gizmo_extrude_3d.c.
References GizmoExtrudeGroup::adjust, GizmoExtrudeGroup::adjust_axis, copy_v3_v3(), wmGizmo::matrix_basis, and swap_v3_v3().
Referenced by gizmo_mesh_extrude_refresh().
|
static |
Definition at line 219 of file transform_gizmo_extrude_3d.c.
References GizmoExtrudeGroup::adjust, GizmoExtrudeGroup::adjust_axis, TransformBounds::axis, BKE_scene_orientation_get_index(), C, TransformBounds::center, GizmoExtrudeGroup::constraint_axis, copy_m3_m3(), CTX_data_scene(), CTX_wm_manager(), wmGizmoGroup::customdata, GizmoExtrudeGroup::data, dot_v3v3(), ED_GIZMO_BUTTON_SHOW_BACKDROP, ED_GIZMO_BUTTON_SHOW_HELPLINE, ED_transform_calc_gizmo_stats(), extrude_arrow_normal_axis_scale, EXTRUDE_AXIS_NORMAL, EXTRUDE_AXIS_XYZ, extrude_button_offset_scale, extrude_button_scale, G, gizmo_mesh_extrude_orientation_matrix_set(), gizmo_mesh_extrude_orientation_matrix_set_for_adjust(), GizmoExtrudeGroup::gzgt_axis_type_prop, GizmoExtrudeGroup::invoke_view, GizmoExtrudeGroup::invoke_xyz_no, ListBase::last, wmOperator::macro, wmGizmo::matrix_basis, wmGizmo::matrix_offset, mul_v3_v3fl(), negate_v3(), GizmoExtrudeGroup::normal_axis, GizmoExtrudeGroup::normal_mat3, NULL, wmWindowManager::operators, GizmoExtrudeGroup::orient_matrix, GizmoExtrudeGroup::orient_type, GizmoExtrudeGroup::orientation_index, GizmoExtrudeGroup::ot_extrude, wmOperator::ptr, wmGizmo::ptr, ptr, GizmoExtrudeGroup::redo_xform, RNA_boolean_get_array(), RNA_enum_get(), RNA_enum_set(), RNA_float_get_array(), RNA_property_enum_get(), SCE_ORIENT_DEFAULT, SCE_WORKSPACE_TOOL_FALLBACK, scene, Scene::toolsettings, wmOperator::type, wmGizmoGroup::type, unit_m3(), V3D_ORIENT_NORMAL, GizmoExtrudeGroup::value, WM_GIZMO_HIDDEN, WM_gizmo_set_flag(), WM_gizmo_set_matrix_location(), WM_toolsystem_ref_from_context(), WM_toolsystem_ref_properties_ensure_from_gizmo_group, and ToolSettings::workspace_tool_type.
Referenced by VIEW3D_GGT_xform_extrude().
|
static |
Definition at line 108 of file transform_gizmo_extrude_3d.c.
References GizmoExtrudeGroup::adjust, ARRAY_SIZE, BLI_assert, C, wmGizmo::color, CTX_data_active_object(), wmGizmoGroup::customdata, ED_GIZMO_DIAL_DRAW_FLAG_FILL_SELECT, extrude_arrow_scale, extrude_button_scale, extrude_dial_scale, extrude_outer_scale, wmGizmo::flag, GizmoExtrudeGroup::gzgt_axis_type_prop, GizmoExtrudeGroup::invoke_view, GizmoExtrudeGroup::invoke_xyz_no, wmGizmoOpElem::is_redo, wmGizmo::line_width, MEM_callocN, GizmoExtrudeGroup::normal_axis, NULL, OB_ARMATURE, OB_CURVES_LEGACY, OB_GPENCIL, OB_MESH, GizmoExtrudeGroup::ot_extrude, wmGizmo::ptr, ptr, RNA_boolean_set(), RNA_boolean_set_array(), RNA_enum_set(), RNA_pointer_get(), RNA_property_string_set_bytes(), RNA_struct_find_property(), RNA_struct_type_find_property(), wmGizmo::select_bias, shape_plus, wmGizmoGroupType::srna, TH_AXIS_X, TH_GIZMO_PRIMARY, Object::type, wmGizmoGroup::type, UI_GetThemeColor3fv(), WM_GIZMO_DRAW_OFFSET_SCALE, WM_gizmo_new_ptr(), WM_gizmo_operator_get(), WM_gizmo_operator_set(), WM_gizmo_set_scale(), WM_gizmotype_find(), and WM_operatortype_find().
Referenced by VIEW3D_GGT_xform_extrude().
void VIEW3D_GGT_xform_extrude | ( | struct wmGizmoGroupType * | gzgt | ) |
Definition at line 498 of file transform_gizmo_extrude_3d.c.
References wmGizmoGroupType::draw_prepare, ED_gizmo_poll_or_unlink_delayed_from_tool(), EXTRUDE_AXIS_NORMAL, EXTRUDE_AXIS_XYZ, wmGizmoGroupType::flag, gizmo_mesh_extrude_draw_prepare(), gizmo_mesh_extrude_invoke_prepare(), gizmo_mesh_extrude_message_subscribe(), gizmo_mesh_extrude_refresh(), gizmo_mesh_extrude_setup(), wmGizmoGroupType::gzmap_params, wmGizmoGroupType::idname, wmGizmoGroupType::invoke_prepare, wmGizmoGroupType::message_subscribe, wmGizmoGroupType::name, NULL, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoMapType_Params::regionid, RGN_TYPE_WINDOW, RNA_def_enum(), wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, SPACE_VIEW3D, wmGizmoMapType_Params::spaceid, wmGizmoGroupType::srna, WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DELAY_REFRESH_FOR_TWEAK, and WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP.
Referenced by view3d_widgets().
|
static |
Definition at line 47 of file transform_gizmo_extrude_3d.c.
Referenced by gizmo_mesh_extrude_refresh().
|
static |
Definition at line 45 of file transform_gizmo_extrude_3d.c.
Referenced by gizmo_mesh_extrude_setup().
|
static |
Definition at line 46 of file transform_gizmo_extrude_3d.c.
Referenced by gizmo_mesh_extrude_orientation_matrix_set().
|
static |
Definition at line 43 of file transform_gizmo_extrude_3d.c.
Referenced by gizmo_mesh_extrude_orientation_matrix_set(), and gizmo_mesh_extrude_refresh().
|
static |
Definition at line 42 of file transform_gizmo_extrude_3d.c.
Referenced by gizmo_mesh_extrude_orientation_matrix_set(), gizmo_mesh_extrude_refresh(), and gizmo_mesh_extrude_setup().
|
static |
Definition at line 48 of file transform_gizmo_extrude_3d.c.
Referenced by gizmo_mesh_extrude_setup().
|
static |
Definition at line 44 of file transform_gizmo_extrude_3d.c.
Referenced by gizmo_mesh_extrude_setup().
|
static |
Definition at line 50 of file transform_gizmo_extrude_3d.c.
Referenced by gizmo_mesh_extrude_setup().