|
Blender V4.3
|
#include "BLI_array_utils.h"#include "BLI_function_ref.hh"#include "BLI_math_geom.h"#include "BLI_math_matrix.h"#include "DNA_armature_types.h"#include "DNA_gpencil_legacy_types.h"#include "DNA_lattice_types.h"#include "DNA_meta_types.h"#include "BKE_armature.hh"#include "BKE_context.hh"#include "BKE_crazyspace.hh"#include "BKE_curve.hh"#include "BKE_editmesh.hh"#include "BKE_global.hh"#include "BKE_gpencil_legacy.h"#include "BKE_grease_pencil.hh"#include "BKE_layer.hh"#include "BKE_object.hh"#include "BKE_object_types.hh"#include "BKE_paint.hh"#include "BKE_pointcache.h"#include "BKE_scene.hh"#include "WM_api.hh"#include "WM_message.hh"#include "ED_armature.hh"#include "ED_curves.hh"#include "ED_gizmo_library.hh"#include "ED_gizmo_utils.hh"#include "ED_gpencil_legacy.hh"#include "ED_grease_pencil.hh"#include "ED_object.hh"#include "ED_particle.hh"#include "ED_screen.hh"#include "UI_resources.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "ANIM_bone_collections.hh"#include "transform.hh"#include "transform_convert.hh"#include "transform_gizmo.hh"#include "transform_snap.hh"Go to the source code of this file.
Classes | |
| struct | GizmoGroup |
Functions | |
| static wmGizmoGroup * | gizmogroup_xform_find (TransInfo *t) |
| void | transform_gizmo_3d_model_from_constraint_and_mode_init (TransInfo *t) |
| void | transform_gizmo_3d_model_from_constraint_and_mode_set (TransInfo *t) |
| void | transform_gizmo_3d_model_from_constraint_and_mode_restore (TransInfo *t) |
| bool | ED_transform_calc_pivot_pos (const bContext *C, const short pivot_type, float r_pivot_pos[3]) |
Utilities | |
| #define | MAN_ITER_AXES_BEGIN(axis, axis_idx) |
| #define | MAN_ITER_AXES_END |
| static wmGizmo * | gizmo_get_axis_from_index (const GizmoGroup *ggd, const short axis_idx) |
| static short | gizmo_get_axis_type (const int axis_idx) |
| static uint | gizmo_orientation_axis (const int axis_idx, bool *r_is_plane) |
| static bool | gizmo_is_axis_visible (const RegionView3D *rv3d, const int twtype, const float idot[3], const int axis_type, const int axis_idx) |
| static void | gizmo_get_axis_color (const int axis_idx, const float idot[3], float r_col[4], float r_col_hi[4]) |
| static void | gizmo_get_axis_constraint (const int axis_idx, bool r_axis[3]) |
| static void | reset_tw_center (TransformBounds *tbounds) |
| static void | calc_tw_center (TransformBounds *tbounds, const float co[3]) |
| static void | protectflag_to_drawflags (short protectflag, short *drawflags) |
| static Object * | gizmo_3d_transform_space_object_get (Scene *scene, ViewLayer *view_layer) |
| static int | gizmo_3d_foreach_selected (const bContext *C, const short orient_index, const bool use_curve_handles, const bool use_only_center, FunctionRef< void(const float3 &)> user_fn, const float(**r_mat)[4], short *r_drawflags) |
| int | ED_transform_calc_gizmo_stats (const bContext *C, const TransformCalcParams *params, TransformBounds *tbounds, RegionView3D *rv3d) |
| static void | gizmo_get_idot (const RegionView3D *rv3d, float r_idot[3]) |
| static bool | gizmo_3d_calc_pos (const bContext *C, const Scene *scene, const TransformBounds *tbounds, const short pivot_type, float r_pivot_pos[3]) |
| void | gizmo_prepare_mat (const bContext *C, RegionView3D *rv3d, const TransformBounds *tbounds) |
| static void | gizmo_line_range (const int twtype, const short axis_type, float *r_start, float *r_end) |
| void | gizmo_xform_message_subscribe (wmGizmoGroup *gzgroup, wmMsgBus *mbus, Scene *scene, bScreen *screen, ScrArea *area, ARegion *region, void(*type_fn)(wmGizmoGroupType *)) |
| static void | gizmo_3d_dial_matrixbasis_calc (const ARegion *region, const float axis[3], const float center_global[3], const float mval_init[2], float r_mat_basis[4][4]) |
| #define FOREACH_EDIT_OBJECT_BEGIN | ( | ob_iter, | |
| use_mat_local ) |
Referenced by gizmo_3d_foreach_selected().
| #define FOREACH_EDIT_OBJECT_END | ( | ) |
Referenced by gizmo_3d_foreach_selected().
Referenced by gizmogroup_init().
Referenced by gizmogroup_init().
Referenced by gizmogroup_init().
| #define MAN_AXIS_RANGE_ROT_END (MAN_AXIS_ROT_T + 1) |
Definition at line 121 of file transform_gizmo_3d.cc.
Referenced by gizmo_get_axis_color(), gizmo_get_axis_type(), and gizmo_is_axis_visible().
| #define MAN_AXIS_RANGE_ROT_START MAN_AXIS_ROT_X |
Definition at line 120 of file transform_gizmo_3d.cc.
Referenced by gizmo_get_axis_color(), gizmo_get_axis_type(), and gizmo_is_axis_visible().
| #define MAN_AXIS_RANGE_SCALE_END (MAN_AXIS_SCALE_ZX + 1) |
Definition at line 131 of file transform_gizmo_3d.cc.
Referenced by gizmo_get_axis_type().
| #define MAN_AXIS_RANGE_SCALE_START MAN_AXIS_SCALE_X |
Definition at line 130 of file transform_gizmo_3d.cc.
Referenced by gizmo_get_axis_type().
| #define MAN_AXIS_RANGE_TRANS_END (MAN_AXIS_TRANS_ZX + 1) |
Definition at line 113 of file transform_gizmo_3d.cc.
Referenced by gizmo_get_axis_type().
| #define MAN_AXIS_RANGE_TRANS_START MAN_AXIS_TRANS_X |
Definition at line 112 of file transform_gizmo_3d.cc.
Referenced by gizmo_get_axis_type().
| #define MAN_AXIS_SCALE_PLANE_SCALE 0.7f |
Scale of the two-axis planes.
Definition at line 1278 of file transform_gizmo_3d.cc.
Referenced by gizmo_3d_setup_draw_default(), and gizmo_refresh_from_matrix().
| #define MAN_ITER_AXES_BEGIN | ( | axis, | |
| axis_idx ) |
Definition at line 169 of file transform_gizmo_3d.cc.
Referenced by gizmogroup_hide_all(), gizmogroup_init(), gizmogroup_init_properties_from_twtype(), gizmogroup_refresh_from_matrix(), transform_gizmo_3d_model_from_constraint_and_mode_restore(), and WIDGETGROUP_gizmo_draw_prepare().
| #define MAN_ITER_AXES_END |
Definition at line 176 of file transform_gizmo_3d.cc.
Referenced by gizmogroup_hide_all(), gizmogroup_init(), gizmogroup_init_properties_from_twtype(), gizmogroup_refresh_from_matrix(), transform_gizmo_3d_model_from_constraint_and_mode_restore(), and WIDGETGROUP_gizmo_draw_prepare().
Definition at line 84 of file transform_gizmo_3d.cc.
Referenced by gizmo_is_axis_visible().
| #define MAN_ROT_X (1 << 3) |
Definition at line 81 of file transform_gizmo_3d.cc.
Referenced by gizmo_is_axis_visible().
| #define MAN_ROT_Y (1 << 4) |
Definition at line 82 of file transform_gizmo_3d.cc.
Referenced by gizmo_is_axis_visible().
| #define MAN_ROT_Z (1 << 5) |
Definition at line 83 of file transform_gizmo_3d.cc.
Referenced by gizmo_is_axis_visible().
| #define MAN_SCALE_C (MAN_SCALE_X | MAN_SCALE_Y | MAN_SCALE_Z) |
Definition at line 89 of file transform_gizmo_3d.cc.
Referenced by gizmo_is_axis_visible().
| #define MAN_SCALE_X (1 << 8) |
Definition at line 86 of file transform_gizmo_3d.cc.
Referenced by gizmo_is_axis_visible().
| #define MAN_SCALE_Y (1 << 9) |
Definition at line 87 of file transform_gizmo_3d.cc.
Referenced by gizmo_is_axis_visible().
| #define MAN_SCALE_Z (1 << 10) |
Definition at line 88 of file transform_gizmo_3d.cc.
Referenced by gizmo_is_axis_visible().
| #define MAN_TRANS_C (MAN_TRANS_X | MAN_TRANS_Y | MAN_TRANS_Z) |
Definition at line 79 of file transform_gizmo_3d.cc.
Referenced by gizmo_is_axis_visible().
| #define MAN_TRANS_X (1 << 0) |
Definition at line 76 of file transform_gizmo_3d.cc.
Referenced by gizmo_is_axis_visible().
| #define MAN_TRANS_Y (1 << 1) |
Definition at line 77 of file transform_gizmo_3d.cc.
Referenced by gizmo_is_axis_visible().
| #define MAN_TRANS_Z (1 << 2) |
Definition at line 78 of file transform_gizmo_3d.cc.
Referenced by gizmo_is_axis_visible().
| anonymous enum |
Definition at line 103 of file transform_gizmo_3d.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| MAN_AXES_ALL | |
| MAN_AXES_TRANSLATE | |
| MAN_AXES_ROTATE | |
| MAN_AXES_SCALE | |
Definition at line 137 of file transform_gizmo_3d.cc.
|
static |
Transform widget center calc helper for below.
Definition at line 445 of file transform_gizmo_3d.cc.
References add_v3_v3(), TransformBounds::axis, TransformBounds::axis_max, TransformBounds::axis_min, TransformBounds::center, dot_v3v3(), TransformBounds::max, max_ff(), TransformBounds::min, min_ff(), and minmax_v3v3_v3().
Referenced by ED_transform_calc_gizmo_stats().
| int ED_transform_calc_gizmo_stats | ( | const bContext * | C, |
| const TransformCalcParams * | params, | ||
| TransformBounds * | tbounds, | ||
| RegionView3D * | rv3d ) |
Centroid, bound-box, of selection.
Returns total items selected.
Definition at line 916 of file transform_gizmo_3d.cc.
References TransformBounds::axis, TransformBounds::axis_max, TransformBounds::axis_min, BKE_scene_orientation_get_index(), calc_tw_center(), TransformBounds::center, copy_m3_m3(), copy_m3_m4(), copy_m4_m3(), copy_m4_m4(), copy_v3_v3(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_area(), ED_transform_calc_orientation_from_type_ex(), gizmo_3d_foreach_selected(), gizmo_3d_transform_space_object_get(), invert_m3(), invert_m4_m4(), TransformBounds::matrix_space, TransformBounds::max, TransformBounds::min, Object::mode, mul_m3_m3_pre(), mul_m4_v3(), mul_v3_fl(), normalize_m3(), OB_MODE_EDIT, OB_MODE_POSE, OB_MODE_SCULPT, OBEDIT_FROM_OBACT, params, reset_tw_center(), Object::runtime, SCE_ORIENT_DEFAULT, RegionView3D::tw_axis_matrix, RegionView3D::tw_axis_max, RegionView3D::tw_axis_min, RegionView3D::twdrawflag, RegionView3D::twmat, unit_m3(), unit_m4(), TransformBounds::use_matrix_space, V3D_AROUND_LOCAL_ORIGINS, and zero_v3().
Referenced by gizmo_3d_calc_pos(), gizmo_mesh_extrude_refresh(), gizmo_modal(), WIDGETGROUP_gizmo_refresh(), WIDGETGROUP_tool_generic_refresh(), WIDGETGROUP_xform_cage_refresh(), and WIDGETGROUP_xform_shear_refresh().
| bool ED_transform_calc_pivot_pos | ( | const bContext * | C, |
| const short | pivot_type, | ||
| float | r_pivot_pos[3] ) |
Definition at line 2433 of file transform_gizmo_3d.cc.
References CTX_data_scene(), and gizmo_3d_calc_pos().
Referenced by view3d_orbit_calc_center().
|
static |
Definition at line 1017 of file transform_gizmo_3d.cc.
References add_v3_v3(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), blender::ed::object::calc_active_center(), TransformBounds::center, copy_v3_v3(), CTX_data_view_layer(), ED_transform_calc_gizmo_stats(), float, gizmo_3d_foreach_selected(), TransformBounds::max, mid_v3_v3v3(), TransformBounds::min, Object::mode, mul_m4_v3(), mul_v3_v3fl(), OB_MODE_ALL_SCULPT, SculptSession::pivot_pos, Object::sculpt, TransformCalcParams::use_only_center, V3D_AROUND_ACTIVE, V3D_AROUND_CENTER_BOUNDS, V3D_AROUND_CENTER_MEDIAN, V3D_AROUND_CURSOR, and V3D_AROUND_LOCAL_ORIGINS.
Referenced by ED_transform_calc_pivot_pos(), gizmo_prepare_mat(), and WIDGETGROUP_gizmo_refresh().
|
static |
Definition at line 1245 of file transform_gizmo_3d.cc.
References copy_v3_v3(), cross_v3_v3v3(), ED_view3d_win_to_3d_on_plane(), normalize_v3(), ortho_basis_v3v3_v3(), plane_from_point_normal_v3(), and sub_v3_v3().
Referenced by gizmo_3d_draw_invoke().
|
static |
Definition at line 2038 of file transform_gizmo_3d.cc.
References copy_m3_m4(), wmGizmoGroup::customdata, ED_GIZMO_ARROW_DRAW_FLAG_STEM, ELEM, gizmo_3d_dial_matrixbasis_calc(), gizmo_3d_setup_draw_default(), gizmo_3d_setup_draw_from_twtype(), gizmo_3d_setup_draw_modal(), gizmo_get_axis_type(), gizmo_refresh_from_matrix(), gizmogroup_hide_all(), GizmoGroup::gizmos, invert_m3(), MAN_AXES_ROTATE, MAN_AXES_TRANSLATE, MAN_AXIS_ROT_C, MAN_AXIS_ROT_T, MAN_AXIS_SCALE_C, MAN_AXIS_TRANS_C, MAN_AXIS_TRANS_X, MAN_AXIS_TRANS_Z, wmGizmo::matrix_basis, wmGizmo::matrix_offset, mul_m3_m4m4(), mul_m4_m3m4(), RNA_enum_set(), RegionView3D::twmat, GizmoGroup::twtype, RegionView3D::viewinv, WM_GIZMO_HIDDEN, WM_gizmo_set_flag(), WM_gizmo_set_matrix_rotation_from_z_axis(), and zero_v3().
Referenced by WIDGETGROUP_gizmo_invoke_prepare().
|
static |
Run user_fn for each coordinate of elements selected in View3D (vertices, particles...).
| orient_index | A TransformOrientationSlot.type. Here used for calculating r_drawflags. |
| use_curve_handles | If true, the handles of curves are traversed. |
| use_only_center | For objects in object mode, defines whether the corners of the bounds or just the center are traversed. |
| user_fn | Callback that runs on each coordinate. |
| r_mat | Returns the space matrix of the coordinates. |
| r_drawflags | Drawing flags for gizmos. Usually stored in #RegionView3D::drawflags. |
Definition at line 519 of file transform_gizmo_3d.cc.
References BASE_SELECTED, BASE_SELECTED_EDITABLE, Nurb::bezt, BKE_boundbox_init_from_minmax(), BKE_curve_editNurbs_get(), BKE_editmesh_from_object(), BKE_object_boundbox_get(), BKE_object_pose_array_get(), BKE_view_layer_active_base_get(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), bm, BMEditMesh::bm, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SELECT, BM_ITER_MESH, BM_VERTS_OF_MESH, BONE_CONNECTED, BONE_EDITMODE_LOCKED, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, BONE_TRANSFORM, Nurb::bp, BMVert::co, PTCacheEditKey::co, CTX_data_expect_evaluated_depsgraph(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_area(), CU_BEZIER, CURVE_HANDLE_NONE, Lattice::def, depsgraph, blender::ed::greasepencil::MutableDrawingInfo::drawing, EBONE_VISIBLE, bArmature::edbo, MetaBall::editelems, Lattice::editlatt, ELEM, BezTriple::f1, BPoint::f1, BezTriple::f2, BezTriple::f3, ListBase::first, Base::flag, PTCacheEditKey::flag, FOREACH_EDIT_OBJECT_BEGIN, FOREACH_EDIT_OBJECT_END, blender::index_mask::IndexMask::foreach_index(), blender::ed::greasepencil::MutableDrawingInfo::frame_number, Curves::geometry, blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::bke::crazyspace::get_evaluated_grease_pencil_drawing_deformation(), gizmo_3d_transform_space_object_get(), View3DOverlay::handle_display, invert_m4_m4(), EditLatt::latt, blender::ed::greasepencil::MutableDrawingInfo::layer_index, LISTBASE_FOREACH, Object::mode, mul_m4_m4m4(), mul_v3_m4v3(), Nurb::next, OB_ARMATURE, OB_CURVES, OB_CURVES_LEGACY, OB_GREASE_PENCIL, OB_LATTICE, OB_LOCK_LOC, OB_LOCK_ROT, OB_LOCK_SCALE, OB_MBALL, OB_MESH, OB_MODE_ALL_PAINT, OB_MODE_PARTICLE_EDIT, OB_MODE_POSE, OB_MODE_SCULPT, OB_SURF, OBEDIT_FROM_OBACT, Base::object, View3D::overlay, blender::threading::parallel_for_each(), PE_get_current(), PEK_SELECT, PEK_USE_WCO, PEP_HIDE, SculptSession::pivot_pos, Lattice::pntsu, Nurb::pntsu, Lattice::pntsv, Nurb::pntsv, Lattice::pntsw, point, PTCacheEdit::points, protectflag_to_drawflags(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::ed::greasepencil::retrieve_editable_drawings(), blender::ed::curves::retrieve_selected_points(), Object::runtime, Object::sculpt, SELECT, blender::index_mask::IndexMask::size(), blender::bke::greasepencil::Drawing::strokes(), TFM_ROTATION, PTCacheEdit::totpoint, BMesh::totvertsel, transform_convert_pose_transflags_update(), Nurb::type, V3D_AROUND_CENTER_BOUNDS, V3D_ORIENT_GIMBAL, V3D_ORIENT_GLOBAL, V3D_ORIENT_LOCAL, BezTriple::vec, BPoint::vec, and PTCacheEditKey::world_co.
Referenced by ED_transform_calc_gizmo_stats(), and gizmo_3d_calc_pos().
Definition at line 1292 of file transform_gizmo_3d.cc.
References copy_m4_m3(), copy_v3_fl3(), M_SQRT1_2, MAN_AXIS_ROT_C, MAN_AXIS_ROT_T, MAN_AXIS_ROT_X, MAN_AXIS_ROT_Y, MAN_AXIS_ROT_Z, MAN_AXIS_SCALE_C, MAN_AXIS_SCALE_X, MAN_AXIS_SCALE_XY, MAN_AXIS_SCALE_Y, MAN_AXIS_SCALE_YZ, MAN_AXIS_SCALE_Z, MAN_AXIS_SCALE_ZX, MAN_AXIS_TRANS_C, MAN_AXIS_TRANS_X, MAN_AXIS_TRANS_XY, MAN_AXIS_TRANS_Y, MAN_AXIS_TRANS_YZ, MAN_AXIS_TRANS_Z, and MAN_AXIS_TRANS_ZX.
Referenced by gizmo_3d_setup_draw_default().
Definition at line 1350 of file transform_gizmo_3d.cc.
References ED_GIZMO_ARROW_DRAW_FLAG_STEM, ED_GIZMO_ARROW_STYLE_BOX, ED_GIZMO_ARROW_STYLE_NORMAL, ED_GIZMO_ARROW_STYLE_PLANE, ED_GIZMO_DIAL_DRAW_FLAG_CLIP, ED_GIZMO_DIAL_DRAW_FLAG_FILL, ED_GIZMO_DIAL_DRAW_FLAG_NOP, ED_GIZMO_PRIMITIVE_STYLE_ANNULUS, ED_GIZMO_PRIMITIVE_STYLE_CIRCLE, gizmo_3d_setup_default_matrix(), GIZMO_AXIS_LINE_WIDTH, gizmo_get_axis_type(), MAN_AXES_ROTATE, MAN_AXIS_ROT_C, MAN_AXIS_ROT_T, MAN_AXIS_ROT_X, MAN_AXIS_ROT_Y, MAN_AXIS_ROT_Z, MAN_AXIS_SCALE_C, MAN_AXIS_SCALE_PLANE_SCALE, MAN_AXIS_SCALE_X, MAN_AXIS_SCALE_XY, MAN_AXIS_SCALE_Y, MAN_AXIS_SCALE_YZ, MAN_AXIS_SCALE_Z, MAN_AXIS_SCALE_ZX, MAN_AXIS_TRANS_C, MAN_AXIS_TRANS_X, MAN_AXIS_TRANS_XY, MAN_AXIS_TRANS_Y, MAN_AXIS_TRANS_YZ, MAN_AXIS_TRANS_Z, MAN_AXIS_TRANS_ZX, RNA_boolean_set(), RNA_enum_set(), RNA_float_set(), WM_GIZMO_DRAW_HOVER, WM_GIZMO_DRAW_VALUE, WM_GIZMO_SELECT_BACKGROUND, WM_gizmo_set_flag(), WM_gizmo_set_line_width(), and WM_gizmo_set_scale().
Referenced by gizmo_3d_draw_invoke(), gizmogroup_init(), and transform_gizmo_3d_model_from_constraint_and_mode_restore().
|
static |
Definition at line 1457 of file transform_gizmo_3d.cc.
References ED_GIZMO_ARROW_DRAW_FLAG_STEM, gizmo_get_axis_type(), gizmo_line_range(), MAN_AXES_ROTATE, MAN_AXIS_SCALE_X, MAN_AXIS_SCALE_Y, MAN_AXIS_SCALE_Z, MAN_AXIS_TRANS_X, MAN_AXIS_TRANS_Y, MAN_AXIS_TRANS_Z, mul_v3_v3fl(), RNA_enum_set(), RNA_float_set(), V3D_GIZMO_SHOW_OBJECT_ROTATE, V3D_GIZMO_SHOW_OBJECT_SCALE, WM_GIZMO_DRAW_OFFSET_SCALE, and WM_gizmo_set_flag().
Referenced by gizmo_3d_draw_invoke(), gizmogroup_init_properties_from_twtype(), and transform_gizmo_3d_model_from_constraint_and_mode_restore().
|
static |
Definition at line 1503 of file transform_gizmo_3d.cc.
References ED_GIZMO_ARROW_DRAW_FLAG_ORIGIN, ED_GIZMO_ARROW_DRAW_FLAG_STEM, ED_GIZMO_DIAL_DRAW_FLAG_ANGLE_VALUE, ED_GIZMO_PRIMITIVE_STYLE_CIRCLE, gizmo_get_axis_type(), gizmo_line_range(), MAN_AXES_ROTATE, MAN_AXIS_SCALE_C, MAN_AXIS_SCALE_X, MAN_AXIS_SCALE_XY, MAN_AXIS_SCALE_Y, MAN_AXIS_SCALE_YZ, MAN_AXIS_SCALE_Z, MAN_AXIS_SCALE_ZX, MAN_AXIS_TRANS_X, MAN_AXIS_TRANS_XY, MAN_AXIS_TRANS_Y, MAN_AXIS_TRANS_YZ, MAN_AXIS_TRANS_Z, MAN_AXIS_TRANS_ZX, RNA_enum_set(), RNA_float_set(), RNA_property_enum_get(), RNA_property_enum_set(), RNA_struct_find_property(), WM_GIZMO_DRAW_OFFSET_SCALE, WM_gizmo_set_flag(), and WM_gizmo_set_matrix_offset_location().
Referenced by gizmo_3d_draw_invoke().
|
static |
Definition at line 491 of file transform_gizmo_3d.cc.
References BKE_object_pose_armature_get(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), BLI_assert, Object::mode, OB_MODE_EDIT, and OB_MODE_WEIGHT_PAINT.
Referenced by ED_transform_calc_gizmo_stats(), and gizmo_3d_foreach_selected().
|
static |
Definition at line 320 of file transform_gizmo_3d.cc.
References copy_v4_v4(), g_tw_axis_range, gizmo_orientation_axis(), MAN_AXIS_RANGE_ROT_END, MAN_AXIS_RANGE_ROT_START, MAN_AXIS_ROT_C, MAN_AXIS_ROT_T, MAN_AXIS_ROT_X, MAN_AXIS_ROT_Y, MAN_AXIS_ROT_Z, MAN_AXIS_SCALE_C, MAN_AXIS_SCALE_X, MAN_AXIS_SCALE_XY, MAN_AXIS_SCALE_Y, MAN_AXIS_SCALE_YZ, MAN_AXIS_SCALE_Z, MAN_AXIS_SCALE_ZX, MAN_AXIS_TRANS_C, MAN_AXIS_TRANS_X, MAN_AXIS_TRANS_XY, MAN_AXIS_TRANS_Y, MAN_AXIS_TRANS_YZ, MAN_AXIS_TRANS_Z, MAN_AXIS_TRANS_ZX, TH_AXIS_X, TH_AXIS_Y, TH_AXIS_Z, TH_GIZMO_VIEW_ALIGN, and UI_GetThemeColor4fv().
Referenced by WIDGETGROUP_gizmo_draw_prepare().
|
static |
Definition at line 392 of file transform_gizmo_3d.cc.
References ARRAY_SET_ITEMS, MAN_AXIS_ROT_X, MAN_AXIS_ROT_Y, MAN_AXIS_ROT_Z, MAN_AXIS_SCALE_X, MAN_AXIS_SCALE_XY, MAN_AXIS_SCALE_Y, MAN_AXIS_SCALE_YZ, MAN_AXIS_SCALE_Z, MAN_AXIS_SCALE_ZX, MAN_AXIS_TRANS_X, MAN_AXIS_TRANS_XY, MAN_AXIS_TRANS_Y, MAN_AXIS_TRANS_YZ, MAN_AXIS_TRANS_Z, and MAN_AXIS_TRANS_ZX.
Referenced by gizmogroup_init_properties_from_twtype().
|
static |
Definition at line 181 of file transform_gizmo_3d.cc.
References BLI_assert, GizmoGroup::gizmos, IN_RANGE_INCL, MAN_AXIS_LAST, and MAN_AXIS_TRANS_X.
|
static |
Definition at line 187 of file transform_gizmo_3d.cc.
References BLI_assert, MAN_AXES_ROTATE, MAN_AXES_SCALE, MAN_AXES_TRANSLATE, MAN_AXIS_RANGE_ROT_END, MAN_AXIS_RANGE_ROT_START, MAN_AXIS_RANGE_SCALE_END, MAN_AXIS_RANGE_SCALE_START, MAN_AXIS_RANGE_TRANS_END, and MAN_AXIS_RANGE_TRANS_START.
Referenced by gizmo_3d_draw_invoke(), gizmo_3d_setup_draw_default(), gizmo_3d_setup_draw_from_twtype(), gizmo_3d_setup_draw_modal(), gizmo_modal(), gizmo_refresh_from_matrix(), gizmogroup_init_properties_from_twtype(), WIDGETGROUP_gizmo_draw_prepare(), and WIDGETGROUP_gizmo_invoke_prepare().
|
static |
Definition at line 1007 of file transform_gizmo_3d.cc.
References dot_v3v3(), ED_view3d_global_to_vector(), fabsf, normalize_v3_v3(), and RegionView3D::twmat.
Referenced by WIDGETGROUP_gizmo_draw_prepare().
|
static |
Definition at line 241 of file transform_gizmo_3d.cc.
References g_tw_axis_range, gizmo_orientation_axis(), MAN_AXES_ROTATE, MAN_AXES_SCALE, MAN_AXES_TRANSLATE, MAN_AXIS_RANGE_ROT_END, MAN_AXIS_RANGE_ROT_START, MAN_AXIS_ROT_C, MAN_AXIS_ROT_T, MAN_AXIS_ROT_X, MAN_AXIS_ROT_Y, MAN_AXIS_ROT_Z, MAN_AXIS_SCALE_C, MAN_AXIS_SCALE_X, MAN_AXIS_SCALE_XY, MAN_AXIS_SCALE_Y, MAN_AXIS_SCALE_YZ, MAN_AXIS_SCALE_Z, MAN_AXIS_SCALE_ZX, MAN_AXIS_TRANS_C, MAN_AXIS_TRANS_X, MAN_AXIS_TRANS_XY, MAN_AXIS_TRANS_Y, MAN_AXIS_TRANS_YZ, MAN_AXIS_TRANS_Z, MAN_AXIS_TRANS_ZX, MAN_ROT_C, MAN_ROT_X, MAN_ROT_Y, MAN_ROT_Z, MAN_SCALE_C, MAN_SCALE_X, MAN_SCALE_Y, MAN_SCALE_Z, MAN_TRANS_C, MAN_TRANS_X, MAN_TRANS_Y, MAN_TRANS_Z, min, RegionView3D::twdrawflag, V3D_GIZMO_SHOW_OBJECT_ROTATE, V3D_GIZMO_SHOW_OBJECT_SCALE, and V3D_GIZMO_SHOW_OBJECT_TRANSLATE.
Referenced by WIDGETGROUP_gizmo_draw_prepare().
|
static |
Sets up r_start and r_len to define arrow line range. Needed to adjust line drawing for combined gizmo axis types.
Definition at line 1099 of file transform_gizmo_3d.cc.
References MAN_AXES_SCALE, MAN_AXES_TRANSLATE, V3D_GIZMO_SHOW_OBJECT_ROTATE, V3D_GIZMO_SHOW_OBJECT_SCALE, and V3D_GIZMO_SHOW_OBJECT_TRANSLATE.
Referenced by gizmo_3d_setup_draw_from_twtype(), gizmo_3d_setup_draw_modal(), and gizmo_refresh_from_matrix().
|
static |
Custom handler for gizmo widgets
Definition at line 1622 of file transform_gizmo_3d.cc.
References ARRAY_SIZE, BLI_array_findindex, copy_m4_m4(), CTX_wm_region(), CTX_wm_window(), wmGizmoGroup::customdata, wmOperator::customdata, ED_region_tag_redraw_editor_overlays(), ED_transform_calc_gizmo_stats(), ELEM, gizmo_get_axis_type(), gizmo_prepare_mat(), gizmogroup_refresh_from_matrix(), GizmoGroup::gizmos, wmGizmoGroup::gizmos, INBETWEEN_MOUSEMOVE, LISTBASE_FOREACH, MAN_AXES_ROTATE, MAN_AXES_SCALE, MAN_AXIS_ROT_C, wmGizmo::op_data, OPERATOR_RUNNING_MODAL, wmGizmo::parent_gzgroup, wmGizmo::ptr, RNA_float_set(), GizmoGroup::rotation, TIMER, transform_apply_matrix(), transform_final_value_get(), transform_snap_increment_get(), RegionView3D::twmat, wmEvent::type, update(), TransformCalcParams::use_only_center, WM_gizmo_set_matrix_location(), and WM_operator_find_modal_by_type().
Referenced by gizmogroup_init_properties_from_twtype().
Definition at line 202 of file transform_gizmo_3d.cc.
References ATTR_FALLTHROUGH, MAN_AXIS_ROT_X, MAN_AXIS_ROT_Y, MAN_AXIS_ROT_Z, MAN_AXIS_SCALE_X, MAN_AXIS_SCALE_XY, MAN_AXIS_SCALE_Y, MAN_AXIS_SCALE_YZ, MAN_AXIS_SCALE_Z, MAN_AXIS_SCALE_ZX, MAN_AXIS_TRANS_X, MAN_AXIS_TRANS_XY, MAN_AXIS_TRANS_Y, MAN_AXIS_TRANS_YZ, MAN_AXIS_TRANS_Z, and MAN_AXIS_TRANS_ZX.
Referenced by gizmo_get_axis_color(), gizmo_is_axis_visible(), and gizmo_refresh_from_matrix().
| void gizmo_prepare_mat | ( | const bContext * | C, |
| RegionView3D * | rv3d, | ||
| const TransformBounds * | tbounds ) |
Definition at line 1089 of file transform_gizmo_3d.cc.
References CTX_data_scene(), gizmo_3d_calc_pos(), and RegionView3D::twmat.
Referenced by gizmo_modal(), WIDGETGROUP_xform_cage_refresh(), and WIDGETGROUP_xform_shear_refresh().
|
static |
Set properties for axes.
| twmat | The transform matrix (typically RegionView3D.twmat). |
| scale | Optional scale, to show scale while modally dragging the scale handles. |
Definition at line 1818 of file transform_gizmo_3d.cc.
References copy_m4_m4(), gizmo_get_axis_type(), gizmo_line_range(), gizmo_orientation_axis(), MAN_AXIS_ROT_C, MAN_AXIS_ROT_T, MAN_AXIS_ROT_X, MAN_AXIS_ROT_Y, MAN_AXIS_ROT_Z, MAN_AXIS_SCALE_C, MAN_AXIS_SCALE_PLANE_SCALE, MAN_AXIS_SCALE_X, MAN_AXIS_SCALE_XY, MAN_AXIS_SCALE_Y, MAN_AXIS_SCALE_YZ, MAN_AXIS_SCALE_Z, MAN_AXIS_SCALE_ZX, MAN_AXIS_TRANS_X, MAN_AXIS_TRANS_XY, MAN_AXIS_TRANS_Y, MAN_AXIS_TRANS_YZ, MAN_AXIS_TRANS_Z, MAN_AXIS_TRANS_ZX, orthogonalize_m4(), RNA_float_set(), WM_gizmo_set_matrix_location(), and WM_gizmo_set_scale().
Referenced by gizmo_3d_draw_invoke(), gizmogroup_refresh_from_matrix(), and transform_gizmo_3d_model_from_constraint_and_mode_set().
| void gizmo_xform_message_subscribe | ( | wmGizmoGroup * | gzgroup, |
| wmMsgBus * | mbus, | ||
| Scene * | scene, | ||
| bScreen * | screen, | ||
| ScrArea * | area, | ||
| ARegion * | region, | ||
| void(* | type_fn )(wmGizmoGroupType *) ) |
Definition at line 1131 of file transform_gizmo_3d.cc.
References ARRAY_SIZE, BKE_scene_orientation_slot_get_from_flag(), BLI_assert, wmGizmoGroup::customdata, ELEM, lock, wmMsgSubscribeValue::owner, wmGizmoGroup::parent_gzmap, RNA_id_pointer_create(), RNA_pointer_create(), ToolSettings::transform_pivot_point, GizmoGroup::twtype_init, TransformOrientationSlot::type, GizmoGroup::use_twtype_refresh, V3D_AROUND_CURSOR, V3D_GIZMO_SHOW_OBJECT_ROTATE, V3D_GIZMO_SHOW_OBJECT_SCALE, V3D_ORIENT_CURSOR, VIEW3D_GGT_xform_cage(), VIEW3D_GGT_xform_gizmo(), VIEW3D_GGT_xform_shear(), WM_gizmo_do_msg_notify_tag_refresh(), WM_msg_subscribe_rna(), and WM_msg_subscribe_rna_anon_prop.
Referenced by WIDGETGROUP_gizmo_message_subscribe(), WIDGETGROUP_xform_cage_message_subscribe(), and WIDGETGROUP_xform_shear_message_subscribe().
|
static |
Definition at line 1947 of file transform_gizmo_3d.cc.
References MAN_ITER_AXES_BEGIN, MAN_ITER_AXES_END, WM_GIZMO_HIDDEN, and WM_gizmo_set_flag().
Referenced by gizmo_3d_draw_invoke(), and WIDGETGROUP_gizmo_draw_prepare().
|
static |
Definition at line 1551 of file transform_gizmo_3d.cc.
References gizmo_3d_setup_draw_default(), GIZMO_NEW_ARROW, GIZMO_NEW_DIAL, GIZMO_NEW_PRIM, MAN_AXIS_ROT_C, MAN_AXIS_ROT_T, MAN_AXIS_ROT_X, MAN_AXIS_ROT_Y, MAN_AXIS_ROT_Z, MAN_AXIS_SCALE_C, MAN_AXIS_SCALE_X, MAN_AXIS_SCALE_XY, MAN_AXIS_SCALE_Y, MAN_AXIS_SCALE_YZ, MAN_AXIS_SCALE_Z, MAN_AXIS_SCALE_ZX, MAN_AXIS_TRANS_C, MAN_AXIS_TRANS_X, MAN_AXIS_TRANS_XY, MAN_AXIS_TRANS_Y, MAN_AXIS_TRANS_YZ, MAN_AXIS_TRANS_Z, MAN_AXIS_TRANS_ZX, MAN_ITER_AXES_BEGIN, MAN_ITER_AXES_END, params, rotation_get_fn(), rotation_set_fn(), and WM_gizmotype_find().
Referenced by WIDGETGROUP_gizmo_setup().
|
static |
Definition at line 1707 of file transform_gizmo_3d.cc.
References wmGizmoGroup::customdata, ELEM, gizmo_3d_setup_draw_from_twtype(), gizmo_get_axis_constraint(), gizmo_get_axis_type(), gizmo_modal(), MAN_AXES_ROTATE, MAN_AXES_SCALE, MAN_AXES_TRANSLATE, MAN_AXIS_ROT_T, MAN_ITER_AXES_BEGIN, MAN_ITER_AXES_END, ptr, RNA_boolean_set(), RNA_property_boolean_set_array(), RNA_struct_find_property(), rotate(), GizmoGroup::twtype, UNPACK3, WM_gizmo_operator_set(), WM_gizmo_set_fn_custom_modal(), and WM_operatortype_find().
Referenced by WIDGETGROUP_gizmo_refresh(), and WIDGETGROUP_gizmo_setup().
|
static |
Definition at line 1877 of file transform_gizmo_3d.cc.
References wmGizmoGroup::customdata, gizmo_refresh_from_matrix(), MAN_ITER_AXES_BEGIN, MAN_ITER_AXES_END, GizmoGroup::twtype, and WM_GIZMO_HIDDEN.
Referenced by gizmo_modal(), and WIDGETGROUP_gizmo_refresh().
|
static |
Definition at line 2274 of file transform_gizmo_3d.cc.
References BLI_assert_msg, wmGizmoGroup::customdata, ELEM, g_GGT_xform_gizmo, g_GGT_xform_gizmo_context, ARegion::gizmo_map, LISTBASE_FOREACH, wmGizmo::parent_gzgroup, TransInfo::region, wmGizmoGroup::type, WM_gizmomap_get_modal(), and WM_gizmomap_group_list().
Referenced by transform_gizmo_3d_model_from_constraint_and_mode_restore(), and transform_gizmo_3d_model_from_constraint_and_mode_set().
|
static |
Definition at line 457 of file transform_gizmo_3d.cc.
References OB_LOCK_LOCX, OB_LOCK_LOCY, OB_LOCK_LOCZ, OB_LOCK_ROTX, OB_LOCK_ROTY, OB_LOCK_ROTZ, OB_LOCK_SCALEX, OB_LOCK_SCALEY, and OB_LOCK_SCALEZ.
Referenced by gizmo_3d_foreach_selected().
|
static |
Definition at line 431 of file transform_gizmo_3d.cc.
References TransformBounds::axis_max, TransformBounds::axis_min, TransformBounds::center, FLT_MAX, INIT_MINMAX, TransformBounds::max, TransformBounds::min, and zero_v3().
Referenced by ED_transform_calc_gizmo_stats().
|
static |
Definition at line 1280 of file transform_gizmo_3d.cc.
References wmGizmoProperty::custom_func, GizmoGroup::rotation, and wmGizmoProperty::user_data.
Referenced by gizmogroup_init().
|
static |
Definition at line 1286 of file transform_gizmo_3d.cc.
References wmGizmoProperty::custom_func, GizmoGroup::rotation, and wmGizmoProperty::user_data.
Referenced by gizmogroup_init().
| void transform_gizmo_3d_model_from_constraint_and_mode_init | ( | TransInfo * | t | ) |
Set the T_NO_GIZMO flag.
Definition at line 2305 of file transform_gizmo_3d.cc.
References ELEM, TransInfo::flag, g_GGT_xform_gizmo, g_GGT_xform_gizmo_context, ARegion::gizmo_map, wmGizmo::parent_gzgroup, TransInfo::region, T_NO_GIZMO, wmGizmoGroup::type, and WM_gizmomap_get_modal().
Referenced by initTransInfo().
| void transform_gizmo_3d_model_from_constraint_and_mode_restore | ( | TransInfo * | t | ) |
Restores the non-modal state of the gizmo.
Definition at line 2412 of file transform_gizmo_3d.cc.
References wmGizmoGroup::customdata, TransInfo::flag, gizmo_3d_setup_draw_default(), gizmo_3d_setup_draw_from_twtype(), gizmogroup_xform_find(), MAN_ITER_AXES_BEGIN, MAN_ITER_AXES_END, T_NO_GIZMO, and GizmoGroup::twtype.
Referenced by transformEnd().
| void transform_gizmo_3d_model_from_constraint_and_mode_set | ( | TransInfo * | t | ) |
Change the gizmo and its orientation to match the transform state.
Definition at line 2318 of file transform_gizmo_3d.cc.
References BLI_assert_msg, BLI_STATIC_ASSERT, TransInfo::center_global, TransInfo::con, CON_APPLY, CON_AXIS0, CON_AXIS1, CON_AXIS2, TransInfo::context, copy_m4_m3(), copy_v2_v2_int(), copy_v3_v3(), wmGizmoGroup::customdata, ELEM, equals_v3v3(), TransInfo::flag, float, ARegion::gizmo_map, gizmo_refresh_from_matrix(), gizmogroup_xform_find(), GizmoGroup::gizmos, wmGizmo::highlight_part, MouseInput::imval, MAN_AXIS_ROT_C, MAN_AXIS_ROT_X, MAN_AXIS_ROT_Y, MAN_AXIS_ROT_Z, MAN_AXIS_SCALE_C, MAN_AXIS_SCALE_X, MAN_AXIS_SCALE_XY, MAN_AXIS_SCALE_Y, MAN_AXIS_SCALE_YZ, MAN_AXIS_SCALE_Z, MAN_AXIS_SCALE_ZX, MAN_AXIS_TRANS_C, MAN_AXIS_TRANS_X, MAN_AXIS_TRANS_XY, MAN_AXIS_TRANS_Y, MAN_AXIS_TRANS_YZ, MAN_AXIS_TRANS_Z, MAN_AXIS_TRANS_ZX, TransInfo::matrix, TransCon::mode, TransInfo::mode, TransInfo::mouse, O_DEFAULT, O_SCENE, TransInfo::orient, TransInfo::orient_curr, TransInfo::region, ARegion::regiondata, T_NO_GIZMO, TFM_RESIZE, TFM_ROTATION, TFM_TRACKBALL, TFM_TRANSLATION, RegionView3D::twmat, GizmoGroup::twtype, WM_gizmo_highlight_set(), WM_gizmo_modal_set_while_modal(), and WM_gizmomap_get_modal().
Referenced by setNearestAxis(), snapsource_end(), transform_event_modal_constraint(), and transform_mode_init().
| void VIEW3D_GGT_xform_gizmo | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 2217 of file transform_gizmo_3d.cc.
References wmGizmoGroupType::draw_prepare, wmGizmoGroupType::flag, g_GGT_xform_gizmo, wmGizmoGroupType::gzmap_params, wmGizmoGroupType::idname, wmGizmoGroupType::invoke_prepare, wmGizmoGroupType::message_subscribe, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoMapType_Params::regionid, RGN_TYPE_WINDOW, RNA_def_enum(), wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, SPACE_VIEW3D, wmGizmoMapType_Params::spaceid, wmGizmoGroupType::srna, V3D_GIZMO_SHOW_OBJECT_ROTATE, V3D_GIZMO_SHOW_OBJECT_SCALE, V3D_GIZMO_SHOW_OBJECT_TRANSLATE, WIDGETGROUP_gizmo_draw_prepare(), WIDGETGROUP_gizmo_invoke_prepare(), WIDGETGROUP_gizmo_message_subscribe(), WIDGETGROUP_gizmo_poll_tool(), WIDGETGROUP_gizmo_refresh(), WIDGETGROUP_gizmo_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DELAY_REFRESH_FOR_TWEAK, and WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP.
Referenced by gizmo_xform_message_subscribe(), view3d_widgets(), and WIDGETGROUP_gizmo_message_subscribe().
| void VIEW3D_GGT_xform_gizmo_context | ( | wmGizmoGroupType * | gzgt | ) |
Only poll, flag & gzmap_params differ.
Definition at line 2253 of file transform_gizmo_3d.cc.
References wmGizmoGroupType::draw_prepare, wmGizmoGroupType::flag, g_GGT_xform_gizmo_context, wmGizmoGroupType::idname, wmGizmoGroupType::invoke_prepare, wmGizmoGroupType::message_subscribe, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_gizmo_draw_prepare(), WIDGETGROUP_gizmo_invoke_prepare(), WIDGETGROUP_gizmo_message_subscribe(), WIDGETGROUP_gizmo_poll_context(), WIDGETGROUP_gizmo_refresh(), WIDGETGROUP_gizmo_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DELAY_REFRESH_FOR_TWEAK, WM_GIZMOGROUPTYPE_PERSISTENT, and WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP.
Referenced by view3d_widgets().
|
static |
Definition at line 1955 of file transform_gizmo_3d.cc.
References GizmoGroup::all_hidden, BKE_scene_orientation_slot_get_from_flag(), copy_m3_m4(), CTX_data_scene(), CTX_wm_region(), wmGizmoGroup::customdata, ED_view3d_pixel_size(), equals_m3m3(), fabsf, gizmo_get_axis_color(), gizmo_get_axis_type(), gizmo_get_idot(), gizmo_is_axis_visible(), gizmogroup_hide_all(), MAN_AXIS_ROT_C, MAN_AXIS_ROT_T, MAN_AXIS_SCALE_C, MAN_AXIS_TRANS_C, MAN_ITER_AXES_BEGIN, MAN_ITER_AXES_END, wmGizmo::parent_gzgroup, GizmoGroup::prev, RegionView3D::twmat, GizmoGroup::twtype, GizmoGroup::twtype_init, TransformOrientationSlot::type, V3D_ORIENT_VIEW, RegionView3D::viewinv, GizmoGroup::viewinv_m3, WIDGETGROUP_gizmo_refresh(), WM_GIZMO_HIDDEN, WM_gizmo_set_color(), WM_gizmo_set_color_highlight(), WM_gizmo_set_flag(), WM_gizmo_set_matrix_rotation_from_z_axis(), and WM_gizmomap_get_modal().
Referenced by VIEW3D_GGT_xform_gizmo(), and VIEW3D_GGT_xform_gizmo_context().
|
static |
Definition at line 2088 of file transform_gizmo_3d.cc.
References ARRAY_SIZE, BKE_scene_orientation_slot_get_from_flag(), BKE_scene_orientation_slot_get_index(), BLI_array_findindex, BLI_assert, CTX_data_scene(), CTX_wm_region(), wmGizmoGroup::customdata, float, gizmo_3d_draw_invoke(), gizmo_get_axis_type(), GizmoGroup::gizmos, KM_SHIFT, MAN_AXES_ROTATE, MAN_AXIS_ROT_C, MAN_AXIS_ROT_T, MAN_AXIS_SCALE_X, MAN_AXIS_SCALE_Y, MAN_AXIS_SCALE_Z, MAN_AXIS_TRANS_X, MAN_AXIS_TRANS_Y, MAN_AXIS_TRANS_Z, wmEvent::mval, ptr, wmGizmoOpElem::ptr, RNA_property_boolean_set_array(), RNA_property_enum_set(), RNA_property_unset(), RNA_struct_find_property(), SCE_ORIENT_DEFAULT, GizmoGroup::twtype_init, and WM_gizmo_operator_get().
Referenced by VIEW3D_GGT_xform_gizmo(), and VIEW3D_GGT_xform_gizmo_context().
|
static |
Definition at line 1935 of file transform_gizmo_3d.cc.
References CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), CTX_wm_screen(), gizmo_xform_message_subscribe(), and VIEW3D_GGT_xform_gizmo().
Referenced by VIEW3D_GGT_xform_gizmo(), and VIEW3D_GGT_xform_gizmo_context().
|
static |
Definition at line 2170 of file transform_gizmo_3d.cc.
References CTX_wm_area(), View3D::gizmo_flag, bToolRef_Runtime::gizmo_group, View3D::gizmo_show_object, bToolRef::runtime, V3D_GIZMO_HIDE_CONTEXT, V3D_GIZMO_SHOW_OBJECT_ROTATE, V3D_GIZMO_SHOW_OBJECT_SCALE, V3D_GIZMO_SHOW_OBJECT_TRANSLATE, and WIDGETGROUP_gizmo_poll_generic().
Referenced by VIEW3D_GGT_xform_gizmo_context().
|
static |
Definition at line 2159 of file transform_gizmo_3d.cc.
References G, G_TRANSFORM_EDIT, G_TRANSFORM_OBJ, View3D::gizmo_flag, and V3D_GIZMO_HIDE.
Referenced by WIDGETGROUP_gizmo_poll_context(), and WIDGETGROUP_gizmo_poll_tool().
|
static |
Definition at line 2195 of file transform_gizmo_3d.cc.
References CTX_wm_area(), ED_gizmo_poll_or_unlink_delayed_from_tool(), View3D::gizmo_flag, V3D_GIZMO_HIDE_TOOL, and WIDGETGROUP_gizmo_poll_generic().
Referenced by VIEW3D_GGT_xform_gizmo().
|
static |
Definition at line 1893 of file transform_gizmo_3d.cc.
References GizmoGroup::all_hidden, BKE_scene_orientation_get_index_from_flag(), CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), wmGizmoGroup::customdata, ED_transform_calc_gizmo_stats(), gizmo_3d_calc_pos(), View3D::gizmo_show_object, gizmogroup_init_properties_from_twtype(), gizmogroup_refresh_from_matrix(), wmGizmo::parent_gzgroup, RegionView3D::twmat, GizmoGroup::twtype, GizmoGroup::twtype_init, GizmoGroup::twtype_prev, TransformCalcParams::use_only_center, GizmoGroup::use_twtype_refresh, and WM_gizmomap_get_modal().
Referenced by VIEW3D_GGT_xform_gizmo(), VIEW3D_GGT_xform_gizmo_context(), and WIDGETGROUP_gizmo_draw_prepare().
|
static |
Definition at line 1773 of file transform_gizmo_3d.cc.
References BLI_assert, CTX_wm_area(), wmGizmoGroup::customdata, gizmogroup_init(), gizmogroup_init_properties_from_twtype(), bToolRef::idname, bToolRef::runtime, STREQ, GizmoGroup::twtype, GizmoGroup::twtype_init, GizmoGroup::use_twtype_refresh, V3D_GIZMO_SHOW_OBJECT_ROTATE, V3D_GIZMO_SHOW_OBJECT_SCALE, and V3D_GIZMO_SHOW_OBJECT_TRANSLATE.
Referenced by VIEW3D_GGT_xform_gizmo(), and VIEW3D_GGT_xform_gizmo_context().
|
static |
Definition at line 66 of file transform_gizmo_3d.cc.
Referenced by gizmogroup_xform_find(), transform_gizmo_3d_model_from_constraint_and_mode_init(), and VIEW3D_GGT_xform_gizmo().
|
static |
Definition at line 67 of file transform_gizmo_3d.cc.
Referenced by gizmogroup_xform_find(), transform_gizmo_3d_model_from_constraint_and_mode_init(), and VIEW3D_GGT_xform_gizmo_context().
| struct { ... } g_tw_axis_range[2] |
Referenced by gizmo_get_axis_color(), and gizmo_is_axis_visible().
| float max |
Definition at line 93 of file transform_gizmo_3d.cc.
Referenced by actkeys_previewrange_exec(), actkeys_viewall(), GHOST_WindowWin32::adjustWindowRectForClosestMonitor(), AdaptiveSampling::align_samples(), PathTraceWorkGPU::alloc_integrator_soa(), PathTraceWorkGPU::alloc_integrator_sorting(), FallbackTransform::applyRGB(), area_light_rect_sample(), area_light_spread_attenuation(), area_light_spread_clamp_light(), Freestyle::OccluderSource::averageOccluderArea(), background_map_sample(), bake_offset_towards_center(), bevelinside(), BKE_editmesh_cache_calc_minmax(), BKE_fcurve_calc_range(), BKE_gpencil_data_minmax(), BKE_object_evaluated_geometry_bounds(), BKE_object_minmax_empty_drawtype(), BKE_pchan_minmax(), BKE_pose_minmax(), blender_camera_from_object(), Freestyle::BlenderStrokeRenderer::BlenderStrokeRenderer(), blf_charcode_to_unicode_block(), BLI_str_utf32_char_to_lower(), BLI_str_utf32_char_to_upper(), bm_corners_to_loops_ex(), bmo_average_vert_facedata_exec(), bmo_collapsecon_do_layer(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), brush_edit_init(), bsdf_alloc(), bsdf_hair_chiang_sample(), bsdf_hair_huang_eval(), bsdf_hair_huang_eval_trrt(), bsdf_hair_huang_sample(), bsdf_oren_nayar_get_intensity(), bsdf_oren_nayar_setup(), bssrdf_setup(), blender::deg::DepsgraphNodeBuilder::build_object(), bvh_aligned_node_intersect(), bvh_unaligned_node_intersect_child(), Subpatch::calc_num_inner_verts(), Subpatch::calc_num_triangles(), calc_nurblist_bounds(), calculate_collision_balls(), RenderScheduler::calculate_num_samples_per_update(), calculate_resolution_divider_for_resolution(), Hair::Curve::cardinal_keys_for_step(), Clamp(), clamp(), clamp(), clamp(), clamp(), clamp(), clamp(), clamp(), clamp(), clamp(), clamp(), clamp_axis_max_v3(), clamp_f(), clampis_uint(), SVMCompiler::CompilerState::CompilerState(), btConvexHullInternal::compute(), BVHUnaligned::compute_node_transform(), BlackbodyNode::constant_fold(), blender::gpu::convert(), BVHBuild::create_leaf_node(), BVHBuild::create_object_leaf_nodes(), create_subd_mesh(), GeometryManager::create_volume_mesh(), Freestyle::crossesProscenium(), CubeTriangleIsect::CubeTriangleIsect(), curvebounds(), curvemap_minmax_curve(), device_only_memory< T >::device_only_memory(), LightManager::device_update_background(), QuadDice::dice(), direction_to_mirrorball(), do_2d_mapping(), ED_gizmo_arrow3d_set_ui_range(), ED_markers_get_minmax(), edge_pan_speed(), PathTraceWorkGPU::enqueue_work_tiles(), PathTraceWorkGPU::enqueue_work_tiles(), blender::bke::pbvh::pixels::Rows::find_copy_source(), float4_to_half4_display(), float_uint(), foreach_sliced_buffer_params(), Integrator::get_adaptive_sampling(), BlenderSync::get_buffer_params(), Session::get_estimated_remaining_time(), Scene::get_max_closure_count(), Device::get_multi_device(), RenderScheduler::get_num_samples_during_navigation(), RenderScheduler::get_num_samples_to_path_trace(), Progress::get_progress(), RenderScheduler::get_render_work(), BlenderSync::get_session_params(), slim::get_smallest_pos_quad_zero(), TileManager::get_tile_for_index(), Subpatch::get_vert_along_grid_edge(), BVHNode::getSubtreeSize(), DisplayGPUTexture::gpu_resources_ensure(), graphkeys_previewrange_exec(), blender::ed::sculpt_paint::pose::grow_factors_bmesh(), blender::ed::sculpt_paint::pose::grow_factors_grids(), blender::ed::sculpt_paint::pose::grow_factors_mesh(), RenderScheduler::guess_display_update_interval_in_seconds_for_num_samples(), idprop_ui_data_update_float(), idprop_ui_data_update_int(), initTimeSlide(), InnerNode::InnerNode(), Freestyle::Grid::insertOccluder(), integrate_shadow_max_transparent_hits(), intersect(), invert_m4_m4_fallback(), isect_tri_tri_v3_ex(), kernel_embree_filter_occluded_shadow_all_func_impl(), kernel_ies_interp(), Hair::Curve::keys_for_step(), OIIOImageLoader::load_metadata(), GHOST_Wintab::loadWintab(), markers_selectkeys_between(), markers_selectkeys_between(), math_trimatrix_cholesky(), math_vector_max(), mathutils_rna_vector_set(), blender::nodes::decl::VectorBuilder::max(), max(), max(), max(), max(), max(), max(), max(), max4(), max4(), blender::gpu::GLTexture::mip_range_set(), blender::gpu::MTLTexture::mip_range_set(), blender::gpu::VKTexture::mip_range_set(), mirrorball_to_direction(), nlaedit_previewrange_exec(), blender::ed::space_node::node_group_make_from_nodes(), blender::ed::space_node::node_group_make_insert_selected(), node_mix_exclusion(), node_mix_light(), node_shader_gpu_tex_mapping(), object_motion_steps(), blender::ed::object::object_warp_transverts(), blender::ed::object::object_warp_verts_exec(), Freestyle::BoxGrid::OccluderData::OccluderData(), osl_blackbody_vf(), osl_wavelength_color_vf(), Freestyle::GeomUtils::overlapTriangleBox(), blender::ed::sculpt_paint::paint_stroke_integrate_overlap(), particle_intersect_mesh(), phase_fournier_forand_newton(), point_density_texture_space(), DiagSplit::post_split(), radial_control_invoke(), BVHBuild::range_within_max_leaf_size(), ray_aabb_intersect(), ray_triangle_intersect(), ray_triangle_intersect_self(), blender::eevee::IrradianceBake::raylists_build(), rect_clip(), reduce_max(), reduce_max(), reduce_max(), reduce_max(), btAxisSweep3Internal< BP_FP_INT_TYPE >::removeHandle(), RenderScheduler::render_work_reschedule_on_idle(), rgb_to_hsl(), rgb_to_hsv(), RNA_property_float_clamp(), RNA_property_int_clamp(), Session::run_update_for_next_iteration(), safe_sqrtf(), scale_buffer_params(), QuadDice::scale_factor(), screen_geom_area_map_find_active_scredge(), session_print(), shadow_ray_smooth_surface_offset(), shift_cos_in(), smoothmin(), space_text_cursor_set_to_pos_wrapped(), space_text_get_cursor_rel(), SVMCompiler::stack_find_offset(), EdgeDice::stitch_triangles(), blender::eevee::IrradianceBake::surfel_raster_views_sync(), svm_brightness_contrast(), svm_mix_exclusion(), svm_mix_light(), svm_node_blackbody(), svm_node_closure_bsdf(), svm_node_closure_volume(), svm_node_hsv(), svm_node_min_max(), svm_node_normal_map(), svm_node_principled_volume(), svm_node_set_bump(), svm_node_tex_gabor(), svm_node_wavelength(), svm_vector_math(), Mesh::tessellate(), blender::bke::tests::TEST(), blender::tests::TEST(), TEST(), transform_decompose(), triangle_light_pdf(), triangle_light_sample(), blender::nodes::try_dispatch_float_math_fl3_fl3_to_fl3(), txt_wrap_move_bol(), txt_wrap_move_eol(), ui_def_but(), ui_draw_but_WAVEFORM(), ui_handle_list_event(), ui_selectcontext_apply(), blender::ed::sculpt_paint::expand::update_max_vert_falloff_value(), blender::compositor::KuwaharaAnisotropicOperation::update_memory_buffer_partial(), blender::compositor::KuwaharaAnisotropicStructureTensorOperation::update_memory_buffer_partial(), RenderScheduler::update_start_resolution_divider(), BVHNode::update_time(), util_hash_to_float(), util_image_resize_pixels(), view3d_boundbox_clip_m4(), view3d_localview_init(), Camera::viewplane_bounds_get(), viewselected_exec(), volume_fournier_forand_setup(), voronoi_distance(), voronoi_distance(), voronoi_distance(), WIDGETGROUP_camera_refresh(), wm_software_cursor_draw(), RenderScheduler::work_adaptive_threshold(), Camera::world_to_raster_size(), and xyz_to_rgb_clamped().
| float min |
Definition at line 93 of file transform_gizmo_3d.cc.
Referenced by gizmo_is_axis_visible().