Blender V5.3
ED_anim_api.hh File Reference
#include "BKE_nla.hh"
#include "BKE_action.hh"
#include "BLI_enum_flags.hh"
#include "BLI_sys_types.hh"
#include "DNA_listBase.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include <optional>

Go to the source code of this file.

Classes

struct  blender::MPathTarget
struct  blender::bAnimContext
struct  blender::bAnimListElem
struct  blender::bAnimChannelType
class  blender::SortedFCurveBuffer

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ui
namespace  blender::ed
namespace  blender::animrig
namespace  blender::ed::motionpath

Macros

Flag Checking Macros
#define SEL_SCEC(sce)
#define EXPANDED_SCEC(sce)
#define FILTER_WOR_SCED(wo)
#define FILTER_LS_SCED(linestyle)
#define SEL_OBJC(base)
#define EXPANDED_OBJC(ob)
#define FILTER_SKE_OBJD(key)
#define FILTER_MAT_OBJD(ma)
#define FILTER_LAM_OBJD(la)
#define FILTER_CAM_OBJD(ca)
#define FILTER_CACHEFILE_OBJD(cf)
#define FILTER_CUR_OBJD(cu)
#define FILTER_PART_OBJD(part)
#define FILTER_MBALL_OBJD(mb)
#define FILTER_ARM_OBJD(arm)
#define FILTER_MESH_OBJD(me)
#define FILTER_LATTICE_OBJD(lt)
#define FILTER_SPK_OBJD(spk)
#define FILTER_CURVES_OBJD(ha)
#define FILTER_POINTS_OBJD(pt)
#define FILTER_VOLUME_OBJD(vo)
#define FILTER_LIGHTPROBE_OBJD(probe)
#define FILTER_NTREE_DATA(ntree)
#define FILTER_TEX_DATA(tex)
#define SEL_ACTC(actc)
#define EXPANDED_ACTC(actc)
#define EXPANDED_DRVD(adt)
#define EXPANDED_ADT(adt)
#define EDITABLE_AGRP(agrp)
#define EXPANDED_AGRP(ac, agrp)
#define SEL_AGRP(agrp)
#define EDITABLE_FCU(fcu)
#define SEL_FCU(fcu)
#define EDITABLE_SHAPEKEY(kb)
#define SEL_SHAPEKEY(kb)
#define EXPANDED_GPD(gpd)
#define EDITABLE_GPL(gpl)
#define SEL_GPL(gpl)
#define EXPANDED_MASK(mask)
#define EDITABLE_MASK(masklay)
#define SEL_MASKLAY(masklay)
#define SEL_NLT(nlt)
#define EDITABLE_NLT(nlt)
#define EXPANDED_MCLIP(clip)
#define EXPANDED_PALETTE(palette)
#define SEL_ANIMDATA(adt)
NLA Track Defines
#define NLATRACK_FIRST_TOP(ac)
#define NLATRACK_HEIGHT(snla)
#define NLATRACK_SKIP   (0.1f * U.widget_unit)
#define NLATRACK_STEP(snla)
#define NLATRACK_TOT_HEIGHT(ac, item_amount)
#define NLATRACK_NAMEWIDTH   (10 * U.widget_unit)
Utility Macros
#define ACHANNEL_SET_FLAG(channel, smode, sflag)
#define ACHANNEL_SET_FLAG_NEG(channel, smode, sflag)

Typedefs

F-Curve Buffers & Rotation Conversion
using blender::RNAFCurveMap = Map<std::string, SortedFCurveBuffer>
using blender::ChannelbagFCurveMap = Map<animrig::Channelbag *, RNAFCurveMap>

Enumerations

Context

Animation channel filtering, implemented in anim_filter.cc.

enum  blender::eAnimCont_Types {
  blender::ANIMCONT_NONE = 0 , blender::ANIMCONT_ACTION = 1 , blender::ANIMCONT_SHAPEKEY = 2 , blender::ANIMCONT_GPENCIL = 3 ,
  blender::ANIMCONT_DOPESHEET = 4 , blender::ANIMCONT_FCURVES = 5 , blender::ANIMCONT_DRIVERS = 6 , blender::ANIMCONT_NLA = 7 ,
  blender::ANIMCONT_CHANNEL = 8 , blender::ANIMCONT_MASK = 9 , blender::ANIMCONT_TIMELINE = 10 , blender::ANIMCONT_CACHEFILE = 11
}
Drawing TypeInfo

Animation channels list, implemented in anim_channels_*.cc.

