Blender  V3.3
Classes | Typedefs | Functions
clip_graph_ops.c File Reference
#include "DNA_scene_types.h"
#include "BLI_math.h"
#include "BLI_rect.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_tracking.h"
#include "DEG_depsgraph.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_clip.h"
#include "ED_screen.h"
#include "ED_select_utils.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "UI_view2d.h"
#include "clip_intern.h"

Go to the source code of this file.

Classes

struct  SelectUserData
 
struct  MouseSelectUserData
 
struct  BoxSelectuserData
 
struct  ViewAllUserData
 

Typedefs

typedef struct BoxSelectuserData BoxSelectuserData
 

Functions

static bool ED_space_clip_graph_poll (bContext *C)
 
static bool clip_graph_knots_poll (bContext *C)
 
static void toggle_selection_cb (void *userdata, MovieTrackingMarker *marker)
 
static void find_nearest_tracking_segment_cb (void *userdata, MovieTrackingTrack *track, MovieTrackingMarker *UNUSED(marker), eClipCurveValueSource value_source, int scene_framenr, float val)
 
static void find_nearest_tracking_segment_end_cb (void *userdata, eClipCurveValueSource UNUSED(source_value))
 
static void find_nearest_tracking_knot_cb (void *userdata, MovieTrackingTrack *track, MovieTrackingMarker *marker, eClipCurveValueSource value_source, int scene_framenr, float val)
 
static void mouse_select_init_data (bContext *C, MouseSelectUserData *userdata, const float co[2])
 
static bool mouse_select_knot (bContext *C, const float co[2], bool extend)
 
static bool mouse_select_curve (bContext *C, const float co[2], bool extend)
 
static int mouse_select (bContext *C, float co[2], bool extend)
 
static int select_exec (bContext *C, wmOperator *op)
 
static int select_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void CLIP_OT_graph_select (wmOperatorType *ot)
 
static void box_select_cb (void *userdata, MovieTrackingTrack *UNUSED(track), MovieTrackingMarker *marker, eClipCurveValueSource value_source, int scene_framenr, float val)
 
static int box_select_graph_exec (bContext *C, wmOperator *op)
 
void CLIP_OT_graph_select_box (wmOperatorType *ot)
 
static int graph_select_all_markers_exec (bContext *C, wmOperator *op)
 
void CLIP_OT_graph_select_all_markers (wmOperatorType *ot)
 
static int delete_curve_exec (bContext *C, wmOperator *UNUSED(op))
 
void CLIP_OT_graph_delete_curve (wmOperatorType *ot)
 
static int delete_knot_exec (bContext *C, wmOperator *UNUSED(op))
 
void CLIP_OT_graph_delete_knot (wmOperatorType *ot)
 
static void view_all_cb (void *userdata, MovieTrackingTrack *UNUSED(track), MovieTrackingMarker *UNUSED(marker), eClipCurveValueSource UNUSED(value_source), int UNUSED(scene_framenr), float val)
 
static int view_all_exec (bContext *C, wmOperator *UNUSED(op))
 
void CLIP_OT_graph_view_all (wmOperatorType *ot)
 
void ED_clip_graph_center_current_frame (Scene *scene, ARegion *region)
 
static int center_current_frame_exec (bContext *C, wmOperator *UNUSED(op))
 
void CLIP_OT_graph_center_current_frame (wmOperatorType *ot)
 
static int graph_disable_markers_exec (bContext *C, wmOperator *op)
 
void CLIP_OT_graph_disable_markers (wmOperatorType *ot)
 

Typedef Documentation

◆ BoxSelectuserData

Function Documentation

◆ box_select_cb()

static void box_select_cb ( void userdata,
MovieTrackingTrack UNUSEDtrack,
MovieTrackingMarker marker,
eClipCurveValueSource  value_source,
int  scene_framenr,
float  val 
)
static

◆ box_select_graph_exec()

static int box_select_graph_exec ( bContext C,
wmOperator op 
)
static

◆ center_current_frame_exec()

static int center_current_frame_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ clip_graph_knots_poll()

