Blender
V3.3
|
#include "DNA_movieclip_types.h"
#include "DNA_scene_types.h"
#include "BLI_math.h"
#include "BLI_rect.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_movieclip.h"
#include "ED_clip.h"
#include "ED_screen.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "BLF_api.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "GPU_immediate.h"
#include "GPU_state.h"
#include "clip_intern.h"
Go to the source code of this file.
Functions | |
static void | track_channel_color (MovieTrackingTrack *track, const float default_color[3], float color[3]) |
static void | draw_keyframe_shape (float x, float y, bool sel, float alpha, uint pos_id, uint color_id) |
static void | clip_draw_dopesheet_background (ARegion *region, MovieClip *clip, uint pos_id) |
void | clip_draw_dopesheet_main (SpaceClip *sc, ARegion *region, Scene *scene) |
void | clip_draw_dopesheet_channels (const bContext *C, ARegion *region) |
|
static |
Definition at line 69 of file clip_dopesheet_draw.c.
References BKE_movieclip_remap_clip_to_scene_frame(), MovieTrackingDopesheetCoverageSegment::coverage, MovieTrackingDopesheet::coverage_segments, View2D::cur, MovieTracking::dopesheet, MovieTrackingDopesheetCoverageSegment::end_frame, ListBase::first, immRectf(), immUniformColor4f(), MovieTrackingDopesheetCoverageSegment::next, MovieTrackingDopesheetCoverageSegment::start_frame, MovieClip::tracking, TRACKING_COVERAGE_BAD, TRACKING_COVERAGE_OK, ARegion::v2d, rctf::ymax, and rctf::ymin.
Referenced by clip_draw_dopesheet_main().
Definition at line 280 of file clip_dopesheet_draw.c.
References blender::compositor::area(), BLF_draw(), BLF_height(), BLF_position(), BLF_size(), BLI_assert, BLI_rcti_size_y(), C, CHANNEL_FIRST, CHANNEL_HEIGHT, CHANNEL_HEIGHT_HALF, CHANNEL_PAD, CHANNEL_STEP, MovieTrackingDopesheet::channels, color, CTX_wm_area(), CTX_wm_space_clip(), View2D::cur, MovieTracking::dopesheet, ED_space_clip_get_clip(), EXTRA_SCROLL_PAD, ListBase::first, MovieTrackingTrack::flag, float(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), height, MovieClip::id, immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformColor3fv(), immVertexFormat(), IN_RANGE, View2D::mask, MovieTrackingDopesheetChannel::name, MovieTrackingDopesheetChannel::next, NULL, pos, ptr, RNA_pointer_create(), RNA_struct_type_find_property(), TH_TEXT, TH_TEXT_HI, View2D::tot, MovieTrackingDopesheet::tot_channel, MovieTrackingDopesheetChannel::track, track_channel_color(), TRACK_DOPE_SEL, TRACK_LOCKED, MovieClip::tracking, UI_block_begin(), UI_block_draw(), UI_block_emboss_set(), UI_block_end(), UI_BTYPE_ICON_TOGGLE, UI_EMBOSS, UI_EMBOSS_NONE, UI_FontThemeColor(), UI_style_get(), UI_UNIT_X, UI_UNIT_Y, UI_view2d_sync(), uiDefIconButR_prop(), uiFontStyle::uifont_id, ARegion::v2d, V2D_LOCK_COPY, uiStyle::widget, rctf::xmax, rctf::xmin, y, rctf::ymax, and rctf::ymin.
Referenced by clip_channels_region_draw().
Definition at line 95 of file clip_dopesheet_draw.c.
References BKE_movieclip_remap_clip_to_scene_frame(), BLI_rcti_size_x(), BLI_rcti_size_y(), CHANNEL_FIRST, CHANNEL_HEIGHT, CHANNEL_HEIGHT_HALF, CHANNEL_STEP, MovieTrackingDopesheet::channels, clip_draw_dopesheet_background(), clip_draw_sfra_efra(), color, View2D::cur, MovieTracking::dopesheet, draw_keyframe_shape(), ED_space_clip_get_clip(), EXTRA_SCROLL_PAD, ListBase::first, MovieTrackingMarker::flag, MovieTrackingTrack::flag, float(), MovieTrackingMarker::framenr, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_COMP_U32, GPU_COMP_U8, GPU_FETCH_FLOAT, GPU_FETCH_INT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_PRIM_POINTS, GPU_program_point_size(), GPU_SHADER_2D_UNIFORM_COLOR, GPU_SHADER_KEYFRAME_SHAPE, GPU_vertformat_attr_add(), height, immAttr1f(), immAttr1u(), immAttr4ub(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniform1f(), immUniform2f(), immUniformColor4fv(), immVertexFormat(), IN_RANGE, MARKER_DISABLED, MARKER_TRACKED, MovieTrackingTrack::markers, View2D::mask, MovieTrackingDopesheetChannel::next, scene, MovieTrackingDopesheetChannel::segments, STRIP_HEIGHT_HALF, TH_STRIP, TH_STRIP_SELECT, View2D::tot, MovieTrackingDopesheet::tot_channel, MovieTrackingDopesheetChannel::tot_segment, MovieTrackingDopesheetChannel::track, track_channel_color(), TRACK_DOPE_SEL, TRACK_LOCKED, MovieClip::tracking, UI_GetThemeColor3fv(), ARegion::v2d, rctf::xmax, rctf::xmin, y, rctf::ymax, and rctf::ymin.
Referenced by dopesheet_region_draw().
|
static |
Definition at line 57 of file clip_dopesheet_draw.c.
References color, immAttr4fv(), immVertex2f(), TH_STRIP_SELECT, UI_GetThemeColorShadeAlpha4fv(), x, and y.
Referenced by clip_draw_dopesheet_main().
|
static |
Definition at line 37 of file clip_dopesheet_draw.c.
References MovieTrackingTrack::color, color, copy_v3_v3(), MovieTrackingTrack::flag, interp_v3_v3v3(), TH_HEADER, TRACK_CUSTOMCOLOR, and UI_GetThemeColor3fv().
Referenced by clip_draw_dopesheet_channels(), and clip_draw_dopesheet_main().