|
Blender V4.3
|
#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BKE_context.hh"#include "BKE_scene.hh"#include "ED_gizmo_library.hh"#include "ED_gizmo_utils.hh"#include "ED_screen.hh"#include "WM_api.hh"#include "UI_resources.hh"#include "RNA_access.hh"#include "transform.hh"#include "transform_gizmo.hh"Go to the source code of this file.
Classes | |
| struct | XFormShearWidgetGroup |
Functions | |
Transform Shear Gizmo | |
| static bool | WIDGETGROUP_xform_shear_poll (const bContext *C, wmGizmoGroupType *gzgt) |
| static void | WIDGETGROUP_xform_shear_setup (const bContext *, wmGizmoGroup *gzgroup) |
| static void | WIDGETGROUP_xform_shear_refresh (const bContext *C, wmGizmoGroup *gzgroup) |
| static void | WIDGETGROUP_xform_shear_message_subscribe (const bContext *C, wmGizmoGroup *gzgroup, wmMsgBus *mbus) |
| static void | WIDGETGROUP_xform_shear_draw_prepare (const bContext *C, wmGizmoGroup *gzgroup) |
| void | VIEW3D_GGT_xform_shear (wmGizmoGroupType *gzgt) |
| void VIEW3D_GGT_xform_shear | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 245 of file transform_gizmo_3d_shear.cc.
References wmGizmoGroupType::draw_prepare, wmGizmoGroupType::flag, wmGizmoGroupType::gzmap_params, wmGizmoGroupType::idname, wmGizmoGroupType::message_subscribe, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoMapType_Params::regionid, RGN_TYPE_WINDOW, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, SPACE_VIEW3D, wmGizmoMapType_Params::spaceid, WIDGETGROUP_xform_shear_draw_prepare(), WIDGETGROUP_xform_shear_message_subscribe(), WIDGETGROUP_xform_shear_poll(), WIDGETGROUP_xform_shear_refresh(), WIDGETGROUP_xform_shear_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DELAY_REFRESH_FOR_TWEAK, WM_GIZMOGROUPTYPE_DRAW_MODAL_EXCLUDE, and WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP.
Referenced by gizmo_xform_message_subscribe(), view3d_widgets(), and WIDGETGROUP_xform_shear_message_subscribe().
|
static |
Definition at line 183 of file transform_gizmo_3d_shear.cc.
References BKE_scene_orientation_slot_get(), BLI_listbase_sort(), copy_m3_m4(), copy_v3_v3(), CTX_data_scene(), CTX_wm_region_view3d(), wmGizmoGroup::customdata, dot_v3v3(), equals_m3m3(), XFormShearWidgetGroup::gizmo_view, wmGizmoGroup::gizmos, LISTBASE_FOREACH, madd_v3_v3fl(), wmGizmo::matrix_basis, wmGizmo::matrix_offset, mul_v3_fl(), negate_v3(), XFormShearWidgetGroup::prev, SCE_ORIENT_ROTATE, RegionView3D::twmat, TransformOrientationSlot::type, V3D_ORIENT_VIEW, RegionView3D::viewinv, XFormShearWidgetGroup::viewinv_m3, WIDGETGROUP_xform_shear_refresh(), WM_gizmo_cmp_temp_fl_reverse(), WM_gizmo_set_matrix_location(), and WM_gizmo_set_matrix_rotation_from_yz_axis().
Referenced by VIEW3D_GGT_xform_shear().
|
static |
Definition at line 171 of file transform_gizmo_3d_shear.cc.
References CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), CTX_wm_screen(), gizmo_xform_message_subscribe(), and VIEW3D_GGT_xform_shear().
Referenced by VIEW3D_GGT_xform_shear().
|
static |
Definition at line 47 of file transform_gizmo_3d_shear.cc.
References CTX_wm_view3d(), ED_gizmo_poll_or_unlink_delayed_from_tool(), View3D::gizmo_flag, V3D_GIZMO_HIDE, and V3D_GIZMO_HIDE_TOOL.
Referenced by VIEW3D_GGT_xform_shear().
|
static |
Definition at line 107 of file transform_gizmo_3d_shear.cc.
References TransformBounds::axis, BKE_scene_orientation_slot_get_from_flag(), BKE_scene_orientation_slot_get_index(), copy_m3_m4(), CTX_data_scene(), CTX_wm_region(), wmGizmoGroup::customdata, ED_transform_calc_gizmo_stats(), XFormShearWidgetGroup::gizmo, gizmo_prepare_mat(), XFormShearWidgetGroup::gizmo_view, wmGizmo::matrix_basis, mul_v3_fl(), XFormShearWidgetGroup::prev, wmGizmoOpElem::ptr, RNA_enum_set(), RNA_float_set_array(), SCE_ORIENT_ROTATE, RegionView3D::twmat, TransformOrientationSlot::type, TransformCalcParams::use_local_axis, RegionView3D::viewinv, XFormShearWidgetGroup::viewinv_m3, WM_GIZMO_HIDDEN, WM_GIZMO_MOVE_CURSOR, WM_gizmo_operator_get(), WM_gizmo_set_flag(), WM_gizmo_set_matrix_location(), and WM_gizmo_set_matrix_rotation_from_yz_axis().
Referenced by VIEW3D_GGT_xform_shear(), and WIDGETGROUP_xform_shear_draw_prepare().
|
static |
Definition at line 59 of file transform_gizmo_3d_shear.cc.
References wmGizmo::color, copy_v3_fl(), wmGizmoGroup::customdata, ED_GIZMO_ARROW_STYLE_BOX, XFormShearWidgetGroup::gizmo, XFormShearWidgetGroup::gizmo_view, interp_v3_v3v3(), MEM_mallocN, ptr, wmGizmo::ptr, wmGizmoOpElem::ptr, RNA_boolean_set(), RNA_enum_set(), TH_AXIS_X, UI_GetThemeColor3fv(), V3D_ORIENT_VIEW, WM_GIZMO_DRAW_OFFSET_SCALE, WM_gizmo_new_ptr(), WM_gizmo_operator_get(), WM_gizmo_operator_set(), WM_gizmo_set_flag(), WM_gizmotype_find(), and WM_operatortype_find().
Referenced by VIEW3D_GGT_xform_shear().