|
Blender V4.3
|
#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BLI_utildefines.h"#include "BKE_action.hh"#include "BKE_context.hh"#include "BKE_layer.hh"#include "BKE_object.hh"#include "DNA_armature_types.h"#include "DNA_object_types.h"#include "ED_gizmo_library.hh"#include "UI_resources.hh"#include "MEM_guardedalloc.h"#include "RNA_access.hh"#include "WM_types.hh"#include "view3d_intern.hh"Go to the source code of this file.
Classes | |
| struct | BoneSplineHandle |
| struct | BoneSplineWidgetGroup |
Armature Spline Gizmo | |
| #define | BBONE_SCALE_Y 3.0f |
| static void | gizmo_bbone_offset_get (const wmGizmo *, wmGizmoProperty *gz_prop, void *value_p) |
| static void | gizmo_bbone_offset_set (const wmGizmo *, wmGizmoProperty *gz_prop, const void *value_p) |
| static bool | WIDGETGROUP_armature_spline_poll (const bContext *C, wmGizmoGroupType *) |
| static void | WIDGETGROUP_armature_spline_setup (const bContext *C, wmGizmoGroup *gzgroup) |
| static void | WIDGETGROUP_armature_spline_refresh (const bContext *C, wmGizmoGroup *gzgroup) |
| void | VIEW3D_GGT_armature_spline (wmGizmoGroupType *gzgt) |
| #define BBONE_SCALE_Y 3.0f |
Definition at line 46 of file view3d_gizmo_armature.cc.
Referenced by gizmo_bbone_offset_get(), and gizmo_bbone_offset_set().
|
static |
Definition at line 60 of file view3d_gizmo_armature.cc.
References wmGizmoPropertyType::array_length, BBONE_SCALE_Y, BLI_assert, bPoseChannel::bone, BoneSplineHandle::co, copy_v3_v3(), bPoseChannel::curve_in_x, bPoseChannel::curve_in_z, bPoseChannel::curve_out_x, bPoseChannel::curve_out_z, wmGizmoProperty::custom_func, Bone::ease1, Bone::ease2, BoneSplineHandle::index, BoneSplineHandle::pchan, wmGizmoProperty::type, and wmGizmoProperty::user_data.
Referenced by WIDGETGROUP_armature_spline_refresh().
|
static |
Definition at line 81 of file view3d_gizmo_armature.cc.
References wmGizmoPropertyType::array_length, BBONE_SCALE_Y, BLI_assert, bPoseChannel::bone, BoneSplineHandle::co, copy_v3_v3(), bPoseChannel::curve_in_x, bPoseChannel::curve_in_z, bPoseChannel::curve_out_x, bPoseChannel::curve_out_z, wmGizmoProperty::custom_func, Bone::ease1, Bone::ease2, BoneSplineHandle::index, max_ff(), BoneSplineHandle::pchan, wmGizmoProperty::type, and wmGizmoProperty::user_data.
Referenced by WIDGETGROUP_armature_spline_refresh().
| void VIEW3D_GGT_armature_spline | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 201 of file view3d_gizmo_armature.cc.
References wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_armature_spline_poll(), WIDGETGROUP_armature_spline_refresh(), WIDGETGROUP_armature_spline_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by view3d_widgets().
|
static |
Definition at line 105 of file view3d_gizmo_armature.cc.
References ARM_B_BONE, BASE_SELECTABLE, BKE_object_pose_armature_get(), BKE_pose_channel_active_if_bonecoll_visible(), BKE_view_layer_active_base_get(), BKE_view_layer_synced_ensure(), bPoseChannel::bone, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), Object::data, bArmature::drawtype, View3D::gizmo_flag, Base::object, Bone::segments, V3D_GIZMO_HIDE, and V3D_GIZMO_HIDE_CONTEXT.
Referenced by VIEW3D_GGT_armature_spline().
|
static |
Definition at line 166 of file view3d_gizmo_armature.cc.
References ARRAY_SIZE, BKE_object_pose_armature_get(), BKE_pose_channel_active_if_bonecoll_visible(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), copy_m4_m4(), CTX_data_scene(), CTX_data_view_layer(), wmGizmoGroup::customdata, bPoseChannel::disp_mat, bPoseChannel::disp_tail_mat, BoneSplineHandle::gizmo, gizmo_bbone_offset_get(), gizmo_bbone_offset_set(), BoneSplineWidgetGroup::handles, BoneSplineHandle::index, wmGizmo::matrix_space, mul_m4_m4m4(), params, BoneSplineHandle::pchan, and WM_gizmo_target_property_def_func().
Referenced by VIEW3D_GGT_armature_spline().
|
static |
Definition at line 131 of file view3d_gizmo_armature.cc.
References ARRAY_SIZE, BKE_object_pose_armature_get(), BKE_pose_channel_active_if_bonecoll_visible(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), wmGizmo::color, wmGizmo::color_hi, copy_v3_v3(), CTX_data_scene(), CTX_data_view_layer(), wmGizmoGroup::customdata, ED_GIZMO_MOVE_DRAW_FLAG_ALIGN_VIEW, ED_GIZMO_MOVE_DRAW_FLAG_FILL, ED_GIZMO_MOVE_STYLE_RING_2D, BoneSplineHandle::gizmo, BoneSplineWidgetGroup::handles, bPoseChannel::loc, wmGizmo::matrix_basis, MEM_callocN, wmGizmo::ptr, RNA_enum_set(), wmGizmo::scale_basis, TH_GIZMO_HI, TH_GIZMO_PRIMARY, UI_GetThemeColor3fv(), WM_GIZMO_DRAW_VALUE, WM_gizmo_new_ptr(), WM_gizmo_set_flag(), and WM_gizmotype_find().
Referenced by VIEW3D_GGT_armature_spline().