enum  blender::eAnimChannel_Role { blender::ACHANNEL_ROLE_EXPANDER = -1 , blender::ACHANNEL_ROLE_CHANNEL = 1 }
enum  blender::eAnimChannels_SetFlag {
  blender::ACHANNEL_SETFLAG_CLEAR = 0 , blender::ACHANNEL_SETFLAG_ADD = 1 , blender::ACHANNEL_SETFLAG_INVERT = 2 , blender::ACHANNEL_SETFLAG_TOGGLE = 3 ,
  blender::ACHANNEL_SETFLAG_EXTEND_RANGE = 4
}
enum  blender::eAnimChannel_Settings {
  blender::ACHANNEL_SETTING_SELECT = 0 , blender::ACHANNEL_SETTING_PROTECT = 1 , blender::ACHANNEL_SETTING_MUTE = 2 , blender::ACHANNEL_SETTING_EXPAND = 3 ,
  blender::ACHANNEL_SETTING_VISIBLE = 4 , blender::ACHANNEL_SETTING_SOLO = 5 , blender::ACHANNEL_SETTING_PINNED = 6 , blender::ACHANNEL_SETTING_MOD_OFF = 7 ,
  blender::ACHANNEL_SETTING_ALWAYS_VISIBLE = 8
}
Current Frame Drawing

Main call to draw current-frame indicator in an Animation Editor.

Implemented in anim_draw.cc.

enum  blender::eAnimEditDraw_CurrentFrame { blender::DRAWCFRA_UNIT_SECONDS = (1 << 0) , blender::DRAWCFRA_WIDE = (1 << 1) }
Unit Conversion Mappings
enum  blender::eAnimUnitConv_Flags {
  blender::ANIM_UNITCONV_NONE = 0 , blender::ANIM_UNITCONV_RESTORE = (1 << 0) , blender::ANIM_UNITCONV_ONLYKEYS = (1 << 1) , blender::ANIM_UNITCONV_ONLYSEL = (1 << 2) ,
  blender::ANIM_UNITCONV_SELVERTS = (1 << 3) , blender::ANIM_UNITCONV_NORMALIZE = (1 << 5) , blender::ANIM_UNITCONV_NORMALIZE_FREEZE = (1 << 6)
}

Functions

