Blender V5.3
mask.cc File Reference
#include <cstddef>
#include <cstring>
#include <optional>
#include "CLG_log.h"
#include "MEM_guardedalloc.h"
#include "BLI_ghash.hh"
#include "BLI_listbase.hh"
#include "BLI_map.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_string_utf8.hh"
#include "BLI_string_utils.hh"
#include "BLI_utildefines.hh"
#include "BLT_translation.hh"
#include "DNA_mask_types.h"
#include "DNA_movieclip_types.h"
#include "DNA_object_types.h"
#include "RNA_path.hh"
#include "BKE_animsys.hh"
#include "BKE_curve.hh"
#include "BKE_idtype.hh"
#include "BKE_global.hh"
#include "BKE_image.hh"
#include "BKE_lib_id.hh"
#include "BKE_lib_query.hh"
#include "BKE_main.hh"
#include "BKE_mask.hh"
#include "BKE_movieclip.hh"
#include "BKE_tracking.hh"
#include "DEG_depsgraph_build.hh"
#include "BLO_read_write.hh"

Go to the source code of this file.

Classes

struct  blender::MaskClipboard

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static void blender::mask_runtime_reset (Mask *mask)
static void blender::mask_copy_data (Main *, std::optional< Library * >, ID *id_dst, const ID *id_src, const int)
static void blender::mask_free_data (ID *id)
static void blender::mask_foreach_id (ID *id, LibraryForeachIDData *data)
static void blender::mask_blend_write (BlendWriter *writer, ID *id, const void *id_address)
static void blender::mask_blend_read_data (BlendDataReader *reader, ID *id)
static MaskClipboard & blender::get_mask_clipboard ()
static MaskSplinePoint * blender::mask_spline_point_next (MaskSpline *spline, MaskSplinePoint *points_array, MaskSplinePoint *point)
static MaskSplinePoint * blender::mask_spline_point_prev (MaskSpline *spline, MaskSplinePoint *points_array, MaskSplinePoint *point)
BLI_INLINE void blender::orthogonal_direction_get (const float vec[2], float result[2])
static float blender::mask_point_interp_weight (BezTriple *bezt, BezTriple *bezt_next, const float u)
static Mask * blender::mask_alloc (Main *bmain, const char *name)
static MaskSplinePoint * blender::mask_spline_points_copy (const MaskSplinePoint *points, int tot_point)
static void blender::mask_calc_point_handle (MaskSplinePoint *point, MaskSplinePoint *point_prev, MaskSplinePoint *point_next)
static void blender::mask_layer_shape_from_mask_point (const BezTriple *bezt, MaskLayerShapeElem *shape)
static void blender::mask_layer_shape_to_mask_point (BezTriple *bezt, const MaskLayerShapeElem *shape)
BLI_INLINE void blender::interp_v2_v2v2_flfl (float target[2], const float a[2], const float b[2], const float t, const float s)
static int blender::mask_layer_shape_sort_cb (const void *masklay_shape_a_ptr, const void *masklay_shape_b_ptr)
static void blender::interp_weights_uv_v2_calc (float r_uv[2], const float pt[2], const float pt_a[2], const float pt_b[2])
static void blender::interp_weights_uv_v2_apply (const float uv[2], float r_pt[2], const float pt_a[2], const float pt_b[2])
static void blender::mask_clipboard_clear ()
Splines
BezTriple * blender::BKE_mask_spline_point_next_bezt (MaskSpline *spline, MaskSplinePoint *points_array, MaskSplinePoint *point)
MaskSplinePoint * blender::BKE_mask_spline_point_array (MaskSpline *spline)
MaskSplinePoint * blender::BKE_mask_spline_point_array_from_point (MaskSpline *spline, const MaskSplinePoint *point_ref)
MaskSpline * blender::BKE_mask_spline_add (MaskLayer *masklay)
void blender::BKE_mask_spline_move_to_layer (MaskSpline *spline, MaskLayer *src_mask_layer, MaskLayer *dst_mask_layer)
bool blender::BKE_mask_spline_remove (MaskLayer *mask_layer, MaskSpline *spline)
void blender::BKE_mask_point_direction_switch (MaskSplinePoint *point)
void blender::BKE_mask_spline_direction_switch (MaskLayer *masklay, MaskSpline *spline)
float blender::BKE_mask_spline_project_co (MaskSpline *spline, MaskSplinePoint *point, float start_u, const float co[2], eMaskSign sign)
Mask Layers
MaskLayer * blender::BKE_mask_layer_new (Mask *mask, const char *name)
MaskLayer * blender::BKE_mask_layer_active (Mask *mask)
MaskLayer * blender::BKE_mask_layer_by_name (Mask *mask, const char *layer_name)
void blender::BKE_mask_layer_active_set (Mask *mask, MaskLayer *masklay)
void blender::BKE_mask_layer_remove (Mask *mask, MaskLayer *masklay)
void blender::BKE_mask_layer_unique_name (Mask *mask, MaskLayer *masklay)
void blender::BKE_mask_layer_rename (Main &bmain, Mask *mask, MaskLayer *masklay, const char *oldname, const char *newname)
MaskLayer * blender::BKE_mask_layer_copy (const MaskLayer *masklay)
void blender::BKE_mask_layer_copy_list (ListBaseT< MaskLayer > *masklayers_new, const ListBaseT< MaskLayer > *masklayers)
void blender::BKE_mask_point_free (MaskSplinePoint *point)
void blender::BKE_mask_spline_free (MaskSpline *spline)
void blender::BKE_mask_spline_free_list (ListBaseT< MaskSpline > *splines)
MaskSpline * blender::BKE_mask_spline_copy (const MaskSpline *spline)
void blender::BKE_mask_layer_free_shapes (MaskLayer *masklay)
 Free all animation keys for a mask layer.
