Blender V5.3
sequencer_timeline_draw.cc File Reference
#include <cmath>
#include <fmt/format.h>
#include "BLI_listbase.hh"
#include "BLI_math_color_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_path_utils.hh"
#include "BLI_string_utf8.hh"
#include "BLI_string_utils.hh"
#include "BLI_task.hh"
#include "BLI_threads.hh"
#include "BLI_utildefines.hh"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_sequence_types.h"
#include "DNA_sound_types.h"
#include "DNA_space_types.h"
#include "DNA_userdef_types.h"
#include "DNA_workspace_types.h"
#include "BKE_context.hh"
#include "BKE_fcurve.hh"
#include "BKE_global.hh"
#include "BKE_layer.hh"
#include "BKE_main.hh"
#include "BKE_screen.hh"
#include "BKE_sound.hh"
#include "ED_anim_api.hh"
#include "ED_gizmo_utils.hh"
#include "ED_markers.hh"
#include "ED_mask.hh"
#include "ED_sequencer.hh"
#include "ED_space_api.hh"
#include "ED_time_scrub_ui.hh"
#include "GPU_immediate.hh"
#include "GPU_matrix.hh"
#include "GPU_state.hh"
#include "PRF_profile.hh"
#include "RNA_prototypes.hh"
#include "SEQ_channels.hh"
#include "SEQ_connect.hh"
#include "SEQ_edit.hh"
#include "SEQ_effects.hh"
#include "SEQ_iterator.hh"
#include "SEQ_prefetch.hh"
#include "SEQ_relations.hh"
#include "SEQ_render.hh"
#include "SEQ_retiming.hh"
#include "SEQ_select.hh"
#include "SEQ_sequencer.hh"
#include "SEQ_thumbnail_cache.hh"
#include "SEQ_time.hh"
#include "SEQ_transform.hh"
#include "SEQ_utils.hh"
#include "UI_interface_c.hh"
#include "UI_interface_icons.hh"
#include "UI_resources.hh"
#include "UI_view2d.hh"
#include "WM_api.hh"
#include "WM_toolsystem.hh"
#include "WM_types.hh"
#include "BLF_api.hh"
#include "sequencer_intern.hh"
#include "sequencer_quads_batch.hh"
#include "sequencer_strips_batch.hh"

Go to the source code of this file.

Classes

struct  blender::ed::vse::CacheDrawData
struct  blender::ed::vse::BladeSplit

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ed
namespace  blender::ed::vse

Functions

