Blender V4.3
graph_intern.hh File Reference

Go to the source code of this file.

Enumerations

enum  eGraphKeys_LeftRightSelect_Mode { GRAPHKEYS_LRSEL_TEST = 0 , GRAPHKEYS_LRSEL_LEFT , GRAPHKEYS_LRSEL_RIGHT }
 
enum  eGraphKey_SelectKeyHandles_Action { GRAPHKEYS_KEYHANDLESSEL_SELECT = 0 , GRAPHKEYS_KEYHANDLESSEL_DESELECT , GRAPHKEYS_KEYHANDLESSEL_KEEP }
 
enum  eGraphKeys_ColumnSelect_Mode { GRAPHKEYS_COLUMNSEL_KEYS = 0 , GRAPHKEYS_COLUMNSEL_CFRA , GRAPHKEYS_COLUMNSEL_MARKERS_COLUMN , GRAPHKEYS_COLUMNSEL_MARKERS_BETWEEN }
 
enum  eGraphKeys_Snap_Mode {
  GRAPHKEYS_SNAP_CFRA = 1 , GRAPHKEYS_SNAP_NEAREST_FRAME , GRAPHKEYS_SNAP_NEAREST_SECOND , GRAPHKEYS_SNAP_NEAREST_MARKER ,
  GRAPHKEYS_SNAP_HORIZONTAL , GRAPHKEYS_SNAP_VALUE
}
 
enum  eGraphKeys_Equalize_Mode { GRAPHKEYS_EQUALIZE_LEFT = 1 , GRAPHKEYS_EQUALIZE_RIGHT , GRAPHKEYS_EQUALIZE_BOTH }
 
enum  eGraphKeys_Mirror_Mode {
  GRAPHKEYS_MIRROR_CFRA = 1 , GRAPHKEYS_MIRROR_YAXIS , GRAPHKEYS_MIRROR_XAXIS , GRAPHKEYS_MIRROR_MARKER ,
  GRAPHKEYS_MIRROR_VALUE
}
 

Functions

void graph_draw_channel_names (bContext *C, bAnimContext *ac, ARegion *region, const ListBase &anim_data)
 
void graph_draw_curves (bAnimContext *ac, SpaceGraph *sipo, ARegion *region, short sel)
 
void graph_draw_ghost_curves (bAnimContext *ac, SpaceGraph *sipo, ARegion *region)
 
void deselect_graph_keys (bAnimContext *ac, bool test, eEditKeyframes_Select sel, bool do_channels)
 
void GRAPH_OT_select_all (wmOperatorType *ot)
 
void GRAPH_OT_select_box (wmOperatorType *ot)
 
void GRAPH_OT_select_lasso (wmOperatorType *ot)
 
void GRAPH_OT_select_circle (wmOperatorType *ot)
 
void GRAPH_OT_select_column (wmOperatorType *ot)
 
void GRAPH_OT_select_linked (wmOperatorType *ot)
 
void GRAPH_OT_select_more (wmOperatorType *ot)
 
void GRAPH_OT_select_less (wmOperatorType *ot)
 
void GRAPH_OT_select_leftright (wmOperatorType *ot)
 
void GRAPH_OT_select_key_handles (wmOperatorType *ot)
 
void GRAPH_OT_clickselect (wmOperatorType *ot)
 
void get_graph_keyframe_extents (bAnimContext *ac, float *xmin, float *xmax, float *ymin, float *ymax, bool do_sel_only, bool include_handles)
 
void GRAPH_OT_previewrange_set (wmOperatorType *ot)
 
void GRAPH_OT_view_all (wmOperatorType *ot)
 
void GRAPH_OT_view_selected (wmOperatorType *ot)
 
void GRAPH_OT_view_frame (wmOperatorType *ot)
 
void GRAPH_OT_click_insert (wmOperatorType *ot)
 
void GRAPH_OT_keyframe_insert (wmOperatorType *ot)
 
void GRAPH_OT_copy (wmOperatorType *ot)
 
void GRAPH_OT_paste (wmOperatorType *ot)
 
void GRAPH_OT_duplicate (wmOperatorType *ot)
 
void GRAPH_OT_delete (wmOperatorType *ot)
 
void GRAPH_OT_clean (wmOperatorType *ot)
 
void GRAPH_OT_blend_to_neighbor (wmOperatorType *ot)
 
void GRAPH_OT_breakdown (wmOperatorType *ot)
 
void GRAPH_OT_ease (wmOperatorType *ot)
 