size_t blender::ANIM_animfilter_action_slot (bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data, animrig::Action &action, animrig::Slot &slot, const eAnimFilter_Flags filter_mode, ID *animated_id)
size_t blender::ANIM_animdata_filter (bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data, const eAnimFilter_Flags filter_mode, void *data, const eAnimCont_Types datatype)
bool blender::ANIM_animdata_get_context (const bContext *C, bAnimContext *ac)
bool blender::ANIM_animdata_context_getdata (bAnimContext *ac)
void blender::ANIM_animdata_update (bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data)
bool blender::ANIM_animdata_can_have_greasepencil (const eAnimCont_Types type)
const bAnimChannelType * blender::ANIM_channel_get_typeinfo (const bAnimListElem *ale)
void blender::ANIM_channel_debug_print_info (bAnimContext &ac, bAnimListElem *ale, short indent_level)
bAction * blender::ANIM_channel_action_get (const bAnimListElem *ale)
void blender::ANIM_channel_draw (bAnimContext *ac, bAnimListElem *ale, float yminc, float ymaxc, size_t channel_index)
void blender::ANIM_channel_draw_widgets (const bContext *C, bAnimContext *ac, bAnimListElem *ale, ui::Block *block, const rctf *rect, size_t channel_index)
short blender::ANIM_channel_setting_get (bAnimContext *ac, bAnimListElem *ale, eAnimChannel_Settings setting)
void blender::ANIM_channel_setting_set (bAnimContext *ac, bAnimListElem *ale, eAnimChannel_Settings setting, eAnimChannels_SetFlag mode)
void blender::ANIM_deselect_keys_in_animation_editors (bContext *C)
void blender::ANIM_draw_cfra (const bContext *C, View2D *v2d, short flag)
void blender::ANIM_draw_previewrange (const Scene *scene, View2D *v2d, int end_frame_width)
void blender::ANIM_draw_scene_strip_range (const bContext *C, View2D *v2d)
void blender::ANIM_draw_framerange (Scene *scene, View2D *v2d)
void blender::ANIM_draw_action_framerange (AnimData *adt, bAction *action, View2D *v2d, float ymin, float ymax)
std::optional< int > blender::getname_anim_fcurve (char *name, ID *id, FCurve *fcu)
std::string blender::getname_anim_fcurve_for_slot (Main &bmain, const animrig::Slot &slot, FCurve &fcurve)
void blender::getcolor_fcurve_rainbow (int cur, int tot, float out[3])
bool blender::ANIM_nla_mapping_allowed (const bAnimListElem *ale)
float blender::ANIM_nla_tweakedit_remap (bAnimListElem *ale, const float cframe, const eNlaTime_ConvertModes mode)
void blender::ANIM_nla_mapping_apply_fcurve (AnimData *adt, FCurve *fcu, bool restore, bool only_keys)
void blender::ANIM_nla_mapping_apply_if_needed_fcurve (bAnimListElem *ale, FCurve *fcu, const bool restore, const bool only_keys)
short blender::ANIM_get_normalization_flags (SpaceLink *space_link)
float blender::ANIM_unit_mapping_get_factor (Scene *scene, ID *id, FCurve *fcu, short flag, float *r_offset)
void blender::ANIM_id_update (Main *bmain, ID *id)
void blender::ANIM_list_elem_update (Main *bmain, Scene *scene, bAnimListElem *ale)
void blender::ANIM_sync_animchannels_to_data (const bContext *C)
rctf blender::ANIM_frame_range_view2d_add_xmargin (const View2D &view_2d, const rctf view_rect)
void blender::ed::motionpath::tag_for_recalc (bMotionPath &motion_path)
Depsgraph * blender::animviz_depsgraph_build (Main *bmain, Scene *scene, ViewLayer *view_layer, const Span< MPathTarget > targets)
void blender::animviz_update_motionpath_preview (Depsgraph &depsgraph, Span< MPathTarget > targets)
void blender::animviz_clear_motionpath_preview (Span< MPathTarget > targets)
void blender::animviz_calc_motionpaths (Depsgraph *depsgraph, Scene *scene, MutableSpan< MPathTarget > targets, const int modified_frame)
void blender::animviz_motionpath_compute_range (Object *ob, Scene *scene)
void blender::animviz_build_motionpath_targets (Object *ob, Vector< MPathTarget > &r_targets)
bool blender::convert_rotation_keys (const ed::AnimTransformable &transformable, ChannelbagFCurveMap &channelbag_fcurve_map, const eRotationModes to_mode)
ChannelbagFCurveMap blender::build_rotation_fcurve_map (animrig::Action &action, const animrig::slot_handle_t slot_handle)
void blender::bake_rotation_fcurves (const ChannelbagFCurveMap &channelbag_fcurve_map, const ed::AnimTransformable &transformable)
void blender::convert_to_rotation_mode (bContext &C, ed::AnimTransformable &transformable, const eRotationModes to_mode, const bool bake)
Public API
void blender::ANIM_animdata_freelist (ListBaseT< bAnimListElem > *anim_data)
bAction * blender::ANIM_active_action_from_area (const Main &bmain, Scene *scene, ViewLayer *view_layer, const ScrArea *area, ID **r_action_user)
Channel dimensions API
float blender::ANIM_UI_get_keyframe_scale_factor ()
float blender::ANIM_UI_get_channel_height ()
float blender::ANIM_UI_get_channel_skip ()
float blender::ANIM_UI_get_first_channel_top (View2D *v2d)
float blender::ANIM_UI_get_channel_step ()
float blender::ANIM_UI_get_channels_total_height (View2D *v2d, const int item_count)
float blender::ANIM_UI_get_channel_name_width ()
float blender::ANIM_UI_get_channel_button_width ()
Public Graph Editor API
void blender::ANIM_flush_setting_anim_channels (bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data, bAnimListElem *ale_setting, eAnimChannel_Settings setting, eAnimChannels_SetFlag mode)
void blender::ANIM_frame_channel_y_extents (bContext *C, bAnimContext *ac)
Public Channel Selection API
void blender::ANIM_anim_channels_select_set (bAnimContext *ac, eAnimChannels_SetFlag sel)
void blender::ANIM_anim_channels_select_toggle (bAnimContext *ac)
void blender::ANIM_set_active_channel (bAnimContext *ac, void *data, eAnimCont_Types datatype, eAnimFilter_Flags filter, void *channel_data, eAnim_ChannelType channel_type)
bool blender::ANIM_is_active_channel (bAnimListElem *ale)
Panel Creation
void blender::ANIM_fmodifier_panels (const bContext *C, ID *owner_id, ListBaseT< FModifier > *fmodifiers, uiListPanelIDFromDataFunc panel_id_fn)
void blender::ANIM_modifier_panels_register_graph_and_NLA (ARegionType *region_type, const char *modifier_panel_prefix, PanelTypePollFn poll_function)
void blender::ANIM_modifier_panels_register_graph_only (ARegionType *region_type, const char *modifier_panel_prefix, PanelTypePollFn poll_function)
Copy / Paste Buffer Code

For now, this is also defined in this file so that it can be shared between the graph editor and the NLA editor.

