Blender
V3.3
|
#include <stdlib.h>
#include "MEM_guardedalloc.h"
#include "DNA_gpencil_types.h"
#include "BLI_math.h"
#include "BLI_string.h"
#include "BLI_task.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_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
Go to the source code of this file.
Classes | |
struct | BendCustomData |
struct | TransDataArgs_Bend |
Functions | |
Transform (Bend) Element | |
static void | transdata_elem_bend (const TransInfo *t, const TransDataContainer *tc, TransData *td, float angle, const struct BendCustomData *bend_data, const float warp_sta_local[3], const float UNUSED(warp_end_local[3]), const float warp_end_radius_local[3], const float pivot_local[3], bool is_clamp) |
static void | transdata_elem_bend_fn (void *__restrict iter_data_v, const int iter, const TaskParallelTLS *__restrict UNUSED(tls)) |
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) |
Definition at line 182 of file transform_mode_bend.c.
References angle(), applyNumInput(), TransDataArgs_Bend::bend_data, BLI_parallel_range_settings_defaults(), BLI_snprintf(), BLI_task_parallel_range(), Freestyle::c, copy_v2_v2(), copy_v3_v3(), data, TransDataContainer::data, TransDataContainer::data_len, dist_ensure_v3_v3fl(), ED_area_status_text(), FOREACH_TRANS_DATA_CONTAINER, hasNumInput(), TransDataArgs_Bend::is_clamp, M_PI_2, madd_v3_v3fl(), TransDataContainer::mat, NUM_STR_REP_LEN, outputNumInput(), TransDataArgs_Bend::pivot_local, RAD2DEGF, recalcData(), SCE_SNAP_MODE_INCREMENT, shell_angle_to_dist(), str, sub_v3_v3v3(), t, T_ALT_TRANSFORM, TransDataArgs_Bend::tc, TD_SKIP, TIP_, transdata_elem_bend(), transdata_elem_bend_fn(), TRANSDATA_THREAD_LIMIT, transform_snap_increment(), UI_MAX_DRAW_STR, UNPACK3, TransDataContainer::use_local_mat, BendCustomData::warp_end, TransDataArgs_Bend::warp_end_local, TransDataArgs_Bend::warp_end_radius_local, BendCustomData::warp_init_dist, BendCustomData::warp_sta, TransDataArgs_Bend::warp_sta_local, BendCustomData::warp_tan, and WM_bool_as_string().
Referenced by initBend().
|
static |
Definition at line 171 of file transform_mode_bend.c.
References KM_PRESS, MIDDLEMOUSE, TREDRAW_HARD, TREDRAW_NOTHING, wmEvent::type, and wmEvent::val.
Referenced by initBend().
Definition at line 328 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().
|
static |
Definition at line 78 of file transform_mode_bend.c.
References add_v3_v3(), angle(), axis_angle_normalized_to_mat3(), CLAMP, copy_v3_v3(), CTX_GPENCIL_STROKES, ElementRotation(), TransData::factor, if(), interp_v3_v3v3(), line_point_factor_v3(), TransData::mtx, mul_m3_v3(), bGPDstroke_Runtime::multi_frame_falloff, NULL, bGPDstroke::runtime, TransData::smtx, sub_v3_v3(), t, T_POINTS, UNLIKELY, V3D_AROUND_LOCAL_ORIGINS, and BendCustomData::warp_nor.
Referenced by Bend(), and transdata_elem_bend_fn().
|
static |
Definition at line 144 of file transform_mode_bend.c.
References data, TD_SKIP, and transdata_elem_bend().
Referenced by Bend().