Blender  V3.3
Enumerations | Functions
graph_intern.h 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  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 (struct bContext *C, struct bAnimContext *ac, struct ARegion *region)
 
void graph_draw_curves (struct bAnimContext *ac, struct SpaceGraph *sipo, struct ARegion *region, short sel)
 
void graph_draw_ghost_curves (struct bAnimContext *ac, struct SpaceGraph *sipo, struct ARegion *region)
 
void deselect_graph_keys (struct bAnimContext *ac, bool test, short sel, bool do_channels)
 
void GRAPH_OT_select_all (struct wmOperatorType *ot)
 
void GRAPH_OT_select_box (struct wmOperatorType *ot)
 
void GRAPH_OT_select_lasso (struct wmOperatorType *ot)
 
void GRAPH_OT_select_circle (struct wmOperatorType *ot)
 
void GRAPH_OT_select_column (struct wmOperatorType *ot)
 
void GRAPH_OT_select_linked (struct wmOperatorType *ot)
 
void GRAPH_OT_select_more (struct wmOperatorType *ot)
 
void GRAPH_OT_select_less (struct wmOperatorType *ot)
 
void GRAPH_OT_select_leftright (struct wmOperatorType *ot)
 
void GRAPH_OT_clickselect (struct wmOperatorType *ot)
 
void get_graph_keyframe_extents (struct bAnimContext *ac, float *xmin, float *xmax, float *ymin, float *ymax, bool do_sel_only, bool include_handles)
 
void GRAPH_OT_previewrange_set (struct wmOperatorType *ot)
 
void GRAPH_OT_view_all (struct wmOperatorType *ot)
 
void GRAPH_OT_view_selected (struct wmOperatorType *ot)
 
void GRAPH_OT_view_frame (struct wmOperatorType *ot)
 
void GRAPH_OT_click_insert (struct wmOperatorType *ot)
 
void GRAPH_OT_keyframe_insert (struct wmOperatorType *ot)
 
void GRAPH_OT_copy (struct wmOperatorType *ot)
 
void GRAPH_OT_paste (struct wmOperatorType *ot)
 
void GRAPH_OT_duplicate (struct wmOperatorType *ot)
 
void GRAPH_OT_delete (struct wmOperatorType *ot)
 
void GRAPH_OT_clean (struct wmOperatorType *ot)
 
void GRAPH_OT_blend_to_neighbor (struct wmOperatorType *ot)
 
void GRAPH_OT_breakdown (struct wmOperatorType *ot)
 
void GRAPH_OT_decimate (struct wmOperatorType *ot)
 
void GRAPH_OT_blend_to_default (struct wmOperatorType *ot)
 
void GRAPH_OT_sample (struct wmOperatorType *ot)
 
void GRAPH_OT_bake (struct wmOperatorType *ot)
 
void GRAPH_OT_unbake (struct wmOperatorType *ot)
 
void GRAPH_OT_sound_bake (struct wmOperatorType *ot)
 
void GRAPH_OT_smooth (struct wmOperatorType *ot)
 
void GRAPH_OT_euler_filter (struct wmOperatorType *ot)
 
void GRAPH_OT_handle_type (struct wmOperatorType *ot)
 
void GRAPH_OT_interpolation_type (struct wmOperatorType *ot)
 
void GRAPH_OT_extrapolation_type (struct wmOperatorType *ot)
 
void GRAPH_OT_easing_type (struct wmOperatorType *ot)
 
void GRAPH_OT_frame_jump (struct wmOperatorType *ot)
 
void GRAPH_OT_snap_cursor_value (struct wmOperatorType *ot)
 
void GRAPH_OT_snap (struct wmOperatorType *ot)
 
void GRAPH_OT_equalize_handles (struct wmOperatorType *ot)
 
void GRAPH_OT_mirror (struct wmOperatorType *ot)
 
void GRAPH_OT_fmodifier_add (struct wmOperatorType *ot)
 
