|
Blender
V2.93
|
#include "BLI_math.h"#include "BLI_utildefines.h"#include "BKE_context.h"#include "BKE_global.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"#include "WM_toolsystem.h"#include "RNA_access.h"#include "WM_api.h"#include "WM_message.h"#include "WM_types.h"#include "view3d_intern.h"Go to the source code of this file.
Generic Tool | |
| static const char * | handle_normal_id = "VIEW3D_GGT_tool_generic_handle_normal" |
| static const char * | handle_free_id = "VIEW3D_GGT_tool_generic_handle_free" |
| static bool | WIDGETGROUP_tool_generic_poll (const bContext *C, wmGizmoGroupType *gzgt) |
| static wmGizmo * | tool_generic_create_gizmo (const bContext *C, wmGizmoGroup *gzgroup) |
| static void | WIDGETGROUP_tool_generic_setup (const bContext *C, wmGizmoGroup *gzgroup) |
| static void | WIDGETGROUP_tool_generic_refresh (const bContext *C, wmGizmoGroup *gzgroup) |
| static void | WIDGETGROUP_gizmo_message_subscribe (const bContext *C, wmGizmoGroup *gzgroup, struct wmMsgBus *mbus) |
| void | VIEW3D_GGT_tool_generic_handle_normal (wmGizmoGroupType *gzgt) |
| void | VIEW3D_GGT_tool_generic_handle_free (wmGizmoGroupType *gzgt) |
|
static |
Definition at line 73 of file view3d_gizmo_tool_generic.c.
References C, wmGizmo::color, wmGizmo::color_hi, CTX_wm_manager(), wmWindowManager::defaultconf, ED_GIZMO_BUTTON_SHOW_BACKDROP, ED_GIZMO_BUTTON_SHOW_HELPLINE, ED_GIZMO_BUTTON_SHOW_OUTLINE, wmGizmo::flag, handle_normal_id, wmGizmoGroupType::idname, bToolRef_Runtime::keymap, wmGizmo::keymap, wmGizmo::matrix_offset, NULL, wmGizmo::ptr, RGN_TYPE_WINDOW, RNA_enum_set(), RNA_float_set(), bToolRef::runtime, wmGizmo::scale_basis, bToolRef::space_type, TH_GIZMO_HI, TH_GIZMO_PRIMARY, wmGizmoGroup::type, UI_GetThemeColor3fv(), unit_m4(), WM_gizmo_new(), WM_GIZMO_OPERATOR_TOOL_INIT, WM_gizmo_set_line_width(), WM_keymap_ensure(), and WM_toolsystem_ref_from_context().
Referenced by WIDGETGROUP_tool_generic_setup().
| void VIEW3D_GGT_tool_generic_handle_free | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 211 of file view3d_gizmo_tool_generic.c.
References wmGizmoGroupType::flag, wmGizmoGroupType::gzmap_params, handle_free_id, wmGizmoGroupType::idname, wmGizmoGroupType::message_subscribe, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoMapType_Params::regionid, RGN_TYPE_WINDOW, wmGizmoGroupType::setup, SPACE_VIEW3D, wmGizmoMapType_Params::spaceid, WIDGETGROUP_gizmo_message_subscribe(), WIDGETGROUP_tool_generic_poll(), WIDGETGROUP_tool_generic_refresh(), WIDGETGROUP_tool_generic_setup(), WM_GIZMOGROUPTYPE_3D, and WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP.
Referenced by view3d_widgets().
| void VIEW3D_GGT_tool_generic_handle_normal | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 194 of file view3d_gizmo_tool_generic.c.
References wmGizmoGroupType::flag, wmGizmoGroupType::gzmap_params, handle_normal_id, wmGizmoGroupType::idname, wmGizmoGroupType::message_subscribe, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoMapType_Params::regionid, RGN_TYPE_WINDOW, wmGizmoGroupType::setup, SPACE_VIEW3D, wmGizmoMapType_Params::spaceid, WIDGETGROUP_gizmo_message_subscribe(), WIDGETGROUP_tool_generic_poll(), WIDGETGROUP_tool_generic_refresh(), WIDGETGROUP_tool_generic_setup(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DELAY_REFRESH_FOR_TWEAK, and WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP.
Referenced by view3d_widgets().
|
static |
Definition at line 162 of file view3d_gizmo_tool_generic.c.
References ARRAY_SIZE, C, CTX_data_scene(), CTX_wm_region(), Scene::id, wmMsgSubscribeValue::owner, wmGizmoGroup::parent_gzmap, RNA_pointer_create(), RNA_ToolSettings, scene, Scene::toolsettings, WM_gizmo_do_msg_notify_tag_refresh(), and WM_msg_subscribe_rna().
Referenced by VIEW3D_GGT_tool_generic_handle_free(), and VIEW3D_GGT_tool_generic_handle_normal().
|
static |
Definition at line 54 of file view3d_gizmo_tool_generic.c.
References C, CTX_wm_view3d(), ED_gizmo_poll_or_unlink_delayed_from_tool(), G, G_TRANSFORM_EDIT, View3D::gizmo_flag, V3D_GIZMO_HIDE, and V3D_GIZMO_HIDE_CONTEXT.
Referenced by VIEW3D_GGT_tool_generic_handle_free(), and VIEW3D_GGT_tool_generic_handle_normal().
|
static |
Definition at line 118 of file view3d_gizmo_tool_generic.c.
References TransformBounds::axis, C, TransformBounds::center, copy_m4_m3(), copy_v3_v3(), CTX_data_tool_settings(), wmGizmoGroup::customdata, ED_transform_calc_gizmo_stats(), wmGizmoWrapper::gizmo, handle_normal_id, wmGizmoGroupType::idname, wmGizmo::matrix_basis, negate_v3(), SCE_WORKSPACE_TOOL_FALLBACK, wmGizmoGroup::type, wmGizmoGroup::use_fallback_keymap, V3D_ORIENT_GLOBAL, V3D_ORIENT_NORMAL, WM_GIZMO_DRAW_OFFSET_SCALE, WM_GIZMO_HIDDEN, WM_gizmo_set_flag(), and ToolSettings::workspace_tool_type.
Referenced by VIEW3D_GGT_tool_generic_handle_free(), and VIEW3D_GGT_tool_generic_handle_normal().
|
static |
Definition at line 111 of file view3d_gizmo_tool_generic.c.
References C, wmGizmoGroup::customdata, wmGizmoWrapper::gizmo, MEM_mallocN, and tool_generic_create_gizmo().
Referenced by VIEW3D_GGT_tool_generic_handle_free(), and VIEW3D_GGT_tool_generic_handle_normal().
|
static |
Definition at line 48 of file view3d_gizmo_tool_generic.c.
Referenced by VIEW3D_GGT_tool_generic_handle_free().
|
static |
Definition at line 47 of file view3d_gizmo_tool_generic.c.
Referenced by tool_generic_create_gizmo(), VIEW3D_GGT_tool_generic_handle_normal(), and WIDGETGROUP_tool_generic_refresh().