Blender  V2.93
graph_intern.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2008 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 struct ARegion;
27 struct ARegionType;
28 struct SpaceGraph;
29 struct bAnimContext;
30 struct bAnimListElem;
31 struct bContext;
32 
33 /* internal exports only */
34 
35 /* ***************************************** */
36 /* graph_draw.c */
37 void graph_draw_channel_names(struct bContext *C, struct bAnimContext *ac, struct ARegion *region);
38 
39 void graph_draw_curves(struct bAnimContext *ac,
40  struct SpaceGraph *sipo,
41  struct ARegion *region,
42  short sel);
44  struct SpaceGraph *sipo,
45  struct ARegion *region);
46 
47 /* ***************************************** */
48 /* graph_select.c */
49 
50 void deselect_graph_keys(struct bAnimContext *ac, bool test, short sel, bool do_channels);
51 
62 
63 /* defines for left-right select tool */
68 };
69 
70 /* defines for column-select mode */
76 };
77 
78 /* ***************************************** */
79 /* graph_edit.c */
80 
82  float *xmin,
83  float *xmax,
84  float *ymin,
85  float *ymax,
86  const bool do_sel_only,
87  const bool include_handles);
88 
90 void GRAPH_OT_view_all(struct wmOperatorType *ot);
93 
96 
97 void GRAPH_OT_copy(struct wmOperatorType *ot);
98 void GRAPH_OT_paste(struct wmOperatorType *ot);
99 
100 void GRAPH_OT_duplicate(struct wmOperatorType *ot);
101 void GRAPH_OT_delete(struct wmOperatorType *ot);
102 void GRAPH_OT_clean(struct wmOperatorType *ot);
103 void GRAPH_OT_decimate(struct wmOperatorType *ot);
104 void GRAPH_OT_sample(struct wmOperatorType *ot);
105 void GRAPH_OT_bake(struct wmOperatorType *ot);
106 void GRAPH_OT_unbake(struct wmOperatorType *ot);
108 void GRAPH_OT_smooth(struct wmOperatorType *ot);
110 
115 
118 void GRAPH_OT_snap(struct wmOperatorType *ot);
119 void GRAPH_OT_mirror(struct wmOperatorType *ot);
120 
121 /* defines for snap keyframes
122  * NOTE: keep in sync with eEditKeyframes_Snap (in ED_keyframes_edit.h)
123  */
131 };
132 
133 /* defines for mirror keyframes
134  * NOTE: keep in sync with eEditKeyframes_Mirror (in ED_keyframes_edit.h)
135  */
142 };
143 
144 /* ----------- */
145 
149 
150 /* ----------- */
151 
155 
156 /* ----------- */
157 
160 
161 /* ***************************************** */
162 /* graph_buttons.c */
163 
164 void graph_buttons_register(struct ARegionType *art);
165 
166 /* ***************************************** */
167 /* graph_utils.c */
168 
170 
176 
177 /* ***************************************** */
178 /* graph_ops.c */
179 void graphedit_keymap(struct wmKeyConfig *keyconf);
180 void graphedit_operatortypes(void);
#define C
Definition: RandGen.cpp:39
void GRAPH_OT_select_linked(struct wmOperatorType *ot)
void GRAPH_OT_unbake(struct wmOperatorType *ot)
Definition: graph_edit.c:1004
void GRAPH_OT_sample(struct wmOperatorType *ot)
Definition: graph_edit.c:1312
eGraphKeys_ColumnSelect_Mode
Definition: graph_intern.h:71
@ GRAPHKEYS_COLUMNSEL_MARKERS_BETWEEN
Definition: graph_intern.h:75
@ GRAPHKEYS_COLUMNSEL_KEYS
Definition: graph_intern.h:72
@ GRAPHKEYS_COLUMNSEL_MARKERS_COLUMN
Definition: graph_intern.h:74
@ GRAPHKEYS_COLUMNSEL_CFRA
Definition: graph_intern.h:73
void GRAPH_OT_select_box(struct wmOperatorType *ot)
Definition: graph_select.c:736
void GRAPH_OT_decimate(struct wmOperatorType *ot)
void GRAPH_OT_fmodifier_copy(struct wmOperatorType *ot)
Definition: graph_edit.c:2738
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:1411
void GRAPH_OT_interpolation_type(struct wmOperatorType *ot)
Definition: graph_edit.c:1521
void GRAPH_OT_sound_bake(struct wmOperatorType *ot)
Definition: graph_edit.c:1160
void graph_draw_curves(struct bAnimContext *ac, struct SpaceGraph *sipo, struct ARegion *region, short sel)
Definition: graph_draw.c:1369
void GRAPH_OT_paste(struct wmOperatorType *ot)
Definition: graph_edit.c:594
void graphedit_keymap(struct wmKeyConfig *keyconf)
Definition: graph_ops.c:501
void GRAPH_OT_fmodifier_paste(struct wmOperatorType *ot)
Definition: graph_edit.c:2829
void GRAPH_OT_ghost_curves_create(struct wmOperatorType *ot)
Definition: graph_view.c:478
void GRAPH_OT_select_lasso(struct wmOperatorType *ot)
Definition: graph_select.c:828
eGraphKeys_Mirror_Mode
Definition: graph_intern.h:136
@ GRAPHKEYS_MIRROR_XAXIS
Definition: graph_intern.h:139
@ GRAPHKEYS_MIRROR_CFRA
Definition: graph_intern.h:137
@ GRAPHKEYS_MIRROR_VALUE
Definition: graph_intern.h:141
@ GRAPHKEYS_MIRROR_YAXIS
Definition: graph_intern.h:138
@ GRAPHKEYS_MIRROR_MARKER
Definition: graph_intern.h:140
void GRAPH_OT_previewrange_set(struct wmOperatorType *ot)
Definition: graph_view.c:228
void GRAPH_OT_click_insert(struct wmOperatorType *ot)
Definition: graph_edit.c:418
void GRAPH_OT_select_more(struct wmOperatorType *ot)
bool graphop_active_fcurve_poll(struct bContext *C)
Definition: graph_utils.c:239
void GRAPH_OT_copy(struct wmOperatorType *ot)
Definition: graph_edit.c:539
void GRAPH_OT_driver_variables_paste(struct wmOperatorType *ot)
Definition: graph_edit.c:2931
eGraphKeys_Snap_Mode
Definition: graph_intern.h:124
@ GRAPHKEYS_SNAP_NEAREST_MARKER
Definition: graph_intern.h:128
@ GRAPHKEYS_SNAP_VALUE
Definition: graph_intern.h:130
@ GRAPHKEYS_SNAP_NEAREST_SECOND
Definition: graph_intern.h:127
@ GRAPHKEYS_SNAP_HORIZONTAL
Definition: graph_intern.h:129
@ GRAPHKEYS_SNAP_CFRA
Definition: graph_intern.h:125
@ GRAPHKEYS_SNAP_NEAREST_FRAME
Definition: graph_intern.h:126
void GRAPH_OT_bake(struct wmOperatorType *ot)
Definition: graph_edit.c:927
void GRAPH_OT_fmodifier_add(struct wmOperatorType *ot)
Definition: graph_edit.c:2669
void GRAPH_OT_snap_cursor_value(struct wmOperatorType *ot)
Definition: graph_edit.c:2179
void GRAPH_OT_smooth(struct wmOperatorType *ot)
Definition: graph_edit.c:2556
void GRAPH_OT_clean(struct wmOperatorType *ot)
Definition: graph_edit.c:836
bool graphop_active_editable_fcurve_ctx_poll(struct bContext *C)
Definition: graph_utils.c:283
void graphedit_operatortypes(void)
Definition: graph_ops.c:418
eGraphKeys_LeftRightSelect_Mode
Definition: graph_intern.h:64
@ GRAPHKEYS_LRSEL_TEST
Definition: graph_intern.h:65
@ GRAPHKEYS_LRSEL_RIGHT
Definition: graph_intern.h:67
@ GRAPHKEYS_LRSEL_LEFT
Definition: graph_intern.h:66
void GRAPH_OT_extrapolation_type(struct wmOperatorType *ot)
Definition: graph_edit.c:1445
struct bAnimListElem * get_active_fcurve_channel(struct bAnimContext *ac)
Definition: graph_utils.c:104
bool graphop_selected_fcurve_poll(struct bContext *C)
Definition: graph_utils.c:291
void graph_buttons_register(struct ARegionType *art)
void get_graph_keyframe_extents(struct bAnimContext *ac, float *xmin, float *xmax, float *ymin, float *ymax, const bool do_sel_only, const bool include_handles)
Definition: graph_view.c:55
void GRAPH_OT_select_circle(struct wmOperatorType *ot)
Definition: graph_select.c:905
void GRAPH_OT_handle_type(struct wmOperatorType *ot)
Definition: graph_edit.c:1681
void GRAPH_OT_mirror(struct wmOperatorType *ot)
Definition: graph_edit.c:2494
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:1319
void GRAPH_OT_select_less(struct wmOperatorType *ot)
bool graphop_visible_keyframes_poll(struct bContext *C)
Definition: graph_utils.c:131
void GRAPH_OT_view_frame(struct wmOperatorType *ot)
Definition: graph_view.c:359
void GRAPH_OT_frame_jump(struct wmOperatorType *ot)
Definition: graph_edit.c:2139
void GRAPH_OT_view_selected(struct wmOperatorType *ot)
Definition: graph_view.c:327
bool graphop_editable_keyframes_poll(struct bContext *C)
Definition: graph_utils.c:184
void GRAPH_OT_keyframe_insert(struct wmOperatorType *ot)
Definition: graph_edit.c:276
void GRAPH_OT_driver_delete_invalid(struct wmOperatorType *ot)
Definition: graph_edit.c:3032
void GRAPH_OT_select_leftright(struct wmOperatorType *ot)
void GRAPH_OT_duplicate(struct wmOperatorType *ot)
Definition: graph_edit.c:681
void GRAPH_OT_snap(struct wmOperatorType *ot)
Definition: graph_edit.c:2331
void GRAPH_OT_driver_variables_copy(struct wmOperatorType *ot)
Definition: graph_edit.c:2883
void deselect_graph_keys(struct bAnimContext *ac, bool test, short sel, bool do_channels)
Definition: graph_select.c:354
void GRAPH_OT_view_all(struct wmOperatorType *ot)
Definition: graph_view.c:304
void GRAPH_OT_delete(struct wmOperatorType *ot)
Definition: graph_edit.c:766
void GRAPH_OT_euler_filter(struct wmOperatorType *ot)
Definition: graph_edit.c:2017
void GRAPH_OT_ghost_curves_clear(struct wmOperatorType *ot)
Definition: graph_view.c:523
void GRAPH_OT_select_all(struct wmOperatorType *ot)
Definition: graph_select.c:475
void GRAPH_OT_easing_type(struct wmOperatorType *ot)
Definition: graph_edit.c:1596
struct ARegion * region
Definition: context.c:79
wmOperatorType * ot
Definition: wm_files.c:3156