|
Blender V4.3
|
#include <cstdio>#include <cstring>#include "DNA_anim_types.h"#include "DNA_collection_types.h"#include "DNA_scene_types.h"#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_math_color.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_fcurve.hh"#include "BKE_lib_query.hh"#include "BKE_lib_remap.hh"#include "BKE_screen.hh"#include "ED_anim_api.hh"#include "ED_markers.hh"#include "ED_screen.hh"#include "ED_space_api.hh"#include "ED_time_scrub_ui.hh"#include "GPU_immediate.hh"#include "GPU_state.hh"#include "WM_api.hh"#include "WM_message.hh"#include "WM_types.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "UI_interface.hh"#include "UI_resources.hh"#include "UI_view2d.hh"#include "BLO_read_write.hh"#include "graph_intern.hh"Go to the source code of this file.
Definition at line 185 of file space_graph.cc.
References View2D::cur, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformThemeColorShadeAlpha(), immVertexFormat(), pos, TH_BACK, rctf::ymax, and rctf::ymin.
Referenced by graph_main_region_draw().
| void ED_spacetype_ipo | ( | ) |
Definition at line 914 of file space_graph.cc.
References BKE_spacetype_register(), BLI_addhead(), ARegionType::draw, ARegionType::draw_overlay, ED_area_type_hud(), ED_KEYMAP_ANIMATION, ED_KEYMAP_FRAMES, ED_KEYMAP_HEADER, ED_KEYMAP_UI, ED_KEYMAP_VIEW2D, graph_buttons_region_draw(), graph_buttons_region_init(), graph_buttons_register(), graph_channel_region_draw(), graph_channel_region_init(), graph_create(), graph_duplicate(), graph_foreach_id(), graph_free(), graph_header_region_draw(), graph_header_region_init(), graph_id_remap(), graph_init(), graph_listener(), graph_main_region_draw(), graph_main_region_draw_overlay(), graph_main_region_init(), graph_refresh(), graph_region_listener(), graph_region_message_subscribe(), graph_space_blend_read_data(), graph_space_blend_write(), graph_space_icon_get(), graph_space_name_get(), graph_space_subtype_get(), graph_space_subtype_item_extend(), graph_space_subtype_set(), graphedit_keymap(), graphedit_operatortypes(), HEADERY, ARegionType::init, ARegionType::keymapflag, ARegionType::listener, MEM_callocN, ARegionType::message_subscribe, ARegionType::prefsizex, ARegionType::prefsizey, ARegionType::regionid, RGN_TYPE_CHANNELS, RGN_TYPE_HEADER, RGN_TYPE_UI, RGN_TYPE_WINDOW, SPACE_GRAPH, STRNCPY, UI_SIDEBAR_PANEL_WIDTH, and V2D_SCROLL_WIDTH.
Referenced by ED_spacetypes_init().
Definition at line 437 of file space_graph.cc.
References ED_region_panels().
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 427 of file space_graph.cc.
References wmWindowManager::defaultconf, ED_region_panels_init(), RGN_TYPE_WINDOW, SPACE_GRAPH, WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_ipo().
Definition at line 381 of file space_graph.cc.
References bAnimContext::ads, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, bAnimContext::data, bAnimContext::datatype, ED_time_scrub_channel_search_draw(), graph_draw_channel_names(), set_v2d_height(), TH_BACK, UI_ThemeClearColor(), UI_view2d_scrollers_draw(), UI_view2d_view_ortho(), and UI_view2d_view_restore().
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 352 of file space_graph.cc.
References wmWindowManager::defaultconf, RGN_TYPE_WINDOW, SPACE_EMPTY, SPACE_GRAPH, UI_view2d_region_reinit(), V2D_COMMONVIEW_LIST, V2D_SCROLL_BOTTOM, V2D_SCROLL_HORIZONTAL_HIDE, V2D_SCROLL_LEFT, V2D_SCROLL_RIGHT, V2D_SCROLL_TOP, V2D_SCROLL_VERTICAL_HIDE, WM_event_add_keymap_handler(), WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_ipo().
Definition at line 55 of file space_graph.cc.
References SpaceGraph::ads, ADS_FILTER_ONLYSEL, BLI_addtail(), bDopeSheet::filterflag, SpaceGraph::flag, float, FLT_MAX, MAXFRAMEF, MEM_callocN, SpaceGraph::regionbase, RGN_ALIGN_BOTTOM, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_TYPE_CHANNELS, RGN_TYPE_HEADER, RGN_TYPE_UI, RGN_TYPE_WINDOW, SIPO_SHOW_MARKERS, bDopeSheet::source, SPACE_GRAPH, SpaceGraph::spacetype, USER_HEADER_BOTTOM, V2D_SCROLL_BOTTOM, V2D_SCROLL_HORIZONTAL_HANDLES, V2D_SCROLL_RIGHT, and V2D_SCROLL_VERTICAL_HANDLES.
Referenced by ED_spacetype_ipo().
Definition at line 157 of file space_graph.cc.
References SpaceGraph::ads, BLI_duplicatelist(), SpaceGraph_Runtime::ghost_curves, MEM_dupallocN, and SpaceGraph::runtime.
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 833 of file space_graph.cc.
References SpaceGraph::ads, BKE_LIB_FOREACHID_PROCESS_ID, BKE_LIB_FOREACHID_PROCESS_IDSUPER, BKE_lib_query_foreachid_process_flags_get(), bDopeSheet::filter_grp, SpaceGraph_Runtime::flag, IDWALK_CB_DIRECT_WEAK_LINK, IDWALK_READONLY, SpaceGraph::runtime, SIPO_RUNTIME_FLAG_NEED_CHAN_SYNC_COLOR, and bDopeSheet::source.
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 123 of file space_graph.cc.
References SpaceGraph::ads, BKE_fcurves_free(), BLI_freelistN(), bDopeSheet::chanbase, ListBase::first, SpaceGraph_Runtime::ghost_curves, MEM_freeN(), and SpaceGraph::runtime.
Referenced by ED_spacetype_ipo().
Definition at line 421 of file space_graph.cc.
References ED_region_header().
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 416 of file space_graph.cc.
References ED_region_header_init().
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 820 of file space_graph.cc.
References SpaceGraph::ads, blender::bke::id::IDRemapper::apply(), bDopeSheet::filter_grp, ID_REMAP_APPLY_DEFAULT, and bDopeSheet::source.
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 138 of file space_graph.cc.
References SpaceGraph::ads, ED_area_tag_refresh(), MEM_callocN, bDopeSheet::source, WM_window_find_by_area(), and WM_window_get_active_scene().
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 570 of file space_graph.cc.
References wmNotifier::action, wmNotifier::category, wmNotifier::data, ED_area_tag_redraw(), ED_area_tag_refresh(), ELEM, SpaceGraph_Runtime::flag, NA_SELECTED, NC_ANIMATION, NC_NODE, NC_OBJECT, NC_SCENE, NC_SPACE, NC_WINDOW, ND_ANIMCHAN, ND_BONE_ACTIVE, ND_BONE_SELECT, ND_KEYFRAME, ND_KEYS, ND_OB_ACTIVE, ND_OB_SELECT, ND_SPACE_GRAPH, ND_TRANSFORM, params, SpaceGraph::runtime, SIPO_RUNTIME_FLAG_NEED_CHAN_SYNC, and SIPO_RUNTIME_FLAG_NEED_CHAN_SYNC_COLOR.
Referenced by ED_spacetype_ipo().
Definition at line 206 of file space_graph.cc.
References ANIM_animdata_get_context(), ANIM_draw_framerange(), ANIM_draw_previewrange(), CTX_data_scene(), CTX_wm_space_graph(), View2D::cur, SpaceGraph::cursorTime, SpaceGraph::cursorVal, DRAW_MARKERS_MARGIN, draw_normalization_borders(), ED_markers_draw(), ED_region_draw_cb_draw(), ED_time_scrub_draw(), SpaceGraph::flag, get_graph_keyframe_extents(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_width(), GPU_PRIM_LINES, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), graph_draw_curves(), graph_draw_ghost_curves(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformThemeColorShadeAlpha(), immVertex2f(), immVertexFormat(), SpaceGraph::mode, pos, REGION_DRAW_POST_VIEW, REGION_DRAW_PRE_VIEW, SIPO_DRAWTIME, SIPO_MODE_ANIMATION, SIPO_MODE_DRIVERS, SIPO_NODRAWCURSOR, SIPO_NORMALIZE, SIPO_SHOW_MARKERS, TH_BACK, TH_CFRAME, View2D::tot, UI_ThemeClearColor(), UI_view2d_draw_lines_x__frames_or_seconds(), UI_view2d_draw_lines_y__values(), UI_view2d_view_ortho(), UI_view2d_view_orthoSpecial(), UI_view2d_view_restore(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by ED_spacetype_ipo().
Definition at line 322 of file space_graph.cc.
References BLI_rcti_init(), CTX_data_scene(), CTX_wm_space_graph(), ED_time_scrub_clamp_scroller_mask(), ED_time_scrub_draw_current_frame(), SpaceGraph::flag, HEADERY, View2D::mask, SpaceGraph::mode, SIPO_DRAWTIME, SIPO_MODE_DRIVERS, TH_SCROLL_TEXT, UI_SCALE_FAC, UI_TIME_SCRUB_MARGIN_Y, UI_view2d_draw_scale_y__values(), and UI_view2d_scrollers_draw().
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 171 of file space_graph.cc.
References wmWindowManager::defaultconf, RGN_TYPE_WINDOW, SPACE_GRAPH, UI_view2d_region_reinit(), V2D_COMMONVIEW_CUSTOM, WM_event_add_keymap_handler(), WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_ipo().
Definition at line 775 of file space_graph.cc.
References ANIM_sync_animchannels_to_data(), ED_area_tag_redraw(), SpaceGraph_Runtime::flag, graph_refresh_fcurve_colors(), SpaceGraph::mode, SpaceGraph::runtime, SIPO_MODE_ANIMATION, SIPO_MODE_DRIVERS, SIPO_RUNTIME_FLAG_NEED_CHAN_SYNC, SIPO_RUNTIME_FLAG_NEED_CHAN_SYNC_COLOR, SIPO_RUNTIME_FLAG_TWEAK_HANDLES_LEFT, and SIPO_RUNTIME_FLAG_TWEAK_HANDLES_RIGHT.
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 650 of file space_graph.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_NODUPLIS, ANIMTYPE_FCURVE, ANIMTYPE_NLACURVE, FCurve::array_index, BLI_assert_msg, col, FCurve::color, FCurve::color_mode, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ELEM, FCURVE_COLOR_AUTO_RAINBOW, FCURVE_COLOR_AUTO_RGB, FCURVE_COLOR_AUTO_YRGB, FCURVE_COLOR_CUSTOM, filter(), ListBase::first, getcolor_fcurve_rainbow(), hsv_to_rgb_v(), interp_v3_v3v3(), bAnimListElem::next, rgb_to_hsv_v(), RGN_TYPE_WINDOW, SPACE_GRAPH, TH_AXIS_X, TH_AXIS_Y, TH_AXIS_Z, bAnimListElem::type, UI_GetThemeColor3fv(), and UI_SetTheme().
Referenced by graph_refresh().
|
static |
Definition at line 442 of file space_graph.cc.
References wmNotifier::action, wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), ELEM, NA_EDITED, NA_RENAME, NA_SELECTED, NC_ANIMATION, NC_ID, NC_NODE, NC_OBJECT, NC_SCENE, NC_SCREEN, ND_BONE_ACTIVE, ND_BONE_SELECT, ND_FRAME, ND_FRAME_RANGE, ND_KEYS, ND_LAYER, ND_MARKERS, ND_MODIFIER, ND_OB_ACTIVE, ND_RENDER_OPTIONS, ND_SEQUENCER, and params.
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 508 of file space_graph.cc.
References ARRAY_SIZE, ED_region_do_msg_notify_tag_redraw(), wmMsgSubscribeValue::owner, params, wmMsgParams_RNA::ptr, RNA_id_pointer_create(), SCER_PRV_RANGE, PointerRNA::type, WM_msg_subscribe_rna(), and WM_msg_subscribe_rna_params().
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 889 of file space_graph.cc.
References SpaceGraph::ads, BLO_read_struct, and SpaceGraph::runtime.
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 897 of file space_graph.cc.
References SpaceGraph::ads, BLI_listbase_clear(), BLO_write_struct, SpaceGraph_Runtime::ghost_curves, and SpaceGraph::runtime.
Referenced by ED_spacetype_ipo().
Definition at line 881 of file space_graph.cc.
References EnumPropertyItem::icon, SpaceGraph::mode, RNA_enum_from_value(), and rna_enum_space_graph_mode_items.
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 873 of file space_graph.cc.
References SpaceGraph::mode, EnumPropertyItem::name, RNA_enum_from_value(), and rna_enum_space_graph_mode_items.
Referenced by ED_spacetype_ipo().
Definition at line 854 of file space_graph.cc.
References SpaceGraph::mode.
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 866 of file space_graph.cc.
References RNA_enum_items_add(), and rna_enum_space_graph_mode_items.
Referenced by ED_spacetype_ipo().
Definition at line 860 of file space_graph.cc.
References SpaceGraph::mode.
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 374 of file space_graph.cc.
References ANIM_UI_get_channels_total_height(), View2D::tot, UI_view2d_curRect_clamp_y(), and rctf::ymin.
Referenced by graph_channel_region_draw().