Blender
V3.3
|
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_action.h"
#include "BKE_armature.h"
#include "BKE_context.h"
#include "BKE_layer.h"
#include "BKE_object.h"
#include "DNA_armature_types.h"
#include "DNA_object_types.h"
#include "ED_armature.h"
#include "ED_gizmo_library.h"
#include "ED_screen.h"
#include "UI_resources.h"
#include "MEM_guardedalloc.h"
#include "RNA_access.h"
#include "WM_api.h"
#include "WM_types.h"
#include "view3d_intern.h"
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 *UNUSED(gz), wmGizmoProperty *gz_prop, void *value_p) |
static void | gizmo_bbone_offset_set (const wmGizmo *UNUSED(gz), wmGizmoProperty *gz_prop, const void *value_p) |
static bool | WIDGETGROUP_armature_spline_poll (const bContext *C, wmGizmoGroupType *UNUSED(gzgt)) |
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 48 of file view3d_gizmo_armature.c.
|
static |
Definition at line 62 of file view3d_gizmo_armature.c.
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 85 of file view3d_gizmo_armature.c.
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 200 of file view3d_gizmo_armature.c.
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 109 of file view3d_gizmo_armature.c.
References ARM_B_BONE, BASACT, BASE_SELECTABLE, BKE_object_pose_armature_get(), BKE_pose_channel_active_if_layer_visible(), bPoseChannel::bone, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, bArmature::drawtype, View3D::gizmo_flag, Base::object, BoneSplineHandle::pchan, 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.c.
References ARRAY_SIZE, BKE_object_pose_armature_get(), BKE_pose_channel_active_if_layer_visible(), C, copy_m4_m4(), 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(), NULL, OBACT, Object::obmat, BoneSplineHandle::pchan, and WM_gizmo_target_property_def_func().
Referenced by VIEW3D_GGT_armature_spline().
|
static |
Definition at line 133 of file view3d_gizmo_armature.c.
References ARRAY_SIZE, BKE_object_pose_armature_get(), BKE_pose_channel_active_if_layer_visible(), C, wmGizmo::color, wmGizmo::color_hi, copy_v3_v3(), 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, NULL, OBACT, BoneSplineHandle::pchan, 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().