void GRAPH_OT_blend_offset (wmOperatorType *ot)
 
void GRAPH_OT_blend_to_ease (wmOperatorType *ot)
 
void GRAPH_OT_match_slope (wmOperatorType *ot)
 
void GRAPH_OT_shear (wmOperatorType *ot)
 
void GRAPH_OT_scale_average (wmOperatorType *ot)
 
void GRAPH_OT_push_pull (wmOperatorType *ot)
 
void GRAPH_OT_time_offset (wmOperatorType *ot)
 
void GRAPH_OT_scale_from_neighbor (wmOperatorType *ot)
 
void GRAPH_OT_decimate (wmOperatorType *ot)
 
void GRAPH_OT_blend_to_default (wmOperatorType *ot)
 
void GRAPH_OT_butterworth_smooth (wmOperatorType *ot)
 
void GRAPH_OT_gaussian_smooth (wmOperatorType *ot)
 
void GRAPH_OT_bake_keys (wmOperatorType *ot)
 
void GRAPH_OT_keys_to_samples (wmOperatorType *ot)
 
void GRAPH_OT_samples_to_keys (wmOperatorType *ot)
 
void GRAPH_OT_sound_to_samples (wmOperatorType *ot)
 
void GRAPH_OT_smooth (wmOperatorType *ot)
 
void GRAPH_OT_euler_filter (wmOperatorType *ot)
 
void GRAPH_OT_handle_type (wmOperatorType *ot)
 
void GRAPH_OT_interpolation_type (wmOperatorType *ot)
 
void GRAPH_OT_extrapolation_type (wmOperatorType *ot)
 
void GRAPH_OT_easing_type (wmOperatorType *ot)
 
void GRAPH_OT_frame_jump (wmOperatorType *ot)
 
void GRAPH_OT_keyframe_jump (wmOperatorType *ot)
 
void GRAPH_OT_snap_cursor_value (wmOperatorType *ot)
 
void GRAPH_OT_snap (wmOperatorType *ot)
 
void GRAPH_OT_equalize_handles (wmOperatorType *ot)
 
void GRAPH_OT_mirror (wmOperatorType *ot)
 
void GRAPH_OT_fmodifier_add (wmOperatorType *ot)
 
void GRAPH_OT_fmodifier_copy (wmOperatorType *ot)
 
void GRAPH_OT_fmodifier_paste (wmOperatorType *ot)
 
void GRAPH_OT_driver_variables_copy (wmOperatorType *ot)
 
void GRAPH_OT_driver_variables_paste (wmOperatorType *ot)
 
void GRAPH_OT_driver_delete_invalid (wmOperatorType *ot)
 
void GRAPH_OT_ghost_curves_create (wmOperatorType *ot)
 
void GRAPH_OT_ghost_curves_clear (wmOperatorType *ot)
 
void graph_buttons_register (ARegionType *art)
 
bAnimListElemget_active_fcurve_channel (bAnimContext *ac)
 
bool graphop_visible_keyframes_poll (bContext *C)
 
bool graphop_editable_keyframes_poll (bContext *C)
 
bool graphop_active_fcurve_poll (bContext *C)
 
bool graphop_active_editable_fcurve_ctx_poll (bContext *C)
 
bool graphop_selected_fcurve_poll (bContext *C)
 
void graphedit_keymap (wmKeyConfig *keyconf)
 
void graphedit_operatortypes ()
 

Enumeration Type Documentation

◆ eGraphKey_SelectKeyHandles_Action

Enumerator
GRAPHKEYS_KEYHANDLESSEL_SELECT 
GRAPHKEYS_KEYHANDLESSEL_DESELECT 
GRAPHKEYS_KEYHANDLESSEL_KEEP 

Definition at line 80 of file graph_intern.hh.

◆ eGraphKeys_ColumnSelect_Mode

Enumerator
GRAPHKEYS_COLUMNSEL_KEYS 
GRAPHKEYS_COLUMNSEL_CFRA 
GRAPHKEYS_COLUMNSEL_MARKERS_COLUMN 
GRAPHKEYS_COLUMNSEL_MARKERS_BETWEEN 

Definition at line 88 of file graph_intern.hh.

◆ eGraphKeys_Equalize_Mode

Enumerator
GRAPHKEYS_EQUALIZE_LEFT 
GRAPHKEYS_EQUALIZE_RIGHT 
GRAPHKEYS_EQUALIZE_BOTH 

Definition at line 173 of file graph_intern.hh.

◆ eGraphKeys_LeftRightSelect_Mode

