Blender V4.3
nla_intern.hh File Reference

Go to the source code of this file.

Enumerations

enum  eNlaEdit_LeftRightSelect_Mode { NLAEDIT_LRSEL_TEST = -1 , NLAEDIT_LRSEL_NONE , NLAEDIT_LRSEL_LEFT , NLAEDIT_LRSEL_RIGHT }
 
enum  eNlaEdit_Snap_Mode { NLAEDIT_SNAP_CFRA = 1 , NLAEDIT_SNAP_NEAREST_FRAME , NLAEDIT_SNAP_NEAREST_SECOND , NLAEDIT_SNAP_NEAREST_MARKER }
 

Functions

bool nla_panel_context (const bContext *C, PointerRNA *adt_ptr, PointerRNA *nlt_ptr, PointerRNA *strip_ptr)
 
void nla_buttons_register (ARegionType *art)
 
void draw_nla_main_data (bAnimContext *ac, SpaceNla *snla, ARegion *region)
 
void draw_nla_track_list (const bContext *C, bAnimContext *ac, ARegion *region, const ListBase &anim_data)
 
void NLA_OT_select_all (wmOperatorType *ot)
 
void NLA_OT_select_box (wmOperatorType *ot)
 
void NLA_OT_select_leftright (wmOperatorType *ot)
 
void NLA_OT_click_select (wmOperatorType *ot)
 
bool nlaedit_disable_tweakmode (bAnimContext *ac, bool do_solo)
 
void NLA_OT_tweakmode_enter (wmOperatorType *ot)
 
void NLA_OT_tweakmode_exit (wmOperatorType *ot)
 
void NLA_OT_previewrange_set (wmOperatorType *ot)
 
void NLA_OT_view_all (wmOperatorType *ot)
 
void NLA_OT_view_selected (wmOperatorType *ot)
 
void NLA_OT_view_frame (wmOperatorType *ot)
 
void NLA_OT_actionclip_add (wmOperatorType *ot)
 
void NLA_OT_transition_add (wmOperatorType *ot)
 
void NLA_OT_soundclip_add (wmOperatorType *ot)
 
void NLA_OT_meta_add (wmOperatorType *ot)
 
void NLA_OT_meta_remove (wmOperatorType *ot)
 
void NLA_OT_duplicate (wmOperatorType *ot)
 
void NLA_OT_delete (wmOperatorType *ot)
 
void NLA_OT_split (wmOperatorType *ot)
 
void NLA_OT_mute_toggle (wmOperatorType *ot)
 
void NLA_OT_swap (wmOperatorType *ot)
 
void NLA_OT_move_up (wmOperatorType *ot)
 
void NLA_OT_move_down (wmOperatorType *ot)
 
void NLA_OT_action_sync_length (wmOperatorType *ot)
 
void NLA_OT_make_single_user (wmOperatorType *ot)
 
void NLA_OT_apply_scale (wmOperatorType *ot)
 
void NLA_OT_clear_scale (wmOperatorType *ot)
 
void NLA_OT_snap (wmOperatorType *ot)
 
void NLA_OT_fmodifier_add (wmOperatorType *ot)
 
void NLA_OT_fmodifier_copy (wmOperatorType *ot)
 
void NLA_OT_fmodifier_paste (wmOperatorType *ot)
 
bool nlaedit_add_tracks_existing (bAnimContext *ac, bool above_sel)
 
bool nlaedit_add_tracks_empty (bAnimContext *ac)
 
void NLA_OT_channels_click (wmOperatorType *ot)
 
void NLA_OT_action_pushdown (wmOperatorType *ot)
 
void NLA_OT_action_unlink (wmOperatorType *ot)
 
void NLA_OT_tracks_add (wmOperatorType *ot)
 
void NLA_OT_tracks_delete (wmOperatorType *ot)
 
void NLA_OT_selected_objects_add (wmOperatorType *ot)
 
bool nlaop_poll_tweakmode_off (bContext *C)
 
bool nlaop_poll_tweakmode_on (bContext *C)
 
bool nlaedit_is_tweakmode_on (bAnimContext *ac)
 
void nla_operatortypes ()
 
void nla_keymap (wmKeyConfig *keyconf)
 

Enumeration Type Documentation

◆ eNlaEdit_LeftRightSelect_Mode

Enumerator
NLAEDIT_LRSEL_TEST 
NLAEDIT_LRSEL_NONE 
NLAEDIT_LRSEL_LEFT 
NLAEDIT_LRSEL_RIGHT 