void blender::ANIM_fmodifiers_copybuf_free ()
bool blender::ANIM_fmodifiers_copy_to_buf (ListBaseT< FModifier > *modifiers, bool active)
bool blender::ANIM_fmodifiers_paste_from_buf (ListBaseT< FModifier > *modifiers, bool replace, FCurve *curve)
NLA Drawing
Note
Technically, this is not in the animation module (it's in space_nla) but these are sometimes needed by various animation API's.
void blender::nla_action_get_color (AnimData *adt, bAction *act, float color[4])
NLA-Mapping
void blender::ED_nla_postop_refresh (bAnimContext *ac)
Animation Updates

Implemented in anim_deps.cc.

void blender::ANIM_center_frame (bContext *C, int smooth_viewtx)
Operator Registration
void blender::ED_operatortypes_animchannels ()
void blender::ED_keymap_animchannels (wmKeyConfig *keyconf)
Registration
void blender::ED_operatortypes_anim ()
void blender::ED_keymap_anim (wmKeyConfig *keyconf)
Operators
void blender::ED_operatormacros_graph ()
void blender::ED_operatormacros_action ()
void blender::ED_operatormacros_nla ()
Animation Editor Exports
AnimData * blender::ED_actedit_animdata_from_context (const bContext *C, ID **r_adt_id_owner)
void blender::ED_animedit_unlink_action (bContext *C, ID *id, AnimData *adt, bAction *act, ReportList *reports, bool force_delete)
void blender::ED_drivers_editor_init (bContext *C, ScrArea *area)
Delete Channel Operator
void blender::ED_anim_ale_fcurve_delete (bAnimContext &ac, bAnimListElem &ale)

Channels

#define ANIM_UPDATE_DEFAULT   (ANIM_UPDATE_DEPS | ANIM_UPDATE_ORDER | ANIM_UPDATE_HANDLES)
#define ANIM_UPDATE_DEFAULT_NOHANDLES   (ANIM_UPDATE_DEFAULT & ~ANIM_UPDATE_HANDLES)
enum  blender::eAnim_ChannelType {
  blender::ANIMTYPE_NONE = 0 , blender::ANIMTYPE_ANIMDATA , blender::ANIMTYPE_SPECIALDATA__UNUSED , blender::ANIMTYPE_SUMMARY ,
  blender::ANIMTYPE_SCENE , blender::ANIMTYPE_OBJECT , blender::ANIMTYPE_GROUP , blender::ANIMTYPE_FCURVE ,
  blender::ANIMTYPE_NLACONTROLS , blender::ANIMTYPE_NLACURVE , blender::ANIMTYPE_FILLACT_LAYERED , blender::ANIMTYPE_ACTION_SLOT ,
  blender::ANIMTYPE_FILLACTD , blender::ANIMTYPE_FILLDRIVERS , blender::ANIMTYPE_DSMAT , blender::ANIMTYPE_DSLAM ,
  blender::ANIMTYPE_DSCAM , blender::ANIMTYPE_DSCACHEFILE , blender::ANIMTYPE_DSCUR , blender::ANIMTYPE_DSSKEY ,
  blender::ANIMTYPE_DSWOR , blender::ANIMTYPE_DSNTREE , blender::ANIMTYPE_DSPART , blender::ANIMTYPE_DSMBALL ,
  blender::ANIMTYPE_DSARM , blender::ANIMTYPE_DSMESH , blender::ANIMTYPE_DSTEX , blender::ANIMTYPE_DSLAT ,
  blender::ANIMTYPE_DSLINESTYLE , blender::ANIMTYPE_DSSPK , blender::ANIMTYPE_DSGPENCIL , blender::ANIMTYPE_DSMCLIP ,
  blender::ANIMTYPE_DSHAIR , blender::ANIMTYPE_DSPOINTCLOUD , blender::ANIMTYPE_DSVOLUME , blender::ANIMTYPE_DSLIGHTPROBE ,
  blender::ANIMTYPE_SHAPEKEY , blender::ANIMTYPE_GPLAYER , blender::ANIMTYPE_GREASE_PENCIL_DATABLOCK , blender::ANIMTYPE_GREASE_PENCIL_LAYER_GROUP ,
  blender::ANIMTYPE_GREASE_PENCIL_LAYER , blender::ANIMTYPE_MASKDATABLOCK , blender::ANIMTYPE_MASKLAYER , blender::ANIMTYPE_NLATRACK ,
  blender::ANIMTYPE_NLAACTION , blender::ANIMTYPE_PALETTE , blender::ANIMTYPE_NUM_TYPES
}
enum  blender::eAnim_KeyType {
  blender::ALE_NONE = 0 , blender::ALE_FCURVE , blender::ALE_GPFRAME , blender::ALE_MASKLAY ,
  blender::ALE_NLASTRIP , blender::ALE_ALL , blender::ALE_SCE , blender::ALE_OB ,
  blender::ALE_ACT , blender::ALE_GROUP , blender::ALE_ACTION_LAYERED , blender::ALE_ACTION_SLOT ,
  blender::ALE_GREASE_PENCIL_CEL , blender::ALE_GREASE_PENCIL_DATA , blender::ALE_GREASE_PENCIL_GROUP
}
enum  blender::eAnim_Update_Flags { blender::ANIM_UPDATE_DEPS = (1 << 0) , blender::ANIM_UPDATE_ORDER = (1 << 1) , blender::ANIM_UPDATE_HANDLES = (1 << 2) }
 blender::ENUM_OPERATORS (eAnim_Update_Flags)

Filtering

enum  blender::eAnimFilter_Flags {
  blender::ANIMFILTER_DATA_VISIBLE = (1 << 0) , blender::ANIMFILTER_LIST_VISIBLE = (1 << 1) , blender::ANIMFILTER_CURVE_VISIBLE = (1 << 2) , blender::ANIMFILTER_LIST_CHANNELS = (1 << 3) ,
  blender::ANIMFILTER_ACTIVE = (1 << 4) , blender::ANIMFILTER_ACTGROUPED = (1 << 5) , blender::ANIMFILTER_SEL = (1 << 6) , blender::ANIMFILTER_UNSEL = (1 << 7) ,
  blender::ANIMFILTER_FOREDIT = (1 << 8) , blender::ANIMFILTER_SELEDIT = (1 << 9) , blender::ANIMFILTER_ANIMDATA = (1 << 10) , blender::ANIMFILTER_NODUPLIS = (1 << 11) ,
  blender::ANIMFILTER_FCURVESONLY = (1 << 12) , blender::ANIMFILTER_TMP_PEEK = (1 << 30) , blender::ANIMFILTER_TMP_IGNORE_ONLYSEL = (1u << 31)
}
 blender::ENUM_OPERATORS (eAnimFilter_Flags)

UI Panel Drawing

F-Modifier tools.

using blender::PanelTypePollFn = bool (*)(const bContext *C, PanelType *pt)
using blender::uiListPanelIDFromDataFunc = void (*)(void *data_link, char *r_idname)
bool blender::ANIM_nla_context_track_ptr (const bContext *C, PointerRNA *r_ptr)
bool blender::ANIM_nla_context_strip_ptr (const bContext *C, PointerRNA *r_ptr)
NlaTrack * blender::ANIM_nla_context_track (const bContext *C)
NlaStrip * blender::ANIM_nla_context_strip (const bContext *C)
FCurve * blender::ANIM_graph_context_fcurve (const bContext *C)

Macro Definition Documentation

◆ ACHANNEL_SET_FLAG

#define ACHANNEL_SET_FLAG ( channel,
smode,
sflag )
Value:
{ \
if (smode == ACHANNEL_SETFLAG_INVERT) { \
(channel)->flag ^= (sflag); \
} \
else if (smode == ACHANNEL_SETFLAG_ADD) { \
(channel)->flag |= (sflag); \
} \
else { \
(channel)->flag &= ~(sflag); \
} \
} \
((void)0)

