Blender
V3.3
|
#include <stdio.h>
#include <string.h>
#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.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_fcurve.h"
#include "BKE_lib_remap.h"
#include "BKE_screen.h"
#include "ED_anim_api.h"
#include "ED_markers.h"
#include "ED_screen.h"
#include "ED_space_api.h"
#include "ED_time_scrub_ui.h"
#include "GPU_framebuffer.h"
#include "GPU_immediate.h"
#include "GPU_state.h"
#include "WM_api.h"
#include "WM_message.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "graph_intern.h"
Go to the source code of this file.
Definition at line 807 of file space_graph.c.
References BKE_spacetype_register(), BKE_ST_MAXNAME, 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_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_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, usdtokens::st(), UI_SIDEBAR_PANEL_WIDTH, and V2D_SCROLL_WIDTH.
Referenced by ED_spacetypes_init().
Definition at line 388 of file space_graph.c.
References C, and ED_region_panels().
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 378 of file space_graph.c.
References wmWindowManager::defaultconf, ED_region_panels_init(), ARegion::handlers, SPACE_GRAPH, WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_ipo().
Definition at line 341 of file space_graph.c.
References bAnimContext::ads, ANIM_animdata_get_context(), C, ED_time_scrub_channel_search_draw(), graph_draw_channel_names(), NULL, TH_BACK, UI_ThemeClearColor(), UI_view2d_scrollers_draw(), UI_view2d_view_ortho(), UI_view2d_view_restore(), and ARegion::v2d.
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 319 of file space_graph.c.
References wmWindowManager::defaultconf, ARegion::handlers, View2D::scroll, SPACE_GRAPH, UI_view2d_region_reinit(), ARegion::v2d, V2D_COMMONVIEW_LIST, V2D_SCROLL_BOTTOM, V2D_SCROLL_HORIZONTAL_HIDE, V2D_SCROLL_LEFT, V2D_SCROLL_RIGHT, V2D_SCROLL_TOP, V2D_SCROLL_VERTICAL_HIDE, ARegion::winx, ARegion::winy, WM_event_add_keymap_handler(), WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_ipo().
Definition at line 52 of file space_graph.c.
References SpaceGraph::ads, ADS_FILTER_ONLYSEL, ARegion::alignment, SpaceGraph::autosnap, BLI_addtail(), View2D::cur, RenderData::efra, bDopeSheet::filterflag, SpaceGraph::flag, float(), View2D::keeptot, View2D::max, MAXFRAMEF, MEM_callocN, View2D::min, Scene::r, SpaceGraph::regionbase, ARegion::regiontype, RGN_ALIGN_BOTTOM, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_TYPE_CHANNELS, RGN_TYPE_HEADER, RGN_TYPE_UI, RGN_TYPE_WINDOW, SACTSNAP_FRAME, scene, View2D::scroll, RenderData::sfra, SIPO_SELVHANDLESONLY, SIPO_SHOW_MARKERS, bDopeSheet::source, SPACE_GRAPH, SpaceGraph::spacetype, View2D::tot, USER_HEADER_BOTTOM, ARegion::v2d, V2D_SCROLL_BOTTOM, V2D_SCROLL_HORIZONTAL_HANDLES, V2D_SCROLL_RIGHT, V2D_SCROLL_VERTICAL_HANDLES, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by ED_spacetype_ipo().
Definition at line 155 of file space_graph.c.
References SpaceGraph::ads, BLI_duplicatelist(), SpaceGraph_Runtime::ghost_curves, MEM_dupallocN, and SpaceGraph::runtime.
Referenced by ED_spacetype_ipo().
Definition at line 122 of file space_graph.c.
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 372 of file space_graph.c.
References C, and ED_region_header().
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 367 of file space_graph.c.
References ED_region_header_init().
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 775 of file space_graph.c.
References SpaceGraph::ads, BKE_id_remapper_apply(), bDopeSheet::filter_grp, ID_REMAP_APPLY_DEFAULT, and bDopeSheet::source.
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 137 of file space_graph.c.
References SpaceGraph::ads, blender::compositor::area(), ED_area_tag_refresh(), if(), MEM_callocN, NULL, bDopeSheet::source, wmWindowManager::winactive, and WM_window_get_active_scene().
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 529 of file space_graph.c.
References wmNotifier::action, blender::compositor::area(), 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 182 of file space_graph.c.
References ANIM_animdata_get_context(), ANIM_draw_framerange(), ANIM_draw_previewrange(), C, CTX_data_scene(), CTX_wm_space_graph(), View2D::cur, SpaceGraph::cursorTime, SpaceGraph::cursorVal, DRAW_MARKERS_MARGIN, 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_2D_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, scene, SIPO_DRAWTIME, SIPO_MODE_ANIMATION, SIPO_MODE_DRIVERS, SIPO_NODRAWCURSOR, 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(), ARegion::v2d, x, rctf::xmax, rctf::xmin, y, rctf::ymax, and rctf::ymin.
Referenced by ED_spacetype_ipo().
Definition at line 292 of file space_graph.c.
References BLI_rcti_init(), C, CTX_data_scene(), CTX_wm_space_graph(), ED_time_scrub_draw_current_frame(), SpaceGraph::flag, SpaceGraph::mode, NULL, scene, SIPO_DRAWTIME, SIPO_MODE_DRIVERS, TH_SCROLL_TEXT, UI_DPI_FAC, UI_TIME_SCRUB_MARGIN_Y, UI_view2d_draw_scale_y__values(), UI_view2d_scrollers_draw(), ARegion::v2d, and ARegion::winy.
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 169 of file space_graph.c.
References wmWindowManager::defaultconf, ARegion::handlers, SPACE_GRAPH, UI_view2d_region_reinit(), ARegion::v2d, V2D_COMMONVIEW_CUSTOM, ARegion::winx, ARegion::winy, WM_event_add_keymap_handler(), WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_ipo().
Definition at line 730 of file space_graph.c.
References ANIM_sync_animchannels_to_data(), blender::compositor::area(), C, 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().
Definition at line 608 of file space_graph.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_NODUPLIS, FCurve::array_index, C, col, FCurve::color, FCurve::color_mode, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, 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, NULL, rgb_to_hsv_v(), RGN_TYPE_WINDOW, SPACE_GRAPH, TH_AXIS_X, TH_AXIS_Y, TH_AXIS_Z, UI_GetThemeColor3fv(), and UI_SetTheme().
Referenced by graph_refresh().
|
static |
Definition at line 393 of file space_graph.c.
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 459 of file space_graph.c.
References blender::compositor::area(), ARRAY_SIZE, ED_region_do_msg_notify_tag_redraw(), RenderData::flag, Scene::id, bScreen::id, wmMsgSubscribeValue::owner, params, ptr, wmMsgParams_RNA::ptr, Scene::r, RNA_id_pointer_create(), RNA_pointer_create(), scene, SCER_PRV_RANGE, PointerRNA::type, WM_msg_subscribe_rna(), and WM_msg_subscribe_rna_params().
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 788 of file space_graph.c.
References blender::compositor::area(), and SpaceGraph::mode.
Referenced by ED_spacetype_ipo().
|
static |
Definition at line 800 of file space_graph.c.
References RNA_enum_items_add(), and rna_enum_space_graph_mode_items.
Referenced by ED_spacetype_ipo().
Definition at line 794 of file space_graph.c.
References blender::compositor::area(), and SpaceGraph::mode.
Referenced by ED_spacetype_ipo().