30#include "RNA_prototypes.hh"
38 const float default_color[3],
58 float x,
float y,
bool sel,
float alpha,
uint pos_id,
uint color_id)
60 float color[4] = {0.91f, 0.91f, 0.91f, alpha};
71 View2D *v2d = ®ion->v2d;
80 coverage_segment->start_frame);
98 View2D *v2d = ®ion->v2d;
106 float strip[4], selected_strip[4];
109 uint keyframe_len = 0;
127 selected_strip[3] = 1.0f;
147 float color[4] = {0.0f, 0.0f, 0.0f, 0.3f};
148 float default_color[4] = {0.8f, 0.93f, 0.8f, 0.3f};
161 for (i = 0; i < channel->tot_segment; i++) {
163 channel->segments[2 * i]);
165 channel->segments[2 * i + 1]);
169 if (start_frame != end_frame) {
184 while (i < track->markersnr) {
201 if (keyframe_len > 0) {
238 for (i = 0; i < channel->tot_segment; i++) {
240 channel->segments[2 * i]);
242 channel->segments[2 * i + 1]);
244 if (start_frame != end_frame) {
255 while (i < track->markersnr) {
285 View2D *v2d = ®ion->v2d;
362 float font_height =
BLF_height(fontid, channel->name,
sizeof(channel->name));
364 BLF_draw(fontid, channel->name, strlen(channel->name));
389 const int icon = (track->
flag &
TRACK_LOCKED) ? ICON_LOCKED : ICON_UNLOCKED;
ScrArea * CTX_wm_area(const bContext *C)
SpaceClip * CTX_wm_space_clip(const bContext *C)
float BKE_movieclip_remap_clip_to_scene_frame(const struct MovieClip *clip, float framenr)
void BLF_size(int fontid, float size)
float BLF_height(int fontid, const char *str, size_t str_len, ResultBLF *r_info=nullptr) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(2)
void BLF_draw(int fontid, const char *str, size_t str_len, ResultBLF *r_info=nullptr) ATTR_NONNULL(2)
void BLF_position(int fontid, float x, float y, float z)
#define LISTBASE_FOREACH(type, var, list)
MINLINE void copy_v3_v3(float r[3], const float a[3])
void interp_v3_v3v3(float r[3], const float a[3], const float b[3], float t)
BLI_INLINE int BLI_rcti_size_y(const struct rcti *rct)
BLI_INLINE int BLI_rcti_size_x(const struct rcti *rct)
#define IN_RANGE(a, b, c)
MovieClip * ED_space_clip_get_clip(const SpaceClip *sc)
@ GPU_SHADER_KEYFRAME_SHAPE
@ GPU_SHADER_3D_UNIFORM_COLOR
void GPU_program_point_size(bool enable)
void GPU_blend(eGPUBlend blend)
uiBut * uiDefIconButR_prop(uiBlock *block, int type, int retval, int icon, int x, int y, short width, short height, PointerRNA *ptr, PropertyRNA *prop, int index, float min, float max, const char *tip)
uiBlock * UI_block_begin(const bContext *C, ARegion *region, std::string name, eUIEmbossType emboss)
const uiStyle * UI_style_get()
void UI_block_emboss_set(uiBlock *block, eUIEmbossType emboss)
void UI_block_draw(const bContext *C, uiBlock *block)
void UI_block_end(const bContext *C, uiBlock *block)
void UI_GetThemeColor3fv(int colorid, float col[3])
void UI_GetThemeColorShadeAlpha4fv(int colorid, int coloffset, int alphaoffset, float col[4])
void UI_FontThemeColor(int fontid, int colorid)
void UI_view2d_sync(bScreen *screen, ScrArea *area, View2D *v2dcur, int flag)
static void clip_draw_dopesheet_background(ARegion *region, MovieClip *clip, uint pos_id)
void clip_draw_dopesheet_channels(const bContext *C, ARegion *region)
void clip_draw_dopesheet_main(SpaceClip *sc, ARegion *region, Scene *scene)
static void draw_keyframe_shape(float x, float y, bool sel, float alpha, uint pos_id, uint color_id)
static void track_channel_color(MovieTrackingTrack *track, const float default_color[3], float color[3])
#define STRIP_HEIGHT_HALF
void clip_draw_sfra_efra(View2D *v2d, Scene *scene)
#define CHANNEL_HEIGHT_HALF
draw_view in_light_buf[] float
PropertyRNA * RNA_struct_type_find_property(StructRNA *srna, const char *identifier)
PointerRNA RNA_pointer_create(ID *id, StructRNA *type, void *data)
ListBase coverage_segments
MovieTrackingMarker * markers