Set/Clear/Toggle macro.

Parameters
channelChannel with a 'flag' member that we're setting.
smode0=clear, 1=set, 2=invert.
sflagbit-flag to set.

Definition at line 1152 of file ED_anim_api.hh.

Referenced by blender::anim_channels_select_set(), blender::ANIM_set_active_channel(), blender::box_select_anim_channels(), blender::box_select_nla_strips(), blender::deselect_nla_strips(), blender::mouse_nla_strips(), and blender::nlaedit_select_leftright().

◆ ACHANNEL_SET_FLAG_NEG

#define ACHANNEL_SET_FLAG_NEG ( channel,
smode,
sflag )
Value:
{ \
if (smode == ACHANNEL_SETFLAG_INVERT) { \
(channel)->flag ^= (sflag); \
} \
else if (smode == ACHANNEL_SETFLAG_ADD) { \
(channel)->flag &= ~(sflag); \
} \
else { \
(channel)->flag |= (sflag); \
} \
} \
((void)0)

Set/Clear/Toggle macro, where the flag is negative.

Parameters
channelchannel with a 'flag' member that we're setting.
smode0=clear, 1=set, 2=invert.
sflagBit-flag to set.

Definition at line 1172 of file ED_anim_api.hh.

◆ ANIM_UPDATE_DEFAULT

◆ ANIM_UPDATE_DEFAULT_NOHANDLES

#define ANIM_UPDATE_DEFAULT_NOHANDLES   (ANIM_UPDATE_DEFAULT & ~ANIM_UPDATE_HANDLES)

Definition at line 300 of file ED_anim_api.hh.

Referenced by blender::seteasing_graph_keys(), and blender::setipo_graph_keys().

◆ EDITABLE_AGRP

#define EDITABLE_AGRP ( agrp)
Value:
(((agrp)->flag & AGRP_PROTECTED) == 0)

Action Channel Group.

