Blender V5.3
graph_intern.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2008 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "ED_keyframes_edit.hh"
12
13namespace blender {
14
15struct ARegion;
16struct ARegionType;
17struct SpaceGraph;
18struct bAnimContext;
19struct bAnimListElem;
20struct bContext;
21
22/* internal exports only */
23
24/* ***************************************** */
25/* `graph_draw.cc` */
26
31 bAnimContext *ac,
32 ARegion *region,
33 const ListBaseT<bAnimListElem> &anim_data);
34
39void graph_draw_curves(bAnimContext *ac, SpaceGraph *sipo, ARegion *region, short sel);
45
46/* ***************************************** */
47/* `graph_select.cc` */
48
60void deselect_graph_keys(bAnimContext *ac, bool test, eEditKeyframes_Select sel, bool do_channels);
61
73
74/* defines for left-right select tool */
80
81/* Defines for key/handles selection. */
88
89/* defines for column-select mode */
96
97/* ***************************************** */
98/* `graph_edit.cc` */
99
104void get_graph_keyframe_extents(bAnimContext *ac,
105 float *xmin,
106 float *xmax,
107 float *ymin,
108 float *ymax,
109 bool do_sel_only,
110 bool include_handles) ATTR_NONNULL(2, 3);
111
112void GRAPH_OT_previewrange_set(wmOperatorType *ot);
113void GRAPH_OT_view_all(wmOperatorType *ot);
114void GRAPH_OT_view_selected(wmOperatorType *ot);
115void GRAPH_OT_view_frame(wmOperatorType *ot);
116void GRAPH_OT_local_view(wmOperatorType *ot);
117
118void GRAPH_OT_click_insert(wmOperatorType *ot);
119void GRAPH_OT_keyframe_insert(wmOperatorType *ot);
120
121void GRAPH_OT_copy(wmOperatorType *ot);
122void GRAPH_OT_paste(wmOperatorType *ot);
123
124void GRAPH_OT_duplicate(wmOperatorType *ot);
125void GRAPH_OT_delete(wmOperatorType *ot);
126void GRAPH_OT_clean(wmOperatorType *ot);
127void GRAPH_OT_blend_to_neighbor(wmOperatorType *ot);
128void GRAPH_OT_breakdown(wmOperatorType *ot);
129void GRAPH_OT_ease(wmOperatorType *ot);
130void GRAPH_OT_blend_offset(wmOperatorType *ot);
131void GRAPH_OT_blend_to_ease(wmOperatorType *ot);
132void GRAPH_OT_match_slope(wmOperatorType *ot);
133void GRAPH_OT_shear(wmOperatorType *ot);
134void GRAPH_OT_scale_average(wmOperatorType *ot);
135void GRAPH_OT_push_pull(wmOperatorType *ot);
136void GRAPH_OT_time_offset(wmOperatorType *ot);
137void GRAPH_OT_scale_from_neighbor(wmOperatorType *ot);
138void GRAPH_OT_decimate(wmOperatorType *ot);
139void GRAPH_OT_blend_to_default(wmOperatorType *ot);
140void GRAPH_OT_butterworth_smooth(wmOperatorType *ot);
141void GRAPH_OT_gaussian_smooth(wmOperatorType *ot);
142void GRAPH_OT_bake_keys(wmOperatorType *ot);
143void GRAPH_OT_keys_to_samples(wmOperatorType *ot);
144void GRAPH_OT_samples_to_keys(wmOperatorType *ot);
145void GRAPH_OT_sound_to_samples(wmOperatorType *ot);
146void GRAPH_OT_smooth(wmOperatorType *ot);
147void GRAPH_OT_euler_filter(wmOperatorType *ot);
148
149void GRAPH_OT_handle_type(wmOperatorType *ot);
150void GRAPH_OT_interpolation_type(wmOperatorType *ot);
151void GRAPH_OT_extrapolation_type(wmOperatorType *ot);
152void GRAPH_OT_easing_type(wmOperatorType *ot);
153
154void GRAPH_OT_frame_jump(wmOperatorType *ot);
155void GRAPH_OT_keyframe_jump(wmOperatorType *ot);
156void GRAPH_OT_snap_cursor_value(wmOperatorType *ot);
157void GRAPH_OT_snap(wmOperatorType *ot);
158void GRAPH_OT_equalize_handles(wmOperatorType *ot);
159void GRAPH_OT_mirror(wmOperatorType *ot);
160
161/* defines for snap keyframes
162 * NOTE: keep in sync with eEditKeyframes_Snap (in ED_keyframes_edit.hh)
163 */
172
173/* Defines for equalize keyframe handles.
174 * NOTE: Keep in sync with eEditKeyframes_Equalize (in ED_keyframes_edit.hh).
175 */
181
182/* defines for mirror keyframes
183 * NOTE: keep in sync with eEditKeyframes_Mirror (in ED_keyframes_edit.hh)
184 */
192
193/* ----------- */
194
195void GRAPH_OT_fmodifier_add(wmOperatorType *ot);
196void GRAPH_OT_fmodifier_delete(wmOperatorType *ot);
197void GRAPH_OT_fmodifier_copy(wmOperatorType *ot);
198void GRAPH_OT_fmodifier_paste(wmOperatorType *ot);
199
200/* ----------- */
201
202void GRAPH_OT_driver_variables_copy(wmOperatorType *ot);
203void GRAPH_OT_driver_variables_paste(wmOperatorType *ot);
204void GRAPH_OT_driver_delete_invalid(wmOperatorType *ot);
205
206/* ----------- */
207
208void GRAPH_OT_ghost_curves_create(wmOperatorType *ot);
209void GRAPH_OT_ghost_curves_clear(wmOperatorType *ot);
210
211/* ***************************************** */
212/* `graph_buttons.cc` */
213
214void graph_buttons_register(ARegionType *art);
215
216/* ***************************************** */
217/* `graph_utils.cc` */
218
228bAnimListElem *get_active_fcurve_channel(bAnimContext *ac);
229
233bool graphop_visible_keyframes_poll(bContext *C);
237bool graphop_editable_keyframes_poll(bContext *C);
241bool graphop_active_fcurve_poll(bContext *C);
249bool graphop_selected_fcurve_poll(bContext *C);
250
251/* ***************************************** */
252/* `graph_ops.cc` */
253
254void graphedit_keymap(wmKeyConfig *keyconf);
256
257} // namespace blender
#define ATTR_NONNULL(...)
#define C
Definition RandGen.cpp:29
BMesh Iterators.
void GRAPH_OT_easing_type(wmOperatorType *ot)
void GRAPH_OT_keys_to_samples(wmOperatorType *ot)
void void GRAPH_OT_previewrange_set(wmOperatorType *ot)
void GRAPH_OT_click_insert(wmOperatorType *ot)
void GRAPH_OT_blend_to_default(wmOperatorType *ot)
void GRAPH_OT_equalize_handles(wmOperatorType *ot)
void GRAPH_OT_match_slope(wmOperatorType *ot)
void GRAPH_OT_smooth(wmOperatorType *ot)
void GRAPH_OT_select_column(wmOperatorType *ot)
void graphedit_keymap(wmKeyConfig *keyconf)
Definition graph_ops.cc:539
void GRAPH_OT_fmodifier_copy(wmOperatorType *ot)
void GRAPH_OT_select_linked(wmOperatorType *ot)
void GRAPH_OT_select_all(wmOperatorType *ot)
void GRAPH_OT_delete(wmOperatorType *ot)
void GRAPH_OT_copy(wmOperatorType *ot)
void GRAPH_OT_blend_offset(wmOperatorType *ot)
eGraphKeys_ColumnSelect_Mode
@ GRAPHKEYS_COLUMNSEL_MARKERS_COLUMN
@ GRAPHKEYS_COLUMNSEL_CFRA
@ GRAPHKEYS_COLUMNSEL_KEYS
@ GRAPHKEYS_COLUMNSEL_MARKERS_BETWEEN
bool graphop_visible_keyframes_poll(bContext *C)
void GRAPH_OT_keyframe_jump(wmOperatorType *ot)
void graph_draw_ghost_curves(bAnimContext *ac, SpaceGraph *sipo, ARegion *region)
void GRAPH_OT_bake_keys(wmOperatorType *ot)
void GRAPH_OT_ease(wmOperatorType *ot)
void GRAPH_OT_blend_to_ease(wmOperatorType *ot)
void GRAPH_OT_ghost_curves_clear(wmOperatorType *ot)
bool graphop_selected_fcurve_poll(bContext *C)
void GRAPH_OT_breakdown(wmOperatorType *ot)
void GRAPH_OT_blend_to_neighbor(wmOperatorType *ot)
void GRAPH_OT_select_circle(wmOperatorType *ot)
void GRAPH_OT_fmodifier_delete(wmOperatorType *ot)
bool graphop_active_fcurve_poll(bContext *C)
void GRAPH_OT_sound_to_samples(wmOperatorType *ot)
void GRAPH_OT_clean(wmOperatorType *ot)
void GRAPH_OT_select_less(wmOperatorType *ot)
eGraphKeys_LeftRightSelect_Mode
@ GRAPHKEYS_LRSEL_RIGHT
@ GRAPHKEYS_LRSEL_TEST
@ GRAPHKEYS_LRSEL_LEFT
void GRAPH_OT_extrapolation_type(wmOperatorType *ot)
void GRAPH_OT_gaussian_smooth(wmOperatorType *ot)
void GRAPH_OT_select_leftright(wmOperatorType *ot)
void GRAPH_OT_frame_jump(wmOperatorType *ot)
void GRAPH_OT_samples_to_keys(wmOperatorType *ot)
void GRAPH_OT_fmodifier_add(wmOperatorType *ot)
void GRAPH_OT_keyframe_insert(wmOperatorType *ot)
void GRAPH_OT_select_key_handles(wmOperatorType *ot)
void GRAPH_OT_snap_cursor_value(wmOperatorType *ot)
void GRAPH_OT_view_frame(wmOperatorType *ot)
void graph_buttons_register(ARegionType *art)
void GRAPH_OT_clickselect(wmOperatorType *ot)
void GRAPH_OT_interpolation_type(wmOperatorType *ot)
void graphedit_operatortypes()
Definition graph_ops.cc:433
bAnimListElem * get_active_fcurve_channel(bAnimContext *ac)
void GRAPH_OT_driver_delete_invalid(wmOperatorType *ot)
@ GRAPHKEYS_SNAP_NEAREST_MARKER
@ GRAPHKEYS_SNAP_HORIZONTAL
@ GRAPHKEYS_SNAP_NEAREST_SECOND
@ GRAPHKEYS_SNAP_CFRA
@ GRAPHKEYS_SNAP_NEAREST_FRAME
@ GRAPHKEYS_SNAP_VALUE
void get_graph_keyframe_extents(bAnimContext *ac, float *xmin, float *xmax, float *ymin, float *ymax, bool do_sel_only, bool include_handles) ATTR_NONNULL(2
void graph_draw_channel_names(bContext *C, bAnimContext *ac, ARegion *region, const ListBaseT< bAnimListElem > &anim_data)
@ GRAPHKEYS_MIRROR_MARKER
@ GRAPHKEYS_MIRROR_VALUE
@ GRAPHKEYS_MIRROR_YAXIS
@ GRAPHKEYS_MIRROR_XAXIS
@ GRAPHKEYS_MIRROR_CFRA
eGraphKeys_Equalize_Mode
@ GRAPHKEYS_EQUALIZE_BOTH
@ GRAPHKEYS_EQUALIZE_RIGHT
@ GRAPHKEYS_EQUALIZE_LEFT
void GRAPH_OT_select_box(wmOperatorType *ot)
void GRAPH_OT_shear(wmOperatorType *ot)
void graph_draw_curves(bAnimContext *ac, SpaceGraph *sipo, ARegion *region, short sel)
void deselect_graph_keys(bAnimContext *ac, bool test, eEditKeyframes_Select sel, bool do_channels)
void GRAPH_OT_butterworth_smooth(wmOperatorType *ot)
void GRAPH_OT_driver_variables_paste(wmOperatorType *ot)
void GRAPH_OT_ghost_curves_create(wmOperatorType *ot)
void GRAPH_OT_scale_from_neighbor(wmOperatorType *ot)
void GRAPH_OT_duplicate(wmOperatorType *ot)
void GRAPH_OT_decimate(wmOperatorType *ot)
void GRAPH_OT_snap(wmOperatorType *ot)
void GRAPH_OT_time_offset(wmOperatorType *ot)
void GRAPH_OT_driver_variables_copy(wmOperatorType *ot)
void GRAPH_OT_mirror(wmOperatorType *ot)
void GRAPH_OT_view_selected(wmOperatorType *ot)
void GRAPH_OT_scale_average(wmOperatorType *ot)
void GRAPH_OT_fmodifier_paste(wmOperatorType *ot)
void GRAPH_OT_handle_type(wmOperatorType *ot)
void GRAPH_OT_euler_filter(wmOperatorType *ot)
void GRAPH_OT_push_pull(wmOperatorType *ot)
void GRAPH_OT_local_view(wmOperatorType *ot)
void GRAPH_OT_select_lasso(wmOperatorType *ot)
bool graphop_active_editable_fcurve_ctx_poll(bContext *C)
void GRAPH_OT_select_more(wmOperatorType *ot)
eGraphKey_SelectKeyHandles_Action
@ GRAPHKEYS_KEYHANDLESSEL_SELECT
@ GRAPHKEYS_KEYHANDLESSEL_KEEP
@ GRAPHKEYS_KEYHANDLESSEL_DESELECT
void GRAPH_OT_view_all(wmOperatorType *ot)
bool graphop_editable_keyframes_poll(bContext *C)
void GRAPH_OT_paste(wmOperatorType *ot)