|
Blender V4.3
|
#include <cmath>#include "MEM_guardedalloc.h"#include "BLI_listbase.h"#include "BLI_rect.h"#include "DNA_anim_types.h"#include "DNA_scene_types.h"#include "DNA_space_types.h"#include "RNA_access.hh"#include "RNA_define.hh"#include "BKE_context.hh"#include "BKE_fcurve.hh"#include "BKE_nla.hh"#include "UI_view2d.hh"#include "ED_anim_api.hh"#include "ED_markers.hh"#include "ED_screen.hh"#include "WM_api.hh"#include "WM_types.hh"#include "graph_intern.hh"Go to the source code of this file.
Functions | |
Calculate Range | |
| void | get_graph_keyframe_extents (bAnimContext *ac, float *xmin, float *xmax, float *ymin, float *ymax, const bool do_sel_only, const bool include_handles) |
Automatic Preview-Range Operator | |
| static int | graphkeys_previewrange_exec (bContext *C, wmOperator *) |
| void | GRAPH_OT_previewrange_set (wmOperatorType *ot) |
View-All Operator | |
| static int | graphkeys_viewall (bContext *C, const bool do_sel_only, const bool include_handles, const int smooth_viewtx) |
| static int | graphkeys_viewall_exec (bContext *C, wmOperator *op) |
| static int | graphkeys_view_selected_exec (bContext *C, wmOperator *op) |
| void | GRAPH_OT_view_all (wmOperatorType *ot) |
| void | GRAPH_OT_view_selected (wmOperatorType *ot) |
View Frame Operator | |
| static int | graphkeys_view_frame_exec (bContext *C, wmOperator *op) |
| void | GRAPH_OT_view_frame (wmOperatorType *ot) |
Create Ghost-Curves Operator | |
This operator samples the data of the selected F-Curves to F-Points, storing them as 'ghost curves' in the active Graph Editor. | |
| static void | create_ghost_curves (bAnimContext *ac, int start, int end) |
| static int | graphkeys_create_ghostcurves_exec (bContext *C, wmOperator *) |
| void | GRAPH_OT_ghost_curves_create (wmOperatorType *ot) |
Clear Ghost-Curves Operator | |
This operator clears the 'ghost curves' for the active Graph Editor. | |
| static int | graphkeys_clear_ghostcurves_exec (bContext *C, wmOperator *) |
| void | GRAPH_OT_ghost_curves_clear (wmOperatorType *ot) |
|
static |
Definition at line 383 of file graph_view.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_get_normalization_flags(), ANIM_nla_mapping_get(), ANIM_unit_mapping_get_factor(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, BKE_fcurve_create(), BKE_fcurves_free(), BKE_nla_tweakedit_remap(), BLI_addtail(), FCurve::color, bAnimContext::data, bAnimContext::datatype, FCurve::driver, fcurve_samplingcb_evalcurve(), filter(), FCurve::fpt, SpaceGraph_Runtime::ghost_curves, Scene::id, LISTBASE_FOREACH, MEM_callocN, NLATIME_CONVERT_UNMAP, printf, SpaceGraph::runtime, bAnimContext::scene, bAnimContext::sl, FCurve::totvert, and FPoint::vec.
Referenced by graphkeys_create_ghostcurves_exec().
| void get_graph_keyframe_extents | ( | bAnimContext * | ac, |
| float * | xmin, | ||
| float * | xmax, | ||
| float * | ymin, | ||
| float * | ymax, | ||
| bool | do_sel_only, | ||
| bool | include_handles ) |
Get the min/max keyframes.
Definition at line 42 of file graph_view.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_get_normalization_flags(), ANIM_nla_mapping_get(), ANIM_unit_mapping_get_factor(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, BKE_fcurve_calc_bounds(), BKE_nla_tweakedit_remap(), bounds(), bAnimContext::data, bAnimContext::datatype, fabsf, filter(), ListBase::first, float, Scene::id, LISTBASE_FOREACH, NLATIME_CONVERT_MAP, PEFRA, PSFRA, bAnimContext::scene, bAnimContext::sl, and USER_ANIM_ONLY_SHOW_SELECTED_CURVE_KEYS.
Referenced by graph_main_region_draw(), graphkeys_previewrange_exec(), and graphkeys_viewall().
| void GRAPH_OT_ghost_curves_clear | ( | wmOperatorType * | ot | ) |
Definition at line 532 of file graph_view.cc.
References wmOperatorType::description, ED_operator_graphedit_active(), wmOperatorType::exec, wmOperatorType::flag, graphkeys_clear_ghostcurves_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_ghost_curves_create | ( | wmOperatorType * | ot | ) |
Definition at line 482 of file graph_view.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, graphkeys_create_ghostcurves_exec(), graphop_visible_keyframes_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_previewrange_set | ( | wmOperatorType * | ot | ) |
Definition at line 218 of file graph_view.cc.
References wmOperatorType::description, ED_operator_graphedit_active(), wmOperatorType::exec, wmOperatorType::flag, graphkeys_previewrange_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 299 of file graph_view.cc.
References wmOperatorType::description, ED_operator_graphedit_active(), wmOperatorType::exec, wmOperatorType::flag, graphkeys_viewall_exec(), wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_view_frame | ( | wmOperatorType * | ot | ) |
Definition at line 358 of file graph_view.cc.
References wmOperatorType::description, ED_operator_graphedit_active(), wmOperatorType::exec, wmOperatorType::flag, graphkeys_view_frame_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by graphedit_operatortypes().
| void GRAPH_OT_view_selected | ( | wmOperatorType * | ot | ) |
Definition at line 322 of file graph_view.cc.
References wmOperatorType::description, ED_operator_graphedit_active(), wmOperatorType::exec, wmOperatorType::flag, graphkeys_view_selected_exec(), wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by graphedit_operatortypes().
|
static |
Definition at line 508 of file graph_view.cc.
References ANIM_animdata_get_context(), BKE_fcurves_free(), BLI_listbase_is_empty(), CTX_wm_area(), ED_area_tag_redraw(), SpaceGraph_Runtime::ghost_curves, OPERATOR_CANCELLED, OPERATOR_FINISHED, SpaceGraph::runtime, and bAnimContext::sl.
Referenced by GRAPH_OT_ghost_curves_clear().
|
static |
Definition at line 456 of file graph_view.cc.
References ANIM_animdata_get_context(), create_ghost_curves(), CTX_wm_area(), View2D::cur, ED_area_tag_redraw(), int, OPERATOR_CANCELLED, OPERATOR_FINISHED, bAnimContext::region, ARegion::v2d, rctf::xmax, and rctf::xmin.
Referenced by GRAPH_OT_ghost_curves_create().
|
static |
Definition at line 189 of file graph_view.cc.
References ANIM_animdata_get_context(), get_graph_keyframe_extents(), max, min, NC_SCENE, ND_FRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, round_fl_to_int(), bAnimContext::scene, scene, SCER_PRV_RANGE, and WM_event_add_notifier().
Referenced by GRAPH_OT_previewrange_set().
|
static |
Definition at line 351 of file graph_view.cc.
References ANIM_center_frame(), OPERATOR_FINISHED, and WM_operator_smooth_viewtx_get().
Referenced by GRAPH_OT_view_frame().
|
static |
Definition at line 288 of file graph_view.cc.
References graphkeys_viewall(), wmOperator::ptr, RNA_boolean_get(), and WM_operator_smooth_viewtx_get().
Referenced by GRAPH_OT_view_selected().
|
static |
Definition at line 240 of file graph_view.cc.
References ANIM_animdata_get_context(), ANIM_frame_range_view2d_add_xmargin(), BLI_listbase_is_empty(), BLI_rctf_pad_y(), BLI_rctf_resize_y(), BLI_rctf_size_y(), ED_context_get_markers(), get_graph_keyframe_extents(), OPERATOR_CANCELLED, OPERATOR_FINISHED, bAnimContext::region, UI_MARKER_MARGIN_Y, UI_TIME_SCRUB_MARGIN_Y, UI_view2d_smooth_view(), ARegion::v2d, V2D_SCROLL_HANDLE_HEIGHT, ARegion::winy, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by graphkeys_view_selected_exec(), and graphkeys_viewall_exec().
|
static |
Definition at line 279 of file graph_view.cc.
References graphkeys_viewall(), wmOperator::ptr, RNA_boolean_get(), and WM_operator_smooth_viewtx_get().
Referenced by GRAPH_OT_view_all().