Definition at line 503 of file ED_anim_api.hh.

Referenced by blender::animfilter_act_group().

◆ EDITABLE_FCU

#define EDITABLE_FCU ( fcu)
Value:
(((fcu)->flag & FCURVE_PROTECTED) == 0)

F-Curve Channels.

Definition at line 509 of file ED_anim_api.hh.

Referenced by blender::animfilter_fcurve_next().

◆ EDITABLE_GPL

#define EDITABLE_GPL ( gpl)
Value:
(((gpl)->flag & GP_LAYER_LOCKED) == 0)

Grease Pencil Layer settings.

Definition at line 520 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_gpencil_layers_data_legacy().

◆ EDITABLE_MASK

#define EDITABLE_MASK ( masklay)
Value:
(((masklay)->flag & MASK_LAYERFLAG_LOCKED) == 0)

Grease Pencil Layer settings.

Definition at line 526 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_mask_data().

◆ EDITABLE_NLT

#define EDITABLE_NLT ( nlt)
Value:
(((nlt)->flag & NLATRACK_PROTECTED) == 0)

Definition at line 531 of file ED_anim_api.hh.

Referenced by blender::animfilter_nla().

◆ EDITABLE_SHAPEKEY

#define EDITABLE_SHAPEKEY ( kb)
Value:
(((kb)->flag & KEYBLOCK_LOCKED) == 0)

Definition at line 513 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_shapekey().

◆ EXPANDED_ACTC

#define EXPANDED_ACTC ( actc)
Value:
((actc->flag & ACT_COLLAPSED) == 0)

Definition at line 496 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_obanim(), and blender::animdata_filter_ds_scene().

◆ EXPANDED_ADT

#define EXPANDED_ADT ( adt)
Value:
((adt->flag & ADT_UI_EXPANDED) != 0)

Definition at line 499 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_obanim(), and blender::animdata_filter_ds_scene().

◆ EXPANDED_AGRP

#define EXPANDED_AGRP ( ac,
agrp )
Value:
(((!(ac) || ((ac)->spacetype != SPACE_GRAPH)) && ((agrp)->flag & AGRP_EXPANDED)) || \
(((ac) && ((ac)->spacetype == SPACE_GRAPH)) && ((agrp)->flag & AGRP_EXPANDED_G)))

Definition at line 504 of file ED_anim_api.hh.

Referenced by blender::animfilter_act_group().

◆ EXPANDED_DRVD

#define EXPANDED_DRVD ( adt)
Value:
((adt->flag & ADT_DRIVERS_COLLAPSED) == 0)

Definition at line 498 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_obanim(), blender::animdata_filter_ds_scene(), and blender::rearrange_driver_channels().

◆ EXPANDED_GPD

#define EXPANDED_GPD ( gpd)
Value:
((gpd)->flag & GP_DATA_EXPAND)

Grease Pencil data-block settings.

Definition at line 518 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_gpencil(), and blender::make_new_animlistelem().

◆ EXPANDED_MASK

#define EXPANDED_MASK ( mask)
Value:
((mask)->flag & MASK_ANIMF_EXPAND)
ccl_device_inline float2 mask(const MaskType mask, const float2 a)

Definition at line 524 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_mask().

◆ EXPANDED_MCLIP

#define EXPANDED_MCLIP ( clip)
Value:
((clip)->flag & MCLIP_DATA_EXPAND)

Definition at line 534 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_movieclip(), and blender::make_new_animlistelem().

◆ EXPANDED_OBJC

#define EXPANDED_OBJC ( ob)
Value:
(CHECK_TYPE_INLINE(ob, Object *), (((ob)->nlaflag & OB_ADS_COLLAPSED) == 0))
#define CHECK_TYPE_INLINE(val, type)

Definition at line 467 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_dopesheet_ob().

◆ EXPANDED_PALETTE

#define EXPANDED_PALETTE ( palette)
Value:
((palette)->flag & PALETTE_DATA_EXPAND)

Definition at line 537 of file ED_anim_api.hh.

◆ EXPANDED_SCEC

#define EXPANDED_SCEC ( sce)
Value:
(CHECK_TYPE_INLINE(sce, Scene *), ((sce->flag & SCE_DS_COLLAPSED) == 0))
Definition scene.h:133

Definition at line 461 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_dopesheet_scene().

◆ FILTER_ARM_OBJD

#define FILTER_ARM_OBJD ( arm)
Value:
(CHECK_TYPE_INLINE(arm, bArmature *), ((arm->flag & ARM_DS_EXPAND)))

Definition at line 480 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_obdata(), and blender::make_new_animlistelem().

◆ FILTER_CACHEFILE_OBJD