static bool clip_graph_knots_poll ( bContext C)
static

◆ CLIP_OT_graph_center_current_frame()

void CLIP_OT_graph_center_current_frame ( wmOperatorType ot)

◆ CLIP_OT_graph_delete_curve()

void CLIP_OT_graph_delete_curve ( wmOperatorType ot)

◆ CLIP_OT_graph_delete_knot()

void CLIP_OT_graph_delete_knot ( wmOperatorType ot)

◆ CLIP_OT_graph_disable_markers()

void CLIP_OT_graph_disable_markers ( wmOperatorType ot)

◆ CLIP_OT_graph_select()

void CLIP_OT_graph_select ( wmOperatorType ot)

◆ CLIP_OT_graph_select_all_markers()

void CLIP_OT_graph_select_all_markers ( wmOperatorType ot)

◆ CLIP_OT_graph_select_box()

void CLIP_OT_graph_select_box ( wmOperatorType ot)

◆ CLIP_OT_graph_view_all()

void CLIP_OT_graph_view_all ( wmOperatorType ot)

◆ delete_curve_exec()

static int delete_curve_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ delete_knot_exec()

static int delete_knot_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ ED_clip_graph_center_current_frame()

void ED_clip_graph_center_current_frame ( Scene scene,
ARegion region 
)

◆ ED_space_clip_graph_poll()

static bool ED_space_clip_graph_poll ( bContext C)
static

◆ find_nearest_tracking_knot_cb()

static void find_nearest_tracking_knot_cb ( void userdata,
MovieTrackingTrack track,
MovieTrackingMarker marker,
eClipCurveValueSource  value_source,
int  scene_framenr,
float  val 
)
static

Definition at line 130 of file clip_graph_ops.c.

References clip_graph_value_visible(), copy_v2_v2(), data, len_squared_v2(), and NULL.

Referenced by mouse_select_knot().

◆ find_nearest_tracking_segment_cb()

static void find_nearest_tracking_segment_cb ( void userdata,
MovieTrackingTrack track,
MovieTrackingMarker UNUSEDmarker,
eClipCurveValueSource  value_source,
int  scene_framenr,
float  val 
)
static

◆ find_nearest_tracking_segment_end_cb()

static void find_nearest_tracking_segment_end_cb ( void userdata,
eClipCurveValueSource   UNUSEDsource_value 
)
static

Definition at line 122 of file clip_graph_ops.c.

References data.

Referenced by mouse_select_curve().

◆ graph_disable_markers_exec()

static int graph_disable_markers_exec ( bContext C,
wmOperator op 
)
static

◆ graph_select_all_markers_exec()

static int graph_select_all_markers_exec ( bContext C,
wmOperator op 
)
static

◆ mouse_select()

static int mouse_select ( bContext C,
float  co[2],
bool  extend 
)
static

◆ mouse_select_curve()

static bool mouse_select_curve ( bContext C,
const float  co[2],
bool  extend 
)
static

◆ mouse_select_init_data()

static void mouse_select_init_data ( bContext C,
MouseSelectUserData userdata,
const float  co[2] 
)
static

◆ mouse_select_knot()

static bool mouse_select_knot ( bContext C,
const float  co[2],
bool  extend 
)
static

◆ select_exec()

static int select_exec ( bContext C,
wmOperator op 
)
static

◆ select_invoke()

static int select_invoke ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ toggle_selection_cb()

static void toggle_selection_cb ( void userdata,
MovieTrackingMarker marker 
)
static

◆ view_all_cb()

static void view_all_cb ( void userdata,
MovieTrackingTrack UNUSEDtrack,
MovieTrackingMarker UNUSEDmarker,
eClipCurveValueSource   UNUSEDvalue_source,
int   UNUSEDscene_framenr,
float  val 
)
static

Definition at line 593 of file clip_graph_ops.c.

References data, and min.

Referenced by view_all_exec().

◆ view_all_exec()

static int view_all_exec ( bContext C,
wmOperator UNUSEDop 
)
static