|
Blender
V2.93
|
transform modes used by different operators. More...
Go to the source code of this file.
Classes | |
| struct | TransDataGenericSlideVert |
Typedefs | |
| typedef struct TransDataGenericSlideVert | TransDataGenericSlideVert |
transform modes used by different operators.
Definition in file transform_mode.h.
| typedef struct TransDataGenericSlideVert TransDataGenericSlideVert |
Definition at line 435 of file transform_mode.c.
References BKE_constraint_typeinfo_from_type(), TransData::con, CON_APPLY, CONSTRAINT_DISABLE, CONSTRAINT_OFF, CONSTRAINT_SPACE_LOCAL, CONSTRAINT_SPACE_WORLD, CONSTRAINT_TYPE_SIZELIMIT, data, bConstraint::data, bConstraint::enforce, bConstraintTypeInfo::evaluate_constraint, TransData::ext, fabsf, bConstraint::flag, LIMIT_TRANSFORM, mat4_to_size(), bConstraintOb::matrix, TransData::mtx, mul_m4_m3m4(), mul_v3_v3(), bConstraint::next, NULL, bConstraint::ownspace, signf(), TransDataExtension::size, size_to_mat4(), TransData::smtx, t, TD_SINGLESIZE, and bConstraint::type.
Referenced by ElementMirror(), and ElementResize().
Definition at line 251 of file transform_mode.c.
References BKE_constraint_targets_for_solving_get(), BKE_constraint_typeinfo_from_type(), BLI_freelistN(), TransData::con, CONSTRAINT_DISABLE, CONSTRAINT_OFF, CONSTRAINT_SPACE_LOCAL, CONSTRAINT_SPACE_WORLD, CONSTRAINT_TYPE_DISTLIMIT, CONSTRAINT_TYPE_LOCLIMIT, copy_v3_v3(), data, bConstraint::data, bConstraint::enforce, bConstraintTypeInfo::evaluate_constraint, bConstraint::flag, float(), if(), LIMIT_TRANSFORM, LIMITDIST_TRANSFORM, bConstraintOb::matrix, TransData::mtx, mul_m4_m3m4(), bConstraint::next, NULL, bConstraint::ownspace, TransData::smtx, t, bConstraint::type, and unit_m4().
Referenced by applyProject(), applyTranslationValue(), ElementMirror(), ElementResize(), and ElementRotation_ex().
| void doAnimEdit_SnapFrame | ( | TransInfo * | t, |
| TransData * | td, | ||
| TransData2D * | td2d, | ||
| struct AnimData * | adt, | ||
| short | autosnap | ||
| ) |
Definition at line 1096 of file transform_mode.c.
References BKE_nla_tweakedit_remap(), TransData2D::h1, TransData2D::h2, TransData2D::ih1, TransData2D::ih2, TransData::ival, NLATIME_CONVERT_MAP, NLATIME_CONVERT_UNMAP, SACTSNAP_OFF, snapFrameTransform(), SPACE_SEQ, t, TD_MOVEHANDLE1, TD_MOVEHANDLE2, and TransData::val.
Referenced by applyTimeScaleValue(), and applyTimeTranslateValue().
| void drawEdgeSlide | ( | TransInfo * | t | ) |
Definition at line 1132 of file transform_mode_edge_slide.c.
References Freestyle::a, add_v3_v3(), add_v3_v3v3(), BMVert::co, copy_v3_v3(), EdgeSlideData::curr_side_unclamp, EdgeSlideData::curr_sv_index, TransDataEdgeSlideVert::dir_side, edgeSlideFirstGet(), EdgeSlideParams::flipped, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_DEPTH_LESS_EQUAL, GPU_DEPTH_NONE, GPU_depth_test(), GPU_FETCH_FLOAT, GPU_line_width(), GPU_matrix_mul, GPU_matrix_pop(), GPU_matrix_push(), GPU_point_size(), GPU_PRIM_LINES, GPU_PRIM_POINTS, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBeginAtMost(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformThemeColorShadeAlpha(), immVertex3fv(), immVertexFormat(), interp_line_v3_v3v3v3(), is_zero_v3(), mul_v3_fl(), negate_v3_v3(), NULL, EdgeSlideParams::perc, pos, EdgeSlideData::sv, t, T_ALT_TRANSFORM, TFM_EDGE_SLIDE, TH_EDGE_SELECT, TH_FACEDOT_SIZE, TH_OUTLINE_WIDTH, TH_SELECT, EdgeSlideData::totsv, TRANS_DATA_CONTAINER_FIRST_OK, UI_GetThemeValuef(), EdgeSlideParams::use_even, TransDataEdgeSlideVert::v_co_orig, and TransDataEdgeSlideVert::v_side.
Referenced by drawTransformView().
| void drawVertSlide | ( | TransInfo * | t | ) |
Definition at line 375 of file transform_mode_vert_slide.c.
References Freestyle::a, add_v3_v3(), TransDataVertSlideVert::co_link_curr, TransDataVertSlideVert::co_link_orig_3d, TransDataVertSlideVert::co_orig_3d, VertSlideData::curr_sv_index, ED_view3d_calc_zfac(), ED_view3d_win_to_delta(), VertSlideParams::flipped, GPU_blend(), GPU_BLEND_ALPHA, GPU_COMP_F32, GPU_DEPTH_LESS_EQUAL, GPU_DEPTH_NONE, GPU_depth_test(), GPU_FETCH_FLOAT, GPU_line_width(), GPU_matrix_mul, GPU_matrix_pop(), GPU_matrix_push(), GPU_point_size(), GPU_PRIM_LINES, GPU_PRIM_POINTS, GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), GPU_viewport_size_get_f(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniform1f(), immUniform1i(), immUniform2f(), immUniformColor4f(), immUniformThemeColorShadeAlpha(), immVertex3fv(), immVertexFormat(), invert_m4_m4(), mul_mat3_m4_v3(), mul_v3_fl(), mul_v3_m4v3(), negate_v3_v3(), NULL, sub_v3_v3v3(), VertSlideData::sv, t, T_ALT_TRANSFORM, TFM_VERT_SLIDE, TH_EDGE_SELECT, TH_FACEDOT_SIZE, TH_OUTLINE_WIDTH, VertSlideData::totsv, TRANS_DATA_CONTAINER_FIRST_OK, UI_GetThemeValuef(), and VertSlideParams::use_even.
Referenced by drawTransformView().
| void ElementResize | ( | TransInfo * | t, |
| TransDataContainer * | tc, | ||
| TransData * | td, | ||
| float | mat[3][3] | ||
| ) |
Definition at line 909 of file transform_mode.c.
References add_v3_v3(), add_v3_v3v3(), applyNumInput(), TransData::axismtx, center, TransDataContainer::center_local, CLAMP_MIN, CON_APPLY, constraintSizeLim(), constraintTransLim(), copy_m3_m3(), copy_v3_v3(), CTX_GPENCIL_STROKES, CTX_MOVIECLIP, CTX_OBJECT, CTX_POSE_BONE, ELEM, TransData::ext, TransData::factor, TransDataExtension::isize, TransData::ival, mat3_to_size(), TransData::mtx, mul_m3_m3m3(), mul_m3_v3(), mul_mat3_m4_v3(), mul_v3_fl(), bGPDstroke_Runtime::multi_frame_falloff, Object::obmat, TransDataContainer::poseobj, protectedSizeBits(), protectedTransBits(), TransData::protectflag, bGPDstroke::runtime, TransDataExtension::size, TransData::smtx, sub_v3_v3(), sub_v3_v3v3(), t, T_EDIT, T_POINTS, T_V3D_ALIGN, TC_OBJECT, TC_OBJECT_TEXSPACE, TC_POSE, TC_SCULPT, TD_INDIVIDUAL_SCALE, TD_SINGLESIZE, transdata_check_local_center(), transform_snap_increment(), TransMat3ToSize(), and TransData::val.
Referenced by applyResize().
| void ElementRotation | ( | TransInfo * | t, |
| TransDataContainer * | tc, | ||
| TransData * | td, | ||
| float | mat[3][3], | ||
| const short | around | ||
| ) |
Definition at line 794 of file transform_mode.c.
References center, TransDataContainer::center_local, ElementRotation_ex(), t, and transdata_check_local_center().
Referenced by applyAlign(), applyRotationValue(), applyTrackballValue(), and Bend().
| void ElementRotation_ex | ( | TransInfo * | t, |
| TransDataContainer * | tc, | ||
| TransData * | td, | ||
| const float | mat[3][3], | ||
| const float * | center | ||
| ) |
Applies values of rotation to td->loc and td->ext->quat based on a rotation matrix (mat) and a pivot (center).
Protected axis and other transform settings are taken into account.
HACK WARNING
This is some VERY ugly special case to deal with pose mode.
The problem is that mtx and smtx include each bone orientation.
That is needed to rotate each bone properly, HOWEVER, to calculate the translation component, we only need the actual armature object's matrix (and inverse). That is not all though. Once the proper translation has been computed, it has to be converted back into the bone's space.
Definition at line 564 of file transform_mode.c.
References add_v3_v3(), add_v3_v3v3(), axis_angle_to_quat(), center, constraintRotLim(), constraintTransLim(), copy_v3_v3(), CTX_GPENCIL_STROKES, CTX_POSE_BONE, TransDataExtension::drot, eulO_to_mat3(), TransData::ext, TransDataContainer::imat3, TransDataExtension::iquat, TransDataExtension::irot, TransDataExtension::irotAngle, TransDataExtension::irotAxis, TransDataExtension::l_smtx, TransDataContainer::mat3, mat3_to_compatible_eulO(), mat3_to_quat(), TransData::mtx, mul_m3_fl(), mul_m3_m3m3(), mul_m3_series, mul_m3_v3(), mul_qt_qtqt(), bGPDstroke_Runtime::multi_frame_falloff, protectedAxisAngleBits(), protectedQuaternionBits(), protectedRotateBits(), protectedTransBits(), TransData::protectflag, TransDataExtension::quat, quat_to_axis_angle(), TransDataExtension::r_mtx, TransDataExtension::r_smtx, TransDataExtension::rot, ROT_MODE_AXISANGLE, ROT_MODE_QUAT, TransDataExtension::rotAngle, TransDataExtension::rotAxis, TransDataExtension::rotOrder, bGPDstroke::runtime, TransData::smtx, sub_v3_v3(), sub_v3_v3v3(), t, T_POINTS, T_V3D_ALIGN, TD_NO_LOC, TD_PBONE_LOCAL_MTX_C, TD_PBONE_LOCAL_MTX_P, and TD_USEQUAT.
Referenced by applyTranslationValue(), ElementMirror(), and ElementRotation().
| short getAnimEdit_SnapMode | ( | TransInfo * | t | ) |
This function returns the snapping 'mode' for Animation Editors only. We cannot use the standard snapping due to NLA-strip scaling complexities.
TODO: these modifier checks should be key-mappable.
Definition at line 1049 of file transform_mode.c.
References SpaceAction::autosnap, SpaceGraph::autosnap, SpaceNla::autosnap, if(), MOD_SNAP_INVERT, SACTSNAP_FRAME, SACTSNAP_OFF, SPACE_ACTION, SPACE_GRAPH, SPACE_NLA, and t.
Referenced by applyTimeScaleValue(), applyTimeTranslateValue(), and headerTimeTranslate().
| void initAlign | ( | TransInfo * | t | ) |
Definition at line 82 of file transform_mode_align.c.
References applyAlign(), initMouseInputMode(), INPUT_NONE, t, and T_NO_CONSTRAINT.
Referenced by transform_mode_init().
| void initBakeTime | ( | TransInfo * | t | ) |
Definition at line 119 of file transform_mode_baketime.c.
References applyBakeTime(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_NONE, and t.
Referenced by transform_mode_init().
| void initBend | ( | TransInfo * | t | ) |
Definition at line 246 of file transform_mode_bend.c.
References B_UNIT_LENGTH, B_UNIT_ROTATION, Bend(), calculateCenterCursor(), calculateCenterLocal(), copy_v3_fl(), copy_v3_v3(), cross_v3_v3v3(), data, ED_view3d_win_to_3d(), handleEventBend(), initMouseInputMode(), INPUT_ANGLE_SPRING, len_v3v3(), MEM_callocN, normalize_v3(), SNAP_INCREMENTAL_ANGLE, sub_v3_v3v3(), t, T_NO_CONSTRAINT, T_OVERRIDE_CENTER, TFM_BEND, UNPACK2, and USER_UNIT_ROT_RADIANS.
Referenced by transform_mode_init().
| void initBevelWeight | ( | TransInfo * | t | ) |
Definition at line 105 of file transform_mode_edge_bevelweight.c.
References applyBevelWeight(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING_DELTA, t, T_NO_CONSTRAINT, T_NO_PROJECT, and TFM_BWEIGHT.
Referenced by transform_mode_init().
| void initBoneEnvelope | ( | TransInfo * | t | ) |
Definition at line 95 of file transform_mode_boneenvelope.c.
References applyBoneEnvelope(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING, t, T_NO_CONSTRAINT, and T_NO_PROJECT.
Referenced by transform_mode_init().
| void initBoneRoll | ( | TransInfo * | t | ) |
Definition at line 89 of file transform_mode_boneroll.c.
References applyBoneRoll(), B_UNIT_ROTATION, copy_v3_fl(), DEG2RAD, initMouseInputMode(), INPUT_ANGLE, t, T_NO_CONSTRAINT, T_NO_PROJECT, TFM_BONE_ROLL, and USER_UNIT_ROT_RADIANS.
Referenced by transform_mode_init().
| void initBoneSize | ( | TransInfo * | t | ) |
Definition at line 163 of file transform_mode_bbone_resize.c.
References applyBoneSize(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING_FLIP, NUM_AFFECT_ALL, NUM_NULL_ONE, t, and TFM_BONESIZE.
Referenced by transform_mode_init().
| void initCrease | ( | TransInfo * | t | ) |
Definition at line 109 of file transform_mode_edge_crease.c.
References applyCrease(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING_DELTA, t, T_NO_CONSTRAINT, T_NO_PROJECT, and TFM_CREASE.
Referenced by transform_mode_init().
| void initCurveShrinkFatten | ( | TransInfo * | t | ) |
Definition at line 94 of file transform_mode_curveshrinkfatten.c.
References applyCurveShrinkFatten(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING, NUM_NO_ZERO, t, T_NO_CONSTRAINT, T_NO_ZERO, and TFM_CURVE_SHRINKFATTEN.
Referenced by transform_mode_init().
| void initEdgeSlide | ( | TransInfo * | t | ) |
Definition at line 1566 of file transform_mode_edge_slide.c.
References initEdgeSlide_ex(), and t.
| void initEdgeSlide_ex | ( | TransInfo * | t, |
| bool | use_double_side, | ||
| bool | use_even, | ||
| bool | flipped, | ||
| bool | use_clamp | ||
| ) |
Definition at line 1505 of file transform_mode_edge_slide.c.
References applyEdgeSlide(), B_UNIT_NONE, calcEdgeSlideCustomPoints(), copy_v3_fl(), createEdgeSlideVerts_double_side(), createEdgeSlideVerts_single_side(), edge_slide_snap_apply(), EdgeSlideParams::flipped, FOREACH_TRANS_DATA_CONTAINER, freeEdgeSlideVerts(), handleEventEdgeSlide(), initMouseInputMode(), INPUT_CUSTOM_RATIO_FLIP, MEM_callocN, EdgeSlideParams::perc, t, T_ALT_TRANSFORM, T_NO_CONSTRAINT, T_NO_PROJECT, TFM_EDGE_SLIDE, TRANS_CANCEL, transform_snap_distance_len_squared_fn(), and EdgeSlideParams::use_even.
Referenced by initEdgeSlide(), and transform_mode_init().
| void initGPOpacity | ( | TransInfo * | t | ) |
Definition at line 104 of file transform_mode_gpopacity.c.
References applyGPOpacity(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING, NUM_NO_ZERO, t, T_NO_CONSTRAINT, T_NO_ZERO, and TFM_GPENCIL_OPACITY.
Referenced by transform_mode_init().
| void initGPShrinkFatten | ( | TransInfo * | t | ) |
Definition at line 106 of file transform_mode_gpshrinkfatten.c.
References applyGPShrinkFatten(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING, NUM_NO_ZERO, t, T_NO_CONSTRAINT, T_NO_ZERO, and TFM_GPENCIL_SHRINKFATTEN.
Referenced by transform_mode_init().
| void initMaskShrinkFatten | ( | TransInfo * | t | ) |
Definition at line 120 of file transform_mode_maskshrinkfatten.c.
References applyMaskShrinkFatten(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING, NUM_NO_ZERO, t, T_NO_CONSTRAINT, T_NO_ZERO, and TFM_MASK_SHRINKFATTEN.
Referenced by transform_mode_init().
| void initMirror | ( | TransInfo * | t | ) |
Definition at line 232 of file transform_mode_mirror.c.
References applyMirror(), initMouseInputMode(), INPUT_NONE, t, T_EDIT, T_NO_ZERO, and T_NULL_ONE.
Referenced by transform_mode_init().
| void initNormalRotation | ( | TransInfo * | t | ) |
Definition at line 125 of file transform_mode_edge_rotate_normal.c.
References applyNormalRotation(), B_UNIT_ROTATION, BKE_editmesh_ensure_autosmooth(), BKE_editmesh_from_object(), BKE_editmesh_lnorspace_update(), BMEditMesh::bm, bm, copy_v3_fl(), DEG2RAD, FOREACH_TRANS_DATA_CONTAINER, initMouseInputMode(), INPUT_ANGLE, storeCustomLNorValue(), t, TFM_NORMAL_ROTATION, transform_mode_default_modal_orientation_set(), USER_UNIT_ROT_RADIANS, and V3D_ORIENT_VIEW.
Referenced by transform_mode_init().
| void initPushPull | ( | TransInfo * | t | ) |
Definition at line 114 of file transform_mode_push_pull.c.
References applyPushPull(), B_UNIT_LENGTH, copy_v3_fl(), initMouseInputMode(), INPUT_VERTICAL_ABSOLUTE, t, and TFM_PUSHPULL.
Referenced by transform_mode_init().
| void initResize | ( | TransInfo * | t | ) |
Definition at line 164 of file transform_mode_resize.c.
References applyResize(), ApplySnapResize(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING_FLIP, NUM_AFFECT_ALL, NUM_NO_ZERO, NUM_NULL_ONE, ResizeBetween(), t, T_EDIT, T_NO_ZERO, T_NULL_ONE, TFM_RESIZE, transform_mode_default_modal_orientation_set(), and V3D_ORIENT_GLOBAL.
Referenced by initShrinkFatten(), and transform_mode_init().
| void initRotation | ( | TransInfo * | t | ) |
Definition at line 230 of file transform_mode_rotate.c.
References applyRotation(), ApplySnapRotation(), B_UNIT_ROTATION, copy_v3_fl(), DEG2RAD, initMouseInputMode(), INPUT_ANGLE, RotationBetween(), t, T_2D_EDIT, T_NO_CONSTRAINT, TFM_ROTATION, transform_mode_default_modal_orientation_set(), USER_UNIT_ROT_RADIANS, and V3D_ORIENT_VIEW.
Referenced by transform_mode_init().
| void initSeqSlide | ( | TransInfo * | t | ) |
Definition at line 141 of file transform_mode_edge_seq_slide.c.
References applySeqSlide(), B_UNIT_NONE, copy_v3_fl(), floorf, initMouseInputMode(), INPUT_VECTOR, seq_slide_handleEvent(), t, TFM_MODAL_TRANSLATE, and WM_modalkeymap_find_propvalue().
Referenced by transform_mode_init().
| void initShear | ( | TransInfo * | t | ) |
Definition at line 212 of file transform_mode_shear.c.
References applyShear(), B_UNIT_NONE, copy_v3_fl(), handleEventShear(), initShear_mouseInputMode(), t, T_NO_CONSTRAINT, TFM_SHEAR, transform_mode_default_modal_orientation_set(), and V3D_ORIENT_VIEW.
Referenced by transform_mode_init().
| void initShrinkFatten | ( | TransInfo * | t | ) |
Definition at line 139 of file transform_mode_shrink_fatten.c.
References applyShrinkFatten(), B_UNIT_LENGTH, copy_v3_fl(), initMouseInputMode(), initResize(), INPUT_VERTICAL_ABSOLUTE, OB_MESH, shrinkfatten_handleEvent(), t, T_EDIT, T_NO_CONSTRAINT, TFM_MODAL_RESIZE, TFM_SHRINKFATTEN, and WM_modalkeymap_find_propvalue().
Referenced by transform_mode_init().
| void initSkinResize | ( | TransInfo * | t | ) |
Definition at line 101 of file transform_mode_skin_resize.c.
References applySkinResize(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING_FLIP, NUM_AFFECT_ALL, NUM_NO_ZERO, NUM_NULL_ONE, t, T_EDIT, T_NO_ZERO, T_NULL_ONE, and TFM_SKIN_RESIZE.
Referenced by transform_mode_init().
| void initTilt | ( | TransInfo * | t | ) |
Definition at line 93 of file transform_mode_tilt.c.
References applyTilt(), B_UNIT_ROTATION, copy_v3_fl(), DEG2RAD, initMouseInputMode(), INPUT_ANGLE, t, T_NO_CONSTRAINT, T_NO_PROJECT, TFM_TILT, and USER_UNIT_ROT_RADIANS.
Referenced by transform_mode_init().
| void initTimeScale | ( | TransInfo * | t | ) |
Definition at line 113 of file transform_mode_timescale.c.
References applyTimeScale(), B_UNIT_NONE, center, copy_v3_fl(), ELEM, initMouseInput(), initMouseInputMode(), INPUT_SPRING_FLIP, NUM_NULL_ONE, projectFloatView(), SPACE_ACTION, SPACE_NLA, t, T_NULL_ONE, T_OVERRIDE_CENTER, TFM_TIME_SCALE, and TRANS_CANCEL.
Referenced by transform_mode_init().
| void initTimeSlide | ( | TransInfo * | t | ) |
Definition at line 164 of file transform_mode_timeslide.c.
References applyTimeSlide(), B_UNIT_NONE, BKE_nla_tweakedit_remap(), copy_v3_fl(), SpaceAction::flag, float(), FOREACH_TRANS_DATA_CONTAINER, initMouseInputMode(), INPUT_NONE, max, MEM_mallocN, min, NLATIME_CONVERT_MAP, NULL, PEFRA, PSFRA, SACTION_MOVING, scene, SPACE_ACTION, SPACE_NLA, t, TFM_TIME_SLIDE, TRANS_CANCEL, and TransData::val.
Referenced by transform_mode_init().
| void initTimeTranslate | ( | TransInfo * | t | ) |
Definition at line 139 of file transform_mode_timetranslate.c.
References applyTimeTranslate(), B_UNIT_NONE, copy_v3_fl(), ELEM, initMouseInputMode(), INPUT_NONE, SPACE_ACTION, SPACE_SEQ, t, and TRANS_CANCEL.
Referenced by transform_mode_init().
| void initToSphere | ( | TransInfo * | t | ) |
Definition at line 163 of file transform_mode_tosphere.c.
References applyToSphere(), B_UNIT_NONE, copy_v3_fl(), data, initMouseInputMode(), INPUT_HORIZONTAL_RATIO, MEM_callocN, NUM_NO_NEGATIVE, NUM_NULL_ONE, t, T_NO_CONSTRAINT, TFM_TOSPHERE, and to_sphere_radius_update().
Referenced by transform_mode_init().
| void initTrackball | ( | TransInfo * | t | ) |
Definition at line 143 of file transform_mode_trackball.c.
References applyTrackball(), B_UNIT_ROTATION, copy_v3_fl(), DEG2RAD, initMouseInputMode(), INPUT_TRACKBALL, t, T_NO_CONSTRAINT, TFM_TRACKBALL, and USER_UNIT_ROT_RADIANS.
Referenced by transform_mode_init().
| void initTranslation | ( | TransInfo * | t | ) |
Definition at line 483 of file transform_mode_translate.c.
References TranslateCustomData::apply_snap_align_rotation, ApplySnapTranslation(), applyTranslation(), B_UNIT_LENGTH, B_UNIT_NONE, BKE_report(), copy_v2_v2(), copy_v3_fl(), CTX_CAMERA, initMouseInputMode(), INPUT_VECTOR, TranslateCustomData::is_valid_snapping_normal, MEM_callocN, TranslateCustomData::prev, RPT_ERROR, SPACE_ACTION, SPACE_VIEW3D, t, T_2D_EDIT, TRANS_CANCEL, transform_mode_default_modal_orientation_set(), transform_snap_distance_len_squared_fn(), V3D_ORIENT_GLOBAL, and V3D_ORIENT_VIEW.
Referenced by transform_mode_init().
| void initVertSlide | ( | TransInfo * | t | ) |
Definition at line 686 of file transform_mode_vert_slide.c.
References initVertSlide_ex(), and t.
| void initVertSlide_ex | ( | TransInfo * | t, |
| bool | use_even, | ||
| bool | flipped, | ||
| bool | use_clamp | ||
| ) |
Definition at line 629 of file transform_mode_vert_slide.c.
References applyVertSlide(), B_UNIT_NONE, calcVertSlideCustomPoints(), calcVertSlideMouseActiveEdges(), calcVertSlideMouseActiveVert(), copy_v3_fl(), createVertSlideVerts(), VertSlideParams::flipped, FOREACH_TRANS_DATA_CONTAINER, freeVertSlideVerts(), handleEventVertSlide(), initMouseInputMode(), INPUT_CUSTOM_RATIO, MEM_callocN, VertSlideParams::perc, t, T_ALT_TRANSFORM, T_NO_CONSTRAINT, T_NO_PROJECT, TFM_VERT_SLIDE, TRANS_CANCEL, transform_snap_distance_len_squared_fn(), VertSlideParams::use_even, and vert_slide_snap_apply().
Referenced by initVertSlide(), and transform_mode_init().
| void protectedSizeBits | ( | short | protectflag, |
| float | size[3] | ||
| ) |
Definition at line 232 of file transform_mode.c.
References OB_LOCK_SCALEX, OB_LOCK_SCALEY, OB_LOCK_SCALEZ, and size().
Referenced by ElementMirror(), and ElementResize().
| void protectedTransBits | ( | short | protectflag, |
| float | vec[3] | ||
| ) |
Definition at line 97 of file transform_mode.c.
References OB_LOCK_LOCX, OB_LOCK_LOCY, and OB_LOCK_LOCZ.
Referenced by applyTranslationValue(), ElementMirror(), ElementResize(), and ElementRotation_ex().
| bool transdata_check_local_center | ( | TransInfo * | t, |
| short | around | ||
| ) |
Definition at line 71 of file transform_mode.c.
References CTX_MASK, CTX_MOVIECLIP, CTX_OBJECT, CTX_PAINT_CURVE, CTX_POSE_BONE, ELEM, OB_ARMATURE, OB_CURVE, OB_GPENCIL, OB_MBALL, OB_MESH, SPACE_GRAPH, t, and V3D_AROUND_LOCAL_ORIGINS.
Referenced by applyShear(), applyToSphere(), ElementMirror(), ElementResize(), ElementRotation(), and to_sphere_radius_update().
| void transform_mode_default_modal_orientation_set | ( | TransInfo * | t, |
| int | type | ||
| ) |
When in modal nad not set, initializes a default orientation for the mode.
Definition at line 1283 of file transform_mode.c.
References BLI_assert, ED_transform_calc_orientation_from_type_ex(), ELEM, NULL, RGN_TYPE_WINDOW, SPACE_VIEW3D, t, T_MODAL, transform_orientations_current_set(), type, V3D_ORIENT_GLOBAL, and V3D_ORIENT_VIEW.
Referenced by initNormalRotation(), initResize(), initRotation(), initShear(), and initTranslation().
| void transform_mode_init | ( | TransInfo * | t, |
| struct wmOperator * | op, | ||
| const int | mode | ||
| ) |
Definition at line 1139 of file transform_mode.c.
References ELEM, initAlign(), initBakeTime(), initBend(), initBevelWeight(), initBoneEnvelope(), initBoneRoll(), initBoneSize(), initCrease(), initCurveShrinkFatten(), initEdgeSlide_ex(), initGPOpacity(), initGPShrinkFatten(), initMaskShrinkFatten(), initMirror(), initNormalRotation(), initPushPull(), initResize(), initRotation(), initSeqSlide(), initShear(), initShrinkFatten(), initSkinResize(), initTilt(), initTimeScale(), initTimeSlide(), initTimeTranslate(), initToSphere(), initTrackball(), initTranslation(), initVertSlide_ex(), mesh_customdatacorrect_init(), wmOperator::ptr, RNA_boolean_get(), SPACE_GRAPH, SPACE_NLA, t, TC_MESH_VERTS, TFM_ALIGN, TFM_BAKE_TIME, TFM_BEND, TFM_BONE_ENVELOPE, TFM_BONE_ENVELOPE_DIST, TFM_BONE_ROLL, TFM_BONESIZE, TFM_BWEIGHT, TFM_CREASE, TFM_CURVE_SHRINKFATTEN, TFM_EDGE_SLIDE, TFM_GPENCIL_OPACITY, TFM_GPENCIL_SHRINKFATTEN, TFM_MASK_SHRINKFATTEN, TFM_MIRROR, TFM_NORMAL_ROTATION, TFM_PUSHPULL, TFM_RESIZE, TFM_ROTATION, TFM_SEQ_SLIDE, TFM_SHEAR, TFM_SHRINKFATTEN, TFM_SKIN_RESIZE, TFM_TILT, TFM_TIME_DUPLICATE, TFM_TIME_EXTEND, TFM_TIME_SCALE, TFM_TIME_SLIDE, TFM_TIME_TRANSLATE, TFM_TOSPHERE, TFM_TRACKBALL, TFM_TRANSLATION, and TFM_VERT_SLIDE.
Referenced by initTransform(), and transformEvent().
| bool transform_mode_is_changeable | ( | const int | mode | ) |
Definition at line 82 of file transform_mode.c.
References ELEM, TFM_EDGE_SLIDE, TFM_RESIZE, TFM_ROTATION, TFM_TRACKBALL, TFM_TRANSLATION, and TFM_VERT_SLIDE.
Referenced by transform_modal_item_poll(), and transformEvent().
| int transform_mode_really_used | ( | struct bContext * | C, |
| int | mode | ||
| ) |
Definition at line 54 of file transform_mode.c.
References ARM_ENVELOPE, BLI_assert, C, CTX_data_active_object(), Object::data, bArmature::drawtype, OB_ARMATURE, TFM_BONE_ENVELOPE_DIST, TFM_BONESIZE, TFM_RESIZE, and Object::type.
Referenced by initTransform().