79 const float twmat[4][4],
81 const bool ignore_hidden);
85#define MAN_TRANS_X (1 << 0)
86#define MAN_TRANS_Y (1 << 1)
87#define MAN_TRANS_Z (1 << 2)
88#define MAN_TRANS_C (MAN_TRANS_X | MAN_TRANS_Y | MAN_TRANS_Z)
90#define MAN_ROT_X (1 << 3)
91#define MAN_ROT_Y (1 << 4)
92#define MAN_ROT_Z (1 << 5)
93#define MAN_ROT_C (MAN_ROT_X | MAN_ROT_Y | MAN_ROT_Z)
95#define MAN_SCALE_X (1 << 8)
96#define MAN_SCALE_Y (1 << 9)
97#define MAN_SCALE_Z (1 << 10)
98#define MAN_SCALE_C (MAN_SCALE_X | MAN_SCALE_Y | MAN_SCALE_Z)
121#define MAN_AXIS_RANGE_TRANS_START MAN_AXIS_TRANS_X
122#define MAN_AXIS_RANGE_TRANS_END (MAN_AXIS_TRANS_ZX + 1)
129#define MAN_AXIS_RANGE_ROT_START MAN_AXIS_ROT_X
130#define MAN_AXIS_RANGE_ROT_END (MAN_AXIS_ROT_T + 1)
139#define MAN_AXIS_RANGE_SCALE_START MAN_AXIS_SCALE_X
140#define MAN_AXIS_RANGE_SCALE_END (MAN_AXIS_SCALE_ZX + 1)
180#define MAN_ITER_AXES_BEGIN(axis, axis_idx) \
184 for (axis_idx = 0; axis_idx < MAN_AXIS_LAST; axis_idx++) { \
185 axis = gizmo_get_axis_from_index(ggd, axis_idx);
187#define MAN_ITER_AXES_END \
195 return ggd->
gizmos[axis_idx];
259 bool is_plane =
false;
263 float idot_axis = idot[aidx_norm];
265 idot_axis = 1.0f - idot_axis;
337 const float alpha = 0.6f;
338 const float alpha_hi = 1.0f;
347 bool is_plane =
false;
351 if (axis_idx_norm < 3) {
354 float idot_axis = idot[axis_idx_norm];
356 idot_axis = 1.0f - idot_axis;
358 alpha_fac = ((idot_axis > idot_max) ? 1.0f :
359 (idot_axis < idot_min) ? 0.0f :
360 ((idot_axis - idot_min) / (idot_max - idot_min)));
399 r_col[3] = alpha * alpha_fac;
400 r_col_hi[3] = alpha_hi * alpha_fac;
425 r_axis[0] = r_axis[1] =
true;
429 r_axis[1] = r_axis[2] =
true;
433 r_axis[2] = r_axis[0] =
true;
451 for (
int i = 0; i < 3; i++) {
465 for (
int i = 0; i < 3; i++) {
517 if (obpose !=
nullptr) {
537 const short orient_index,
538 const bool use_curve_handles,
539 const bool use_only_center,
541 const float (**r_mat)[4],
544 const auto run_coord_with_matrix =
545 [&](
const float co[3],
const bool use_matrix,
const float matrix[4][4]) {
568#define FOREACH_EDIT_OBJECT_BEGIN(ob_iter, use_mat_local) \
570 invert_m4_m4(obedit->runtime->world_to_object.ptr(), obedit->object_to_world().ptr()); \
571 Vector<Object *> objects = BKE_view_layer_array_from_objects_in_edit_mode( \
572 *bmain, scene, view_layer, CTX_wm_view3d(C)); \
573 for (Object *ob_iter : objects) { \
574 const bool use_mat_local = (ob_iter != obedit);
576#define FOREACH_EDIT_OBJECT_END() \
592 float mat_local[4][4];
595 mat_local, obedit->world_to_object().ptr(), ob_iter->object_to_world().ptr());
601 run_coord_with_matrix(eve->
co, use_mat_local, mat_local);
611 bArmature *arm = id_cast<bArmature *>(ob_iter->data);
613 float mat_local[4][4];
616 mat_local, obedit->world_to_object().ptr(), ob_iter->object_to_world().ptr());
621 run_coord_with_matrix(ebo.
tail, use_mat_local, mat_local);
630 run_coord_with_matrix(ebo.
head, use_mat_local, mat_local);
649 Curve *cu = id_cast<Curve *>(ob_iter->data);
654 float mat_local[4][4];
657 mat_local, obedit->world_to_object().ptr(), ob_iter->object_to_world().ptr());
660 Nurb *nu = nurbs->first();
672 run_coord_with_matrix(bezt->
vec[1], use_mat_local, mat_local);
677 run_coord_with_matrix(bezt->
vec[1], use_mat_local, mat_local);
682 const float *co = bezt->
vec[!use_curve_handles ? 1 : 0];
683 run_coord_with_matrix(co, use_mat_local, mat_local);
687 const float *co = bezt->
vec[!use_curve_handles ? 1 : 2];
688 run_coord_with_matrix(co, use_mat_local, mat_local);
700 run_coord_with_matrix(bp->
vec, use_mat_local, mat_local);
711 else if (obedit->type ==
OB_MBALL) {
713 MetaBall *mb = id_cast<MetaBall *>(ob_iter->data);
715 float mat_local[4][4];
718 mat_local, obedit->world_to_object().ptr(), ob_iter->object_to_world().ptr());
723 run_coord_with_matrix(&ml.
x, use_mat_local, mat_local);
732 Lattice *lt = (id_cast<Lattice *>(ob_iter->data))->editlatt->latt;
736 float mat_local[4][4];
739 mat_local, obedit->world_to_object().ptr(), ob_iter->object_to_world().ptr());
744 run_coord_with_matrix(bp->
vec, use_mat_local, mat_local);
754 const Curves &curves_id = *id_cast<Curves *>(ob_iter->data);
761 mat_local = obedit->world_to_object() * ob_iter->object_to_world();
770 curves, selection_name, bezier_points, memory);
772 totsel += selected_points.
size();
774 run_coord_with_matrix(positions[point_i], use_mat_local, mat_local.
ptr());
778 run_points(deformation.
positions,
".selection");
781 run_points(*
curves.handle_positions_left(),
".selection_handle_left");
782 run_points(*
curves.handle_positions_right(),
".selection_handle_right");
793 mat_local = obedit->world_to_object() * ob_iter->object_to_world();
803 totsel +=
mask.size();
804 mask.foreach_index([&](
const int point) {
805 run_coord_with_matrix(positions[point], use_mat_local, mat_local.
ptr());
816 mat_local = obedit->world_to_object() * ob_iter->object_to_world();
827 *depsgraph, *ob, info.
drawing);
840 curves, selection_name, bezier_points, memory);
842 editable_points, selected_points, memory);
844 totsel += selected_editable_points.
size();
845 selected_editable_points.
foreach_index([&](
const int point_i) {
846 run_coord_with_matrix(positions[point_i],
true, layer_transform.
ptr());
850 run_points(deformation.
positions,
".selection");
853 run_points(*
curves.handle_positions_left(),
".selection_handle_left");
854 run_points(*
curves.handle_positions_right(),
".selection_handle_right");
861#undef FOREACH_EDIT_OBJECT_BEGIN
862#undef FOREACH_EDIT_OBJECT_END
870 for (
Object *ob_iter : objects) {
871 const bool use_mat_local = (ob_iter != ob);
877 float mat_local[4][4];
879 mul_m4_m4m4(mat_local, ob->world_to_object().ptr(), ob_iter->object_to_world().ptr());
882 bArmature *arm = id_cast<bArmature *>(ob_iter->data);
889 float pchan_pivot[3];
891 run_coord_with_matrix(pchan_pivot, use_mat_local, mat_local);
907 run_coord_with_matrix(
919 for (a = 0; a < edit->
totpoint; a++, point++) {
924 for (k = 0, ek = point->
keys; k < point->totkey; k++, ek++) {
940 ob = base ? base->
object :
nullptr;
955 std::optional<std::array<float3, 8>> bb;
956 if (use_only_center ==
false) {
962 if (use_only_center || !bb) {
963 user_fn(base.object->object_to_world().location());
966 for (
uint j = 0; j < 8; j++) {
968 mul_v3_m4v3(co, base.object->object_to_world().ptr(), (*bb)[j]);
988 *r_mat = ob->object_to_world().ptr();
1022 *bmain, scene, view_layer, v3d, rv3d, ob, obedit, orient_index, pivot_point, mat);
1035 const float4x4 &ob_mat = ob->object_to_world();
1036 float diff_mat[3][3];
1053 gizmo_3d_tbounds_calc_fn,
1061 const float4x4 &ob_mat = ob->object_to_world();
1096 float view_vec[3], axis_vec[3];
1098 for (
int i = 0; i < 3; i++) {
1107 const short pivot_type,
1108 float r_pivot_pos[3])
1110 switch (pivot_type) {
1119 if (ob !=
nullptr) {
1133 if (tbounds ==
nullptr) {
1137 tbounds = &tbounds_stack;
1153 float co_sum[3] = {0.0f, 0.0f, 0.0f};
1154 const auto gizmo_3d_calc_center_fn = [&](
const float3 &co) {
add_v3_v3(co_sum, co); };
1155 const float (*r_mat)[4] =
nullptr;
1161 gizmo_3d_calc_center_fn,
1165 mul_v3_v3fl(r_pivot_pos, co_sum, 1.0f /
float(totsel));
1187static void gizmo_line_range(
const int twtype,
const short axis_type,
float *r_start,
float *r_end)
1192 switch (axis_type) {
1195 start = end - 0.125f;
1199 const float rotate_offset = 0.215f;
1200 start += rotate_offset;
1201 end += rotate_offset + 0.2f;
1235 msg_sub_value_gz_tag_refresh.
owner = region;
1239 int orient_flag = 0;
1254 &scene->
id, RNA_TransformOrientationSlot, orient_slot);
1260 &rna_Scene_transform_orientation_slots,
1262 for (
int i = 0; i <
ARRAY_SIZE(props); i++) {
1271 &scene->
id, RNA_View3DCursor, &scene->
cursor);
1277 &rna_TransformOrientationSlot_type,
1278 &rna_TransformOrientationSlot_use,
1280 for (
int i = 0; i <
ARRAY_SIZE(props); i++) {
1283 mbus, &orient_ref_ptr, props[i], &msg_sub_value_gz_tag_refresh, __func__);
1293 &rna_ToolSettings_transform_pivot_point,
1295 for (
int i = 0; i <
ARRAY_SIZE(props); i++) {
1297 mbus, &toolsettings_ptr, props[i], &msg_sub_value_gz_tag_refresh, __func__);
1303 &rna_ToolSettings_workspace_tool_type,
1305 for (
int i = 0; i <
ARRAY_SIZE(props); i++) {
1307 mbus, &toolsettings_ptr, props[i], &msg_sub_value_gz_tag_refresh, __func__);
1312 &screen->
id, RNA_SpaceView3D, area->
spacedata.first_);
1318 &rna_SpaceView3D_show_gizmo_object_translate,
1319 &rna_SpaceView3D_show_gizmo_object_rotate,
1320 &rna_SpaceView3D_show_gizmo_object_scale,
1322 for (
int i = 0; i <
ARRAY_SIZE(props); i++) {
1348 const float axis[3],
1349 const float center_global[3],
1350 const float mval_init[2],
1351 float r_mat_basis[4][4])
1357 sub_v3_v3(r_mat_basis[1], center_global);
1359 cross_v3_v3v3(r_mat_basis[0], r_mat_basis[1], r_mat_basis[2]);
1367 r_mat_basis[0][3] = 0.0f;
1368 r_mat_basis[1][3] = 0.0f;
1369 r_mat_basis[2][3] = 0.0f;
1370 r_mat_basis[3][3] = 1.0f;
1374#define MAN_AXIS_SCALE_PLANE_SCALE 0.7f
1379 *
static_cast<float *
>(value) = ggd->
rotation;
1385 ggd->
rotation = *
static_cast<const float *
>(value);
1542 switch (axis_type) {
1590 switch (axis_type) {
1610 float end, start_co[3] = {0.0f, 0.0f, 0.0f};
1635 switch (axis_type) {
1660#define GIZMO_NEW_ARROW(v) \
1662 ggd->gizmos[v] = WM_gizmo_new_ptr(gzt_arrow, gzgroup, nullptr); \
1665#define GIZMO_NEW_DIAL(v) \
1667 ggd->gizmos[v] = WM_gizmo_new_ptr(gzt_dial, gzgroup, nullptr); \
1668 WM_gizmo_target_property_def_func(ggd->gizmos[v], "offset", ¶ms); \
1671#define GIZMO_NEW_PRIM(v) \
1673 ggd->gizmos[v] = WM_gizmo_new_ptr(gzt_prim, gzgroup, nullptr); \
1757 if (op !=
nullptr) {
1762 if (op !=
nullptr) {
1769 float *
scale =
nullptr;
1770 bool update =
false;
1786 "incremental_angle",
1807 } ot_store = {
nullptr};
1812 bool constraint_axis[3] = {
true,
false,
false};
1822 switch (axis_type) {
1824 if (ot_store.translate ==
nullptr) {
1832 if (ot_store.trackball ==
nullptr) {
1835 ot_rotate = ot_store.trackball;
1838 if (ot_store.rotate ==
nullptr) {
1841 ot_rotate = ot_store.rotate;
1847 if (ot_store.resize ==
nullptr) {
1880 if (tref &&
STREQ(tref->
idname,
"builtin.move")) {
1883 else if (tref &&
STREQ(tref->
idname,
"builtin.rotate")) {
1886 else if (tref &&
STREQ(tref->
idname,
"builtin.scale")) {
1889 else if (tref &&
STREQ(tref->
idname,
"builtin.transform")) {
1917 const float twmat[4][4],
1918 const float scale[3])
1974 const float twmat[4][4],
1975 const float scale[3],
1976 const bool ignore_hidden)
2054 float viewinv_m3[3][3];
2100 float color[4], color_hi[4];
2113 switch (orient_slot->
type) {
2126 const int axis_idx_active,
2127 const float mval[2])
2150 if (axis_idx == axis_idx_active) {
2224 const bool flip = (
event->modifier &
KM_SHIFT) != 0;
2231 if (prop_constraint_axis) {
2232 bool constraint[3] = {
false};
2233 constraint[axis] =
true;
2235 for (
int i = 0; i <
ARRAY_SIZE(constraint); i++) {
2236 constraint[i] = !constraint[i];
2305 gzgt->
name =
"3D View: Transform Gizmo";
2306 gzgt->
idname =
"VIEW3D_GGT_xform_gizmo";
2326 {0,
"NONE", 0,
"None",
""},
2327 {0,
nullptr, 0,
nullptr,
nullptr},
2331 rna_enum_gizmo_items,
2341 gzgt->
name =
"3D View: Transform Gizmo Context";
2342 gzgt->
idname =
"VIEW3D_GGT_xform_gizmo_context";
2367 if (gizmo_map ==
nullptr) {
2368 BLI_assert_msg(
false,
"#T_NO_GIZMO should already be set to return early before.");
2373 if (gizmo_modal_current) {
2415 if (gzgroup_xform ==
nullptr) {
2424 const int axis_map[3][7] = {
2461 axis_idx = axis_map[trans_mode][con_mode];
2465 if (axis_idx != -1) {
2475 if (update_orientation || gizmo_modal_current != gizmo_expected) {
2476 if (update_orientation) {
2491 "Avoid changing the highlight part");
2498 else if (gizmo_modal_current) {
2510 if (gzgroup_xform ==
nullptr) {
Functions to deal with Armatures.
Blender kernel action and pose functionality.
Low-level operations for curves.
Low-level operations for grease pencil.
General operations, lookup, etc. for blender objects.
Generic array manipulation API.
#define BLI_array_findindex(arr, arr_len, p)
#define OB_MODE_ALL_PAINT_MESH
#define BASE_SELECTED_EDITABLE(v3d, base)
#define OBEDIT_FROM_OBACT(ob)
#define INIT_MINMAX(min, max)
#define ARRAY_SET_ITEMS(...)
#define BLI_assert_msg(a, msg)
#define IN_RANGE_INCL(a, b, c)
#define BM_elem_flag_test(ele, hflag)
#define BM_ITER_MESH(ele, iter, bm, itype)
static IndexMask from_bools(Span< bool > bools, LinearAllocator<> &memory)
static IndexMask from_intersection(const IndexMask &mask_a, const IndexMask &mask_b, LinearAllocator<> &memory)
GAttributeReader lookup_or_default(StringRef name, AttrDomain domain, AttrType data_type, const void *default_value=nullptr) const
const bke::CurvesGeometry & strokes() const
void foreach_index(Fn &&fn, Mode mode=exec_mode::serial) const
float3x3 scale(float3x3 mat, float2 scale)
float4x4 translate(float4x4 mat, float3 translation)
float3x3 rotate(float3x3 mat, AxisAngle rotation)
bool bone_is_visible(const bArmature *armature, const Bone *bone)
GeometryDeformation get_evaluated_grease_pencil_drawing_deformation(const Object *ob_eval, const Object &ob_orig, const bke::greasepencil::Drawing &drawing_orig)
GeometryDeformation get_evaluated_curves_deformation(const Object *ob_eval, const Object &ob_orig)
IndexMask curve_type_point_selection(const bke::CurvesGeometry &curves, CurveType curve_type, LinearAllocator<> &memory)
std::array< VecBase< T, 3 >, 8 > corners(const Bounds< VecBase< T, 3 > > &bounds)
IndexMask retrieve_selected_points(const bke::CurvesGeometry &curves, LinearAllocator<> &memory)
IndexMask retrieve_editable_points(Object &object, const bke::greasepencil::Drawing &drawing, int layer_index, IndexMaskMemory &memory)
Vector< MutableDrawingInfo > retrieve_editable_drawings(const Scene &scene, GreasePencil &grease_pencil)
bool calc_active_center(Object *ob, bool select_only, float r_center[3])
void parallel_for_each(Range &&range, const Function &function)
void get_color_4fv(int colorid, float col[4])
MINLINE float min_ff(float a, float b)
void WM_gizmo_set_matrix_rotation_from_z_axis(wmGizmo *gz, const float z_axis[3])
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
ScrArea * CTX_wm_area(const bContext *C)
void mul_m3_m3_pre(float R[3][3], const float A[3][3])
BLI_STATIC_ASSERT(ARRAY_SIZE(data_mode_strings)==CTX_MODE_NUM+1, "Must have a string for each context mode") const char *CTX_data_mode_string(const bContext *C)
MINLINE void copy_v2_v2_int(int r[2], const int a[2])
void orthogonalize_m4(float R[4][4], int axis)
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
const ListBaseT< wmGizmoGroup > * WM_gizmomap_group_list(wmGizmoMap *gzmap)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
wmGizmo * WM_gizmomap_get_modal(const wmGizmoMap *gzmap)
void WM_gizmo_do_msg_notify_tag_refresh(bContext *, wmMsgSubscribeKey *, wmMsgSubscribeValue *msg_val)
BMesh * BKE_editmesh_bmesh_get_for_write(Mesh *mesh)
MINLINE void copy_v3_v3(float r[3], const float a[3])
void copy_m3_m4(float m1[3][3], const float m2[4][4])
void minmax_v3v3_v3(float min[3], float max[3], const float vec[3])
@ V3D_GIZMO_SHOW_OBJECT_TRANSLATE
@ V3D_GIZMO_SHOW_OBJECT_SCALE
@ V3D_GIZMO_SHOW_OBJECT_ROTATE
wmOperator * WM_operator_find_modal_by_type(wmWindow *win, const wmOperatorType *ot)
void copy_m3_m3(float m1[3][3], const float m2[3][3])
PointerRNA RNA_id_pointer_create(ID *id)
void copy_m4_m3(float m1[4][4], const float m2[3][3])
void WM_gizmo_set_color(wmGizmo *gz, const float color[4])
void mul_v3_m4v3(float r[3], const float mat[4][4], const float vec[3])
void WM_gizmo_modal_set_while_modal(wmGizmoMap *gzmap, bContext *C, wmGizmo *gz, const wmEvent *event)
const wmGizmoType * WM_gizmotype_find(const StringRef idname, bool quiet)
float ED_view3d_pixel_size(const RegionView3D *rv3d, const float co[3])
void normalize_m3(float R[3][3]) ATTR_NONNULL()
int RNA_property_enum_get(PointerRNA *ptr, PropertyRNA *prop)
bool invert_m4_m4(float inverse[4][4], const float mat[4][4])
@ V3D_AROUND_CENTER_BOUNDS
@ V3D_AROUND_LOCAL_ORIGINS
@ V3D_AROUND_CENTER_MEDIAN
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
int BKE_scene_orientation_get_index(Scene *scene, int slot_index)
void mul_m4_m4m4(float R[4][4], const float A[4][4], const float B[4][4])
wmWindow * CTX_wm_window(const bContext *C)
void WM_gizmo_set_color_highlight(wmGizmo *gz, const float color_hi[4])
@ ED_GIZMO_ARROW_DRAW_FLAG_ORIGIN
@ ED_GIZMO_ARROW_DRAW_FLAG_STEM
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
Base * BKE_view_layer_active_base_get(ViewLayer *view_layer)
void RNA_property_boolean_set_array(PointerRNA *ptr, PropertyRNA *prop, const bool *values)
void WM_gizmo_set_matrix_offset_location(wmGizmo *gz, const float offset[3])
void mul_m3_m4m4(float R[3][3], const float A[4][4], const float B[4][4])
MatBase< float, 4, 4 > float4x4
void ED_region_tag_redraw_editor_overlays(ARegion *region)
bool WM_gizmo_highlight_set(wmGizmoMap *gzmap, wmGizmo *gz)
void WM_gizmo_set_line_width(wmGizmo *gz, const float line_width)
void plane_from_point_normal_v3(float r_plane[4], const float plane_co[3], const float plane_no[3])
void ED_view3d_global_to_vector(const RegionView3D *rv3d, const float coord[3], float r_out[3])
ViewLayer * CTX_data_view_layer(const bContext *C)
MINLINE void mul_v3_fl(float r[3], float f)
void WM_gizmo_set_scale(wmGizmo *gz, const float scale)
MINLINE void sub_v3_v3(float r[3], const float a[3])
@ ED_GIZMO_PRIMITIVE_STYLE_ANNULUS
@ ED_GIZMO_PRIMITIVE_STYLE_CIRCLE
void mul_m4_v3(const float M[4][4], float r[3])
MINLINE bool equals_v3v3(const float v1[3], const float v2[3]) ATTR_WARN_UNUSED_RESULT
void WM_gizmo_set_flag(wmGizmo *gz, const int flag, const bool enable)
VecBase< int32_t, 2 > int2
void BKE_pose_channel_transform_location(const bArmature *arm, const bPoseChannel *pose_bone, float r_pose_space_pivot[3])
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
PTCacheEdit * PE_get_current(Depsgraph *depsgraph, Scene *scene, Object *ob)
MINLINE void cross_v3_v3v3(float r[3], const float a[3], const float b[3])
eWM_GizmoFlagTweak
Gizmo tweak flag. Bit-flag passed to gizmo while tweaking.
int BKE_scene_orientation_get_index_from_flag(Scene *scene, int flag)
void WM_gizmo_set_fn_custom_modal(wmGizmo *gz, wmGizmoFnModal fn)
bool ED_view3d_win_to_3d_on_plane(const ARegion *region, const float plane[4], const float mval[2], bool do_clip, float r_out[3])
Object * BKE_object_pose_armature_get(Object *ob)
void RNA_property_unset(PointerRNA *ptr, PropertyRNA *prop)
PointerRNA * WM_gizmo_operator_set(wmGizmo *gz, int part_index, wmOperatorType *ot, IDProperty *properties)
constexpr size_t ARRAY_SIZE(const T(&arg)[N]) noexcept
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
void unit_m4(float m[4][4])
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
bool WM_gizmo_group_is_modal(const wmGizmoGroup *gzgroup)
MINLINE void zero_v3(float r[3])
void RNA_float_set(PointerRNA *ptr, const char *name, float value)
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
@ ED_GIZMO_ARROW_STYLE_NORMAL
@ ED_GIZMO_ARROW_STYLE_PLANE
@ ED_GIZMO_ARROW_STYLE_BOX
MINLINE float normalize_v3_v3(float r[3], const float a[3])
bool invert_m3(float mat[3][3])
void WM_msg_subscribe_rna(wmMsgBus *mbus, PointerRNA *ptr, const PropertyRNA *prop, const wmMsgSubscribeValue *msg_val_params, const char *id_repr)
@ WM_GIZMOGROUPTYPE_PERSISTENT
@ WM_GIZMOGROUPTYPE_DELAY_REFRESH_FOR_TWEAK
@ WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP
MINLINE void mul_v3_v3fl(float r[3], const float a[3], float f)
@ WM_GIZMO_DRAW_OFFSET_SCALE
@ WM_GIZMO_SELECT_BACKGROUND
MINLINE float normalize_v3(float n[3])
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)
MINLINE void add_v3_v3(float r[3], const float a[3])
void mid_v3_v3v3(float r[3], const float a[3], const float b[3])
MINLINE void copy_v3_fl3(float v[3], float x, float y, float z)
Depsgraph * CTX_data_expect_evaluated_depsgraph(const bContext *C)
Main * CTX_data_main(const bContext *C)
void unit_m3(float m[3][3])
MINLINE float max_ff(float a, float b)
void RNA_property_enum_set(PointerRNA *ptr, PropertyRNA *prop, int value)
TransformOrientationSlot * BKE_scene_orientation_slot_get_from_flag(Scene *scene, int flag)
ListBaseT< Nurb > * BKE_curve_editNurbs_get(Curve *cu)
int BKE_scene_orientation_slot_get_index(const TransformOrientationSlot *orient_slot)
Scene * CTX_data_scene(const bContext *C)
bScreen * CTX_wm_screen(const bContext *C)
wmKeyMap * WM_gizmogroup_setup_keymap_generic_maybe_drag(const wmGizmoGroupType *, wmKeyConfig *kc)
std::optional< Bounds< float3 > > BKE_object_boundbox_get(const Object *ob)
MINLINE void copy_v4_v4(float r[4], const float a[4])
void copy_m4_m4(float m1[4][4], const float m2[4][4])
VecBase< float, 3 > float3
wmGizmoOpElem * WM_gizmo_operator_get(wmGizmo *gz, int part_index)
void ortho_basis_v3v3_v3(float r_n1[3], float r_n2[3], const float n[3])
bool ED_gizmo_poll_or_unlink_delayed_from_tool(const bContext *C, wmGizmoGroupType *gzgt)
void WM_gizmo_set_matrix_location(wmGizmo *gz, const float origin[3])
Vector< Object * > BKE_object_pose_array_get(const Main &bmain, const Scene *scene, ViewLayer *view_layer, View3D *v3d)
MINLINE float dot_v3v3(const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
ARegion * CTX_wm_region(const bContext *C)
ListBaseT< Base > * BKE_view_layer_object_bases_get(ViewLayer *view_layer)
void mul_m4_m3m4(float R[4][4], const float A[3][3], const float B[4][4])
@ ED_GIZMO_DIAL_DRAW_FLAG_CLIP
@ ED_GIZMO_DIAL_DRAW_FLAG_FILL
@ ED_GIZMO_DIAL_DRAW_FLAG_ANGLE_VALUE
@ ED_GIZMO_DIAL_DRAW_FLAG_NOP
bool equals_m3m3(const float mat1[3][3], const float mat2[3][3])
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
bke::ARegionRuntime * runtime
const c_style_mat & ptr() const
static MatBase identity()
bke::ObjectRuntime * runtime
struct PTCacheEditKey * keys
PTCacheEditPoint * points
float tw_axis_matrix[3][3]
TransformOrientationSlot orientation_slots[4]
struct ToolSettings * toolsettings
ListBaseT< SpaceLink > spacedata
eHandleDisplay handle_display
eView3D_GizmoShowObject gizmo_show_object
eView3D_GizmoFlag gizmo_flag
ListBaseT< EditBone > * edbo
bPoseChannelRuntimeFlag flag
struct bPoseChannel_Runtime runtime
SculptSession * sculpt_session
bke::greasepencil::Drawing & drawing
wmGizmoGroupFnMsgBusSubscribe message_subscribe
wmGizmoGroupFnRefresh refresh
wmGizmoGroupFnInvokePrepare invoke_prepare
wmGizmoGroupFnSetupKeymap setup_keymap
wmGizmoMapType_Params gzmap_params
wmGizmoGroupFnDrawPrepare draw_prepare
eWM_GizmoFlagGroupTypeFlag flag
wmGizmoMap * parent_gzmap
ListBaseT< wmGizmo > gizmos
wmGizmoPropertyFnSet value_set_fn
wmGizmoPropertyFnGet value_get_fn
struct blender::wmGizmoProperty::@216011055122204070127377170176223170047224321165 custom_func
float matrix_offset[4][4]
wmGizmoGroup * parent_gzgroup
Vector< wmGizmoOpElem, 4 > op_data
#define WM_msg_subscribe_rna_anon_prop(mbus, type_, prop_, value)