void GRAPH_OT_fmodifier_copy (struct wmOperatorType *ot)
 
void GRAPH_OT_fmodifier_paste (struct wmOperatorType *ot)
 
void GRAPH_OT_driver_variables_copy (struct wmOperatorType *ot)
 
void GRAPH_OT_driver_variables_paste (struct wmOperatorType *ot)
 
void GRAPH_OT_driver_delete_invalid (struct wmOperatorType *ot)
 
void GRAPH_OT_ghost_curves_create (struct wmOperatorType *ot)
 
void GRAPH_OT_ghost_curves_clear (struct wmOperatorType *ot)
 
void graph_buttons_register (struct ARegionType *art)
 
struct bAnimListElemget_active_fcurve_channel (struct bAnimContext *ac)
 
bool graphop_visible_keyframes_poll (struct bContext *C)
 
bool graphop_editable_keyframes_poll (struct bContext *C)
 
bool graphop_active_fcurve_poll (struct bContext *C)
 
bool graphop_active_editable_fcurve_ctx_poll (struct bContext *C)
 
bool graphop_selected_fcurve_poll (struct bContext *C)
 
void graphedit_keymap (struct wmKeyConfig *keyconf)
 
void graphedit_operatortypes (void)
 

Enumeration Type Documentation

◆ eGraphKeys_ColumnSelect_Mode

Enumerator
GRAPHKEYS_COLUMNSEL_KEYS 
GRAPHKEYS_COLUMNSEL_CFRA 
GRAPHKEYS_COLUMNSEL_MARKERS_COLUMN 
GRAPHKEYS_COLUMNSEL_MARKERS_BETWEEN 

Definition at line 78 of file graph_intern.h.

◆ eGraphKeys_Equalize_Mode

Enumerator
GRAPHKEYS_EQUALIZE_LEFT 
GRAPHKEYS_EQUALIZE_RIGHT 
GRAPHKEYS_EQUALIZE_BOTH 

Definition at line 151 of file graph_intern.h.

◆ eGraphKeys_LeftRightSelect_Mode

Enumerator
GRAPHKEYS_LRSEL_TEST 
GRAPHKEYS_LRSEL_LEFT 
GRAPHKEYS_LRSEL_RIGHT 

Definition at line 71 of file graph_intern.h.

◆ eGraphKeys_Mirror_Mode

Enumerator
GRAPHKEYS_MIRROR_CFRA 
GRAPHKEYS_MIRROR_YAXIS 
GRAPHKEYS_MIRROR_XAXIS 
GRAPHKEYS_MIRROR_MARKER 
GRAPHKEYS_MIRROR_VALUE 

Definition at line 160 of file graph_intern.h.

◆ 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 139 of file graph_intern.h.

Function Documentation

◆ deselect_graph_keys()

void deselect_graph_keys ( struct bAnimContext ac,
bool  test,
short  sel,
bool  do_channels 
)

Deselects keyframes in the Graph Editor

  • This is called by the deselect all operator, as well as other ones!
  • test: check if select or deselect all
  • sel: how to select keyframes 0 = deselect 1 = select 2 = invert
  • do_channels: whether to affect selection status of channels

Definition at line 335 of file graph_select.c.

References filter(), NULL, and bAnimContext::sl.

Referenced by graph_circle_select_exec(), graphkeys_box_select_exec(), graphkeys_click_insert_exec(), graphkeys_deselectall_exec(), graphkeys_lassoselect_exec(), graphkeys_mselect_column(), graphkeys_select_leftright(), and mouse_graph_keys().

◆ get_active_fcurve_channel()

