Blender V4.3
graph_ops.cc File Reference
#include <cmath>
#include <cstdlib>
#include "DNA_scene_types.h"
#include "BLI_math_base.h"
#include "BLI_utildefines.h"
#include "BKE_context.hh"
#include "BKE_global.hh"
#include "UI_view2d.hh"
#include "ED_anim_api.hh"
#include "ED_screen.hh"
#include "graph_intern.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "DEG_depsgraph.hh"
#include "WM_api.hh"
#include "WM_types.hh"

Go to the source code of this file.

Functions

Set Cursor

The 'cursor' in the Graph Editor consists of two parts: 1) Current Frame Indicator (as per ANIM_OT_change_frame) 2) Value Indicator (stored per Graph Editor instance)

static bool graphview_cursor_poll (bContext *C)
 
static void graphview_cursor_apply (bContext *C, wmOperator *op)
 
static int graphview_cursor_exec (bContext *C, wmOperator *op)
 
static void graphview_cursor_setprops (bContext *C, wmOperator *op, const wmEvent *event)
 
static int graphview_cursor_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
static int graphview_cursor_modal (bContext *C, wmOperator *op, const wmEvent *event)
 
static void GRAPH_OT_cursor_set (wmOperatorType *ot)
 
Hide/Reveal
static int graphview_curves_hide_exec (bContext *C, wmOperator *op)
 
static void GRAPH_OT_hide (wmOperatorType *ot)
 
static int graphview_curves_reveal_exec (bContext *C, wmOperator *op)
 
static void GRAPH_OT_reveal (wmOperatorType *ot)
 
Registration: operator types
void graphedit_operatortypes ()
 
void ED_operatormacros_graph ()
 
Registration: Key-Maps
void graphedit_keymap (wmKeyConfig *keyconf)
 

Function Documentation

◆ ED_operatormacros_graph()

◆ GRAPH_OT_cursor_set()

◆ GRAPH_OT_hide()

◆ GRAPH_OT_reveal()

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

◆ graphview_cursor_apply()

◆ graphview_cursor_exec()

static int graphview_cursor_exec ( bContext * C,
wmOperator * op )
static

Definition at line 102 of file graph_ops.cc.

References graphview_cursor_apply(), and OPERATOR_FINISHED.

Referenced by GRAPH_OT_cursor_set().

◆ graphview_cursor_invoke()

static int graphview_cursor_invoke ( bContext * C,
wmOperator * op,
const wmEvent * event )
static

◆ graphview_cursor_modal()

◆ graphview_cursor_poll()

static bool graphview_cursor_poll ( bContext * C)
static

Definition at line 46 of file graph_ops.cc.

References ED_operator_graphedit_active(), and G.

Referenced by GRAPH_OT_cursor_set().

◆ graphview_cursor_setprops()

static void graphview_cursor_setprops ( bContext * C,
wmOperator * op,
const wmEvent * event )
static

◆ graphview_curves_hide_exec()

◆ graphview_curves_reveal_exec()