69 float axis_color[3][3];
70 for (
int i = 0; i < 3; i++) {
74 for (
int i = 0; i < 3; i++) {
75 for (
int j = 0; j < 2; j++) {
78 const int i_ortho_a = (i + j + 1) % 3;
79 const int i_ortho_b = (i + (1 - j) + 1) % 3;
84 xgzgroup->
gizmo[i][j] = gz;
88 for (
int i = 0; i < 4; i++) {
130 for (
int i = 0; i < 3; i++) {
131 for (
int j = 0; j < 2; j++) {
137 for (
int i = 0; i < 4; i++) {
144 for (
int i = 0; i < 3; i++) {
145 for (
int j = 0; j < 2; j++) {
151 const int i_ortho_a = (i + j + 1) % 3;
152 const int i_ortho_b = (i + (1 - j) + 1) % 3;
167 for (
int i = 0; i < 4; i++) {
195 switch (orient_slot->
type) {
197 float viewinv_m3[3][3];
209 for (
int i = 0; i < 4; i++) {
210 const float outer_thin = 0.3f;
211 const float outer_offset = 1.0f / 0.3f;
235 float axis_order[3], axis_bias[3];
250 gzgt->
name =
"Transform Shear";
251 gzgt->
idname =
"VIEW3D_GGT_xform_shear";
void get_color_3fv(int colorid, float col[3])
void * MEM_new_uninitialized(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
void RNA_float_set_array(PointerRNA *ptr, const char *name, const float *values)
ScrArea * CTX_wm_area(const bContext *C)
MINLINE void copy_v3_v3(float r[3], const float a[3])
void WM_gizmo_set_matrix_rotation_from_yz_axis(wmGizmo *gz, const float y_axis[3], const float z_axis[3])
void copy_m3_m4(float m1[3][3], const float m2[4][4])
int WM_gizmo_cmp_temp_fl_reverse(const void *gz_a_ptr, const void *gz_b_ptr)
const wmGizmoType * WM_gizmotype_find(const StringRef idname, bool quiet)
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
MINLINE void mul_v3_fl(float r[3], float f)
MINLINE void madd_v3_v3fl(float r[3], const float a[3], float f)
void WM_gizmo_set_flag(wmGizmo *gz, const int flag, const bool enable)
TransformOrientationSlot * BKE_scene_orientation_slot_get(Scene *scene, int slot_index)
PointerRNA * WM_gizmo_operator_set(wmGizmo *gz, int part_index, wmOperatorType *ot, IDProperty *properties)
MINLINE void negate_v3(float r[3])
void interp_v3_v3v3(float r[3], const float a[3], const float b[3], float t)
RegionView3D * CTX_wm_region_view3d(const bContext *C)
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
void void BLI_listbase_sort(ListBase *listbase, int(*cmp)(const void *, const void *)) ATTR_NONNULL(1
@ ED_GIZMO_ARROW_STYLE_BOX
@ WM_GIZMOGROUPTYPE_DELAY_REFRESH_FOR_TWEAK
@ WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP
@ WM_GIZMOGROUPTYPE_DRAW_MODAL_EXCLUDE
@ WM_GIZMO_DRAW_OFFSET_SCALE
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)
MINLINE void copy_v3_fl(float r[3], float f)
TransformOrientationSlot * BKE_scene_orientation_slot_get_from_flag(Scene *scene, int flag)
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)
wmGizmoOpElem * WM_gizmo_operator_get(wmGizmo *gz, int part_index)
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])
wmGizmo * WM_gizmo_new_ptr(const wmGizmoType *gzt, wmGizmoGroup *gzgroup, PointerRNA *properties)
MINLINE float dot_v3v3(const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
ARegion * CTX_wm_region(const bContext *C)
View3D * CTX_wm_view3d(const bContext *C)
bool equals_m3m3(const float mat1[3][3], const float mat2[3][3])
eView3D_GizmoFlag gizmo_flag
wmGizmoGroupFnMsgBusSubscribe message_subscribe
wmGizmoGroupFnRefresh refresh
wmGizmoGroupFnSetupKeymap setup_keymap
wmGizmoMapType_Params gzmap_params
wmGizmoGroupFnDrawPrepare draw_prepare
eWM_GizmoFlagGroupTypeFlag flag
ListBaseT< wmGizmo > gizmos
float matrix_offset[4][4]
union blender::wmGizmo::@207216221077365030243271316333035277144006330157 temp