|
Blender V4.3
|
#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 |
|
static |
Definition at line 54 of file editlattice_select.cc.
References BPoint::f1, BPoint::hide, SELECT, and select().
Referenced by lattice_select_random_exec().
| bool ED_lattice_deselect_all_multi | ( | bContext * | C | ) |
Definition at line 77 of file editlattice_select.cc.
References BKE_view_layer_array_from_bases_in_edit_mode_unique_data(), CTX_data_ensure_evaluated_depsgraph(), depsgraph, ED_view3d_viewcontext_init(), lattice_deselect_all_multi(), ViewContext::scene, ViewContext::v3d, and ViewContext::view_layer.
Definition at line 364 of file editlattice_select.cc.
References Lattice::actbp, Object::data, Lattice::def, Lattice::editlatt, BPoint::f1, flag, BPoint::hide, EditLatt::latt, LT_ACTBP_NONE, Lattice::pntsu, Lattice::pntsv, and Lattice::pntsw.
Referenced by do_lasso_select_lattice(), do_lattice_box_select(), ED_lattice_select_pick(), lattice_circle_select(), lattice_deselect_all_multi(), lattice_select_all_exec(), and lattice_select_ungrouped_exec().
Definition at line 166 of file editlattice_select.cc.
References Lattice::actbp, BKE_lattice_bitmap_from_flag(), BKE_lattice_index_flip(), BLI_BITMAP_NEW, BLI_BITMAP_TEST, Lattice::def, BPoint::f1, BPoint::hide, LT_ACTBP_NONE, MEM_freeN(), Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, and SELECT.
Referenced by lattice_select_mirror_exec().
| bool ED_lattice_select_pick | ( | bContext * | C, |
| const int | mval[2], | ||
| const SelectPick_Params * | params ) |
Definition at line 600 of file editlattice_select.cc.
References Lattice::actbp, blender::ed::object::base_activate(), BKE_view_layer_active_base_get(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BKE_view_layer_synced_ensure(), BLI_assert_unreachable, CTX_data_ensure_evaluated_depsgraph(), Object::data, Lattice::def, DEG_id_tag_update(), depsgraph, ED_lattice_flags_set(), ED_view3d_viewcontext_init(), ED_view3d_viewcontext_init_object(), Lattice::editlatt, BPoint::f1, findnearestLattvert(), ID_RECALC_SELECT, EditLatt::latt, LT_ACTBP_NONE, ViewContext::mval, NC_GEOM, ND_SELECT, ViewContext::obedit, Base::object, params, ViewContext::scene, SEL_OP_ADD, SEL_OP_AND, SEL_OP_SET, SEL_OP_SUB, SEL_OP_XOR, SELECT, ViewContext::v3d, ViewContext::view_layer, and WM_event_add_notifier().
Referenced by view3d_select_exec().
|
static |
Definition at line 574 of file editlattice_select.cc.
References BKE_view_layer_array_from_bases_in_edit_mode_unique_data(), NearestLatticeVert_UserData::dist, ED_view3d_init_mats_rv3d(), ED_view3d_select_dist_px(), ED_view3d_viewcontext_init_object(), findnearestLattvert__doClosest(), lattice_foreachScreenVert(), ViewContext::mval, ViewContext::rv3d, ViewContext::scene, select(), ViewContext::v3d, V3D_PROJ_TEST_CLIP_DEFAULT, and ViewContext::view_layer.
Referenced by ED_lattice_select_pick().
|
static |
Definition at line 558 of file editlattice_select.cc.
References BPoint::f1, len_manhattan_v2v2(), and SELECT.
Referenced by findnearestLattvert().
Definition at line 66 of file editlattice_select.cc.
References Object::data, DEG_id_tag_update(), ED_lattice_flags_set(), and ID_RECALC_SELECT.
Referenced by ED_lattice_deselect_all_multi().
| void LATTICE_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 454 of file editlattice_select.cc.
References wmOperatorType::description, ED_operator_editlattice(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lattice_select_all_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_select_all().
Referenced by ED_operatortypes_lattice().
| void LATTICE_OT_select_less | ( | wmOperatorType * | ot | ) |
Definition at line 343 of file editlattice_select.cc.
References wmOperatorType::description, ED_operator_editlattice(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lattice_select_less_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_lattice().
| void LATTICE_OT_select_mirror | ( | wmOperatorType * | ot | ) |
Definition at line 228 of file editlattice_select.cc.
References wmOperatorType::description, ED_operator_editlattice(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lattice_select_mirror_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_enum_flag(), rna_enum_axis_flag_xyz_items, and wmOperatorType::srna.
Referenced by ED_operatortypes_lattice().
| void LATTICE_OT_select_more | ( | wmOperatorType * | ot | ) |
Definition at line 328 of file editlattice_select.cc.
References wmOperatorType::description, ED_operator_editlattice(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lattice_select_more_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_lattice().
| void LATTICE_OT_select_random | ( | wmOperatorType * | ot | ) |
Definition at line 142 of file editlattice_select.cc.
References wmOperatorType::description, ED_operator_editlattice(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lattice_select_random_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_select_random().
Referenced by ED_operatortypes_lattice().
| void LATTICE_OT_select_ungrouped | ( | wmOperatorType * | ot | ) |
Definition at line 523 of file editlattice_select.cc.
References wmOperatorType::description, ED_operator_editlattice(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lattice_select_ungrouped_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_lattice().
|
static |
Definition at line 392 of file editlattice_select.cc.
References Lattice::actbp, BKE_lattice_is_any_selected(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), Lattice::def, DEG_id_tag_update(), ED_lattice_flags_set(), Lattice::editlatt, BPoint::f1, BPoint::hide, ID_RECALC_SELECT, EditLatt::latt, LT_ACTBP_NONE, NC_GEOM, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, wmOperator::ptr, RNA_enum_get(), SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, SELECT, and WM_event_add_notifier().
Referenced by LATTICE_OT_select_all().
|
static |
Definition at line 323 of file editlattice_select.cc.
References lattice_select_more_less().
Referenced by LATTICE_OT_select_less().
|
static |
Definition at line 201 of file editlattice_select.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), ed_lattice_select_mirrored(), Lattice::editlatt, ID_RECALC_SELECT, EditLatt::latt, NC_GEOM, ND_SELECT, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), and WM_event_add_notifier().
Referenced by LATTICE_OT_select_mirror().
|
static |
Definition at line 318 of file editlattice_select.cc.
References lattice_select_more_less().
Referenced by LATTICE_OT_select_more().
Definition at line 268 of file editlattice_select.cc.
References Lattice::actbp, BKE_lattice_bitmap_from_flag(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BLI_BITMAP_NEW, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), Lattice::def, DEG_id_tag_update(), Lattice::editlatt, BPoint::f1, BPoint::hide, ID_RECALC_SELECT, EditLatt::latt, lattice_test_bitmap_uvw(), LT_ACTBP_NONE, MEM_freeN(), NC_GEOM, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, SELECT, select(), SET_FLAG_FROM_TEST, v, w(), and WM_event_add_notifier().
Referenced by lattice_select_less_exec(), and lattice_select_more_exec().
|
static |
Definition at line 92 of file editlattice_select.cc.
References Lattice::actbp, BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BLI_array_randomize(), BLI_ghashutil_strhash_p(), bpoint_select_set(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), Object::data, Lattice::def, DEG_id_tag_update(), Lattice::editlatt, BPoint::hide, Object::id, ID_RECALC_SELECT, EditLatt::latt, LT_ACTBP_NONE, MEM_freeN(), MEM_mallocN, ID::name, NC_GEOM, ND_SELECT, OPERATOR_FINISHED, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), seed, SEL_SELECT, select(), WM_event_add_notifier(), and WM_operator_properties_select_random_seed_increment_get().
Referenced by LATTICE_OT_select_random().
|
static |
Definition at line 477 of file editlattice_select.cc.
References BKE_report(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BLI_listbase_is_empty(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), Lattice::def, DEG_id_tag_update(), Lattice::dvert, MDeformVert::dw, ED_lattice_flags_set(), Lattice::editlatt, BPoint::f1, BPoint::hide, ID_RECALC_SELECT, EditLatt::latt, NC_GEOM, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, SELECT, Lattice::vertex_group_names, and WM_event_add_notifier().
Referenced by LATTICE_OT_select_ungrouped().
|
static |
Definition at line 254 of file editlattice_select.cc.
References BKE_lattice_index_from_uvw(), BLI_BITMAP_TEST, Lattice::def, BPoint::hide, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, v, and w().
Referenced by lattice_select_more_less().