Blender
V3.3
|
#include <stdlib.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 "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 | TransDataArgs_Trackball |
Functions | |
Transform (Rotation - Trackball) Element | |
static void | transdata_elem_trackball (const TransInfo *t, const TransDataContainer *tc, TransData *td, const float axis[3], const float angle, const float mat_final[3][3]) |
static void | transdata_elem_trackball_fn (void *__restrict iter_data_v, const int iter, const TaskParallelTLS *__restrict UNUSED(tls)) |
Transform (Rotation - Trackball) | |
static void | applyTrackballValue_calc_axis_angle (const TransInfo *t, const float phi[2], float r_axis[3], float *r_angle) |
static void | applyTrackballValue (TransInfo *t, const float axis[3], const float angle) |
static void | applyTrackball (TransInfo *t, const int UNUSED(mval[2])) |
static void | applyTrackballMatrix (TransInfo *t, float mat_xform[4][4]) |
void | initTrackball (TransInfo *t) |
Definition at line 125 of file transform_mode_trackball.c.
References applyNumInput(), applyTrackballValue(), applyTrackballValue_calc_axis_angle(), BLI_snprintf_rlen(), Freestyle::c, copy_v2_v2(), ED_area_status_text(), hasNumInput(), NUM_STR_REP_LEN, outputNumInput(), RAD2DEGF, recalcData(), str, t, T_PROP_EDIT_ALL, TIP_, transform_snap_increment(), and UI_MAX_DRAW_STR.
Referenced by initTrackball().
Definition at line 174 of file transform_mode_trackball.c.
References applyTrackballValue_calc_axis_angle(), axis_angle_normalized_to_mat3(), copy_m4_m3(), mat4, mul_m4_m4m4(), t, transform_pivot_set_m4(), and UNPACK2.
Referenced by initTrackball().
Definition at line 92 of file transform_mode_trackball.c.
References angle(), TransDataArgs_Trackball::axis, axis_angle_normalized_to_mat3(), BLI_parallel_range_settings_defaults(), BLI_task_parallel_range(), copy_m3_m3(), data, TransDataContainer::data, TransDataContainer::data_len, FOREACH_TRANS_DATA_CONTAINER, TransDataArgs_Trackball::mat_final, t, TransDataArgs_Trackball::tc, TD_SKIP, transdata_elem_trackball(), transdata_elem_trackball_fn(), TRANSDATA_THREAD_LIMIT, and UNPACK3.
Referenced by applyTrackball().
|
static |
Definition at line 78 of file transform_mode_trackball.c.
References madd_v3_v3fl(), mul_v3_v3fl(), normalize_v3(), normalize_v3_v3(), and t.
Referenced by applyTrackball(), and applyTrackballMatrix().
Definition at line 189 of file transform_mode_trackball.c.
References applyTrackball(), applyTrackballMatrix(), B_UNIT_ROTATION, copy_v3_fl(), DEG2RAD, initMouseInputMode(), INPUT_TRACKBALL, t, T_NO_CONSTRAINT, TFM_TRACKBALL, and USER_UNIT_ROT_RADIANS.
Referenced by transform_mode_init().
|
static |
Definition at line 44 of file transform_mode_trackball.c.
References angle(), axis_angle_normalized_to_mat3(), ElementRotation(), TransData::factor, float(), t, and T_PROP_EDIT.
Referenced by applyTrackballValue(), and transdata_elem_trackball_fn().
|
static |
Definition at line 60 of file transform_mode_trackball.c.
References data, TD_SKIP, and transdata_elem_trackball().
Referenced by applyTrackballValue().