Blender V4.3
ED_keyframes_draw.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2009 Blender Authors, Joshua Leung. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "BLI_sys_types.h"
12
13#include "DNA_curve_types.h"
14
16
17struct AnimData;
18struct ChannelDrawList;
19struct FCurve;
20struct MaskLayer;
21struct Object;
22struct Scene;
23struct View2D;
24struct bAction;
25struct bActionGroup;
26struct bAnimContext;
27struct bDopeSheet;
28struct bGPDlayer;
29struct GreasePencil;
32
46
47void draw_keyframe_shape(float x,
48 float y,
49 float size,
50 bool sel,
53 float alpha,
54 const KeyframeShaderBindings *sh_bindings,
55 short handle_type,
56 short extreme_type);
57
58/* ******************************* Methods ****************************** */
59
60/* Channel Drawing ------------------ */
61/* F-Curve */
63 AnimData *adt,
64 FCurve *fcu,
65 float ypos,
66 float yscale_fac,
67 int saction_flag);
68/* Action Group Summary */
70 AnimData *adt,
71 bActionGroup *agrp,
72 float ypos,
73 float yscale_fac,
74 int saction_flag);
75/* Layered Action Summary.*/
77 AnimData *adt,
78 bAction *action,
79 const float ypos,
80 const float yscale_fac,
81 int saction_flag);
82/* Action Slot summary. */
84 AnimData *adt,
87 float ypos,
88 float yscale_fac,
89 int saction_flag);
90/* Legacy Action Summary */
92 AnimData *adt,
93 bAction *act,
94 float ypos,
95 float yscale_fac,
96 int saction_flag);
97/* Object Summary */
99 bDopeSheet *ads,
100 Object *ob,
101 float ypos,
102 float yscale_fac,
103 int saction_flag);
104/* Scene Summary */
106 bDopeSheet *ads,
107 Scene *sce,
108 float ypos,
109 float yscale_fac,
110 int saction_flag);
111/* DopeSheet Summary */
113 ChannelDrawList *draw_list, bAnimContext *ac, float ypos, float yscale_fac, int saction_flag);
114
115/* Grease Pencil cels channels */
117 bDopeSheet *ads,
118 const GreasePencilLayer *layer,
119 float ypos,
120 float yscale_fac,
121 int saction_flag);
122
123/* Grease Pencil layer group channels */
125 bDopeSheet *ads,
126 const GreasePencilLayerTreeGroup *layer,
127 float ypos,
128 float yscale_fac,
129 int saction_flag);
130
131/* Grease Pencil data channels */
133 bAnimContext *ac,
134 AnimData *adt,
135 const GreasePencil *grease_pencil,
136 const float ypos,
137 const float yscale_fac,
138 int saction_flag);
139
140/* Grease Pencil Layer */
142 bDopeSheet *ads,
143 bGPDlayer *gpl,
144 float ypos,
145 float yscale_fac,
146 int saction_flag);
147/* Mask Layer */
149 bDopeSheet *ads,
150 MaskLayer *masklay,
151 float ypos,
152 float yscale_fac,
153 int saction_flag);
154
156
157void ED_channel_list_flush(ChannelDrawList *draw_list, View2D *v2d);
158
unsigned int uint
eBezTriple_KeyframeType
void ED_add_grease_pencil_cels_channel(ChannelDrawList *draw_list, bDopeSheet *ads, const GreasePencilLayer *layer, float ypos, float yscale_fac, int saction_flag)
void ED_add_action_channel(ChannelDrawList *draw_list, AnimData *adt, bAction *act, float ypos, float yscale_fac, int saction_flag)
void ED_add_scene_channel(ChannelDrawList *draw_list, bDopeSheet *ads, Scene *sce, float ypos, float yscale_fac, int saction_flag)
ChannelDrawList * ED_channel_draw_list_create()
void ED_channel_list_free(ChannelDrawList *draw_list)
void ED_add_action_group_channel(ChannelDrawList *draw_list, AnimData *adt, bActionGroup *agrp, float ypos, float yscale_fac, int saction_flag)
void ED_add_summary_channel(ChannelDrawList *draw_list, bAnimContext *ac, float ypos, float yscale_fac, int saction_flag)
void ED_add_grease_pencil_layer_group_channel(ChannelDrawList *draw_list, bDopeSheet *ads, const GreasePencilLayerTreeGroup *layer, float ypos, float yscale_fac, int saction_flag)
void ED_add_action_slot_channel(ChannelDrawList *channel_list, AnimData *adt, blender::animrig::Action &action, blender::animrig::Slot &slot, float ypos, float yscale_fac, int saction_flag)
void draw_keyframe_shape(float x, float y, float size, bool sel, eBezTriple_KeyframeType key_type, eKeyframeShapeDrawOpts mode, float alpha, const KeyframeShaderBindings *sh_bindings, short handle_type, short extreme_type)
void ED_add_grease_pencil_datablock_channel(ChannelDrawList *draw_list, bAnimContext *ac, AnimData *adt, const GreasePencil *grease_pencil, const float ypos, const float yscale_fac, int saction_flag)
void ED_add_action_layered_channel(ChannelDrawList *channel_list, AnimData *adt, bAction *action, const float ypos, const float yscale_fac, int saction_flag)
void ED_add_mask_layer_channel(ChannelDrawList *draw_list, bDopeSheet *ads, MaskLayer *masklay, float ypos, float yscale_fac, int saction_flag)
void ED_channel_list_flush(ChannelDrawList *draw_list, View2D *v2d)
void ED_add_grease_pencil_layer_legacy_channel(ChannelDrawList *draw_list, bDopeSheet *ads, bGPDlayer *gpl, float ypos, float yscale_fac, int saction_flag)
void ED_add_fcurve_channel(ChannelDrawList *draw_list, AnimData *adt, FCurve *fcu, float ypos, float yscale_fac, int saction_flag)
void ED_add_object_channel(ChannelDrawList *draw_list, bDopeSheet *ads, Object *ob, float ypos, float yscale_fac, int saction_flag)
eKeyframeShapeDrawOpts