|
Blender
V2.93
|
#include <stdlib.h>#include "MEM_guardedalloc.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_api.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.
Classes | |
| struct | BendCustomData |
Functions | |
Transform (Bend) | |
| static eRedrawFlag | handleEventBend (TransInfo *UNUSED(t), const wmEvent *event) |
| static void | Bend (TransInfo *t, const int UNUSED(mval[2])) |
| void | initBend (TransInfo *t) |
|
static |
Definition at line 76 of file transform_mode_bend.c.
References add_v3_v3(), angle(), applyNumInput(), axis_angle_normalized_to_mat3(), BLI_snprintf(), Freestyle::c, CLAMP, copy_v2_v2(), copy_v3_v3(), CTX_GPENCIL_STROKES, data, dist_ensure_v3_v3fl(), ED_area_status_text(), ElementRotation(), TransData::factor, FOREACH_TRANS_DATA_CONTAINER, hasNumInput(), if(), interp_v3_v3v3(), line_point_factor_v3(), M_PI_2, madd_v3_v3fl(), TransData::mtx, mul_m3_v3(), bGPDstroke_Runtime::multi_frame_falloff, NULL, NUM_STR_REP_LEN, outputNumInput(), RAD2DEGF, recalcData(), bGPDstroke::runtime, SCE_SNAP_MODE_INCREMENT, shell_angle_to_dist(), TransData::smtx, str, sub_v3_v3(), sub_v3_v3v3(), t, T_ALT_TRANSFORM, T_POINTS, TD_SKIP, TIP_, transform_snap_increment(), UI_MAX_DRAW_STR, UNLIKELY, V3D_AROUND_LOCAL_ORIGINS, and WM_bool_as_string().
Referenced by initBend().
|
static |
Definition at line 65 of file transform_mode_bend.c.
References KM_PRESS, MIDDLEMOUSE, TREDRAW_HARD, TREDRAW_NOTHING, wmEvent::type, and wmEvent::val.
Referenced by initBend().
| 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().