Blender  V3.3
Classes
editlattice_select.c File Reference
#include <stdlib.h>
#include "MEM_guardedalloc.h"
#include "BLI_bitmap.h"
#include "BLI_listbase.h"
#include "BLI_math.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.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "BKE_context.h"
#include "BKE_lattice.h"
#include "BKE_layer.h"
#include "BKE_report.h"
#include "ED_lattice.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "ED_select_utils.h"
#include "ED_view3d.h"
#include "WM_api.h"
#include "WM_types.h"
#include "DEG_depsgraph.h"
#include "lattice_intern.h"

Go to the source code of this file.

Classes

struct  NearestLatticeVert_UserData
 

Functions

Utility Functions
static void bpoint_select_set (BPoint *bp, bool select)
 
bool ED_lattice_deselect_all_multi_ex (struct Base **bases, const uint bases_len)
 
bool ED_lattice_deselect_all_multi (struct 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 (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 *UNUSED(op))
 
static int lattice_select_less_exec (bContext *C, wmOperator *UNUSED(op))
 
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 struct SelectPick_Params *params)
 

Function Documentation

◆ bpoint_select_set()

static void bpoint_select_set ( BPoint bp,
bool  select 
)
static

Definition at line 50 of file editlattice_select.c.

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

Referenced by lattice_select_random_exec().

◆ ED_lattice_deselect_all_multi()

bool ED_lattice_deselect_all_multi ( struct bContext C)

◆ ED_lattice_deselect_all_multi_ex()

bool ED_lattice_deselect_all_multi_ex ( struct Base **  bases,
const uint  bases_len 
)

◆ ED_lattice_flags_set()

bool ED_lattice_flags_set ( Object obedit,
int  flag 
)

◆ ed_lattice_select_mirrored()

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

◆ ED_lattice_select_pick()

bool ED_lattice_select_pick ( struct bContext C,
const int  mval[2],
const struct SelectPick_Params params 
)

◆ findnearestLattvert()

static BPoint* findnearestLattvert ( ViewContext vc,
bool  select,
Base **  r_base 
)
static

◆ findnearestLattvert__doClosest()

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

◆ LATTICE_OT_select_all()

void LATTICE_OT_select_all ( wmOperatorType ot)

◆ LATTICE_OT_select_less()

void LATTICE_OT_select_less ( wmOperatorType ot)

◆ LATTICE_OT_select_mirror()

void LATTICE_OT_select_mirror ( wmOperatorType ot)

◆ LATTICE_OT_select_more()

void LATTICE_OT_select_more ( wmOperatorType ot)

◆ LATTICE_OT_select_random()

void LATTICE_OT_select_random ( wmOperatorType ot)

◆ LATTICE_OT_select_ungrouped()

void LATTICE_OT_select_ungrouped ( wmOperatorType ot)

◆ lattice_select_all_exec()

static int lattice_select_all_exec ( bContext C,
wmOperator op 
)
static

◆ lattice_select_less_exec()

static int lattice_select_less_exec ( bContext C,
wmOperator UNUSEDop 
)
static

Definition at line 328 of file editlattice_select.c.

References C, and lattice_select_more_less().

Referenced by LATTICE_OT_select_less().

◆ lattice_select_mirror_exec()

static int lattice_select_mirror_exec ( bContext C,
wmOperator op 
)
static

◆ lattice_select_more_exec()

static int lattice_select_more_exec ( bContext C,
wmOperator UNUSEDop 
)
static

Definition at line 323 of file editlattice_select.c.

References C, and lattice_select_more_less().

Referenced by LATTICE_OT_select_more().

◆ lattice_select_more_less()

static int lattice_select_more_less ( bContext C,
const bool  select 
)
static

◆ lattice_select_random_exec()

static int lattice_select_random_exec ( bContext C,
wmOperator op 
)
static

◆ lattice_select_ungrouped_exec()

static int lattice_select_ungrouped_exec ( bContext C,
wmOperator op 
)
static

◆ lattice_test_bitmap_uvw()

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