Enumerator
GRAPHKEYS_LRSEL_TEST 
GRAPHKEYS_LRSEL_LEFT 
GRAPHKEYS_LRSEL_RIGHT 

Definition at line 73 of file graph_intern.hh.

◆ eGraphKeys_Mirror_Mode

Enumerator
GRAPHKEYS_MIRROR_CFRA 
GRAPHKEYS_MIRROR_YAXIS 
GRAPHKEYS_MIRROR_XAXIS 
GRAPHKEYS_MIRROR_MARKER 
GRAPHKEYS_MIRROR_VALUE 

Definition at line 182 of file graph_intern.hh.

◆ eGraphKeys_Snap_Mode

Enumerator
GRAPHKEYS_SNAP_CFRA 
GRAPHKEYS_SNAP_NEAREST_FRAME 
GRAPHKEYS_SNAP_NEAREST_SECOND 
GRAPHKEYS_SNAP_NEAREST_MARKER 
GRAPHKEYS_SNAP_HORIZONTAL 
GRAPHKEYS_SNAP_VALUE 

Definition at line 161 of file graph_intern.hh.

Function Documentation

◆ deselect_graph_keys()

void deselect_graph_keys ( bAnimContext * ac,
bool test,
eEditKeyframes_Select sel,
bool do_channels )

◆ get_active_fcurve_channel()

bAnimListElem * get_active_fcurve_channel ( bAnimContext * ac)

Find 'active' F-Curve. It must be editable, since that's the purpose of these buttons (subject to change). We return the 'wrapper' since it contains valuable context info (about hierarchy), which will need to be freed when the caller is done with it.

Note
curve-visible flag isn't included, otherwise selecting a curve via list to edit is too cumbersome.

Definition at line 79 of file graph_utils.cc.

References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_ACTIVE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, BLI_remlink(), bAnimContext::data, bAnimContext::datatype, and ListBase::first.

Referenced by graph_fmodifier_copy_exec(), graph_panel_context(), graphkeys_click_insert_exec(), graphkeys_deselectall_exec(), and graphop_active_fcurve_poll().

◆ get_graph_keyframe_extents()

◆ graph_buttons_register()

◆ graph_draw_channel_names()

◆ graph_draw_curves()

void graph_draw_curves ( bAnimContext * ac,
SpaceGraph * sipo,
ARegion * region,
short sel )

◆ graph_draw_ghost_curves()

◆ GRAPH_OT_bake_keys()

◆ GRAPH_OT_blend_offset()

◆ GRAPH_OT_blend_to_default()

◆ GRAPH_OT_blend_to_ease()

◆ GRAPH_OT_blend_to_neighbor()

◆ GRAPH_OT_breakdown()

◆ GRAPH_OT_butterworth_smooth()

◆ GRAPH_OT_clean()

◆ GRAPH_OT_click_insert()

◆ GRAPH_OT_clickselect()

◆ GRAPH_OT_copy()

◆ GRAPH_OT_decimate()

◆ GRAPH_OT_delete()

◆ GRAPH_OT_driver_delete_invalid()

◆ GRAPH_OT_driver_variables_copy()

◆ GRAPH_OT_driver_variables_paste()

◆ GRAPH_OT_duplicate()

◆ GRAPH_OT_ease()

◆ GRAPH_OT_easing_type()

◆ GRAPH_OT_equalize_handles()

◆ GRAPH_OT_euler_filter()

◆ GRAPH_OT_extrapolation_type()

◆ GRAPH_OT_fmodifier_add()

◆ GRAPH_OT_fmodifier_copy()

◆ GRAPH_OT_fmodifier_paste()

◆ GRAPH_OT_frame_jump()

◆ GRAPH_OT_gaussian_smooth()

◆ GRAPH_OT_ghost_curves_clear()

◆ GRAPH_OT_ghost_curves_create()

◆ GRAPH_OT_handle_type()

◆ GRAPH_OT_interpolation_type()

◆ GRAPH_OT_keyframe_insert()

◆ GRAPH_OT_keyframe_jump()

◆ GRAPH_OT_keys_to_samples()

◆ GRAPH_OT_match_slope()

◆ GRAPH_OT_mirror()

◆ GRAPH_OT_paste()

◆ GRAPH_OT_previewrange_set()

◆ GRAPH_OT_push_pull()

◆ GRAPH_OT_samples_to_keys()

◆ GRAPH_OT_scale_average()

◆ GRAPH_OT_scale_from_neighbor()

◆ GRAPH_OT_select_all()

