Blender  V3.3
graph_intern.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2008 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 struct ARegion;
11 struct ARegionType;
12 struct SpaceGraph;
13 struct bAnimContext;
14 struct bAnimListElem;
15 struct bContext;
16 
17 /* internal exports only */
18 
19 /* ***************************************** */
20 /* graph_draw.c */
21 
25 void graph_draw_channel_names(struct bContext *C, struct bAnimContext *ac, struct ARegion *region);
26 
31 void graph_draw_curves(struct bAnimContext *ac,
32  struct SpaceGraph *sipo,
33  struct ARegion *region,
34  short sel);
40  struct SpaceGraph *sipo,
41  struct ARegion *region);
42 
43 /* ***************************************** */
44 /* graph_select.c */
45 
57 void deselect_graph_keys(struct bAnimContext *ac, bool test, short sel, bool do_channels);
58 
69 
70 /* defines for left-right select tool */
75 };
76 
77 /* defines for column-select mode */
83 };
84 
85 /* ***************************************** */
86 /* graph_edit.c */
87 
93  float *xmin,
94  float *xmax,
95  float *ymin,
96  float *ymax,
97  bool do_sel_only,
98  bool include_handles);
99 
101 void GRAPH_OT_view_all(struct wmOperatorType *ot);
104 
107 
108 void GRAPH_OT_copy(struct wmOperatorType *ot);
109 void GRAPH_OT_paste(struct wmOperatorType *ot);
110 
111 void GRAPH_OT_duplicate(struct wmOperatorType *ot);
112 void GRAPH_OT_delete(struct wmOperatorType *ot);
113 void GRAPH_OT_clean(struct wmOperatorType *ot);
115 void GRAPH_OT_breakdown(struct wmOperatorType *ot);
116 void GRAPH_OT_decimate(struct wmOperatorType *ot);
118 void GRAPH_OT_sample(struct wmOperatorType *ot);
119 void GRAPH_OT_bake(struct wmOperatorType *ot);
120 void GRAPH_OT_unbake(struct wmOperatorType *ot);
122 void GRAPH_OT_smooth(struct wmOperatorType *ot);
124 
129 
132 void GRAPH_OT_snap(struct wmOperatorType *ot);
134 void GRAPH_OT_mirror(struct wmOperatorType *ot);
135 
136 /* defines for snap keyframes
137  * NOTE: keep in sync with eEditKeyframes_Snap (in ED_keyframes_edit.h)
138  */
146 };
147 
148 /* Defines for equalize keyframe handles.
149  * NOTE: Keep in sync with eEditKeyframes_Equalize (in ED_keyframes_edit.h).
150  */
155 };
156 
157 /* defines for mirror keyframes
158  * NOTE: keep in sync with eEditKeyframes_Mirror (in ED_keyframes_edit.h)
159  */
166 };
167 
168 /* ----------- */
169 
173 
174 /* ----------- */
175 
179 
180 /* ----------- */
181 
184 
185 /* ***************************************** */
186 /* graph_buttons.c */
187 
188 void graph_buttons_register(struct ARegionType *art);
189 
190 /* ***************************************** */
191 /* graph_utils.c */
192 
203 
224 
225 /* ***************************************** */
226 /* graph_ops.c */
227 
228 void graphedit_keymap(struct wmKeyConfig *keyconf);
229 void graphedit_operatortypes(void);
#define C
Definition: RandGen.cpp:25
void GRAPH_OT_select_linked(struct wmOperatorType *ot)
void GRAPH_OT_unbake(struct wmOperatorType *ot)
Definition: graph_edit.c:1006
void GRAPH_OT_sample(struct wmOperatorType *ot)
Definition: graph_edit.c:1315
eGraphKeys_ColumnSelect_Mode
Definition: graph_intern.h:78
@ GRAPHKEYS_COLUMNSEL_MARKERS_BETWEEN
Definition: graph_intern.h:82
@ GRAPHKEYS_COLUMNSEL_KEYS
Definition: graph_intern.h:79
@ GRAPHKEYS_COLUMNSEL_MARKERS_COLUMN
Definition: graph_intern.h:81
@ GRAPHKEYS_COLUMNSEL_CFRA
Definition: graph_intern.h:80
void GRAPH_OT_select_box(struct wmOperatorType *ot)
Definition: graph_select.c:880
void GRAPH_OT_decimate(struct wmOperatorType *ot)
void GRAPH_OT_fmodifier_copy(struct wmOperatorType *ot)
Definition: graph_edit.c:2841
void GRAPH_OT_select_column(struct wmOperatorType *ot)
void graph_draw_channel_names(struct bContext *C, struct bAnimContext *ac, struct ARegion *region)
Definition: graph_draw.c:1385
void GRAPH_OT_interpolation_type(struct wmOperatorType *ot)
Definition: graph_edit.c:1524
void GRAPH_OT_sound_bake(struct wmOperatorType *ot)
Definition: graph_edit.c:1163
void graph_draw_curves(struct bAnimContext *ac, struct SpaceGraph *sipo, struct ARegion *region, short sel)
Definition: graph_draw.c:1344
void GRAPH_OT_paste(struct wmOperatorType *ot)
Definition: graph_edit.c:591
void graphedit_keymap(struct wmKeyConfig *keyconf)
Definition: graph_ops.c:508
void GRAPH_OT_fmodifier_paste(struct wmOperatorType *ot)
Definition: graph_edit.c:2932
void GRAPH_OT_ghost_curves_create(struct wmOperatorType *ot)
Definition: graph_view.c:483
void GRAPH_OT_select_lasso(struct wmOperatorType *ot)
Definition: graph_select.c:986
eGraphKeys_Mirror_Mode
Definition: graph_intern.h:160
@ GRAPHKEYS_MIRROR_XAXIS
Definition: graph_intern.h:163
@ GRAPHKEYS_MIRROR_CFRA
Definition: graph_intern.h:161
@ GRAPHKEYS_MIRROR_VALUE
Definition: graph_intern.h:165
@ GRAPHKEYS_MIRROR_YAXIS
Definition: graph_intern.h:162
@ GRAPHKEYS_MIRROR_MARKER
Definition: graph_intern.h:164
void GRAPH_OT_previewrange_set(struct wmOperatorType *ot)
Definition: graph_view.c:221
void GRAPH_OT_click_insert(struct wmOperatorType *ot)
Definition: graph_edit.c:402
void GRAPH_OT_select_more(struct wmOperatorType *ot)
bool graphop_active_fcurve_poll(struct bContext *C)
Definition: graph_utils.c:219
void GRAPH_OT_copy(struct wmOperatorType *ot)
Definition: graph_edit.c:527
void GRAPH_OT_driver_variables_paste(struct wmOperatorType *ot)
Definition: graph_edit.c:3034
eGraphKeys_Snap_Mode
Definition: graph_intern.h:139
@ GRAPHKEYS_SNAP_NEAREST_MARKER
Definition: graph_intern.h:143
@ GRAPHKEYS_SNAP_VALUE
Definition: graph_intern.h:145
@ GRAPHKEYS_SNAP_NEAREST_SECOND
Definition: graph_intern.h:142
@ GRAPHKEYS_SNAP_HORIZONTAL
Definition: graph_intern.h:144
@ GRAPHKEYS_SNAP_CFRA
Definition: graph_intern.h:140
@ GRAPHKEYS_SNAP_NEAREST_FRAME
Definition: graph_intern.h:141
void GRAPH_OT_bake(struct wmOperatorType *ot)
Definition: graph_edit.c:929
void GRAPH_OT_fmodifier_add(struct wmOperatorType *ot)
Definition: graph_edit.c:2772
void GRAPH_OT_snap_cursor_value(struct wmOperatorType *ot)
Definition: graph_edit.c:2184
void GRAPH_OT_smooth(struct wmOperatorType *ot)
Definition: graph_edit.c:2658
void GRAPH_OT_clean(struct wmOperatorType *ot)
Definition: graph_edit.c:838
bool graphop_active_editable_fcurve_ctx_poll(struct bContext *C)
Definition: graph_utils.c:262
void GRAPH_OT_blend_to_neighbor(struct wmOperatorType *ot)
void graphedit_operatortypes(void)
Definition: graph_ops.c:417
eGraphKeys_LeftRightSelect_Mode
Definition: graph_intern.h:71
@ GRAPHKEYS_LRSEL_TEST
Definition: graph_intern.h:72
@ GRAPHKEYS_LRSEL_RIGHT
Definition: graph_intern.h:74
@ GRAPHKEYS_LRSEL_LEFT
Definition: graph_intern.h:73
eGraphKeys_Equalize_Mode
Definition: graph_intern.h:151
@ GRAPHKEYS_EQUALIZE_RIGHT
Definition: graph_intern.h:153
@ GRAPHKEYS_EQUALIZE_BOTH
Definition: graph_intern.h:154
@ GRAPHKEYS_EQUALIZE_LEFT
Definition: graph_intern.h:152
void GRAPH_OT_extrapolation_type(struct wmOperatorType *ot)
Definition: graph_edit.c:1448
struct bAnimListElem * get_active_fcurve_channel(struct bAnimContext *ac)
Definition: graph_utils.c:81
bool graphop_selected_fcurve_poll(struct bContext *C)
Definition: graph_utils.c:269
void graph_buttons_register(struct ARegionType *art)
void GRAPH_OT_select_circle(struct wmOperatorType *ot)
void GRAPH_OT_handle_type(struct wmOperatorType *ot)
Definition: graph_edit.c:1685
void GRAPH_OT_mirror(struct wmOperatorType *ot)
Definition: graph_edit.c:2596
void GRAPH_OT_clickselect(struct wmOperatorType *ot)
void graph_draw_ghost_curves(struct bAnimContext *ac, struct SpaceGraph *sipo, struct ARegion *region)
Definition: graph_draw.c:1297
void GRAPH_OT_select_less(struct wmOperatorType *ot)
bool graphop_visible_keyframes_poll(struct bContext *C)
Definition: graph_utils.c:111
void GRAPH_OT_breakdown(struct wmOperatorType *ot)
void GRAPH_OT_view_frame(struct wmOperatorType *ot)
Definition: graph_view.c:360
void GRAPH_OT_frame_jump(struct wmOperatorType *ot)
Definition: graph_edit.c:2144
void GRAPH_OT_view_selected(struct wmOperatorType *ot)
Definition: graph_view.c:324
bool graphop_editable_keyframes_poll(struct bContext *C)
Definition: graph_utils.c:163
void GRAPH_OT_keyframe_insert(struct wmOperatorType *ot)
Definition: graph_edit.c:260
void GRAPH_OT_driver_delete_invalid(struct wmOperatorType *ot)
Definition: graph_edit.c:3136
void GRAPH_OT_select_leftright(struct wmOperatorType *ot)
void GRAPH_OT_duplicate(struct wmOperatorType *ot)
Definition: graph_edit.c:683
void get_graph_keyframe_extents(struct bAnimContext *ac, float *xmin, float *xmax, float *ymin, float *ymax, bool do_sel_only, bool include_handles)
Definition: graph_view.c:43
void GRAPH_OT_blend_to_default(struct wmOperatorType *ot)
void GRAPH_OT_snap(struct wmOperatorType *ot)
Definition: graph_edit.c:2336
void GRAPH_OT_driver_variables_copy(struct wmOperatorType *ot)
Definition: graph_edit.c:2986
void GRAPH_OT_equalize_handles(struct wmOperatorType *ot)
Definition: graph_edit.c:2412
void deselect_graph_keys(struct bAnimContext *ac, bool test, short sel, bool do_channels)
Definition: graph_select.c:335
void GRAPH_OT_view_all(struct wmOperatorType *ot)
Definition: graph_view.c:301
void GRAPH_OT_delete(struct wmOperatorType *ot)
Definition: graph_edit.c:768
void GRAPH_OT_euler_filter(struct wmOperatorType *ot)
Definition: graph_edit.c:2021
void GRAPH_OT_ghost_curves_clear(struct wmOperatorType *ot)
Definition: graph_view.c:533
void GRAPH_OT_select_all(struct wmOperatorType *ot)
Definition: graph_select.c:457
void GRAPH_OT_easing_type(struct wmOperatorType *ot)
Definition: graph_edit.c:1600
struct ARegion * region
Definition: context.c:66
wmOperatorType * ot
Definition: wm_files.c:3479