|
Blender V4.3
|
#include "DNA_gpencil_legacy_types.h"#include "BLI_math_matrix.h"#include "BKE_context.hh"#include "BKE_editmesh.hh"#include "BKE_layer.hh"#include "BKE_mask.h"#include "BKE_workspace.hh"#include "GPU_state.hh"#include "ED_clip.hh"#include "ED_gpencil_legacy.hh"#include "ED_image.hh"#include "ED_screen.hh"#include "ED_space_api.hh"#include "ED_uvedit.hh"#include "ANIM_keyframing.hh"#include "SEQ_transform.hh"#include "WM_api.hh"#include "WM_message.hh"#include "UI_interface_icons.hh"#include "UI_resources.hh"#include "UI_view2d.hh"#include "RNA_access.hh"#include "BLF_api.hh"#include "BLT_translation.hh"#include "transform.hh"#include "transform_constraints.hh"#include "transform_convert.hh"#include "transform_draw_cursors.hh"#include "transform_gizmo.hh"#include "transform_mode.hh"#include "transform_orientations.hh"#include "transform_snap.hh"Go to the source code of this file.
Definition at line 382 of file editors/transform/transform.cc.
References TransInfo::area, TransInfo::aspect, CTX_MASK, CTX_MOVIECLIP, CTX_PAINT_CURVE, ED_space_image_get_size(), ListBase::first, SpaceImage::flag, TransInfo::mode, TransInfo::options, SI_COORDFLOATS, SPACE_CLIP, SPACE_IMAGE, ScrArea::spacedata, TransInfo::spacetype, and TFM_TRANSLATION.
Referenced by headerTranslation().
Standalone call to get the transformation center corresponding to the current situation returns 1 if successful, 0 otherwise (usually means there's no selection) (if false is returns, cent3d is unmodified).
Definition at line 1446 of file editors/transform/transform.cc.
References TransInfo::around, C, calculateCenter(), TransInfo::center2d, TransInfo::center_global, TransInfo::context, copy_v2_v2(), copy_v3_v3(), create_trans_data(), CTX_NO_PET, TransInfo::data_len_all, initTransInfo(), MEM_callocN, MEM_freeN(), TransInfo::mode, TransInfo::options, postTrans(), special_aftertrans_update(), TransInfo::state, TFM_DUMMY, TRANS_RUNNING, and V3D_AROUND_CENTER_BOUNDS.
Referenced by edbm_bevel_invoke(), and edbm_inset_invoke().
| bool checkUseAxisMatrix | ( | TransInfo * | t | ) |
Definition at line 2198 of file editors/transform/transform.cc.
References TransInfo::around, ELEM, TransInfo::flag, OB_ARMATURE, OB_CURVES_LEGACY, OB_MBALL, OB_MESH, TransInfo::obedit_type, T_EDIT, and V3D_AROUND_LOCAL_ORIGINS.
Referenced by setUserConstraint().
Definition at line 181 of file editors/transform/transform.cc.
References TransInfo::aspect, convertViewVec2D(), convertViewVec2D_mask(), CTX_MASK, CTX_PAINT_CURVE, ED_view3d_win_to_delta(), ELEM, float, TransInfo::options, printf, TransInfo::region, ARegion::regiontype, RGN_TYPE_WINDOW, SPACE_CLIP, SPACE_GRAPH, SPACE_IMAGE, SPACE_NLA, SPACE_NODE, SPACE_SEQ, SPACE_VIEW3D, TransInfo::spacetype, ARegion::v2d, TransInfo::view, zero_v3(), and TransInfo::zfac.
Referenced by drawConstraint(), InputVector(), snap_grid_uv_apply(), and snapObjectsTransform().
Definition at line 146 of file editors/transform/transform.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), View2D::cur, and View2D::mask.
Referenced by convertViewVec().
Definition at line 156 of file editors/transform/transform.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), View2D::cur, and View2D::mask.
Referenced by convertViewVec().
Just draw a little warning message in the top-right corner of the viewport to warn that auto-keying is enabled.
Definition at line 1551 of file editors/transform/transform.cc.
References BLF_color4fv(), BLF_default(), BLF_draw_default(), BLF_DRAW_STR_DUMMY_MAX, BLF_set_default(), BLF_shadow(), BLF_width_and_height(), ED_region_visible_rect(), ED_view3d_text_colors_get(), View3D::gizmo_flag, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, IFACE_, int, Outline, TransInfo::scene, SPACE_VIEW3D, TransInfo::spacetype, TH_BACK, TH_TEXT_HI, UI_GetThemeColor4fv(), UI_icon_draw(), USER_MINI_AXIS_TYPE_GIZMO, USER_MINI_AXIS_TYPE_MINIMAL, USER_MINI_AXIS_TYPE_NONE, V3D_GIZMO_HIDE, V3D_GIZMO_HIDE_NAVIGATE, TransInfo::view, rcti::xmax, and rcti::ymax.
Referenced by drawTransformPixel().
Definition at line 1624 of file editors/transform/transform.cc.
References AUTOKEY_FLAG_NOWARNING, blender::animrig::autokeyframe_cfra_can_key(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), CTX_OBJECT, CTX_POSE_BONE, drawAutoKeyWarning(), Object::id, TransInfo::options, TransInfo::region, TransInfo::scene, transinfo_show_overlay(), and TransInfo::view_layer.
Referenced by initTransform().
Definition at line 1515 of file editors/transform/transform.cc.
References TransModeInfo::draw_fn, drawConstraint(), drawPropCircle(), drawPropRange(), drawSnapping(), GPU_line_width(), TransInfo::mode_info, TransInfo::region, SPACE_ACTION, SPACE_GRAPH, TransInfo::spacetype, and transinfo_show_overlay().
Referenced by initTransform().
| bool initTransform | ( | bContext * | C, |
| TransInfo * | t, | ||
| wmOperator * | op, | ||
| const wmEvent * | event, | ||
| int | mode ) |
t on a 0 return. Definition at line 1873 of file editors/transform/transform.cc.
References applyMouseInput(), BKE_editmesh_lnorspace_update(), BMEditMesh::bm, BM_lnorspace_invalidate(), C, calculateCenter(), calculatePropRatio(), TransInfo::center2d, TransInfo::con, CON_APPLY, TransInfo::context, create_trans_data(), CTX_CURSOR, CTX_GPENCIL_STROKES, CTX_TEXTURE_SPACE, CTX_VIEW2D_EDGE_PAN, CTX_wm_manager(), TransInfo::data_len_all, TransInfo::data_type, TransInfo::draw_handle_cursor, TransInfo::draw_handle_pixel, TransInfo::draw_handle_view, drawTransformPixel(), drawTransformView(), ED_region_draw_cb_activate(), ELEM, EVT_LEFTALTKEY, EVT_LEFTCTRLKEY, EVT_LEFTSHIFTKEY, EVT_OSKEY, EVT_RIGHTALTKEY, EVT_RIGHTCTRLKEY, EVT_RIGHTSHIFTKEY, TransInfo::flag, FOREACH_TRANS_DATA_CONTAINER, MouseInput::imval, initMouseInput(), initSnapping(), initTransInfo(), TransInfo::is_launch_event_drag, wmKeyMap::items, TransInfo::keymap, KM_ALT, KM_CLICK_DRAG, KM_CTRL, KM_OSKEY, KM_PRESS, KM_SHIFT, KMI_INACTIVE, TransInfo::launch_event, LISTBASE_FOREACH, MOD_NODE_ATTACH, MOD_SNAP_INVERT, wmOperatorType::modalkeymap, TransCon::mode, TransInfo::mode, wmEvent::modifier, TransInfo::modifiers, TransInfo::mouse, TransInfo::mval, OB_MESH, TransInfo::obedit_type, options, TransInfo::options, TransInfo::orient_axis, TransInfo::orient_axis_ortho, postTrans(), wmOperator::ptr, TransInfo::region, REGION_DRAW_POST_PIXEL, REGION_DRAW_POST_VIEW, RGN_TYPE_ANY, RNA_property_boolean_get(), RNA_property_boolean_set(), RNA_property_enum_get(), RNA_property_is_set(), RNA_struct_find_property(), setUserConstraint(), SPACE_ACTION, SPACE_CLIP, SPACE_GRAPH, SPACE_IMAGE, SPACE_NODE, SPACE_SEQ, SPACE_TYPE_ANY, SPACE_VIEW3D, TransInfo::spacemtx, TransInfo::spacetype, TransInfo::state, T_CLNOR_REBUILD, T_EDIT, T_MODAL, T_PROP_EDIT, TD_SELECTED, TFM_MODAL_NODE_ATTACH_OFF, TFM_MODAL_SNAP_INV_ON, TFM_RESIZE, TFM_ROTATION, TFM_TRANSLATION, BMesh::totvert, BMesh::totvertsel, TRANS_CANCEL, TRANS_STARTING, TransConvertType_Node, transform_draw_cursor_draw(), transform_draw_cursor_poll(), transform_mode_init(), transform_mode_really_used(), ARegion::type, wmEvent::type, wmOperator::type, unit_m3(), TransInfo::values, WM_keymap_active(), WM_paint_cursor_activate(), and WM_userdef_event_type_from_keymap_type().
Referenced by transformops_data().
Definition at line 377 of file editors/transform/transform.cc.
References projectFloatViewEx(), and V3D_PROJ_TEST_NOP.
Referenced by calculateCenter(), calculateCenter2D(), initTimeScale(), setNearestAxis3d(), and snapsource_confirm().
| void projectFloatViewEx | ( | TransInfo * | t, |
| const float | vec[3], | ||
| float | adr[2], | ||
| const eV3DProjTest | flag ) |
Definition at line 349 of file editors/transform/transform.cc.
References CTX_PAINT_CURVE, ED_view3d_project_float_global(), flag, TransInfo::options, projectIntView(), TransInfo::region, ARegion::regiontype, RGN_TYPE_WINDOW, SPACE_VIEW3D, TransInfo::spacetype, V3D_PROJ_RET_OK, ARegion::winx, and ARegion::winy.
Referenced by projectFloatView(), and transform_draw_cursor_draw().
Definition at line 344 of file editors/transform/transform.cc.
References projectIntViewEx(), and V3D_PROJ_TEST_NOP.
Referenced by projectFloatViewEx().
| void projectIntViewEx | ( | TransInfo * | t, |
| const float | vec[3], | ||
| int | adr[2], | ||
| const eV3DProjTest | flag ) |
Definition at line 231 of file editors/transform/transform.cc.
References TransInfo::area, TransInfo::aspect, BKE_mask_coord_to_image(), BKE_mask_coord_to_movieclip(), BLI_assert, SpaceClip::clip, CTX_MASK, CTX_MOVIECLIP, CTX_PAINT_CURVE, ED_clip_point_stable_pos__reverse(), ED_image_point_pos__reverse(), ED_space_clip_get_clip(), ED_view3d_project_int_global(), ELEM, ListBase::first, flag, SpaceAction::flag, SpaceImage::image, int, SpaceImage::iuser, TransInfo::options, TransInfo::region, ARegion::regiontype, RGN_TYPE_WINDOW, SACTION_DRAWTIME, SPACE_ACTION, SPACE_CLIP, SPACE_GRAPH, SPACE_IMAGE, SPACE_NLA, SPACE_NODE, SPACE_SEQ, SPACE_VIEW3D, ScrArea::spacedata, TransInfo::spacetype, UI_view2d_view_to_region(), SpaceClip::user, v, V3D_PROJ_RET_OK, and TransInfo::view.
Referenced by projectIntView().
Definition at line 408 of file editors/transform/transform.cc.
References TransInfo::area, TransInfo::aspect, CTX_MASK, CTX_MOVIECLIP, ED_space_image_get_size(), ListBase::first, SpaceImage::flag, TransInfo::mode, TransInfo::options, SI_COORDFLOATS, SPACE_CLIP, SPACE_IMAGE, ScrArea::spacedata, TransInfo::spacetype, and TFM_TRANSLATION.
Referenced by applyTranslation().
| void saveTransform | ( | bContext * | C, |
| TransInfo * | t, | ||
| wmOperator * | op ) |
Definition at line 1655 of file editors/transform/transform.cc.
References BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), TransInfo::con, CON_APPLY, CON_AXIS0, CON_AXIS1, CON_AXIS2, constraintModeToIndex(), CTX_data_tool_settings(), CTX_MASK, CTX_NO_PET, ELEM, TransInfo::flag, wmOperator::flag, Scene::id, TransInfo::mbus, MOD_SNAP, MOD_SNAP_FORCED, Object::mode, TransCon::mode, TransInfo::mode, TransSnap::mode, TransInfo::modifiers, OB_MODE_OBJECT, OP_IS_REPEAT, TransInfo::options, TransInfo::orient, TransInfo::orient_axis, TransInfo::orient_axis_ortho, TransInfo::orient_curr, wmMsgParams_RNA::prop, PROP_EDIT_CONNECTED, PROP_EDIT_PROJECTED, PROP_EDIT_USE, ToolSettings::prop_mode, TransInfo::prop_mode, TransInfo::prop_size, ToolSettings::proportional_action, ToolSettings::proportional_edit, ToolSettings::proportional_fcurve, ToolSettings::proportional_mask, ToolSettings::proportional_objects, ToolSettings::proportional_size, wmMsgParams_RNA::ptr, wmOperator::ptr, RNA_boolean_set(), RNA_enum_set(), RNA_float_set(), RNA_float_set_array(), RNA_pointer_create(), RNA_property_array_check(), RNA_property_boolean_set(), RNA_property_boolean_set_array(), RNA_property_enum_get(), RNA_property_enum_set(), RNA_property_float_get(), RNA_property_float_set(), RNA_property_float_set_array(), RNA_property_is_set(), RNA_property_unset(), RNA_struct_find_property(), SCE_SNAP, SCE_SNAP_INDIVIDUAL_PROJECT, SCE_SNAP_TARGET_NOT_ACTIVE, SCE_SNAP_TARGET_NOT_EDITED, SCE_SNAP_TARGET_NOT_NONEDITED, SCE_SNAP_TARGET_ONLY_SELECTABLE, TransInfo::scene, SET_FLAG_FROM_TEST, TransInfo::settings, TransSnap::source_operation, SPACE_ACTION, SPACE_GRAPH, TransInfo::spacemtx, TransInfo::spacetype, TransInfo::state, T_ALT_TRANSFORM, T_MODAL, T_NO_MIRROR, T_PROP_CONNECTED, T_PROP_EDIT, T_PROP_EDIT_ALL, T_PROP_PROJECTED, TransSnap::target_operation, TFM_SHRINKFATTEN, TRANS_CANCEL, transform_snap_flag_from_spacetype_ptr(), transformModeUseSnap(), TransInfo::tsnap, TransInfo::type, ToolSettings::uvcalc_flag, UVCALC_TRANSFORM_CORRECT_SLIDE, V3D_ORIENT_CUSTOM_MATRIX, TransInfo::values_final, TransInfo::view_layer, and WM_msg_publish_rna_params().
Referenced by transformops_exit().
Definition at line 109 of file editors/transform/transform.cc.
References TransInfo::area, copy_v3_fl(), CTX_CURSOR, CTX_MASK, CTX_MOVIECLIP, CTX_PAINT_CURVE, ED_space_clip_get_aspect(), ED_space_clip_get_aspect_dimension_aware(), ED_space_image_get_aspect(), ED_space_image_get_uv_aspect(), ListBase::first, TransInfo::options, TransInfo::scene, SEQ_image_preview_unit_to_px(), SPACE_CLIP, SPACE_GRAPH, SPACE_IMAGE, SPACE_SEQ, ScrArea::spacedata, and TransInfo::spacetype.
Referenced by initTransInfo().
| void setTransformViewMatrices | ( | TransInfo * | t | ) |
Definition at line 87 of file editors/transform/transform.cc.
References copy_m4_m4(), CTX_PAINT_CURVE, TransInfo::options, RegionView3D::persinv, TransInfo::persinv, RegionView3D::persmat, TransInfo::persmat, RegionView3D::persp, TransInfo::persp, TransInfo::region, ARegion::regiondata, ARegion::regiontype, RGN_TYPE_WINDOW, RV3D_ORTHO, SPACE_VIEW3D, TransInfo::spacetype, unit_m4(), RegionView3D::viewinv, TransInfo::viewinv, RegionView3D::viewmat, and TransInfo::viewmat.
Referenced by initTransInfo(), and transformViewUpdate().
| bool transdata_check_local_islands | ( | TransInfo * | t, |
| short | around ) |
Definition at line 74 of file editors/transform/transform.cc.
References CTX_CURSOR, CTX_TEXTURE_SPACE, ELEM, OB_GPENCIL_LEGACY, OB_MESH, TransInfo::obedit_type, TransInfo::options, and V3D_AROUND_LOCAL_ORIGINS.
Referenced by initTransInfo(), and set_prop_dist().
Transform a single matrix using the current t->final_values.
Definition at line 2213 of file editors/transform/transform.cc.
References TransInfo::mode_info, and TransModeInfo::transform_matrix_fn.
Referenced by gizmo_modal(), and nla_transform_apply().
|
static |
Definition at line 872 of file editors/transform/transform.cc.
References ARRAY_SIZE, BLI_assert, TransInfo::con, CON_APPLY, CON_AXIS0, CON_AXIS1, CON_AXIS2, TransInfo::data_type, ELEM, TransInfo::flag, IFACE_, MOD_CONSTRAINT_SELECT_AXIS, MOD_CONSTRAINT_SELECT_PLANE, TransCon::mode, TransInfo::modifiers, O_DEFAULT, TransInfo::orient, TransInfo::orient_curr, TransInfo::redraw, setUserConstraint(), stopConstraint(), T_2D_EDIT, T_NO_CONSTRAINT, TFM_MODAL_AXIS_X, TFM_MODAL_AXIS_Y, TFM_MODAL_AXIS_Z, TFM_MODAL_PLANE_X, TFM_MODAL_PLANE_Y, TFM_MODAL_PLANE_Z, TransConvertType_SequencerImage, transform_gizmo_3d_model_from_constraint_and_mode_set(), transform_orientations_current_set(), and TREDRAW_HARD.
Referenced by transformEvent().
Definition at line 2222 of file editors/transform/transform.cc.
References TransInfo::values_final.
Referenced by gizmo_modal().
|
static |
Definition at line 561 of file editors/transform/transform.cc.
References TransInfo::con, CON_APPLY, CTX_CAMERA, wmOperator::customdata, TransInfo::data_type, ELEM, TransInfo::flag, MOD_EDIT_SNAP_SOURCE, TransCon::mode, TransInfo::mode, TransSnap::mode, TransInfo::modifiers, TransInfo::options, SCE_SNAP_TO_GRID, SCE_SNAP_TO_INCREMENT, TransSnap::selectedPoint, SNAP_TARGET_FOUND, SPACE_IMAGE, SPACE_NODE, SPACE_VIEW3D, TransInfo::spacetype, TransSnap::status, T_2D_EDIT, T_AUTOIK, T_NO_CONSTRAINT, T_PROP_EDIT, TFM_EDGE_SLIDE, TFM_MODAL_ADD_SNAP, TFM_MODAL_AUTOCONSTRAINT, TFM_MODAL_AUTOCONSTRAINTPLANE, TFM_MODAL_AUTOIK_LEN_DEC, TFM_MODAL_AUTOIK_LEN_INC, TFM_MODAL_AXIS_X, TFM_MODAL_AXIS_Y, TFM_MODAL_AXIS_Z, TFM_MODAL_CANCEL, TFM_MODAL_CONFIRM, TFM_MODAL_CONS_OFF, TFM_MODAL_EDIT_SNAP_SOURCE_OFF, TFM_MODAL_EDIT_SNAP_SOURCE_ON, TFM_MODAL_INSERTOFS_TOGGLE_DIR, TFM_MODAL_NODE_ATTACH_OFF, TFM_MODAL_NODE_ATTACH_ON, TFM_MODAL_PASSTHROUGH_NAVIGATE, TFM_MODAL_PLANE_X, TFM_MODAL_PLANE_Y, TFM_MODAL_PLANE_Z, TFM_MODAL_PROPSIZE, TFM_MODAL_PROPSIZE_DOWN, TFM_MODAL_PROPSIZE_UP, TFM_MODAL_REMOVE_SNAP, TFM_MODAL_RESIZE, TFM_MODAL_ROTATE, TFM_MODAL_ROTATE_NORMALS, TFM_MODAL_TRACKBALL, TFM_MODAL_TRANSLATE, TFM_MODAL_VERT_EDGE_SLIDE, TFM_RESIZE, TFM_ROTATION, TFM_SHRINKFATTEN, TFM_TRANSLATION, TFM_VERT_SLIDE, TransConvertType_Mesh, TransConvertType_MeshUV, TransConvertType_Tracking, transform_mode_is_changeable(), TransInfo::tsnap, and TransInfo::vod.
Referenced by transform_modal_keymap().
| wmKeyMap * transform_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Called in transform_ops.cc, on each regeneration of key-maps.
Definition at line 734 of file editors/transform/transform.cc.
References NUM_MODAL_INCREMENT_DOWN, NUM_MODAL_INCREMENT_UP, wmKeyMap::poll_modal_item, TFM_MODAL_ADD_SNAP, TFM_MODAL_AUTOCONSTRAINT, TFM_MODAL_AUTOCONSTRAINTPLANE, TFM_MODAL_AUTOIK_LEN_DEC, TFM_MODAL_AUTOIK_LEN_INC, TFM_MODAL_AXIS_X, TFM_MODAL_AXIS_Y, TFM_MODAL_AXIS_Z, TFM_MODAL_CANCEL, TFM_MODAL_CONFIRM, TFM_MODAL_CONS_OFF, TFM_MODAL_EDIT_SNAP_SOURCE_OFF, TFM_MODAL_EDIT_SNAP_SOURCE_ON, TFM_MODAL_INSERTOFS_TOGGLE_DIR, TFM_MODAL_NODE_ATTACH_OFF, TFM_MODAL_NODE_ATTACH_ON, TFM_MODAL_PASSTHROUGH_NAVIGATE, TFM_MODAL_PLANE_X, TFM_MODAL_PLANE_Y, TFM_MODAL_PLANE_Z, TFM_MODAL_PRECISION, TFM_MODAL_PROPSIZE, TFM_MODAL_PROPSIZE_DOWN, TFM_MODAL_PROPSIZE_UP, TFM_MODAL_REMOVE_SNAP, TFM_MODAL_RESIZE, TFM_MODAL_ROTATE, TFM_MODAL_ROTATE_NORMALS, TFM_MODAL_SNAP_INV_OFF, TFM_MODAL_SNAP_INV_ON, TFM_MODAL_SNAP_TOGGLE, TFM_MODAL_TRACKBALL, TFM_MODAL_TRANSLATE, TFM_MODAL_VERT_EDGE_SLIDE, transform_modal_item_poll(), and WM_modalkeymap_ensure().
Referenced by ED_keymap_transform().
Calculates projection vector based on a location.
Definition at line 63 of file editors/transform/transform.cc.
References copy_v3_v3(), normalize_v3(), TransInfo::persp, RV3D_ORTHO, sub_v3_v3v3(), and TransInfo::viewinv.
Definition at line 2132 of file editors/transform/transform.cc.
References C, TransInfo::context, CTX_AUTOCONFIRM, TransInfo::mode_info, TransInfo::options, TransInfo::redraw, selectConstraint(), TransInfo::state, TRANS_CONFIRM, TransModeInfo::transform_fn, TREDRAW_HARD, TREDRAW_NOTHING, TREDRAW_SOFT, and viewRedrawForce().
Referenced by transform_exec(), transform_invoke(), and transform_modal().
Definition at line 2157 of file editors/transform/transform.cc.
References BKE_editmesh_from_object(), BMEditMesh::bm, BM_lnorspace_rebuild(), C, TransInfo::context, ELEM, TransInfo::flag, FOREACH_TRANS_DATA_CONTAINER, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, postTrans(), restoreTransObjects(), special_aftertrans_update(), TransInfo::state, T_CLNOR_REBUILD, TRANS_CANCEL, TRANS_RUNNING, TRANS_STARTING, transform_gizmo_3d_model_from_constraint_and_mode_restore(), viewRedrawForce(), and viewRedrawPost().
Referenced by transform_cancel(), transform_exec(), and transform_modal().
| int transformEvent | ( | TransInfo * | t, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Definition at line 984 of file editors/transform/transform.cc.
References addSnapPoint(), applyMouseInput(), TransInfo::area, BKE_workspace_status_clear(), BLI_assert, calculatePropRatio(), TransInfo::con, CON_APPLY, CON_AXIS2, TransInfo::context, CTX_CAMERA, CTX_NO_PET, CTX_wm_window(), CTX_wm_workspace(), wmEvent::customdata, TransInfo::data_type, ED_uvedit_live_unwrap_timer_check(), ELEM, EVT_CKEY, EVT_LEFTALTKEY, EVT_MODAL_MAP, EVT_OKEY, EVT_PADMINUS, EVT_PADPLUSKEY, EVT_RIGHTALTKEY, ListBase::first, TransInfo::flag, wmEvent::flag, TransModeInfo::handle_event_fn, handleNumInput(), handleSnapping(), hasNumInput(), IFACE_, initSelectConstraint(), initSnapping(), SpaceNode::insert_ofs_dir, ISMOUSE_MOTION, KM_ALT, KM_PRESS, KM_RELEASE, KM_SHIFT, TransInfo::launch_event, max_ff(), min_ff(), MOD_CONSTRAINT_SELECT_AXIS, MOD_CONSTRAINT_SELECT_PLANE, MOD_EDIT_SNAP_SOURCE, MOD_NODE_ATTACH, MOD_PRECISION, MOD_SNAP, MOD_SNAP_INVERT, TransCon::mode, TransInfo::mode, TransInfo::mode_info, wmEvent::modifier, TransInfo::modifiers, TransInfo::mouse, MOUSEMOVE, TransInfo::mval, wmEvent::mval, TransInfo::num, OPERATOR_PASS_THROUGH, TransInfo::options, TransInfo::orient, TransInfo::orient_curr, TransInfo::persp, postSelectConstraint(), MouseInput::precision, wmEvent::prev_type, wmEvent::prev_val, TransInfo::prop_mode, PROP_MODE_MAX, TransInfo::prop_size, TransInfo::redraw, TransInfo::region, ARegion::regiondata, removeSnapPoint(), resetTransModal(), resetTransRestrictions(), restoreTransObjects(), RV3D_NAVIGATING, RV3D_ORTHO, SCE_SNAP_TO_GRID, setLocalConstraint(), SNODE_INSERTOFS_DIR_LEFT, SNODE_INSERTOFS_DIR_RIGHT, sort_trans_data_dist(), SPACE_IMAGE, SPACE_NODE, SPACE_SEQ, SPACE_VIEW3D, ScrArea::spacedata, ScrArea::spacetype, TransInfo::spacetype, TransInfo::state, stopConstraint(), T_ALT_TRANSFORM, T_AUTOIK, T_NO_CONSTRAINT, T_PROP_CONNECTED, T_PROP_EDIT, T_PROP_SIZE_MAX, T_PROP_SIZE_MIN, T_RELEASE_CONFIRM, TransSnap::target_type, TFM_EDGE_SLIDE, TFM_MODAL_ADD_SNAP, TFM_MODAL_AUTOCONSTRAINT, TFM_MODAL_AUTOCONSTRAINTPLANE, TFM_MODAL_AUTOIK_LEN_DEC, TFM_MODAL_AUTOIK_LEN_INC, TFM_MODAL_AXIS_X, TFM_MODAL_AXIS_Y, TFM_MODAL_AXIS_Z, TFM_MODAL_CANCEL, TFM_MODAL_CONFIRM, TFM_MODAL_CONS_OFF, TFM_MODAL_EDIT_SNAP_SOURCE_ON, TFM_MODAL_INSERTOFS_TOGGLE_DIR, TFM_MODAL_NODE_ATTACH_OFF, TFM_MODAL_NODE_ATTACH_ON, TFM_MODAL_PLANE_X, TFM_MODAL_PLANE_Y, TFM_MODAL_PLANE_Z, TFM_MODAL_PRECISION, TFM_MODAL_PROPSIZE, TFM_MODAL_PROPSIZE_DOWN, TFM_MODAL_PROPSIZE_UP, TFM_MODAL_REMOVE_SNAP, TFM_MODAL_RESIZE, TFM_MODAL_ROTATE, TFM_MODAL_ROTATE_NORMALS, TFM_MODAL_SNAP_INV_OFF, TFM_MODAL_SNAP_INV_ON, TFM_MODAL_SNAP_TOGGLE, TFM_MODAL_TRACKBALL, TFM_MODAL_TRANSLATE, TFM_MODAL_VERT_EDGE_SLIDE, TFM_NORMAL_ROTATION, TFM_RESIZE, TFM_ROTATION, TFM_TRACKBALL, TFM_TRANSLATION, TFM_VERT_SLIDE, TIMER, TRANS_CANCEL, TRANS_CONFIRM, TRANS_RUNNING, TRANS_STARTING, TransConvertType_Mesh, TransConvertType_Tracking, transform_autoik_update(), transform_event_modal_constraint(), transform_mode_init(), transform_mode_is_changeable(), transform_mode_snap_source_init(), transform_snap_flag_from_modifiers_set(), TREDRAW_HARD, TREDRAW_SOFT, TransInfo::tsnap, TransInfo::type, wmEvent::type, V3D_ORIENT_NORMAL, wmEvent::val, validSnap(), TransInfo::values, TransInfo::view, TransInfo::vod, WM_EVENT_IS_REPEAT, and WM_window_status_area_tag_redraw().
Referenced by transform_modal().
Definition at line 1497 of file editors/transform/transform.cc.
References View3D::flag2, TransInfo::region, SPACE_VIEW3D, TransInfo::spacetype, V3D_HIDE_OVERLAYS, and TransInfo::view.
Referenced by drawTransformPixel(), and drawTransformView().
Definition at line 432 of file editors/transform/transform.cc.
References TransInfo::animtimer, TransInfo::area, BKE_view_layer_edit_object_get(), BKE_view_layer_synced_ensure(), CTX_CURSOR, CTX_data_edit_mask(), CTX_GPENCIL_STROKES, CTX_MASK, CTX_PAINT_CURVE, CTX_POSE_BONE, CTX_wm_window(), Object::data, DEG_id_tag_update(), ED_area_tag_redraw(), ED_gpencil_data_get_active(), ED_space_clip_check_show_maskedit(), ED_space_clip_check_show_trackedit(), ED_space_clip_get_clip(), ListBase::first, bGPdata::id, ID_RECALC_GEOMETRY, blender::animrig::is_autokey_on(), SpaceImage::lock, NA_EDITED, NC_ANIMATION, NC_GEOM, NC_GPENCIL, NC_MASK, NC_MOVIECLIP, NC_OBJECT, NC_SCENE, NC_SPACE, ND_DATA, ND_KEYFRAME, ND_KEYS, ND_NLA, ND_POSE, ND_SEQUENCER, ND_SPACE_NODE_VIEW, ND_TRANSFORM, OB_GPENCIL_LEGACY, OB_GREASE_PENCIL, TransInfo::obedit_type, TransInfo::options, TransInfo::region, TransInfo::scene, SPACE_ACTION, SPACE_CLIP, SPACE_GRAPH, SPACE_IMAGE, SPACE_NLA, SPACE_NODE, SPACE_SEQ, SPACE_VIEW3D, ScrArea::spacedata, TransInfo::spacetype, TransInfo::view_layer, WM_event_add_notifier(), and WM_paint_cursor_tag_redraw().
Referenced by transformApply(), and transformEnd().
Definition at line 532 of file editors/transform/transform.cc.
References TransInfo::area, BKE_workspace_status_clear(), CTX_wm_workspace(), TransInfo::data_type, ED_area_status_text(), ELEM, blender::animrig::is_autokey_on(), TransInfo::mode, NA_EDITED, NC_ANIMATION, NC_GEOM, ND_DATA, ND_KEYFRAME, TransInfo::scene, TransInfo::settings, SPACE_VIEW3D, TransInfo::spacetype, TFM_EDGE_SLIDE, TFM_VERT_SLIDE, TransConvertType_Mesh, ToolSettings::uvcalc_flag, UVCALC_TRANSFORM_CORRECT, UVCALC_TRANSFORM_CORRECT_SLIDE, WM_event_add_notifier(), and WM_main_add_notifier().
Referenced by transformEnd().