Vector< Strip * > blender::ed::vse::sequencer_visible_strips_get (const bContext *C)
Vector< Strip * > blender::ed::vse::sequencer_visible_strips_get (const Scene *scene, const View2D *v2d)
static TimelineDrawContext blender::ed::vse::timeline_draw_context_get (const bContext *C, SeqQuadsBatch *quads_batch)
static bool blender::ed::vse::seq_draw_waveforms_poll (const SpaceSeq *sseq, const Strip *strip)
static bool blender::ed::vse::strip_hides_text_overlay_first (const TimelineDrawContext &ctx, const StripDrawContext &strip_ctx)
static void blender::ed::vse::strip_draw_context_set_text_overlay_visibility (const TimelineDrawContext &ctx, StripDrawContext &strip_ctx)
static void blender::ed::vse::strip_draw_context_set_strip_content_visibility (const TimelineDrawContext &ctx, StripDrawContext &strip_ctx)
static void blender::ed::vse::strip_draw_context_set_retiming_overlay_visibility (const TimelineDrawContext &ctx, StripDrawContext &strip_ctx)
static float blender::ed::vse::strip_header_size_get (const TimelineDrawContext &ctx)
static StripDrawContext blender::ed::vse::strip_draw_context_get (const TimelineDrawContext &ctx, Strip *strip)
static void blender::ed::vse::strip_draw_context_curve_get (const TimelineDrawContext &ctx, StripDrawContext &strip_ctx)
static void blender::ed::vse::color3ubv_from_seq (const Scene *curscene, const Strip *strip, const bool show_strip_color_tag, const bool is_muted, uchar r_col[3])
static void blender::ed::vse::waveform_job_start_if_needed (const bContext *C, const Strip *strip)
static float blender::ed::vse::align_frame_with_pixel (float frame_coord, float frames_per_pixel)
static void blender::ed::vse::draw_seq_waveform_overlay (const TimelineDrawContext &ctx, const StripDrawContext &strip_ctx)
static void blender::ed::vse::drawmeta_contents (const TimelineDrawContext &ctx, const StripDrawContext &strip_ctx, float corner_radius)
static void blender::ed::vse::draw_handle_transform_text (const TimelineDrawContext &ctx, const StripDrawContext &strip_ctx, eStripHandle handle)
float blender::ed::vse::strip_handle_draw_size_get (const Scene *scene, const Strip *strip, float pixelx)
static const char * blender::ed::vse::draw_seq_text_get_name (const Strip *strip)
static void blender::ed::vse::draw_seq_text_get_source (const Strip *strip, char *r_source, size_t source_maxncpy)
static size_t blender::ed::vse::draw_seq_text_get_overlay_string (const TimelineDrawContext &ctx, const StripDrawContext &strip_ctx, char *r_overlay_string, size_t overlay_string_maxncpy)
static void blender::ed::vse::get_strip_text_color (const StripDrawContext &strip_ctx, uchar r_col[4])
static int blender::ed::vse::get_icon_id_from_strip_type (const Strip *strip)
static void blender::ed::vse::draw_icon_centered (const TimelineDrawContext &ctx, const rctf &rect, int icon_id, const uchar color[4], const float size=ICON_SIZE)
static void blender::ed::vse::draw_strip_icons (const TimelineDrawContext &ctx, const Vector< StripDrawContext > &strips)
static void blender::ed::vse::draw_seq_text_overlay (const TimelineDrawContext &ctx, const StripDrawContext &strip_ctx)
static void blender::ed::vse::draw_strip_offsets (const TimelineDrawContext &ctx, const StripDrawContext &strip_ctx)
static void blender::ed::vse::draw_seq_fcurve_overlay (const TimelineDrawContext &ctx, const StripDrawContext &strip_ctx)
static void blender::ed::vse::draw_multicam_highlight (const TimelineDrawContext &ctx, const StripDrawContext &strip_ctx)
static void blender::ed::vse::seq_prefetch_wm_notify (const bContext *C, Scene *scene)
static void blender::ed::vse::draw_seq_timeline_channels (const TimelineDrawContext &ctx)
static void blender::ed::vse::visible_strips_ordered_get (const TimelineDrawContext &ctx, Vector< StripDrawContext > &r_bottom_layer, Vector< StripDrawContext > &r_top_layer)
static void blender::ed::vse::draw_strips_background (const TimelineDrawContext &ctx, StripsDrawBatch &strips_batch, const Vector< StripDrawContext > &strips)
static void blender::ed::vse::strip_data_missing_media_flags_set (const StripDrawContext &strip, SeqStripDrawData &data)
static void blender::ed::vse::strip_data_lock_flags_set (const StripDrawContext &strip, const TimelineDrawContext &ctx, SeqStripDrawData &data)
static void blender::ed::vse::strip_data_outline_params_set (const StripDrawContext &strip, const TimelineDrawContext &ctx, SeqStripDrawData &data)
static void blender::ed::vse::strip_data_highlight_flags_set (const StripDrawContext &strip, const TimelineDrawContext &ctx, SeqStripDrawData &data)
static void blender::ed::vse::strip_data_handle_flags_set (const StripDrawContext &strip, const TimelineDrawContext &ctx, SeqStripDrawData &data)
static void blender::ed::vse::draw_strips_foreground (const TimelineDrawContext &ctx, StripsDrawBatch &strips_batch, const Vector< StripDrawContext > &strips)
static void blender::ed::vse::draw_retiming_segments (const TimelineDrawContext &ctx, const Vector< StripDrawContext > &strips)
static void blender::ed::vse::draw_strip_texts (const TimelineDrawContext &ctx, const StripsDrawBatch &batch, const Vector< StripDrawContext > &strips)
static void blender::ed::vse::draw_seq_strips (const TimelineDrawContext &ctx, StripsDrawBatch &strips_batch, const Vector< StripDrawContext > &strips)
static void blender::ed::vse::draw_seq_strips (const TimelineDrawContext &ctx, StripsDrawBatch &strips_batch)
static void blender::ed::vse::draw_timeline_sfra_efra (const TimelineDrawContext &ctx)
static void blender::ed::vse::draw_cache_final_iter_fn (void *userdata, int timeline_frame)
static void blender::ed::vse::draw_cache_source_iter_fn (void *userdata, const Strip *strip, int timeline_frame)
static void blender::ed::vse::draw_cache_stripe (const Scene *scene, const Strip *strip, SeqQuadsBatch &quads, const float stripe_bot, const float stripe_ht, const uchar color[4])
static void blender::ed::vse::draw_cache_background (const bContext *C, const CacheDrawData *draw_data)
static void blender::ed::vse::draw_cache_view (const bContext *C)
static void blender::ed::vse::draw_overlay_frame_indicator (const Scene *scene, const View2D *v2d)
static void blender::ed::vse::draw_timeline_grid (const TimelineDrawContext &ctx)
static void blender::ed::vse::draw_timeline_markers (const TimelineDrawContext &ctx)
static void blender::ed::vse::draw_timeline_gizmos (const TimelineDrawContext &ctx)
static void blender::ed::vse::draw_timeline_pre_view_callbacks (const TimelineDrawContext &ctx)
static void blender::ed::vse::draw_timeline_post_view_callbacks (const TimelineDrawContext &ctx)
void blender::ed::vse::draw_timeline_seq (const bContext *C, const ARegion *region)
void blender::ed::vse::draw_timeline_seq_display (const bContext *C, ARegion *region)
static bool blender::ed::vse::blade_paint_cursor_poll (bContext *C)
static wmOperator * blender::ed::vse::box_blade_op_get (wmWindow *win)
static void blender::ed::vse::split_expand_strips (Editing *ed, Strip *strip, const seq::StripRelation include, VectorSet< Strip * > &targets)
static void blender::ed::vse::box_blade_draw (Scene *scene, const ARegion *region, wmOperator *op)
static bool blender::ed::vse::split_tool_prop_from_toolsettings (bToolRef *tref, const char *identifier, const bool default_value)
static std::optional< BladeSplit > blender::ed::vse::blade_split_get (Scene *scene, const ARegion *region, const wmWindow *win, bToolRef *tref, const int2 &xy)
static void blender::ed::vse::blade_split_draw (Scene *scene, const ARegion *region, const BladeSplit &split)
static void blender::ed::vse::blade_paint_cursor_draw (bContext *C, const int2 &xy, const float2 &, void *customdata)
static void blender::ed::vse::blade_paint_cursor_free_fn (void *customdata)
static void blender::ed::vse::WIDGETGROUP_blade_setup (const bContext *C, wmGizmoGroup *gzgroup)
void blender::ed::vse::SEQUENCER_GGT_blade (wmGizmoGroupType *gzgt)
static std::string blender::ed::vse::blade_frame_str_get (const Scene *scene, const int frame, const bool timecode)
static ARegion * blender::ed::vse::blade_tooltip_init (bContext *C, ARegion *region, int *, double *, bool *r_exit_on_event)
void blender::ed::vse::sequencer_blade_tooltip_show (bContext *C)
static void blender::ed::vse::blade_edit_point_update (bContext *C)
static int blender::ed::vse::blade_handler (bContext *C, const wmEvent *event, void *)
void blender::ed::vse::sequencer_blade_handlers_add (ARegion *region)

Variables

constexpr int blender::ed::vse::MUTE_ALPHA = 120
constexpr float blender::ed::vse::ICON_SIZE = 12.0f
constexpr float blender::ed::vse::ICON_SIZE_THUMBNAIL = 20.0f