Blender V5.0
space_graph.cc File Reference
#include <cstdio>
#include <cstring>
#include "DNA_anim_types.h"
#include "DNA_collection_types.h"
#include "DNA_scene_types.h"
#include "DNA_space_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_math_color.h"
#include "BLI_math_vector.h"
#include "BLI_string_utf8.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.

Functions

static SpaceLinkgraph_create (const ScrArea *, const Scene *scene)
static void graph_free (SpaceLink *sl)
static void graph_init (wmWindowManager *wm, ScrArea *area)
static SpaceLinkgraph_duplicate (SpaceLink *sl)
static void graph_main_region_init (wmWindowManager *wm, ARegion *region)
static void draw_normalization_borders (Scene *scene, View2D *v2d)
static void graph_main_region_draw (const bContext *C, ARegion *region)
static void graph_main_region_draw_overlay (const bContext *C, ARegion *region)
static void graph_channel_region_init (wmWindowManager *wm, ARegion *region)
static void set_v2d_height (View2D *v2d, const size_t item_count)
static void graph_channel_region_draw (const bContext *C, ARegion *region)
static void graph_header_region_init (wmWindowManager *, ARegion *region)
static void graph_header_region_draw (const bContext *C, ARegion *region)
static void graph_buttons_region_init (wmWindowManager *wm, ARegion *region)
static void graph_buttons_region_draw (const bContext *C, ARegion *region)
static void graph_region_listener (const wmRegionListenerParams *params)
static void graph_region_message_subscribe (const wmRegionMessageSubscribeParams *params)
static void graph_listener (const wmSpaceTypeListenerParams *params)
static void graph_refresh_fcurve_colors (const bContext *C)
static void graph_refresh (const bContext *C, ScrArea *area)
static void graph_id_remap (ScrArea *, SpaceLink *slink, const blender::bke::id::IDRemapper &mappings)
static void graph_foreach_id (SpaceLink *space_link, LibraryForeachIDData *data)
static int graph_space_subtype_get (ScrArea *area)
static void graph_space_subtype_set (ScrArea *area, int value)
static void graph_space_subtype_item_extend (bContext *, EnumPropertyItem **item, int *totitem)
static blender::StringRefNull graph_space_name_get (const ScrArea *area)
static int graph_space_icon_get (const ScrArea *area)
static void graph_space_blend_read_data (BlendDataReader *reader, SpaceLink *sl)
static void graph_space_blend_write (BlendWriter *writer, SpaceLink *sl)
static bool action_region_poll_hide_in_driver_mode (const RegionPollParams *params)
void ED_spacetype_ipo ()

Function Documentation

◆ action_region_poll_hide_in_driver_mode()

bool action_region_poll_hide_in_driver_mode ( const RegionPollParams * params)
static

Definition at line 938 of file space_graph.cc.

References BLI_assert, SpaceGraph::mode, params, SIPO_MODE_DRIVERS, and SPACE_GRAPH.

Referenced by ED_spacetype_ipo().

◆ draw_normalization_borders()

◆ ED_spacetype_ipo()

◆ graph_buttons_region_draw()

void graph_buttons_region_draw ( const bContext * C,
ARegion * region )
static

Definition at line 477 of file space_graph.cc.

References C, and ED_region_panels().

Referenced by ED_spacetype_ipo().

◆ graph_buttons_region_init()

void graph_buttons_region_init ( wmWindowManager * wm,
ARegion * region )
static

◆ graph_channel_region_draw()

◆ graph_channel_region_init()

◆ graph_create()

◆ graph_duplicate()

SpaceLink * graph_duplicate ( SpaceLink * sl)
static

◆ graph_foreach_id()

◆ graph_free()

◆ graph_header_region_draw()

void graph_header_region_draw ( const bContext * C,
ARegion * region )
static

Definition at line 460 of file space_graph.cc.

References C, and ED_region_header().

Referenced by ED_spacetype_ipo().

◆ graph_header_region_init()

void graph_header_region_init ( wmWindowManager * ,
ARegion * region )
static

Definition at line 455 of file space_graph.cc.

References ED_region_header_init().

Referenced by ED_spacetype_ipo().

◆ graph_id_remap()

void graph_id_remap ( ScrArea * ,
SpaceLink * slink,
const blender::bke::id::IDRemapper & mappings )
static

◆ graph_init()

◆ graph_listener()

◆ graph_main_region_draw()

◆ graph_main_region_draw_overlay()

◆ graph_main_region_init()

◆ graph_refresh()

◆ graph_refresh_fcurve_colors()

◆ graph_region_listener()

◆ graph_region_message_subscribe()

◆ graph_space_blend_read_data()

void graph_space_blend_read_data ( BlendDataReader * reader,
SpaceLink * sl )
static

Definition at line 913 of file space_graph.cc.

References SpaceGraph::ads, BLO_read_struct, and SpaceGraph::runtime.

Referenced by ED_spacetype_ipo().

◆ graph_space_blend_write()

void graph_space_blend_write ( BlendWriter * writer,
SpaceLink * sl )
static

◆ graph_space_icon_get()

int graph_space_icon_get ( const ScrArea * area)
static

◆ graph_space_name_get()

◆ graph_space_subtype_get()

int graph_space_subtype_get ( ScrArea * area)
static

Definition at line 878 of file space_graph.cc.

References ListBase::first, SpaceGraph::mode, and ScrArea::spacedata.

Referenced by ED_spacetype_ipo().

◆ graph_space_subtype_item_extend()

void graph_space_subtype_item_extend ( bContext * ,
EnumPropertyItem ** item,
int * totitem )
static

Definition at line 890 of file space_graph.cc.

References RNA_enum_items_add(), and rna_enum_space_graph_mode_items.

Referenced by ED_spacetype_ipo().

◆ graph_space_subtype_set()

void graph_space_subtype_set ( ScrArea * area,
int value )
static

Definition at line 884 of file space_graph.cc.

References ListBase::first, SpaceGraph::mode, and ScrArea::spacedata.

Referenced by ED_spacetype_ipo().

◆ set_v2d_height()

void set_v2d_height ( View2D * v2d,
const size_t item_count )
static