|
Blender
V2.93
|
#include <stdlib.h>#include "DNA_gpencil_types.h"#include "BLI_math.h"#include "BLI_string.h"#include "BKE_context.h"#include "BKE_unit.h"#include "ED_screen.h"#include "WM_types.h"#include "UI_interface.h"#include "BLT_translation.h"#include "transform.h"#include "transform_mode.h"#include "transform_snap.h"Go to the source code of this file.
Functions | |
Transform (Shear) | |
| static void | initShear_mouseInputMode (TransInfo *t) |
| static eRedrawFlag | handleEventShear (TransInfo *t, const wmEvent *event) |
| static void | applyShear (TransInfo *t, const int UNUSED(mval[2])) |
| void | initShear (TransInfo *t) |
|
static |
Definition at line 118 of file transform_mode_shear.c.
References add_v3_v3(), add_v3_v3v3(), applyNumInput(), BLI_snprintf(), Freestyle::c, center, copy_m3_m3(), copy_v3_v3(), cross_v3_v3v3(), CTX_GPENCIL_STROKES, ED_area_status_text(), TransData::factor, FOREACH_TRANS_DATA_CONTAINER, hasNumInput(), if(), invert_m3_m3(), TransData::mtx, mul_m3_series, mul_m3_v3(), mul_v3_fl(), bGPDstroke_Runtime::multi_frame_falloff, NULL, NUM_STR_REP_LEN, outputNumInput(), recalcData(), bGPDstroke::runtime, TransData::smtx, str, sub_v3_v3(), sub_v3_v3v3(), t, T_EDIT, TD_SKIP, TIP_, transdata_check_local_center(), transform_snap_increment(), UI_MAX_DRAW_STR, and unit_m3().
Referenced by initShear().
|
static |
Definition at line 88 of file transform_mode_shear.c.
References EVT_XKEY, EVT_YKEY, initShear_mouseInputMode(), KM_PRESS, MIDDLEMOUSE, t, TREDRAW_HARD, TREDRAW_NOTHING, wmEvent::type, and wmEvent::val.
Referenced by initShear().
| 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().
|
static |
Definition at line 50 of file transform_mode_shear.c.
References copy_v3_v3(), initMouseInputMode(), INPUT_CUSTOM_RATIO, mul_mat3_m4_v3(), negate_v3(), normalize_v2(), setCustomPointsFromDirection(), t, and V3D_ORIENT_VIEW.
Referenced by handleEventShear(), and initShear().