Definition at line 39 of file nla_intern.hh.

◆ eNlaEdit_Snap_Mode

Enumerator
NLAEDIT_SNAP_CFRA 
NLAEDIT_SNAP_NEAREST_FRAME 
NLAEDIT_SNAP_NEAREST_SECOND 
NLAEDIT_SNAP_NEAREST_MARKER 

Definition at line 57 of file nla_intern.hh.

Function Documentation

◆ draw_nla_main_data()

void draw_nla_main_data ( bAnimContext * ac,
SpaceNla * snla,
ARegion * region )

Definition at line 786 of file nla_draw.cc.

References AnimData::act_extendmode, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_draw_action_framerange(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_ACTION_SLOT, ANIMTYPE_ANIMDATA, ANIMTYPE_DSARM, ANIMTYPE_DSCACHEFILE, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSGPENCIL, ANIMTYPE_DSHAIR, ANIMTYPE_DSLAM, ANIMTYPE_DSLAT, ANIMTYPE_DSLINESTYLE, ANIMTYPE_DSMAT, ANIMTYPE_DSMBALL, ANIMTYPE_DSMCLIP, ANIMTYPE_DSMESH, ANIMTYPE_DSNTREE, ANIMTYPE_DSPART, ANIMTYPE_DSPOINTCLOUD, ANIMTYPE_DSSKEY, ANIMTYPE_DSSPK, ANIMTYPE_DSTEX, ANIMTYPE_DSVOLUME, ANIMTYPE_DSWOR, ANIMTYPE_FCURVE, ANIMTYPE_FILLACT_LAYERED, ANIMTYPE_FILLACTD, ANIMTYPE_FILLDRIVERS, ANIMTYPE_GPDATABLOCK, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_DATABLOCK, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_GREASE_PENCIL_LAYER_GROUP, ANIMTYPE_GROUP, ANIMTYPE_MASKDATABLOCK, ANIMTYPE_MASKLAYER, ANIMTYPE_NLAACTION, ANIMTYPE_NLACONTROLS, ANIMTYPE_NLACURVE, ANIMTYPE_NLATRACK, ANIMTYPE_NONE, ANIMTYPE_NUM_TYPES, ANIMTYPE_OBJECT, ANIMTYPE_PALETTE, ANIMTYPE_SCENE, ANIMTYPE_SHAPEKEY, ANIMTYPE_SPECIALDATA__UNUSED, ANIMTYPE_SUMMARY, BKE_nla_clip_length_ensure_nonzero(), BLI_rctf_size_x(), BLI_rcti_size_x(), View2D::cur, bAnimContext::data, bAnimContext::datatype, ListBase::first, blender::animrig::Action::get_frame_range(), get_visible_nla_strips(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformColor4fv(), immVertexFormat(), IN_RANGE, LISTBASE_FOREACH, View2D::mask, nla_action_draw_keyframes(), nla_action_get_color(), nla_draw_strip(), nla_draw_strip_frames_text(), nla_draw_strip_text(), NLASTRIP_EXTEND_HOLD, NLASTRIP_EXTEND_HOLD_FORWARD, NLASTRIP_EXTEND_NOTHING, NLASTRIP_FLAG_TEMP_META, NLATRACK_FIRST_TOP, NLATRACK_HEIGHT, NLATRACK_SKIP, NLATRACK_STEP, NLATRACK_TOT_HEIGHT, pos, View2D::tot, UI_SCALE_FAC, wrap(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.

Referenced by nla_main_region_draw().

◆ draw_nla_track_list()

◆ nla_buttons_register()

◆ nla_keymap()

void nla_keymap ( wmKeyConfig * keyconf)

Definition at line 170 of file nla_ops.cc.

References RGN_TYPE_WINDOW, SPACE_NLA, and WM_keymap_ensure().

Referenced by ED_spacetype_nla().

◆ nla_operatortypes()

◆ NLA_OT_action_pushdown()

◆ NLA_OT_action_sync_length()

◆ NLA_OT_action_unlink()

◆ NLA_OT_actionclip_add()

◆ NLA_OT_apply_scale()

◆ NLA_OT_channels_click()

◆ NLA_OT_clear_scale()

◆ NLA_OT_click_select()

◆ NLA_OT_delete()

◆ NLA_OT_duplicate()

◆ NLA_OT_fmodifier_add()

◆ NLA_OT_fmodifier_copy()

◆ NLA_OT_fmodifier_paste()

◆ NLA_OT_make_single_user()

◆ NLA_OT_meta_add()

◆ NLA_OT_meta_remove()

◆ NLA_OT_move_down()

◆ NLA_OT_move_up()

◆ NLA_OT_mute_toggle()

◆ NLA_OT_previewrange_set()

◆ NLA_OT_select_all()

◆ NLA_OT_select_box()

◆ NLA_OT_select_leftright()

◆ NLA_OT_selected_objects_add()

◆ NLA_OT_snap()

◆ NLA_OT_soundclip_add()

◆ NLA_OT_split()

◆ NLA_OT_swap()

◆ NLA_OT_tracks_add()

◆ NLA_OT_tracks_delete()

◆ NLA_OT_transition_add()

◆ NLA_OT_tweakmode_enter()

◆ NLA_OT_tweakmode_exit()

◆ NLA_OT_view_all()

◆ NLA_OT_view_frame()

◆ NLA_OT_view_selected()

◆ nla_panel_context()

bool nla_panel_context ( const bContext * C,
PointerRNA * adt_ptr,
PointerRNA * nlt_ptr,
PointerRNA * strip_ptr )

Definition at line 65 of file nla_buttons.cc.

References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_ACTIVE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_ACTION_SLOT, ANIMTYPE_ANIMDATA, ANIMTYPE_DSARM, ANIMTYPE_DSCACHEFILE, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSGPENCIL, ANIMTYPE_DSHAIR, ANIMTYPE_DSLAM, ANIMTYPE_DSLAT, ANIMTYPE_DSLINESTYLE, ANIMTYPE_DSMAT, ANIMTYPE_DSMBALL, ANIMTYPE_DSMCLIP, ANIMTYPE_DSMESH, ANIMTYPE_DSNTREE, ANIMTYPE_DSPART, ANIMTYPE_DSPOINTCLOUD, ANIMTYPE_DSSKEY, ANIMTYPE_DSSPK, ANIMTYPE_DSTEX, ANIMTYPE_DSVOLUME, ANIMTYPE_DSWOR, ANIMTYPE_FCURVE, ANIMTYPE_FILLACT_LAYERED, ANIMTYPE_FILLACTD, ANIMTYPE_FILLDRIVERS, ANIMTYPE_GPDATABLOCK, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_DATABLOCK, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_GREASE_PENCIL_LAYER_GROUP, ANIMTYPE_GROUP, ANIMTYPE_MASKDATABLOCK, ANIMTYPE_MASKLAYER, ANIMTYPE_NLAACTION, ANIMTYPE_NLACONTROLS, ANIMTYPE_NLACURVE, ANIMTYPE_NLATRACK, ANIMTYPE_NONE, ANIMTYPE_NUM_TYPES, ANIMTYPE_OBJECT, ANIMTYPE_PALETTE, ANIMTYPE_SCENE, ANIMTYPE_SHAPEKEY, ANIMTYPE_SPECIALDATA__UNUSED, ANIMTYPE_SUMMARY, BKE_nlastrip_find_active(), bAnimContext::data, bAnimContext::datatype, LISTBASE_FOREACH, and RNA_pointer_create().

Referenced by ANIM_nla_context_strip_ptr(), ANIM_nla_context_track_ptr(), nla_action_unlink_exec(), nla_action_unlink_poll(), nla_animdata_panel_poll(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time(), nla_panel_animated_strip_time_header(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_stripname(), nla_strip_actclip_panel_poll(), nla_strip_eval_panel_poll(), nla_strip_panel_poll(), and nlatracks_pushdown_exec().

◆ nlaedit_add_tracks_empty()

◆ nlaedit_add_tracks_existing()

◆ nlaedit_disable_tweakmode()

◆ nlaedit_is_tweakmode_on()

bool nlaedit_is_tweakmode_on ( bAnimContext * ac)

Is tweak-mode enabled - for use in NLA operator code.

Definition at line 72 of file nla_ops.cc.

References Scene::flag, SCE_NLA_EDIT_ON, and bAnimContext::scene.

Referenced by mouse_nla_tracks(), and nlatracks_pushdown_exec().

◆ nlaop_poll_tweakmode_off()

◆ nlaop_poll_tweakmode_on()

bool nlaop_poll_tweakmode_on ( bContext * C)

Tweak-mode IS enabled.

Definition at line 50 of file nla_ops.cc.

References CTX_data_scene(), ED_operator_nla_active(), SCE_NLA_EDIT_ON, and scene.

Referenced by NLA_OT_tweakmode_exit().