Blender V5.3
keyframes_draw.cc File Reference
#include <cfloat>
#include "MEM_guardedalloc.h"
#include "BKE_grease_pencil.hh"
#include "BKE_library.hh"
#include "BLI_listbase.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_rect.hh"
#include "DNA_anim_types.h"
#include "DNA_gpencil_legacy_types.h"
#include "DNA_grease_pencil_types.h"
#include "DNA_mask_types.h"
#include "GPU_immediate.hh"
#include "GPU_shader_shared.hh"
#include "GPU_state.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "UI_view2d.hh"
#include "ED_anim_api.hh"
#include "ED_keyframes_draw.hh"
#include "ED_keyframes_keylist.hh"
#include "ANIM_action.hh"

Go to the source code of this file.

Classes

struct  blender::DrawKeylistUIData
struct  blender::ChannelListElement
struct  blender::ChannelDrawList

Namespaces

namespace  blender
 BMesh Iterators.

Enumerations

enum class  blender::ChannelType {
  blender::SUMMARY , blender::SCENE , blender::OBJECT , blender::FCURVE ,
  blender::ACTION_LAYERED , blender::ACTION_SLOT , blender::ACTION_LEGACY , blender::ACTION_GROUP ,
  blender::GREASE_PENCIL_CELS , blender::GREASE_PENCIL_GROUP , blender::GREASE_PENCIL_DATA , blender::GREASE_PENCIL_LAYER ,
  blender::MASK_LAYER
}

Functions

void blender::draw_keyframe_shape (const float x, const float y, float size, const bool sel, const eBezTriple_KeyframeType key_type, const eKeyframeShapeDrawOpts mode, const float alpha, const KeyframeShaderBindings *sh_bindings, const short handle_type, const short extreme_type)
static void blender::channel_ui_data_init (DrawKeylistUIData *ctx, View2D *v2d, float yscale_fac, bool channel_locked, eSAction_Flag saction_flag)
static void blender::draw_keylist_block_gpencil (const DrawKeylistUIData *ctx, const ActKeyColumn *ab, float ypos)
static void blender::draw_keylist_block_moving_hold (const DrawKeylistUIData *ctx, const ActKeyColumn *ab, float ypos)
static void blender::draw_keylist_block_standard (const DrawKeylistUIData *ctx, const ActKeyColumn *ab, float ypos)
static void blender::draw_keylist_block_interpolation_line (const DrawKeylistUIData *ctx, const ActKeyColumn *ab, float ypos)
static void blender::draw_keylist_block (const DrawKeylistUIData *ctx, const ActKeyColumn *ab, float ypos)
static void blender::draw_keylist_blocks (const DrawKeylistUIData *ctx, const ActKeyColumn *keys, const int key_len, float ypos)
static bool blender::draw_keylist_is_visible_key (const View2D *v2d, const ActKeyColumn *ak)
static void blender::draw_keylist_keys (const DrawKeylistUIData *ctx, View2D *v2d, const KeyframeShaderBindings *sh_bindings, const ActKeyColumn *keys, const int key_len, float ypos, eSAction_Flag saction_flag)
static void blender::build_channel_keylist (ChannelListElement *elem, float2 range)
static void blender::draw_channel_blocks (ChannelListElement *elem, View2D *v2d)
static void blender::draw_channel_keys (ChannelListElement *elem, View2D *v2d, const KeyframeShaderBindings *sh_bindings)
static void blender::prepare_channel_for_drawing (ChannelListElement *elem)
ChannelDrawList * blender::ED_channel_draw_list_create ()
static void blender::channel_list_build_keylists (ChannelDrawList *channel_list, float2 range)
static void blender::channel_list_draw_blocks (ChannelDrawList *channel_list, View2D *v2d)
static int blender::channel_visible_key_len (const View2D *v2d, const ListBaseT< ActKeyColumn > *keys)
static int blender::channel_list_visible_key_len (const ChannelDrawList *channel_list, const View2D *v2d)
static void blender::channel_list_draw_keys (ChannelDrawList *channel_list, View2D *v2d)
static void blender::channel_list_draw (ChannelDrawList *channel_list, View2D *v2d)
void blender::ED_channel_list_flush (ChannelDrawList *channel_list, View2D *v2d)
void blender::ED_channel_list_free (ChannelDrawList *channel_list)
static ChannelListElement * blender::channel_list_add_element (ChannelDrawList *channel_list, ChannelType elem_type, float ypos, float yscale_fac, eSAction_Flag saction_flag)
void blender::ED_add_summary_channel (ChannelDrawList *channel_list, bAnimContext *ac, float ypos, float yscale_fac, int saction_flag)
void blender::ED_add_scene_channel (ChannelDrawList *channel_list, bDopeSheet *ads, Scene *sce, float ypos, float yscale_fac, int saction_flag)
void blender::ED_add_object_channel (ChannelDrawList *channel_list, bDopeSheet *ads, Object *ob, float ypos, float yscale_fac, int saction_flag)
void blender::ED_add_fcurve_channel (ChannelDrawList *channel_list, bAnimListElem *ale, FCurve *fcu, float ypos, float yscale_fac, int saction_flag)
void blender::ED_add_action_group_channel (ChannelDrawList *channel_list, bAnimListElem *ale, bActionGroup *agrp, float ypos, float yscale_fac, int saction_flag)
void blender::ED_add_action_layered_channel (ChannelDrawList *channel_list, bAnimContext *ac, bAnimListElem *ale, bAction *action, const float ypos, const float yscale_fac, int saction_flag)
void blender::ED_add_action_slot_channel (ChannelDrawList *channel_list, bAnimContext *ac, bAnimListElem *ale, animrig::Action &action, animrig::Slot &slot, const float ypos, const float yscale_fac, int saction_flag)
void blender::ED_add_grease_pencil_datablock_channel (ChannelDrawList *channel_list, bAnimContext *ac, bAnimListElem *ale, const GreasePencil *grease_pencil, const float ypos, const float yscale_fac, int saction_flag)
void blender::ED_add_grease_pencil_cels_channel (ChannelDrawList *channel_list, bDopeSheet *ads, const GreasePencilLayer *layer, const float ypos, const float yscale_fac, int saction_flag)
void blender::ED_add_grease_pencil_layer_group_channel (ChannelDrawList *channel_list, bDopeSheet *ads, const GreasePencilLayerTreeGroup *layer_group, const float ypos, const float yscale_fac, int saction_flag)
void blender::ED_add_grease_pencil_layer_legacy_channel (ChannelDrawList *channel_list, bDopeSheet *ads, bGPDlayer *gpl, float ypos, float yscale_fac, int saction_flag)
void blender::ED_add_mask_layer_channel (ChannelDrawList *channel_list, bDopeSheet *ads, MaskLayer *masklay, float ypos, float yscale_fac, int saction_flag)