Blender V5.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
8
9#pragma once
10
11#include "BLI_sys_types.hh"
12
13#include "DNA_curve_types.h"
14
15#include "ED_anim_api.hh"
17
18namespace blender {
19
20struct AnimData;
21struct ChannelDrawList;
22struct FCurve;
23struct MaskLayer;
24struct Object;
25struct Scene;
26struct View2D;
27struct bAction;
28struct bActionGroup;
29struct bAnimContext;
30struct bDopeSheet;
31struct bGPDlayer;
32struct GreasePencil;
35
49
50void draw_keyframe_shape(float x,
51 float y,
52 float size,
53 bool sel,
56 float alpha,
57 const KeyframeShaderBindings *sh_bindings,
58 short handle_type,
59 short extreme_type);
60
61/* ******************************* Methods ****************************** */
62
63/* Channel Drawing ------------------ */
64/* F-Curve */
65void ED_add_fcurve_channel(ChannelDrawList *channel_list,
66 bAnimListElem *ale,
67 FCurve *fcu,
68 float ypos,
69 float yscale_fac,
70 int saction_flag);
71/* Action Group Summary */
73 bAnimListElem *ale,
74 bActionGroup *agrp,
75 float ypos,
76 float yscale_fac,
77 int saction_flag);
78/* Layered Action Summary. */
80 bAnimContext *ac,
81 bAnimListElem *ale,
82 bAction *action,
83 const float ypos,
84 const float yscale_fac,
85 int saction_flag);
86/* Action Slot summary. */
88 bAnimContext *ac,
89 bAnimListElem *ale,
90 animrig::Action &action,
91 animrig::Slot &slot,
92 float ypos,
93 float yscale_fac,
94 int saction_flag);
95
96/* Object Summary */
97void ED_add_object_channel(ChannelDrawList *channel_list,
98 bDopeSheet *ads,
99 Object *ob,
100 float ypos,
101 float yscale_fac,
102 int saction_flag);
103/* Scene Summary */
104void ED_add_scene_channel(ChannelDrawList *channel_list,
105 bDopeSheet *ads,
106 Scene *sce,
107 float ypos,
108 float yscale_fac,
109 int saction_flag);
110/* DopeSheet Summary */
111void ED_add_summary_channel(ChannelDrawList *channel_list,
112 bAnimContext *ac,
113 float ypos,
114 float yscale_fac,
115 int saction_flag);
116
117/* Grease Pencil cels channels */
119 bDopeSheet *ads,
121 float ypos,
122 float yscale_fac,
123 int saction_flag);
124
125/* Grease Pencil layer group channels */
127 bDopeSheet *ads,
128 const GreasePencilLayerTreeGroup *layer_group,
129 float ypos,
130 float yscale_fac,
131 int saction_flag);
132
133/* Grease Pencil data channels */
135 bAnimContext *ac,
136 bAnimListElem *ale,
138 const float ypos,
139 const float yscale_fac,
140 int saction_flag);
141
142/* Grease Pencil Layer */
144 bDopeSheet *ads,
145 bGPDlayer *gpl,
146 float ypos,
147 float yscale_fac,
148 int saction_flag);
149/* Mask Layer */
151 bDopeSheet *ads,
152 MaskLayer *masklay,
153 float ypos,
154 float yscale_fac,
155 int saction_flag);
156
158
159void ED_channel_list_flush(ChannelDrawList *channel_list, View2D *v2d);
160
161void ED_channel_list_free(ChannelDrawList *channel_list);
162
163} // namespace blender
#define layer
BMesh Iterators.
void 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)
ChannelDrawList * ED_channel_draw_list_create()
unsigned int uint
Definition BKE_text.h:55
void 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)
void ED_add_mask_layer_channel(ChannelDrawList *channel_list, bDopeSheet *ads, MaskLayer *masklay, float ypos, float yscale_fac, int saction_flag)
void 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 ED_add_fcurve_channel(ChannelDrawList *channel_list, bAnimListElem *ale, FCurve *fcu, float ypos, float yscale_fac, int saction_flag)
void ED_add_scene_channel(ChannelDrawList *channel_list, bDopeSheet *ads, Scene *sce, float ypos, float yscale_fac, int saction_flag)
void ED_add_summary_channel(ChannelDrawList *channel_list, bAnimContext *ac, float ypos, float yscale_fac, int saction_flag)
void ED_channel_list_free(ChannelDrawList *channel_list)
void 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 ED_channel_list_flush(ChannelDrawList *channel_list, View2D *v2d)
void ED_add_object_channel(ChannelDrawList *channel_list, bDopeSheet *ads, Object *ob, float ypos, float yscale_fac, int saction_flag)
void 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 ED_add_action_group_channel(ChannelDrawList *channel_list, bAnimListElem *ale, bActionGroup *agrp, float ypos, float yscale_fac, int saction_flag)
void ED_add_grease_pencil_layer_legacy_channel(ChannelDrawList *channel_list, bDopeSheet *ads, bGPDlayer *gpl, float ypos, float yscale_fac, int saction_flag)
void ED_add_grease_pencil_cels_channel(ChannelDrawList *channel_list, bDopeSheet *ads, const GreasePencilLayer *layer, const float ypos, const float yscale_fac, int saction_flag)