|
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_report.h"#include "BKE_unit.h"#include "ED_node.h"#include "ED_screen.h"#include "WM_api.h"#include "UI_interface.h"#include "BLT_translation.h"#include "transform.h"#include "transform_convert.h"#include "transform_mode.h"#include "transform_snap.h"Go to the source code of this file.
Classes | |
| struct | TranslateCustomData |
Functions | |
Transform (Translation) | |
| static void | headerTranslation (TransInfo *t, const float vec[3], char str[UI_MAX_DRAW_STR]) |
| static void | ApplySnapTranslation (TransInfo *t, float vec[3]) |
| static void | applyTranslationValue (TransInfo *t, const float vec[3]) |
| static void | applyTranslation (TransInfo *t, const int UNUSED(mval[2])) |
| void | initTranslation (TransInfo *t) |
Definition at line 249 of file transform_mode_translate.c.
References border, CTX_PAINT_CURVE, ED_view3d_project_float_global(), getSnapPoint(), NODE_BOTTOM, NODE_LEFT, NODE_RIGHT, NODE_TOP, SPACE_NODE, SPACE_VIEW3D, sub_v3_v3v3(), t, V3D_PROJ_RET_OK, V3D_PROJ_TEST_NOP, and zero_v3().
Referenced by initTranslation().
|
static |
Definition at line 404 of file transform_mode_translate.c.
References activeSnap(), applyNumInput(), applySnapping(), applyTranslationValue(), clipUVData(), clipUVTransform(), CON_APPLY, CON_AXIS0, CON_AXIS1, CON_AXIS2, copy_v3_v3(), ED_area_status_text(), headerTranslation(), len_squared_v3v3(), mul_v3_m3v3(), mul_v3_v3fl(), NULL, recalcData(), removeAspectRatio(), str, t, T_2D_EDIT, T_CLIP_UV, T_INPUT_IS_VALUES_FINAL, T_PROP_EDIT, transform_snap_grid(), transform_snap_increment_ex(), UI_MAX_DRAW_STR, and validSnap().
Referenced by initTranslation().
Definition at line 277 of file transform_mode_translate.c.
References activeSnap(), add_v3_v3(), add_v3_v3v3(), TranslateCustomData::apply_snap_align_rotation, TransData::axismtx, BLI_assert, constraintTransLim(), copy_v3_v3(), CTX_GPENCIL_STROKES, CTX_POSE_BONE, ElementRotation_ex(), TransData::factor, FOREACH_TRANS_DATA_CONTAINER, if(), TranslateCustomData::is_valid_snapping_normal, mul_m3_v3(), mul_m4_v3(), mul_v3_fl(), bGPDstroke_Runtime::multi_frame_falloff, NULL, TranslateCustomData::prev, protectedTransBits(), TransData::protectflag, rotation_between_vecs_to_mat3(), bGPDstroke::runtime, TransData::smtx, sub_v3_v3v3(), t, T_POINTS, TD_SKIP, unit_m3(), usingSnappingNormal(), and validSnappingNormal().
Referenced by applyTranslation().
|
static |
Definition at line 72 of file transform_mode_translate.c.
References applyAspectRatio(), B_UNIT_LENGTH, BKE_unit_value_as_string(), BLI_snprintf(), BLI_strdup(), CON_APPLY, CON_AXIS0, CON_AXIS1, CON_AXIS2, copy_v3_v3(), SpaceNode::flag, hasNumInput(), if(), SpaceNode::insert_ofs_dir, len_v3(), MEM_freeN, NULL, NUM_STR_REP_LEN, outputNumInput(), UnitSettings::scale_length, SNODE_INSERTOFS_DIR_RIGHT, SNODE_SKIP_INSOFFSET, SPACE_NODE, str, t, T_2D_EDIT, T_AUTOIK, T_PROP_EDIT_ALL, TFM_MODAL_INSERTOFS_TOGGLE_DIR, TIP_, UI_MAX_DRAW_STR, WM_modalkeymap_items_to_string(), and zero_v3().
Referenced by applyTranslation().
| void initTranslation | ( | TransInfo * | t | ) |
Definition at line 483 of file transform_mode_translate.c.
References TranslateCustomData::apply_snap_align_rotation, ApplySnapTranslation(), applyTranslation(), B_UNIT_LENGTH, B_UNIT_NONE, BKE_report(), copy_v2_v2(), copy_v3_fl(), CTX_CAMERA, initMouseInputMode(), INPUT_VECTOR, TranslateCustomData::is_valid_snapping_normal, MEM_callocN, TranslateCustomData::prev, RPT_ERROR, SPACE_ACTION, SPACE_VIEW3D, t, T_2D_EDIT, TRANS_CANCEL, transform_mode_default_modal_orientation_set(), transform_snap_distance_len_squared_fn(), V3D_ORIENT_GLOBAL, and V3D_ORIENT_VIEW.
Referenced by transform_mode_init().