Blender V5.3
mask_ops.cc File Reference
#include <algorithm>
#include "MEM_guardedalloc.h"
#include "BLI_listbase.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_string.hh"
#include "BLI_string_utils.hh"
#include "BLI_utildefines.hh"
#include "BKE_context.hh"
#include "BKE_lib_id.hh"
#include "BKE_mask.hh"
#include "BLT_translation.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "DNA_mask_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_clip.hh"
#include "ED_image.hh"
#include "ED_mask.hh"
#include "ED_select_utils.hh"
#include "ANIM_keyframing.hh"
#include "UI_interface.hh"
#include "UI_interface_icons.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "mask_intern.hh"

Go to the source code of this file.

Classes

struct  blender::SlidePointData
struct  blender::SlideSplineCurvatureData

Namespaces

namespace  blender
 BMesh Iterators.

Enumerations

enum  {
  blender::SLIDE_ACTION_NONE = 0 , blender::SLIDE_ACTION_POINT = 1 , blender::SLIDE_ACTION_HANDLE = 2 , blender::SLIDE_ACTION_FEATHER = 3 ,
  blender::SLIDE_ACTION_SPLINE = 4
}

Functions

Mask * blender::ED_mask_new (bContext *C, const char *name)
MaskLayer * blender::ED_mask_layer_ensure (bContext *C, bool *r_added_mask)
static wmOperatorStatus blender::mask_new_exec (bContext *C, wmOperator *op)
static bool blender::mask_new_poll (bContext *C)
void blender::MASK_OT_new (wmOperatorType *ot)
static wmOperatorStatus blender::mask_layer_new_exec (bContext *C, wmOperator *op)
void blender::MASK_OT_layer_new (wmOperatorType *ot)
static wmOperatorStatus blender::mask_layer_remove_exec (bContext *C, wmOperator *)
void blender::MASK_OT_layer_remove (wmOperatorType *ot)
static void blender::mask_point_undistort_pos (SpaceClip *sc, float r_co[2], const float co[2])
static bool blender::spline_under_mouse_get (const bContext *C, Mask *mask_orig, const float co[2], MaskLayer **r_mask_layer, MaskSpline **r_mask_spline)
static bool blender::slide_point_check_initial_feather (MaskSpline *spline)
static void blender::select_sliding_point (Mask *mask, MaskLayer *mask_layer, MaskSpline *spline, MaskSplinePoint *point, eMaskWhichHandle which_handle)
static void blender::check_sliding_handle_type (MaskSplinePoint *point, eMaskWhichHandle which_handle)
static SlidePointData * blender::slide_point_customdata (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::slide_point_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static void blender::slide_point_delta_all_feather (SlidePointData *data, float delta)
static void blender::slide_point_restore_spline (SlidePointData *data)
static void blender::cancel_slide_point (SlidePointData *data)
static void blender::free_slide_point_data (SlidePointData *data)
static wmOperatorStatus blender::slide_point_modal (bContext *C, wmOperator *op, const wmEvent *event)
void blender::MASK_OT_slide_point (wmOperatorType *ot)
static void blender::cancel_slide_spline_curvature (SlideSplineCurvatureData *slide_data)
static void blender::free_slide_spline_curvature_data (SlideSplineCurvatureData *slide_data)
static bool blender::slide_spline_curvature_check (bContext *C, const wmEvent *event)
static SlideSplineCurvatureData * blender::slide_spline_curvature_customdata (bContext *C, const wmEvent *event)
static wmOperatorStatus blender::slide_spline_curvature_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static void blender::slide_spline_solve_P1 (const float u, const float B[2], const float P0[2], const float P2[2], const float P3[2], float solution[2])
static void blender::slide_spline_solve_P2 (const float u, const float B[2], const float P0[2], const float P1[2], const float P3[2], float solution[2])
static wmOperatorStatus blender::slide_spline_curvature_modal (bContext *C, wmOperator *op, const wmEvent *event)
void blender::MASK_OT_slide_spline_curvature (wmOperatorType *ot)
static wmOperatorStatus blender::cyclic_toggle_exec (bContext *C, wmOperator *)
void blender::MASK_OT_cyclic_toggle (wmOperatorType *ot)
static void blender::delete_feather_points (MaskSplinePoint *point)
static wmOperatorStatus blender::delete_exec (bContext *C, wmOperator *)
static wmOperatorStatus blender::delete_invoke (bContext *C, wmOperator *op, const wmEvent *)
void blender::MASK_OT_delete (wmOperatorType *ot)
static wmOperatorStatus blender::mask_switch_direction_exec (bContext *C, wmOperator *)
void blender::MASK_OT_switch_direction (wmOperatorType *ot)
static wmOperatorStatus blender::mask_normals_make_consistent_exec (bContext *C, wmOperator *)
void blender::MASK_OT_normals_make_consistent (wmOperatorType *ot)
static wmOperatorStatus blender::set_handle_type_exec (bContext *C, wmOperator *op)
void blender::MASK_OT_handle_type_set (wmOperatorType *ot)
static wmOperatorStatus blender::mask_hide_view_clear_exec (bContext *C, wmOperator *op)
void blender::MASK_OT_hide_view_clear (wmOperatorType *ot)
static wmOperatorStatus blender::mask_hide_view_set_exec (bContext *C, wmOperator *op)
void blender::MASK_OT_hide_view_set (wmOperatorType *ot)
static wmOperatorStatus blender::mask_feather_weight_clear_exec (bContext *C, wmOperator *)
void blender::MASK_OT_feather_weight_clear (wmOperatorType *ot)
static bool blender::mask_layer_move_poll (bContext *C)
static wmOperatorStatus blender::mask_layer_move_exec (bContext *C, wmOperator *op)
void blender::MASK_OT_layer_move (wmOperatorType *ot)
static bool blender::mask_move_to_layer_poll (bContext *C)
static wmOperatorStatus blender::mask_move_to_layer_exec (bContext *C, wmOperator *op)
static VectorSet< StringRef > blender::get_layer_names (Mask *mask)
static std::string blender::unique_layer_name (Mask *mask, const StringRef name)
static wmOperatorStatus blender::mask_move_to_layer_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::MASK_OT_move_to_layer (wmOperatorType *ot)
static wmOperatorStatus blender::mask_duplicate_exec (bContext *C, wmOperator *)
void blender::MASK_OT_duplicate (wmOperatorType *ot)
static wmOperatorStatus blender::copy_splines_exec (bContext *C, wmOperator *)
void blender::MASK_OT_copy_splines (wmOperatorType *ot)
static bool blender::paste_splines_poll (bContext *C)
static wmOperatorStatus blender::paste_splines_exec (bContext *C, wmOperator *)
void blender::MASK_OT_paste_splines (wmOperatorType *ot)