◆ GRAPH_OT_select_box()

◆ GRAPH_OT_select_circle()

◆ GRAPH_OT_select_column()

◆ GRAPH_OT_select_key_handles()

◆ GRAPH_OT_select_lasso()

◆ GRAPH_OT_select_leftright()

◆ GRAPH_OT_select_less()

◆ GRAPH_OT_select_linked()

◆ GRAPH_OT_select_more()

◆ GRAPH_OT_shear()

◆ GRAPH_OT_smooth()

◆ GRAPH_OT_snap()

◆ GRAPH_OT_snap_cursor_value()

◆ GRAPH_OT_sound_to_samples()

◆ GRAPH_OT_time_offset()

◆ GRAPH_OT_view_all()

◆ GRAPH_OT_view_frame()

◆ GRAPH_OT_view_selected()

◆ graphedit_keymap()

void graphedit_keymap ( wmKeyConfig * keyconf)

Definition at line 524 of file graph_ops.cc.

References RGN_TYPE_WINDOW, SPACE_GRAPH, and WM_keymap_ensure().

Referenced by ED_spacetype_ipo().

◆ graphedit_operatortypes()

void graphedit_operatortypes ( )

Definition at line 420 of file graph_ops.cc.

References GRAPH_OT_bake_keys(), GRAPH_OT_blend_offset(), GRAPH_OT_blend_to_default(), GRAPH_OT_blend_to_ease(), GRAPH_OT_blend_to_neighbor(), GRAPH_OT_breakdown(), GRAPH_OT_butterworth_smooth(), GRAPH_OT_clean(), GRAPH_OT_click_insert(), GRAPH_OT_clickselect(), GRAPH_OT_copy(), GRAPH_OT_cursor_set(), GRAPH_OT_decimate(), GRAPH_OT_delete(), GRAPH_OT_driver_delete_invalid(), GRAPH_OT_driver_variables_copy(), GRAPH_OT_driver_variables_paste(), GRAPH_OT_duplicate(), GRAPH_OT_ease(), GRAPH_OT_easing_type(), GRAPH_OT_equalize_handles(), GRAPH_OT_euler_filter(), GRAPH_OT_extrapolation_type(), GRAPH_OT_fmodifier_add(), GRAPH_OT_fmodifier_copy(), GRAPH_OT_fmodifier_paste(), GRAPH_OT_frame_jump(), GRAPH_OT_gaussian_smooth(), GRAPH_OT_ghost_curves_clear(), GRAPH_OT_ghost_curves_create(), GRAPH_OT_handle_type(), GRAPH_OT_hide(), GRAPH_OT_interpolation_type(), GRAPH_OT_keyframe_insert(), GRAPH_OT_keyframe_jump(), GRAPH_OT_keys_to_samples(), GRAPH_OT_match_slope(), GRAPH_OT_mirror(), GRAPH_OT_paste(), GRAPH_OT_previewrange_set(), GRAPH_OT_push_pull(), GRAPH_OT_reveal(), GRAPH_OT_samples_to_keys(), GRAPH_OT_scale_average(), GRAPH_OT_scale_from_neighbor(), GRAPH_OT_select_all(), GRAPH_OT_select_box(), GRAPH_OT_select_circle(), GRAPH_OT_select_column(), GRAPH_OT_select_key_handles(), GRAPH_OT_select_lasso(), GRAPH_OT_select_leftright(), GRAPH_OT_select_less(), GRAPH_OT_select_linked(), GRAPH_OT_select_more(), GRAPH_OT_shear(), GRAPH_OT_smooth(), GRAPH_OT_snap(), GRAPH_OT_snap_cursor_value(), GRAPH_OT_sound_to_samples(), GRAPH_OT_time_offset(), GRAPH_OT_view_all(), GRAPH_OT_view_frame(), GRAPH_OT_view_selected(), and WM_operatortype_append().

Referenced by ED_spacetype_ipo().

◆ graphop_active_editable_fcurve_ctx_poll()

bool graphop_active_editable_fcurve_ctx_poll ( bContext * C)

Has active F-Curve in the context that's editable.

Definition at line 261 of file graph_utils.cc.

References CTX_data_pointer_get_type(), PointerRNA::data, and ptr.

Referenced by GRAPH_OT_driver_variables_copy(), and GRAPH_OT_driver_variables_paste().

◆ graphop_active_fcurve_poll()

◆ graphop_editable_keyframes_poll()

◆ graphop_selected_fcurve_poll()

◆ graphop_visible_keyframes_poll()