struct bAnimListElem* get_active_fcurve_channel ( struct 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 81 of file graph_utils.c.

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

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()

void get_graph_keyframe_extents ( struct bAnimContext ac,
float xmin,
float xmax,
float ymin,
float ymax,
bool  do_sel_only,
bool  include_handles 
)

Get the min/max keyframes.

Note
it should return total bound-box, filter for selection only can be argument.

Definition at line 43 of file graph_view.c.

References NULL, scene, bAnimContext::scene, and bAnimContext::sl.

Referenced by graph_main_region_draw(), graphkeys_previewrange_exec(), and graphkeys_viewall().

◆ graph_buttons_register()

void graph_buttons_register ( struct ARegionType art)

◆ graph_draw_channel_names()

void graph_draw_channel_names ( struct bContext C,
struct bAnimContext ac,
struct ARegion region 
)

◆ graph_draw_curves()

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

◆ graph_draw_ghost_curves()

void graph_draw_ghost_curves ( struct bAnimContext ac,
struct SpaceGraph sipo,
struct ARegion region 
)

◆ GRAPH_OT_bake()

void GRAPH_OT_bake ( struct wmOperatorType ot)

◆ GRAPH_OT_blend_to_default()

void GRAPH_OT_blend_to_default ( struct wmOperatorType ot)

◆ GRAPH_OT_blend_to_neighbor()

void GRAPH_OT_blend_to_neighbor ( struct wmOperatorType ot)

◆ GRAPH_OT_breakdown()

void GRAPH_OT_breakdown ( struct wmOperatorType ot)

◆ GRAPH_OT_clean()

void GRAPH_OT_clean ( struct wmOperatorType ot)

◆ GRAPH_OT_click_insert()

void GRAPH_OT_click_insert ( struct wmOperatorType ot)

◆ GRAPH_OT_clickselect()

void GRAPH_OT_clickselect ( struct wmOperatorType ot)

◆ GRAPH_OT_copy()

void GRAPH_OT_copy ( struct wmOperatorType ot)

◆ GRAPH_OT_decimate()

void GRAPH_OT_decimate ( struct wmOperatorType ot)

◆ GRAPH_OT_delete()

void GRAPH_OT_delete ( struct wmOperatorType ot)

◆ GRAPH_OT_driver_delete_invalid()

void GRAPH_OT_driver_delete_invalid ( struct wmOperatorType ot)

◆ GRAPH_OT_driver_variables_copy()

void GRAPH_OT_driver_variables_copy ( struct wmOperatorType ot)

◆ GRAPH_OT_driver_variables_paste()

void GRAPH_OT_driver_variables_paste ( struct wmOperatorType ot)

◆ GRAPH_OT_duplicate()

void GRAPH_OT_duplicate ( struct wmOperatorType ot)

◆ GRAPH_OT_easing_type()

void GRAPH_OT_easing_type ( struct wmOperatorType ot)

◆ GRAPH_OT_equalize_handles()

void GRAPH_OT_equalize_handles ( struct wmOperatorType ot)

◆ GRAPH_OT_euler_filter()

void GRAPH_OT_euler_filter ( struct wmOperatorType ot)

◆ GRAPH_OT_extrapolation_type()

void GRAPH_OT_extrapolation_type ( struct wmOperatorType ot)

◆ GRAPH_OT_fmodifier_add()

void GRAPH_OT_fmodifier_add ( struct wmOperatorType ot)

◆ GRAPH_OT_fmodifier_copy()

void GRAPH_OT_fmodifier_copy ( struct wmOperatorType ot)

◆ GRAPH_OT_fmodifier_paste()

void GRAPH_OT_fmodifier_paste ( struct wmOperatorType ot)

◆ GRAPH_OT_frame_jump()

void GRAPH_OT_frame_jump ( struct wmOperatorType ot)

◆ GRAPH_OT_ghost_curves_clear()

void GRAPH_OT_ghost_curves_clear ( struct wmOperatorType ot)

◆ GRAPH_OT_ghost_curves_create()

void GRAPH_OT_ghost_curves_create ( struct wmOperatorType ot)

◆ GRAPH_OT_handle_type()

void GRAPH_OT_handle_type ( struct wmOperatorType ot)

◆ GRAPH_OT_interpolation_type()

void GRAPH_OT_interpolation_type ( struct wmOperatorType ot)

◆ GRAPH_OT_keyframe_insert()

void GRAPH_OT_keyframe_insert ( struct wmOperatorType ot)

◆ GRAPH_OT_mirror()

void GRAPH_OT_mirror ( struct wmOperatorType ot)

◆ GRAPH_OT_paste()

void GRAPH_OT_paste ( struct wmOperatorType ot)

◆ GRAPH_OT_previewrange_set()

void GRAPH_OT_previewrange_set ( struct wmOperatorType ot)

◆ GRAPH_OT_sample()

void GRAPH_OT_sample ( struct wmOperatorType ot)

◆ GRAPH_OT_select_all()

void GRAPH_OT_select_all ( struct wmOperatorType ot)

◆ GRAPH_OT_select_box()

void GRAPH_OT_select_box ( struct wmOperatorType ot)

◆ GRAPH_OT_select_circle()

void GRAPH_OT_select_circle ( struct wmOperatorType ot)

◆ GRAPH_OT_select_column()

void GRAPH_OT_select_column ( struct wmOperatorType ot)

◆ GRAPH_OT_select_lasso()

void GRAPH_OT_select_lasso ( struct wmOperatorType ot)

◆ GRAPH_OT_select_leftright()

void GRAPH_OT_select_leftright ( struct wmOperatorType ot)

◆ GRAPH_OT_select_less()

void GRAPH_OT_select_less ( struct wmOperatorType ot)

◆ GRAPH_OT_select_linked()

void GRAPH_OT_select_linked ( struct wmOperatorType ot)

◆ GRAPH_OT_select_more()

void GRAPH_OT_select_more ( struct wmOperatorType ot)

◆ GRAPH_OT_smooth()

void GRAPH_OT_smooth ( struct wmOperatorType ot)

◆ GRAPH_OT_snap()

void GRAPH_OT_snap ( struct wmOperatorType ot)

◆ GRAPH_OT_snap_cursor_value()

void GRAPH_OT_snap_cursor_value ( struct wmOperatorType ot)

◆ GRAPH_OT_sound_bake()

void GRAPH_OT_sound_bake ( struct wmOperatorType ot)

◆ GRAPH_OT_unbake()

void GRAPH_OT_unbake ( struct wmOperatorType ot)

◆ GRAPH_OT_view_all()

void GRAPH_OT_view_all ( struct wmOperatorType ot)

◆ GRAPH_OT_view_frame()

void GRAPH_OT_view_frame ( struct wmOperatorType ot)

◆ GRAPH_OT_view_selected()

void GRAPH_OT_view_selected ( struct wmOperatorType ot)

◆ graphedit_keymap()

void graphedit_keymap ( struct wmKeyConfig keyconf)

Definition at line 508 of file graph_ops.c.

References SPACE_GRAPH, and WM_keymap_ensure().

Referenced by ED_spacetype_ipo().

◆ graphedit_operatortypes()

void graphedit_operatortypes ( void  )

◆ graphop_active_editable_fcurve_ctx_poll()

bool graphop_active_editable_fcurve_ctx_poll ( struct bContext C)

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

Definition at line 262 of file graph_utils.c.

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

Referenced by GRAPH_OT_driver_variables_copy(), and GRAPH_OT_driver_variables_paste().

◆ graphop_active_fcurve_poll()

bool graphop_active_fcurve_poll ( struct bContext C)

◆ graphop_editable_keyframes_poll()

bool graphop_editable_keyframes_poll ( struct bContext C)

◆ graphop_selected_fcurve_poll()

bool graphop_selected_fcurve_poll ( struct bContext C)

◆ graphop_visible_keyframes_poll()

bool graphop_visible_keyframes_poll ( struct bContext C)