|
Blender V4.3
|
Go to the source code of this file.
Gizmo | |
| #define | GIZMO_AXIS_LINE_WIDTH 2.0f |
| void | gizmo_prepare_mat (const bContext *C, RegionView3D *rv3d, const TransformBounds *tbounds) |
| void | gizmo_xform_message_subscribe (wmGizmoGroup *gzgroup, wmMsgBus *mbus, Scene *scene, bScreen *screen, ScrArea *area, ARegion *region, void(*type_fn)(wmGizmoGroupType *)) |
| 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) |
| #define GIZMO_AXIS_LINE_WIDTH 2.0f |
Definition at line 35 of file transform_gizmo.hh.
Referenced by gizmo2d_resize_setup(), gizmo2d_xform_setup(), and gizmo_3d_setup_draw_default().
| 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().
| 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().
| 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().