Blender V4.3
editlattice_select.cc File Reference
#include <cstdlib>
#include "MEM_guardedalloc.h"
#include "BLI_bitmap.h"
#include "BLI_listbase.h"
#include "BLI_math_vector.h"
#include "BLI_rand.h"
#include "BLI_utildefines.h"
#include "DNA_curve_types.h"
#include "DNA_lattice_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "BKE_context.hh"
#include "BKE_lattice.hh"
#include "BKE_layer.hh"
#include "BKE_report.hh"
#include "ED_lattice.hh"
#include "ED_object.hh"
#include "ED_screen.hh"
#include "ED_select_utils.hh"
#include "ED_view3d.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "DEG_depsgraph.hh"
#include "lattice_intern.hh"

Go to the source code of this file.

Classes

struct  NearestLatticeVert_UserData
 

Functions

Utility Functions
static void bpoint_select_set (BPoint *bp, bool select)
 
static bool lattice_deselect_all_multi (const Span< Base * > bases)
 
bool ED_lattice_deselect_all_multi (bContext *C)
 
Select Random Operator
static int lattice_select_random_exec (bContext *C, wmOperator *op)
 
void LATTICE_OT_select_random (wmOperatorType *ot)
 
Select Mirror Operator
static void ed_lattice_select_mirrored (Lattice *lt, const int axis, const bool extend)
 
static int lattice_select_mirror_exec (bContext *C, wmOperator *op)
 
void LATTICE_OT_select_mirror (wmOperatorType *ot)
 
Select More/Less Operator
static bool lattice_test_bitmap_uvw (const Lattice *lt, const BLI_bitmap *selpoints, int u, int v, int w, const bool selected)
 
static int lattice_select_more_less (bContext *C, const bool select)
 
static int lattice_select_more_exec (bContext *C, wmOperator *)
 
static int lattice_select_less_exec (bContext *C, wmOperator *)
 
void LATTICE_OT_select_more (wmOperatorType *ot)
 
void LATTICE_OT_select_less (wmOperatorType *ot)
 
Select All Operator
bool ED_lattice_flags_set (Object *obedit, int flag)
 
static int lattice_select_all_exec (bContext *C, wmOperator *op)
 
void LATTICE_OT_select_all (wmOperatorType *ot)
 
Select Ungrouped Verts Operator
static int lattice_select_ungrouped_exec (bContext *C, wmOperator *op)
 
void LATTICE_OT_select_ungrouped (wmOperatorType *ot)
 
Select Picking API

Here actual select happens, Gets called via generic mouse select operator.

static void findnearestLattvert__doClosest (void *user_data, BPoint *bp, const float screen_co[2])
 
static BPointfindnearestLattvert (ViewContext *vc, bool select, Base **r_base)
 
bool ED_lattice_select_pick (bContext *C, const int mval[2], const SelectPick_Params *params)
 

Function Documentation

◆ bpoint_select_set()

static void bpoint_select_set ( BPoint * bp,
bool select )
static

Definition at line 54 of file editlattice_select.cc.

References BPoint::f1, BPoint::hide, SELECT, and select().

Referenced by lattice_select_random_exec().

◆ ED_lattice_deselect_all_multi()

◆ ED_lattice_flags_set()

◆ ed_lattice_select_mirrored()

static void ed_lattice_select_mirrored ( Lattice * lt,
const int axis,
const bool extend )
static

◆ ED_lattice_select_pick()

◆ findnearestLattvert()

◆ findnearestLattvert__doClosest()

static void findnearestLattvert__doClosest ( void * user_data,
BPoint * bp,
const float screen_co[2] )
static

Definition at line 558 of file editlattice_select.cc.

References BPoint::f1, len_manhattan_v2v2(), and SELECT.

Referenced by findnearestLattvert().

◆ lattice_deselect_all_multi()

static bool lattice_deselect_all_multi ( const Span< Base * > bases)
static

◆ LATTICE_OT_select_all()

◆ LATTICE_OT_select_less()

◆ LATTICE_OT_select_mirror()

◆ LATTICE_OT_select_more()

◆ LATTICE_OT_select_random()

◆ LATTICE_OT_select_ungrouped()

◆ lattice_select_all_exec()

◆ lattice_select_less_exec()

static int lattice_select_less_exec ( bContext * C,
wmOperator *  )
static

Definition at line 323 of file editlattice_select.cc.

References lattice_select_more_less().

Referenced by LATTICE_OT_select_less().

◆ lattice_select_mirror_exec()

◆ lattice_select_more_exec()

static int lattice_select_more_exec ( bContext * C,
wmOperator *  )
static

Definition at line 318 of file editlattice_select.cc.

References lattice_select_more_less().

Referenced by LATTICE_OT_select_more().

◆ lattice_select_more_less()

◆ lattice_select_random_exec()

◆ lattice_select_ungrouped_exec()

◆ lattice_test_bitmap_uvw()

static bool lattice_test_bitmap_uvw ( const Lattice * lt,
const BLI_bitmap * selpoints,
int u,
int v,
int w,
const bool selected )
static