Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform.h
| Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | typedef enum { | ||||
| /** Merges unselected into selected after transforming (runs after transforming). */ | /** Merges unselected into selected after transforming (runs after transforming). */ | ||||
| T_AUTOMERGE = 1 << 20, | T_AUTOMERGE = 1 << 20, | ||||
| /** Runs auto-merge & splits. */ | /** Runs auto-merge & splits. */ | ||||
| T_AUTOSPLIT = 1 << 21, | T_AUTOSPLIT = 1 << 21, | ||||
| /** No cursor wrapping on region bounds */ | /** No cursor wrapping on region bounds */ | ||||
| T_NO_CURSOR_WRAP = 1 << 23, | T_NO_CURSOR_WRAP = 1 << 23, | ||||
| /** To indicate that V3D matrices have changed due to navigation. */ | |||||
| T_VIEW_DIRTY = 1 << 24, | |||||
| } eTFlag; | } eTFlag; | ||||
| /** #TransInfo.modifiers */ | /** #TransInfo.modifiers */ | ||||
| typedef enum { | typedef enum { | ||||
| MOD_CONSTRAINT_SELECT_AXIS = 1 << 0, | MOD_CONSTRAINT_SELECT_AXIS = 1 << 0, | ||||
| MOD_PRECISION = 1 << 1, | MOD_PRECISION = 1 << 1, | ||||
| MOD_SNAP = 1 << 2, | MOD_SNAP = 1 << 2, | ||||
| MOD_SNAP_INVERT = 1 << 3, | MOD_SNAP_INVERT = 1 << 3, | ||||
| ▲ Show 20 Lines • Show All 590 Lines • ▼ Show 20 Lines | |||||
| void initMouseInput( | void initMouseInput( | ||||
| TransInfo *t, MouseInput *mi, const float center[2], const int mval[2], const bool precision); | TransInfo *t, MouseInput *mi, const float center[2], const int mval[2], const bool precision); | ||||
| void initMouseInputMode(TransInfo *t, MouseInput *mi, MouseInputMode mode); | void initMouseInputMode(TransInfo *t, MouseInput *mi, MouseInputMode mode); | ||||
| void applyMouseInput(struct TransInfo *t, | void applyMouseInput(struct TransInfo *t, | ||||
| struct MouseInput *mi, | struct MouseInput *mi, | ||||
| const int mval[2], | const int mval[2], | ||||
| float output[3]); | float output[3]); | ||||
| void transform_input_update(TransInfo *t, const float fac); | |||||
| void setCustomPoints(TransInfo *t, MouseInput *mi, const int start[2], const int end[2]); | void setCustomPoints(TransInfo *t, MouseInput *mi, const int start[2], const int end[2]); | ||||
| void setCustomPointsFromDirection(TransInfo *t, MouseInput *mi, const float dir[2]); | void setCustomPointsFromDirection(TransInfo *t, MouseInput *mi, const float dir[2]); | ||||
| void setInputPostFct(MouseInput *mi, void (*post)(struct TransInfo *t, float values[3])); | void setInputPostFct(MouseInput *mi, void (*post)(struct TransInfo *t, float values[3])); | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| Show All 16 Lines | |||||
| void applyTransObjects(TransInfo *t); | void applyTransObjects(TransInfo *t); | ||||
| void restoreTransObjects(TransInfo *t); | void restoreTransObjects(TransInfo *t); | ||||
| void calculateCenter2D(TransInfo *t); | void calculateCenter2D(TransInfo *t); | ||||
| void calculateCenterLocal(TransInfo *t, const float center_global[3]); | void calculateCenterLocal(TransInfo *t, const float center_global[3]); | ||||
| void calculateCenter(TransInfo *t); | void calculateCenter(TransInfo *t); | ||||
| void tranformViewUpdate(TransInfo *t); | |||||
| /* API functions for getting center points */ | /* API functions for getting center points */ | ||||
| void calculateCenterBound(TransInfo *t, float r_center[3]); | void calculateCenterBound(TransInfo *t, float r_center[3]); | ||||
| void calculateCenterMedian(TransInfo *t, float r_center[3]); | void calculateCenterMedian(TransInfo *t, float r_center[3]); | ||||
| void calculateCenterCursor(TransInfo *t, float r_center[3]); | void calculateCenterCursor(TransInfo *t, float r_center[3]); | ||||
| void calculateCenterCursor2D(TransInfo *t, float r_center[2]); | void calculateCenterCursor2D(TransInfo *t, float r_center[2]); | ||||
| void calculateCenterCursorGraph2D(TransInfo *t, float r_center[2]); | void calculateCenterCursorGraph2D(TransInfo *t, float r_center[2]); | ||||
| bool calculateCenterActive(TransInfo *t, bool select_only, float r_center[3]); | bool calculateCenterActive(TransInfo *t, bool select_only, float r_center[3]); | ||||
| Show All 35 Lines | |||||