void blender::BKE_mask_layer_free (MaskLayer *masklay)
void blender::BKE_mask_layer_free_list (ListBaseT< MaskLayer > *masklayers)
Point
eMaskhandleMode blender::BKE_mask_point_handles_mode_get (const MaskSplinePoint *point)
void blender::BKE_mask_point_handle (const MaskSplinePoint *point, eMaskWhichHandle which_handle, float r_handle[2])
void blender::BKE_mask_point_set_handle (MaskSplinePoint *point, eMaskWhichHandle which_handle, float loc[2], bool keep_direction, float orig_handle[2], float orig_vec[3][3])
void blender::BKE_mask_point_segment_co (MaskSpline *spline, MaskSplinePoint *point, float u, float co[2])
void blender::BKE_mask_point_normal (MaskSpline *spline, MaskSplinePoint *point, float u, float n[2])
float blender::BKE_mask_point_weight_scalar (MaskSpline *spline, MaskSplinePoint *point, float u)
float blender::BKE_mask_point_weight (MaskSpline *spline, MaskSplinePoint *point, float u)
MaskSplinePointUW * blender::BKE_mask_point_sort_uw (MaskSplinePoint *point, MaskSplinePointUW *uw)
void blender::BKE_mask_point_add_uw (MaskSplinePoint *point, float u, float w)
void blender::BKE_mask_point_select_set (MaskSplinePoint *point, bool do_select)
void blender::BKE_mask_point_select_set_handle (MaskSplinePoint *point, eMaskWhichHandle which_handle, bool do_select)
General
Mask * blender::BKE_mask_new (Main *bmain, const char *name)
void blender::BKE_mask_coord_from_frame (float r_co[2], const float co[2], const float frame_size[2])
void blender::BKE_mask_coord_from_movieclip (MovieClip *clip, MovieClipUser *user, float r_co[2], const float co[2])
void blender::BKE_mask_coord_from_image (Image *image, ImageUser *iuser, float r_co[2], const float co[2])
void blender::BKE_mask_coord_to_frame (float r_co[2], const float co[2], const float frame_size[2])
void blender::BKE_mask_coord_to_movieclip (MovieClip *clip, MovieClipUser *user, float r_co[2], const float co[2])
void blender::BKE_mask_coord_to_image (Image *image, ImageUser *iuser, float r_co[2], const float co[2])
Animation
MaskLayerShape * blender::BKE_mask_layer_shape_alloc (MaskLayer *masklay, int frame)
void blender::BKE_mask_layer_shape_free (MaskLayerShape *masklay_shape)
bool blender::BKE_mask_layer_is_animated (MaskLayer &mask_layer)
bool blender::BKE_mask_is_animated (Mask &mask)
int blender::BKE_mask_layer_shape_totvert (MaskLayer *masklay)
void blender::BKE_mask_layer_shape_from_mask (MaskLayer *masklay, MaskLayerShape *masklay_shape)
void blender::BKE_mask_layer_shape_to_mask (MaskLayer *masklay, MaskLayerShape *masklay_shape)
void blender::BKE_mask_layer_shape_to_mask_interp (MaskLayer *masklay, MaskLayerShape *masklay_shape_a, MaskLayerShape *masklay_shape_b, float fac)
MaskLayerShape * blender::BKE_mask_layer_shape_find_frame (MaskLayer *masklay, int frame)
int blender::BKE_mask_layer_shape_find_frame_range (MaskLayer *masklay, float frame, MaskLayerShape **r_masklay_shape_a, MaskLayerShape **r_masklay_shape_b)
MaskLayerShape * blender::BKE_mask_layer_shape_verify_frame (MaskLayer *masklay, int frame)
MaskLayerShape * blender::BKE_mask_layer_shape_duplicate (MaskLayerShape *masklay_shape)
void blender::BKE_mask_layer_shape_unlink (MaskLayer *masklay, MaskLayerShape *masklay_shape)
void blender::BKE_mask_layer_shape_sort (MaskLayer *masklay)
bool blender::BKE_mask_layer_shape_spline_from_index (MaskLayer *masklay, int index, MaskSpline **r_masklay_shape, int *r_index)
int blender::BKE_mask_layer_shape_spline_to_index (MaskLayer *masklay, MaskSpline *spline)
void blender::BKE_mask_layer_shape_changed_add (MaskLayer *masklay, int index, bool do_init, bool do_init_interpolate)
void blender::BKE_mask_layer_shape_changed_remove (MaskLayer *masklay, int index, int count)
int blender::BKE_mask_get_duration (Mask *mask)
Parenting
void blender::BKE_mask_point_parent_matrix_get (MaskSplinePoint *point, float ctime, float parent_matrix[3][3])
void blender::BKE_mask_get_handle_point_adjacent (MaskSpline *spline, MaskSplinePoint *point, MaskSplinePoint **r_point_prev, MaskSplinePoint **r_point_next)
void blender::BKE_mask_calc_tangent_polyline (MaskSpline *spline, MaskSplinePoint *point, float t[2])
void blender::BKE_mask_calc_handle_point (MaskSpline *spline, MaskSplinePoint *point)
void blender::BKE_mask_calc_handle_adjacent_interp (MaskSpline *spline, MaskSplinePoint *point, float u)
void blender::BKE_mask_calc_handle_point_auto (MaskSpline *spline, MaskSplinePoint *point, bool do_recalc_length)
 Resets auto handles even for non-auto bezier points.
void blender::BKE_mask_layer_calc_handles (MaskLayer *masklay)
void blender::BKE_mask_spline_ensure_deform (MaskSpline *spline)
void blender::BKE_mask_layer_evaluate (MaskLayer *masklay, float ctime, bool do_newframe)
void blender::BKE_mask_evaluate (Mask *mask, float ctime, bool do_newframe)
void blender::BKE_mask_parent_init (MaskParent *parent)
Clipboard
void blender::BKE_mask_clipboard_free ()
void blender::BKE_mask_clipboard_copy_from_layer (MaskLayer *mask_layer)
bool blender::BKE_mask_clipboard_is_empty ()
void blender::BKE_mask_clipboard_paste_to_layer (Main *bmain, MaskLayer *mask_layer)

Variables

static CLG_LogRef blender::LOG = {"mask"}