Blender V5.0
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.h"
12
13#include "DNA_curve_types.h"
14
15#include "ED_anim_api.hh"
17
18struct AnimData;
19struct ChannelDrawList;
20struct FCurve;
21struct MaskLayer;
22struct Object;
23struct Scene;
24struct View2D;
25struct bAction;
26struct bActionGroup;
27struct bAnimContext;
28struct bDopeSheet;
29struct bGPDlayer;
30struct GreasePencil;
33
47
48void draw_keyframe_shape(float x,
49 float y,
50 float size,
51 bool sel,
54 float alpha,
55 const KeyframeShaderBindings *sh_bindings,
56 short handle_type,
57 short extreme_type);
58
59/* ******************************* Methods ****************************** */
60
61/* Channel Drawing ------------------ */
62/* F-Curve */
63void ED_add_fcurve_channel(ChannelDrawList *channel_list,
64 bAnimListElem *ale,
65 FCurve *fcu,
66 float ypos,
67 float yscale_fac,
68 int saction_flag);
69/* Action Group Summary */
71 bAnimListElem *ale,
72 bActionGroup *agrp,
73 float ypos,
74 float yscale_fac,
75 int saction_flag);
76/* Layered Action Summary. */
78 bAnimContext *ac,
79 bAnimListElem *ale,
80 bAction *action,
81 const float ypos,
82 const float yscale_fac,
83 int saction_flag);
84/* Action Slot summary. */
86 bAnimContext *ac,
87 bAnimListElem *ale,
90 float ypos,
91 float yscale_fac,
92 int saction_flag);
93/* Legacy Action Summary */
94void ED_add_action_channel(ChannelDrawList *channel_list,
95 bAnimListElem *ale,
96 bAction *act,
97 float ypos,
98 float yscale_fac,
99 int saction_flag);
100/* Object Summary */
101void ED_add_object_channel(ChannelDrawList *channel_list,
102 bDopeSheet *ads,
103 Object *ob,
104 float ypos,
105 float yscale_fac,
106 int saction_flag);
107/* Scene Summary */
108void ED_add_scene_channel(ChannelDrawList *channel_list,
109 bDopeSheet *ads,
110 Scene *sce,
111 float ypos,
112 float yscale_fac,
113 int saction_flag);
114/* DopeSheet Summary */
115void ED_add_summary_channel(ChannelDrawList *channel_list,
116 bAnimContext *ac,
117 float ypos,
118 float yscale_fac,
119 int saction_flag);
120
121/* Grease Pencil cels channels */
123 bDopeSheet *ads,
124 const GreasePencilLayer *layer,
125 float ypos,
126 float yscale_fac,
127 int saction_flag);
128
129/* Grease Pencil layer group channels */
131 bDopeSheet *ads,
132 const GreasePencilLayerTreeGroup *layer_group,
133 float ypos,
134 float yscale_fac,
135 int saction_flag);
136
137/* Grease Pencil data channels */
139 bAnimContext *ac,
140 bAnimListElem *ale,
141 const GreasePencil *grease_pencil,
142 const float ypos,
143 const float yscale_fac,
144 int saction_flag);
145
146/* Grease Pencil Layer */
148 bDopeSheet *ads,
149 bGPDlayer *gpl,
150 float ypos,
151 float yscale_fac,
152 int saction_flag);
153/* Mask Layer */
155 bDopeSheet *ads,
156 MaskLayer *masklay,
157 float ypos,
158 float yscale_fac,
159 int saction_flag);
160
162
163void ED_channel_list_flush(ChannelDrawList *channel_list, View2D *v2d);
164
165void ED_channel_list_free(ChannelDrawList *channel_list);
unsigned int uint
eBezTriple_KeyframeType
void ED_add_fcurve_channel(ChannelDrawList *channel_list, bAnimListElem *ale, FCurve *fcu, 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_action_slot_channel(ChannelDrawList *channel_list, bAnimContext *ac, bAnimListElem *ale, blender::animrig::Action &action, blender::animrig::Slot &slot, float ypos, float yscale_fac, int saction_flag)
ChannelDrawList * ED_channel_draw_list_create()
void ED_add_action_channel(ChannelDrawList *channel_list, bAnimListElem *ale, bAction *act, float ypos, 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_scene_channel(ChannelDrawList *channel_list, bDopeSheet *ads, Scene *sce, float ypos, float yscale_fac, int saction_flag)
void ED_add_grease_pencil_cels_channel(ChannelDrawList *channel_list, bDopeSheet *ads, const GreasePencilLayer *layer, float ypos, float yscale_fac, int saction_flag)
void ED_channel_list_flush(ChannelDrawList *channel_list, View2D *v2d)
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 *channel_list, bAnimContext *ac, bAnimListElem *ale, const GreasePencil *grease_pencil, const float ypos, const float yscale_fac, int saction_flag)
void ED_channel_list_free(ChannelDrawList *channel_list)
void ED_add_grease_pencil_layer_group_channel(ChannelDrawList *channel_list, bDopeSheet *ads, const GreasePencilLayerTreeGroup *layer_group, float ypos, float yscale_fac, int saction_flag)
void ED_add_mask_layer_channel(ChannelDrawList *channel_list, bDopeSheet *ads, MaskLayer *masklay, 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_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)
eKeyframeShapeDrawOpts
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition btDbvt.cpp:52