#define FILTER_CACHEFILE_OBJD ( cf)
Value:
(CHECK_TYPE_INLINE(cf, CacheFile *), (((cf)->flag & CACHEFILE_DS_EXPAND)))

Definition at line 474 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_cachefile(), and blender::make_new_animlistelem().

◆ FILTER_CAM_OBJD

#define FILTER_CAM_OBJD ( ca)
Value:
(CHECK_TYPE_INLINE(ca, Camera *), ((ca->flag & CAM_DS_EXPAND)))

Definition at line 473 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_obdata(), and blender::make_new_animlistelem().

◆ FILTER_CUR_OBJD

#define FILTER_CUR_OBJD ( cu)
Value:
(CHECK_TYPE_INLINE(cu, Curve *), ((cu->flag & CU_DS_EXPAND)))

Definition at line 476 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_obdata(), and blender::make_new_animlistelem().

◆ FILTER_CURVES_OBJD

#define FILTER_CURVES_OBJD ( ha)
Value:
(CHECK_TYPE_INLINE(ha, Curves *), ((ha->flag & HA_DS_EXPAND)))

Definition at line 484 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_obdata(), and blender::make_new_animlistelem().

◆ FILTER_LAM_OBJD

#define FILTER_LAM_OBJD ( la)
Value:
(CHECK_TYPE_INLINE(la, Light *), ((la->flag & LA_DS_EXPAND)))

Definition at line 472 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_obdata(), and blender::make_new_animlistelem().

◆ FILTER_LATTICE_OBJD

#define FILTER_LATTICE_OBJD ( lt)
Value:
(CHECK_TYPE_INLINE(lt, Lattice *), ((lt->flag & LT_DS_EXPAND)))

Definition at line 482 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_obdata(), and blender::make_new_animlistelem().

◆ FILTER_LIGHTPROBE_OBJD

#define FILTER_LIGHTPROBE_OBJD ( probe)
Value:
(CHECK_TYPE_INLINE(probe, LightProbe *), ((probe->flag & LIGHTPROBE_DS_EXPAND)))

Definition at line 487 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_obdata(), and blender::make_new_animlistelem().

◆ FILTER_LS_SCED

#define FILTER_LS_SCED ( linestyle)
Value:
((linestyle->flag & LS_DS_EXPAND))

Definition at line 464 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_linestyle(), and blender::make_new_animlistelem().

◆ FILTER_MAT_OBJD

#define FILTER_MAT_OBJD ( ma)
Value:
(CHECK_TYPE_INLINE(ma, Material *), ((ma->flag & MA_DS_EXPAND)))

Definition at line 471 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_material(), and blender::make_new_animlistelem().

◆ FILTER_MBALL_OBJD

#define FILTER_MBALL_OBJD ( mb)
Value:
(CHECK_TYPE_INLINE(mb, MetaBall *), ((mb->flag2 & MB_DS_EXPAND)))

Definition at line 479 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_obdata().

◆ FILTER_MESH_OBJD

#define FILTER_MESH_OBJD ( me)
Value:
(CHECK_TYPE_INLINE(me, Mesh *), ((me->flag & ME_DS_EXPAND)))

Definition at line 481 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_obdata(), and blender::make_new_animlistelem().

◆ FILTER_NTREE_DATA

#define FILTER_NTREE_DATA ( ntree)
Value:
(CHECK_TYPE_INLINE(ntree, bNodeTree *), (((ntree)->flag & NTREE_DS_EXPAND)))

Definition at line 490 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_nodetree_group(), and blender::make_new_animlistelem().

◆ FILTER_PART_OBJD

#define FILTER_PART_OBJD ( part)
Value:
(CHECK_TYPE_INLINE(part, ParticleSettings *), (((part)->flag & PART_DS_EXPAND)))

Definition at line 477 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_particles(), and blender::make_new_animlistelem().

◆ FILTER_POINTS_OBJD

#define FILTER_POINTS_OBJD ( pt)
Value:
(CHECK_TYPE_INLINE(pt, PointCloud *), ((pt->flag & PT_DS_EXPAND)))

Definition at line 485 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_obdata(), and blender::make_new_animlistelem().

◆ FILTER_SKE_OBJD

#define FILTER_SKE_OBJD ( key)
Value:
(CHECK_TYPE_INLINE(key, Key *), ((key->flag & KEY_DS_EXPAND)))

Definition at line 470 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_keyanim(), and blender::make_new_animlistelem().

◆ FILTER_SPK_OBJD

#define FILTER_SPK_OBJD ( spk)
Value:
(CHECK_TYPE_INLINE(spk, Speaker *), ((spk->flag & SPK_DS_EXPAND)))

Definition at line 483 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_obdata(), and blender::make_new_animlistelem().

◆ FILTER_TEX_DATA

