|
Blender V4.3
|
#include "BLI_math_matrix_types.hh"#include "BLI_math_vector.h"#include "BKE_nla.hh"#include "ED_markers.hh"#include "transform.hh"#include "transform_snap.hh"Go to the source code of this file.
Functions | |
Snapping in Anim Editors | |
| void | snapFrameTransform (TransInfo *t, const eSnapMode snap_mode, const float val_initial, const float val_final, float *r_val_final) |
| static void | transform_snap_anim_flush_data_ex (TransInfo *t, TransData *td, float val, const eSnapMode snap_mode, float *r_val_final) |
| void | transform_snap_anim_flush_data (TransInfo *t, TransData *td, const eSnapMode snap_mode, float *r_val_final) |
| static void | invert_snap (eSnapMode &snap_mode) |
| static float2 | nla_transform_apply (TransInfo *t, const float *vec, const float2 &ival) |
| bool | transform_snap_nla_calc (TransInfo *t, float *vec) |
|
static |
Definition at line 110 of file transform_snap_animation.cc.
References SCE_SNAP_TO_FRAME, and SCE_SNAP_TO_SECOND.
Referenced by transform_snap_nla_calc().
Definition at line 125 of file transform_snap_animation.cc.
References blender::MatBase< float, 4, 4 >::identity(), TransInfo::idx_max, blender::MatBase< T, NumCol, NumRow, Alignment >::location(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), transform_apply_matrix(), TransInfo::values_final, and blender::VecBase< T, Size >::xy().
Referenced by transform_snap_nla_calc().
| void snapFrameTransform | ( | TransInfo * | t, |
| const eSnapMode | snap_mode, | ||
| const float | val_initial, | ||
| const float | val_final, | ||
| float * | r_val_final ) |
Definition at line 25 of file transform_snap_animation.cc.
References ED_markers_find_nearest_marker_time(), TransSnap::flag, float, floor(), floorf, FPS, Scene::markers, SCE_SNAP_ABS_TIME_STEP, SCE_SNAP_TO_FRAME, SCE_SNAP_TO_MARKERS, SCE_SNAP_TO_SECOND, TransInfo::scene, and TransInfo::tsnap.
Referenced by headerTimeTranslate(), headerTranslation(), and transform_snap_anim_flush_data_ex().
| void transform_snap_anim_flush_data | ( | TransInfo * | t, |
| TransData * | td, | ||
| eSnapMode | autosnap, | ||
| float * | r_val_final ) |
This function is used by Animation Editor specific transform functions to do the Snap Keyframe to Nearest Frame/Marker.
Definition at line 102 of file transform_snap_animation.cc.
References transform_snap_anim_flush_data_ex().
Referenced by flushTransGraphData(), and recalcData_actedit().
|
static |
Definition at line 72 of file transform_snap_animation.cc.
References BKE_nla_tweakedit_remap(), BLI_assert, ELEM, TransSnap::flag, NLATIME_CONVERT_MAP, NLATIME_CONVERT_UNMAP, snapFrameTransform(), SPACE_NLA, SPACE_SEQ, TransInfo::spacetype, TD_GREASE_PENCIL_FRAME, and TransInfo::tsnap.
Referenced by transform_snap_anim_flush_data(), and transform_snap_nla_calc().
Definition at line 143 of file transform_snap_animation.cc.
References abs(), copy_v2_v2(), TransDataContainer::data, TransDataContainer::data_len, FLT_MAX, invert_snap(), MOD_SNAP_INVERT, TransSnap::mode, TransInfo::modifiers, nla_transform_apply(), TransSnap::snap_source, TransSnap::snap_target, TRANS_DATA_CONTAINER_FIRST_SINGLE, transform_snap_anim_flush_data_ex(), and TransInfo::tsnap.
Referenced by snap_target_nla_fn().