Blender V4.3
anim_draw.cc File Reference
#include "BLI_sys_types.h"
#include "DNA_anim_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_userdef_types.h"
#include "BLI_math_rotation.h"
#include "BLI_rect.h"
#include "BLI_utildefines.h"
#include "BKE_context.hh"
#include "BKE_curve.hh"
#include "BKE_fcurve.hh"
#include "BKE_global.hh"
#include "BKE_mask.h"
#include "BKE_nla.hh"
#include "ED_anim_api.hh"
#include "ED_keyframes_edit.hh"
#include "ED_keyframes_keylist.hh"
#include "RNA_access.hh"
#include "RNA_path.hh"
#include "UI_resources.hh"
#include "UI_view2d.hh"
#include "GPU_immediate.hh"
#include "GPU_state.hh"

Go to the source code of this file.

Functions

void ANIM_draw_cfra (const bContext *C, View2D *v2d, short flag)
 
void ANIM_draw_previewrange (const bContext *C, View2D *v2d, int end_frame_width)
 
void ANIM_draw_framerange (Scene *scene, View2D *v2d)
 
void ANIM_draw_action_framerange (AnimData *adt, bAction *action, View2D *v2d, float ymin, float ymax)
 
AnimDataANIM_nla_mapping_get (bAnimContext *ac, bAnimListElem *ale)
 
static short bezt_nlamapping_restore (KeyframeEditData *ked, BezTriple *bezt)
 
static short bezt_nlamapping_apply (KeyframeEditData *ked, BezTriple *bezt)
 
void ANIM_nla_mapping_apply_fcurve (AnimData *adt, FCurve *fcu, bool restore, bool only_keys)
 
short ANIM_get_normalization_flags (SpaceLink *space_link)
 
static void fcurve_scene_coord_range_get (Scene *scene, const FCurve *fcu, float *r_min_coord, float *r_max_coord)
 
static float normalization_factor_get (Scene *scene, FCurve *fcu, short flag, float *r_offset)
 
float ANIM_unit_mapping_get_factor (Scene *scene, ID *id, FCurve *fcu, short flag, float *r_offset)
 
static bool find_prev_next_keyframes (bContext *C, int *r_nextfra, int *r_prevfra)
 
void ANIM_center_frame (bContext *C, int smooth_viewtx)
 
rctf ANIM_frame_range_view2d_add_xmargin (const View2D &view_2d, const rctf view_rect)
 

Function Documentation

◆ ANIM_center_frame()

◆ ANIM_draw_action_framerange()

◆ ANIM_draw_cfra()

◆ ANIM_draw_framerange()

◆ ANIM_draw_previewrange()

◆ ANIM_frame_range_view2d_add_xmargin()

rctf ANIM_frame_range_view2d_add_xmargin ( const View2D & view_2d,
rctf view_rect )

Add horizontal margin to the rectangle.

This function assumes that the X-min/X-max are set to a frame range to show.

Returns
The new rectangle with horizontal margin added, for visual comfort.

Definition at line 706 of file anim_draw.cc.

References BLI_rctf_size_x(), BLI_rcti_size_x(), View2D::mask, UI_SCALE_FAC, rctf::xmax, and rctf::xmin.

Referenced by actkeys_viewall(), graphkeys_viewall(), and scene_range_frame_exec().

◆ ANIM_get_normalization_flags()

◆ ANIM_nla_mapping_apply_fcurve()

◆ ANIM_nla_mapping_get()

AnimData * ANIM_nla_mapping_get ( bAnimContext * ac,
bAnimListElem * ale )

◆ ANIM_unit_mapping_get_factor()

◆ bezt_nlamapping_apply()

static short bezt_nlamapping_apply ( KeyframeEditData * ked,
BezTriple * bezt )
static

◆ bezt_nlamapping_restore()

static short bezt_nlamapping_restore ( KeyframeEditData * ked,
BezTriple * bezt )
static

◆ fcurve_scene_coord_range_get()

◆ find_prev_next_keyframes()

◆ normalization_factor_get()

static float normalization_factor_get ( Scene * scene,
FCurve * fcu,
short flag,
float * r_offset )
static