Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform.h
| Show First 20 Lines • Show All 903 Lines • ▼ Show 20 Lines | |||||
| void applyAspectRatio(TransInfo *t, float vec[2]); | void applyAspectRatio(TransInfo *t, float vec[2]); | ||||
| void removeAspectRatio(TransInfo *t, float vec[2]); | void removeAspectRatio(TransInfo *t, float vec[2]); | ||||
| void drawPropCircle(const struct bContext *C, TransInfo *t); | void drawPropCircle(const struct bContext *C, TransInfo *t); | ||||
| struct wmKeyMap *transform_modal_keymap(struct wmKeyConfig *keyconf); | struct wmKeyMap *transform_modal_keymap(struct wmKeyConfig *keyconf); | ||||
| /*********************** transform_conversions.c ********** */ | |||||
| void flushTransIntFrameActionData(TransInfo *t); | |||||
| void flushTransGraphData(TransInfo *t); | |||||
| void remake_graph_transdata(TransInfo *t, struct ListBase *anim_data); | |||||
| void flushTransUVs(TransInfo *t); | |||||
| void flushTransParticles(TransInfo *t); | |||||
| bool clipUVTransform(TransInfo *t, float vec[2], const bool resize); | |||||
| void clipUVData(TransInfo *t); | |||||
| void flushTransNodes(TransInfo *t); | |||||
| void flushTransSeq(TransInfo *t); | |||||
| void flushTransTracking(TransInfo *t); | |||||
| void flushTransMasking(TransInfo *t); | |||||
| void flushTransPaintCurve(TransInfo *t); | |||||
| void restoreMirrorPoseBones(TransDataContainer *tc); | |||||
| void restoreBones(TransDataContainer *tc); | |||||
| /*********************** transform_gizmo.c ********** */ | /*********************** transform_gizmo.c ********** */ | ||||
| #define GIZMO_AXIS_LINE_WIDTH 2.0f | #define GIZMO_AXIS_LINE_WIDTH 2.0f | ||||
| /* return 0 when no gimbal for selection */ | /* return 0 when no gimbal for selection */ | ||||
| bool gimbal_axis(struct Object *ob, float gmat[3][3]); | bool gimbal_axis(struct Object *ob, float gmat[3][3]); | ||||
| void drawDial3d(const TransInfo *t); | void drawDial3d(const TransInfo *t); | ||||
| /*********************** TransData Creation and General Handling *********** */ | /*********************** TransData Creation and General Handling *********** */ | ||||
| void createTransData(struct bContext *C, TransInfo *t); | |||||
| void sort_trans_data_dist(TransInfo *t); | |||||
| void special_aftertrans_update(struct bContext *C, TransInfo *t); | |||||
| int special_transform_moving(TransInfo *t); | |||||
| void transform_autoik_update(TransInfo *t, short mode); | |||||
| bool transdata_check_local_islands(TransInfo *t, short around); | bool transdata_check_local_islands(TransInfo *t, short around); | ||||
| int count_set_pose_transflags(struct Object *ob, | |||||
| const int mode, | |||||
| const short around, | |||||
| bool has_translate_rotate[2]); | |||||
| /* Auto-keyframe applied after transform, returns true if motion paths need to be updated. */ | |||||
| void autokeyframe_object(struct bContext *C, | |||||
| struct Scene *scene, | |||||
| struct ViewLayer *view_layer, | |||||
| struct Object *ob, | |||||
| int tmode); | |||||
| void autokeyframe_pose( | |||||
| struct bContext *C, struct Scene *scene, struct Object *ob, int tmode, short targetless_ik); | |||||
| /* Test if we need to update motion paths for a given object. */ | |||||
| bool motionpath_need_update_object(struct Scene *scene, struct Object *ob); | |||||
| bool motionpath_need_update_pose(struct Scene *scene, struct Object *ob); | |||||
| /*********************** Constraints *****************************/ | /*********************** Constraints *****************************/ | ||||
| void drawConstraint(TransInfo *t); | void drawConstraint(TransInfo *t); | ||||
| void getConstraintMatrix(TransInfo *t); | void getConstraintMatrix(TransInfo *t); | ||||
| void setConstraint(TransInfo *t, float space[3][3], int mode, const char text[]); | void setConstraint(TransInfo *t, float space[3][3], int mode, const char text[]); | ||||
| void setAxisMatrixConstraint(TransInfo *t, int mode, const char text[]); | void setAxisMatrixConstraint(TransInfo *t, int mode, const char text[]); | ||||
| void setLocalConstraint(TransInfo *t, int mode, const char text[]); | void setLocalConstraint(TransInfo *t, int mode, const char text[]); | ||||
| ▲ Show 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | for (TransDataContainer *tc = t->data_container, \ | ||||
| th++) | th++) | ||||
| #define FOREACH_TRANS_DATA_CONTAINER_INDEX(t, th, i) \ | #define FOREACH_TRANS_DATA_CONTAINER_INDEX(t, th, i) \ | ||||
| for (TransDataContainer *tc = ((i = 0), t->data_container), \ | for (TransDataContainer *tc = ((i = 0), t->data_container), \ | ||||
| *tc_end = t->data_container + t->data_container_len; \ | *tc_end = t->data_container + t->data_container_len; \ | ||||
| th != tc_end; \ | th != tc_end; \ | ||||
| th++, i++) | th++, i++) | ||||
| void trans_obdata_in_obmode_update_all(struct TransInfo *t); | |||||
| void trans_obchild_in_obmode_update_all(struct TransInfo *t); | |||||
| #endif | #endif | ||||