Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_mode.h
| Show All 21 Lines | |||||
| * \brief transform modes used by different operators. | * \brief transform modes used by different operators. | ||||
| */ | */ | ||||
| #ifndef __TRANSFORM_MODE_H__ | #ifndef __TRANSFORM_MODE_H__ | ||||
| #define __TRANSFORM_MODE_H__ | #define __TRANSFORM_MODE_H__ | ||||
| struct AnimData; | struct AnimData; | ||||
| struct LinkNode; | struct LinkNode; | ||||
| struct TransData; | struct TransDataIter; | ||||
| struct TransDataContainer; | struct TransDataContainer; | ||||
| struct TransInfo; | struct TransInfo; | ||||
| struct wmOperator; | struct wmOperator; | ||||
| /* header of TransDataEdgeSlideVert, TransDataEdgeSlideEdge */ | /* header of TransDataEdgeSlideVert, TransDataEdgeSlideEdge */ | ||||
| typedef struct TransDataGenericSlideVert { | typedef struct TransDataGenericSlideVert { | ||||
| struct BMVert *v; | struct BMVert *v; | ||||
| struct LinkNode **cd_loop_groups; | struct LinkNode **cd_loop_groups; | ||||
| float co_orig_3d[3]; | float co_orig_3d[3]; | ||||
| } TransDataGenericSlideVert; | } TransDataGenericSlideVert; | ||||
| /* transform_mode.c */ | /* transform_mode.c */ | ||||
| bool transdata_check_local_center(TransInfo *t, short around); | bool transdata_check_local_center(TransInfo *t, short around); | ||||
| bool transform_mode_is_changeable(const int mode); | bool transform_mode_is_changeable(const int mode); | ||||
| void protectedTransBits(short protectflag, float vec[3]); | void protectedTransBits(short protectflag, float vec[3]); | ||||
| void constraintTransLim(TransInfo *t, TransData *td); | void constraintTransLim(TransInfo *t, const struct TransData *td, const int tdi); | ||||
| void postInputRotation(TransInfo *t, float values[3]); | void postInputRotation(TransInfo *t, float values[3]); | ||||
| void headerRotation(TransInfo *t, char *str, float final); | void headerRotation(TransInfo *t, char *str, float final); | ||||
| void ElementRotation_ex(TransInfo *t, | void ElementRotation_ex(TransInfo *t, | ||||
| TransDataContainer *tc, | TransDataContainer *tc, | ||||
| TransData *td, | const int tdi, | ||||
| const float mat[3][3], | const float mat[3][3], | ||||
| const float *center); | const float *center); | ||||
| void ElementRotation( | void ElementRotation( | ||||
| TransInfo *t, TransDataContainer *tc, TransData *td, float mat[3][3], const short around); | TransInfo *t, TransDataContainer *tc, const int tdi, float mat[3][3], const short around); | ||||
| void headerResize(TransInfo *t, const float vec[3], char *str); | void headerResize(TransInfo *t, const float vec[3], char *str); | ||||
| void ElementResize(TransInfo *t, TransDataContainer *tc, TransData *td, float mat[3][3]); | void ElementResize(TransInfo *t, TransDataContainer *tc, const int tdi, float mat[3][3]); | ||||
| short getAnimEdit_SnapMode(TransInfo *t); | short getAnimEdit_SnapMode(TransInfo *t); | ||||
| void doAnimEdit_SnapFrame( | void doAnimEdit_SnapFrame(TransInfo *t, | ||||
| TransInfo *t, TransData *td, TransData2D *td2d, struct AnimData *adt, short autosnap); | const struct TransData *td, | ||||
| const int tdi, | |||||
| TransData2D *td2d, | |||||
| struct AnimData *adt, | |||||
| short autosnap); | |||||
| void transform_mode_init(TransInfo *t, struct wmOperator *op, const int mode); | void transform_mode_init(TransInfo *t, struct wmOperator *op, const int mode); | ||||
| /* transform_mode_align.c */ | /* transform_mode_align.c */ | ||||
| void initAlign(TransInfo *t); | void initAlign(TransInfo *t); | ||||
| /* transform_mode_baketime.c */ | /* transform_mode_baketime.c */ | ||||
| void initBakeTime(TransInfo *t); | void initBakeTime(TransInfo *t); | ||||
| ▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines | |||||