Blender V4.3
action_draw.cc File Reference
#include <cfloat>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "BLI_math_color.h"
#include "BLI_utildefines.h"
#include "DNA_anim_types.h"
#include "DNA_modifier_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "BKE_bake_geometry_nodes_modifier.hh"
#include "BKE_pointcache.h"
#include "ANIM_action.hh"
#include "GPU_immediate.hh"
#include "GPU_matrix.hh"
#include "GPU_state.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "UI_view2d.hh"
#include "ED_anim_api.hh"
#include "ED_keyframes_draw.hh"
#include "MOD_nodes.hh"
#include "action_intern.hh"

Go to the source code of this file.

Classes

struct  CacheRange
 

Functions

Channel List
void draw_channel_names (bContext *C, bAnimContext *ac, ARegion *region, const ListBase &anim_data)
 
Timeline - Caches
static bool timeline_cache_is_hidden_by_setting (const SpaceAction *saction, const PTCacheID *pid)
 
static void timeline_cache_color_get (PTCacheID *pid, float color[4])
 
static void timeline_cache_modify_color_based_on_state (PointCache *cache, float color[4], float color_state[4])
 
static bool timeline_cache_find_next_cached_segment (PointCache *cache, int search_start_frame, int *r_segment_start, int *r_segment_end)
 
static uint timeline_cache_segments_count (PointCache *cache)
 
static void timeline_cache_draw_cached_segments (PointCache *cache, uint pos_id)
 
static void timeline_cache_draw_single (PTCacheID *pid, float y_offset, float height, uint pos_id)
 
static void timeline_cache_draw_geometry_nodes (const blender::Span< CacheRange > cache_ranges, const bool all_simulations_baked, float *y_offset, const float line_height, const uint pos_id)
 
void timeline_draw_cache (const SpaceAction *saction, const Object *ob, const Scene *scene)
 

Keyframes

#define EXTRA_SCROLL_PAD   100.0f
 
static void draw_channel_action_ranges (ListBase *anim_data, View2D *v2d)
 
static void draw_backdrops (bAnimContext *ac, ListBase &anim_data, View2D *v2d, uint pos)
 
static void draw_keyframes (bAnimContext *ac, View2D *v2d, SpaceAction *saction, ListBase &anim_data)
 
void draw_channel_strips (bAnimContext *ac, SpaceAction *saction, ARegion *region, ListBase *anim_data)
 

Macro Definition Documentation

◆ EXTRA_SCROLL_PAD

#define EXTRA_SCROLL_PAD   100.0f

Definition at line 119 of file action_draw.cc.

Referenced by draw_backdrops(), and draw_channel_strips().

Function Documentation

◆ draw_backdrops()

◆ draw_channel_action_ranges()

◆ draw_channel_names()

◆ draw_channel_strips()

◆ draw_keyframes()

◆ timeline_cache_color_get()

◆ timeline_cache_draw_cached_segments()

static void timeline_cache_draw_cached_segments ( PointCache * cache,
uint pos_id )
static

◆ timeline_cache_draw_geometry_nodes()

◆ timeline_cache_draw_single()

◆ timeline_cache_find_next_cached_segment()

static bool timeline_cache_find_next_cached_segment ( PointCache * cache,
int search_start_frame,
int * r_segment_start,
int * r_segment_end )
static

◆ timeline_cache_is_hidden_by_setting()

◆ timeline_cache_modify_color_based_on_state()

static void timeline_cache_modify_color_based_on_state ( PointCache * cache,
float color[4],
float color_state[4] )
static

Definition at line 606 of file action_draw.cc.

References PointCache::flag, mul_v3_fl(), PTCACHE_BAKED, and PTCACHE_OUTDATED.

Referenced by timeline_cache_draw_single().

◆ timeline_cache_segments_count()

static uint timeline_cache_segments_count ( PointCache * cache)
static

◆ timeline_draw_cache()