#define FILTER_TEX_DATA ( tex)
Value:
(CHECK_TYPE_INLINE(tex, Tex *), ((tex->flag & TEX_DS_EXPAND)))

Definition at line 492 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_texture(), and blender::make_new_animlistelem().

◆ FILTER_VOLUME_OBJD

#define FILTER_VOLUME_OBJD ( vo)
Value:
(CHECK_TYPE_INLINE(vo, Volume *), ((vo->flag & VO_DS_EXPAND)))

Definition at line 486 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_obdata(), and blender::make_new_animlistelem().

◆ FILTER_WOR_SCED

#define FILTER_WOR_SCED ( wo)
Value:
(CHECK_TYPE_INLINE(wo, World *), (wo->flag & WO_DS_EXPAND))

Definition at line 463 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_ds_world(), and blender::make_new_animlistelem().

◆ NLATRACK_FIRST_TOP

◆ NLATRACK_HEIGHT

#define NLATRACK_HEIGHT ( snla)
Value:
(((snla) && ((snla)->flag & SNLA_NOSTRIPCURVES)) ? (0.8f * U.widget_unit) : \
(1.2f * U.widget_unit))
#define U

Definition at line 551 of file ED_anim_api.hh.

Referenced by blender::box_select_nla_strips(), blender::draw_nla_main_data(), blender::draw_nla_track_list(), and blender::nla_tracks_get_selected_extents().

◆ NLATRACK_NAMEWIDTH

#define NLATRACK_NAMEWIDTH   (10 * U.widget_unit)

Track widths

Definition at line 561 of file ED_anim_api.hh.

Referenced by blender::animchannels_channel_get(), and blender::nlatracks_mouseclick_invoke().

◆ NLATRACK_SKIP

#define NLATRACK_SKIP   (0.1f * U.widget_unit)

◆ NLATRACK_STEP

◆ NLATRACK_TOT_HEIGHT

#define NLATRACK_TOT_HEIGHT ( ac,
item_amount )
Value:
(-NLATRACK_FIRST_TOP(ac) + NLATRACK_STEP(((SpaceNla *)(ac)->sl)) * (item_amount + 1))
#define NLATRACK_FIRST_TOP(ac)
#define NLATRACK_STEP(snla)

Additional offset to give some room at the end.

Definition at line 557 of file ED_anim_api.hh.

Referenced by blender::draw_nla_main_data(), and blender::nla_track_region_draw().

◆ SEL_ACTC

#define SEL_ACTC ( actc)
Value:
((actc->flag & ACT_SELECTED))

Definition at line 495 of file ED_anim_api.hh.

◆ SEL_AGRP

#define SEL_AGRP ( agrp)
Value:
(((agrp)->flag & AGRP_SELECTED) || ((agrp)->flag & AGRP_ACTIVE))

Definition at line 507 of file ED_anim_api.hh.

Referenced by blender::animfilter_act_group(), blender::rearrange_animchannel_add_to_islands(), blender::rearrange_layered_action_channel_groups(), and blender::rearrange_layered_action_fcurves().

◆ SEL_ANIMDATA

#define SEL_ANIMDATA ( adt)
Value:
((adt)->flag & ADT_UI_SELECTED)

Definition at line 540 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_shapekey(), and blender::animfilter_block_data().

◆ SEL_FCU

#define SEL_FCU ( fcu)

◆ SEL_GPL

#define SEL_GPL ( gpl)
Value:
((gpl)->flag & GP_LAYER_SELECT)

Definition at line 521 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_gpencil_layers_data_legacy(), and blender::rearrange_animchannel_add_to_islands().

◆ SEL_MASKLAY

#define SEL_MASKLAY ( masklay)
Value:
((masklay)->flag & SELECT)
#define SELECT
Definition BKE_mask.hh:19

Definition at line 527 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_mask_data().

◆ SEL_NLT

#define SEL_NLT ( nlt)
Value:
((nlt)->flag & NLATRACK_SELECTED)

Definition at line 530 of file ED_anim_api.hh.

Referenced by blender::animfilter_nla(), and blender::rearrange_animchannel_add_to_islands().

◆ SEL_OBJC

#define SEL_OBJC ( base)
Value:
(CHECK_TYPE_INLINE(base, Base *), ((base->flag & SELECT)))

Definition at line 466 of file ED_anim_api.hh.

◆ SEL_SCEC

#define SEL_SCEC ( sce)
Value:
(CHECK_TYPE_INLINE(sce, Scene *), ((sce->flag & SCE_DS_SELECTED)))

Definition at line 460 of file ED_anim_api.hh.

◆ SEL_SHAPEKEY

#define SEL_SHAPEKEY ( kb)
Value:
((kb)->flag & KEYBLOCK_SEL)

Definition at line 514 of file ED_anim_api.hh.

Referenced by blender::animdata_filter_shapekey().