Blender V5.3
mask_query.cc File Reference
#include "MEM_guardedalloc.h"
#include "BKE_context.hh"
#include "BKE_mask.hh"
#include "BLI_listbase.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_vector_c.hh"
#include "DEG_depsgraph_query.hh"
#include "DNA_mask_types.h"
#include "DNA_screen_types.h"
#include "ED_clip.hh"
#include "ED_image.hh"
#include "ED_mask.hh"
#include "UI_view2d.hh"
#include "mask_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Spatial Queries
bool blender::ED_mask_find_nearest_diff_point (const bContext *C, Mask *mask_orig, const float normal_co[2], int threshold, bool feather, float tangent[2], bool use_deform, bool use_project, MaskLayer **r_mask_layer, MaskSpline **r_spline, MaskSplinePoint **r_point, float *r_u, float *r_score)
static void blender::mask_point_scaled_handle (const MaskSplinePoint *point, const eMaskWhichHandle which_handle, const float scalex, const float scaley, float handle[2])
MaskSplinePoint * blender::ED_mask_point_find_nearest (const bContext *C, Mask *mask_orig, const float normal_co[2], float threshold, MaskLayer **r_mask_layer, MaskSpline **r_spline, eMaskWhichHandle *r_which_handle, float *r_score)
bool blender::ED_mask_feather_find_nearest (const bContext *C, Mask *mask_orig, const float normal_co[2], float threshold, MaskLayer **r_mask_layer, MaskSpline **r_spline, MaskSplinePoint **r_point, MaskSplinePointUW **r_uw, float *r_score)
void blender::ED_mask_mouse_pos (ScrArea *area, ARegion *region, const int mval[2], float r_co[2])
void blender::ED_mask_point_pos (ScrArea *area, ARegion *region, float x, float y, float *r_x, float *r_y)
void blender::ED_mask_point_pos__reverse (ScrArea *area, ARegion *region, float x, float y, float *r_x, float *r_y)
static void blender::handle_position_for_minmax (const MaskSplinePoint *point, eMaskWhichHandle which_handle, bool handles_as_knot, float r_handle[2])
bool blender::ED_mask_selected_minmax (const bContext *C, float min[2], float max[2], bool handles_as_knot, bool handles_as_knot_selected_only)
void blender::ED_mask_center_from_pivot_ex (const bContext *C, ScrArea *area, char mode, bool handles_as_knot_selected_only, float r_center[2], bool *r_has_select)
Generic 2D View Queries
void blender::ED_mask_get_size (ScrArea *area, int *r_width, int *r_height)
void blender::ED_mask_zoom (ScrArea *area, ARegion *region, float *r_zoomx, float *r_zoomy)
void blender::ED_mask_get_aspect (ScrArea *area, ARegion *region, float *r_aspx, float *r_aspy)
void blender::ED_mask_pixelspace_factor (ScrArea *area, ARegion *region, float *r_scalex, float *r_scaley)
void blender::ED_mask_cursor_location_get (ScrArea *area, float cursor[2])