|
Blender V4.3
|
#include "BLI_math_vector_types.hh"Go to the source code of this file.
| void ED_particle_undosys_type | ( | UndoType * | ut | ) |
Export for ED_undo_sys.
Definition at line 289 of file particle_edit_undo.cc.
References UndoType::flags, UndoType::name, particle_undosys_foreach_ID_ref(), particle_undosys_poll(), particle_undosys_step_decode(), particle_undosys_step_encode(), particle_undosys_step_free(), UndoType::poll, UndoType::step_decode, UndoType::step_encode, UndoType::step_foreach_ID_ref, UndoType::step_free, UndoType::step_size, and UNDOTYPE_FLAG_NEED_CONTEXT_FOR_ENCODE.
Referenced by ED_undosys_type_init().
Definition at line 2307 of file particle_edit.cc.
References BLI_rcti_is_empty(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), data, depsgraph, for_mouse_hit_keys(), NA_SELECTED, NC_OBJECT, ND_PARTICLE, PE_data_free(), PE_deselect_all_visible_ex(), PE_get_current(), PE_set_view3d_data(), PE_start_edit(), PE_update_selection(), PSEL_ALL_KEYS, SEL_OP_USE_PRE_DESELECT, select_key_op(), and WM_event_add_notifier().
Referenced by view3d_box_select_exec().
| bool PE_circle_select | ( | bContext * | C, |
| wmGenericUserData * | wm_userdata, | ||
| int | sel_op, | ||
| const int | mval[2], | ||
| float | rad ) |
Definition at line 2365 of file particle_edit.cc.
References BLI_assert, CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), wmGenericUserData::data, depsgraph, ELEM, for_mouse_hit_keys(), PEData::mval, NA_SELECTED, NC_OBJECT, ND_PARTICLE, PE_deselect_all_visible_ex(), PE_get_current(), pe_select_cache_init_with_generic_userdata(), PE_start_edit(), PE_update_selection(), SEL_OP_ADD, SEL_OP_SET, SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, select_key(), and WM_event_add_notifier().
Referenced by view3d_circle_select_exec().
| PTCacheEdit * PE_create_current | ( | Depsgraph * | depsgraph, |
| Scene * | scene, | ||
| Object * | ob ) |
Definition at line 404 of file particle_edit.cc.
References depsgraph, and pe_get_current().
Referenced by blender::draw::drw_particle_update_ptcache(), ED_object_particle_edit_mode_enter_ex(), blender::draw::overlay::Particles::edit_object_sync(), OVERLAY_edit_particle_cache_populate(), and PE_current_changed().
Definition at line 409 of file particle_edit.cc.
References depsgraph, Object::mode, OB_MODE_PARTICLE_EDIT, and PE_create_current().
| bool PE_deselect_all_visible | ( | bContext * | C | ) |
Definition at line 2295 of file particle_edit.cc.
References CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), depsgraph, PE_deselect_all_visible_ex(), PE_get_current(), and PE_start_edit().
| bool PE_deselect_all_visible_ex | ( | PTCacheEdit * | edit | ) |
Definition at line 2277 of file particle_edit.cc.
References KEY_K, LOOP_SELECTED_KEYS, LOOP_VISIBLE_POINTS, PEK_SELECT, PEP_EDIT_RECALC, and POINT_P.
Referenced by PE_box_select(), PE_circle_select(), PE_deselect_all_visible(), PE_lasso_select(), and PE_mouse_particles().
| void PE_free_ptcache_edit | ( | PTCacheEdit * | edit | ) |
Definition at line 134 of file particle_edit.cc.
References PTCacheEdit::emitter_cosnos, PTCacheEdit::emitter_field, LOOP_POINTS, MEM_freeN(), PTCacheEdit::mirror_cache, POINT_P, PTCacheEdit::points, PTCacheEdit::psys, and psys_free_path_cache().
Referenced by clear_edited_exec(), PE_create_particle_edit(), and ptcache_free_bake().
| PTCacheEdit * PE_get_current | ( | Depsgraph * | depsgraph, |
| Scene * | scene, | ||
| Object * | ob ) |
Definition at line 399 of file particle_edit.cc.
References depsgraph, and pe_get_current().
Referenced by brush_edit_init(), convert_type_get(), createTransParticleVerts(), flushTransParticles(), gizmo_3d_foreach_selected(), hide_exec(), mirror_exec(), mirror_poll(), particle_undosys_poll(), particle_undosys_step_decode(), particle_undosys_step_encode(), PE_box_select(), PE_circle_select(), PE_deselect_all_visible(), PE_hair_poll(), PE_lasso_select(), PE_minmax(), PE_mirror_x(), PE_mouse_particles(), PE_poll(), pe_select_all_exec(), PE_set_data(), PE_update_object(), PE_update_selection(), rekey_particle_to_time(), remove_doubles_exec(), reveal_exec(), select_random_exec(), shape_cut_exec(), unify_length_exec(), and weight_set_exec().
| PTCacheEdit * PE_get_current_from_psys | ( | ParticleSystem * | psys | ) |
Definition at line 254 of file particle_edit.cc.
References ParticleSystem::edit, PointCache::edit, ParticleSystem::flag, PointCache::flag, ParticleSystem::part, PART_HAIR, ParticleSystem::pointcache, PSYS_HAIR_DYNAMICS, PTCACHE_BAKED, and ParticleSettings::type.
Referenced by blender::draw::overlay::Particles::edit_object_sync(), and OVERLAY_edit_particle_cache_populate().
| void PE_hide_keys_time | ( | Scene * | scene, |
| PTCacheEdit * | edit, | ||
| float | cfra ) |
Definition at line 416 of file particle_edit.cc.
References fabsf, ParticleEditSettings::fade_frames, ParticleEditSettings::flag, KEY_K, LOOP_KEYS, LOOP_POINTS, PE_FADE_TIME, PE_settings(), PEK_HIDE, POINT_P, SCE_SELECT_POINT, and ParticleEditSettings::selectmode.
Referenced by PE_update_object().
Definition at line 2405 of file particle_edit.cc.
References BLI_lasso_is_point_inside(), copy_v3_v3(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_wm_region(), data, depsgraph, ED_select_op_action_deselected(), ED_view3d_project_int_global(), ParticleSystem::flag, ParticleSettings::from, IS_CLIPPED, is_inside(), KEY_K, key_test_depth(), LOOP_VISIBLE_KEYS, LOOP_VISIBLE_POINTS, ParticleSystemModifierData::mesh_final, mul_m4_v3(), NA_SELECTED, NC_OBJECT, ND_PARTICLE, OPERATOR_CANCELLED, OPERATOR_FINISHED, ParticleSystem::part, ParticleSystem::particles, PE_data_free(), PE_deselect_all_visible_ex(), PE_get_current(), PE_set_view3d_data(), PE_settings(), PE_start_edit(), PE_update_selection(), PEK_SELECT, PEP_EDIT_RECALC, POINT_P, PTCacheEdit::psmd_eval, PTCacheEdit::psys, PSYS_GLOBAL_HAIR, psys_mat_hair_to_global(), SCE_SELECT_END, SCE_SELECT_POINT, SEL_OP_USE_PRE_DESELECT, ParticleEditSettings::selectmode, SET_FLAG_FROM_TEST, unit_m4(), V3D_PROJ_RET_OK, V3D_PROJ_TEST_CLIP_WIN, and WM_event_add_notifier().
Referenced by view3d_lasso_select().
| int PE_minmax | ( | Depsgraph * | depsgraph, |
| Scene * | scene, | ||
| ViewLayer * | view_layer, | ||
| blender::float3 & | min, | ||
| blender::float3 & | max ) |
Definition at line 171 of file particle_edit.cc.
References BKE_object_minmax(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), copy_v3_v3(), depsgraph, ParticleSettings::from, KEY_K, LOOP_SELECTED_KEYS, LOOP_VISIBLE_POINTS, ParticleSystemModifierData::mesh_final, min, blender::math::min_max(), mul_m4_v3(), ParticleSystem::part, ParticleSystem::particles, PE_get_current(), POINT_P, PTCacheEdit::psmd_eval, PTCacheEdit::psys, psys_mat_hair_to_global(), and unit_m4().
Referenced by brush_edit_init(), and viewselected_exec().
| bool PE_mouse_particles | ( | bContext * | C, |
| const int | mval[2], | ||
| const SelectPick_Params * | params ) |
Definition at line 1876 of file particle_edit.cc.
References BLI_assert_unreachable, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), depsgraph, PTCacheEditKey::flag, NA_SELECTED, NC_OBJECT, ND_PARTICLE, params, PE_deselect_all_visible_ex(), PE_get_current(), pe_nearest_point_and_key(), PE_start_edit(), PE_update_selection(), PEK_SELECT, PEP_EDIT_RECALC, point, SEL_OP_ADD, SEL_OP_AND, SEL_OP_SET, SEL_OP_SUB, SEL_OP_XOR, and WM_event_add_notifier().
Referenced by view3d_select_exec().
| ParticleEditSettings * PE_settings | ( | Scene * | scene | ) |
Definition at line 239 of file particle_edit.cc.
Referenced by blender::draw::overlay::Particles::begin_sync(), brush_add(), brush_comb(), brush_cut(), brush_drawcursor(), brush_edit_apply(), brush_puff(), count_selected_keys(), createTransParticleVerts(), disconnect_hair(), for_mouse_hit_keys(), foreach_mouse_hit_key(), foreach_mouse_hit_key_iter(), foreach_mouse_hit_point(), OVERLAY_edit_particle_cache_init(), OVERLAY_particle_cache_init(), PE_apply_lengths(), pe_deflect_emitter(), pe_get_current(), PE_hide_keys_time(), pe_iterate_lengths(), PE_lasso_select(), PE_update_object(), shape_cut(), shape_cut_exec(), shape_cut_poll(), toggle_particle_cursor(), and weight_set_exec().
| int PE_start_edit | ( | PTCacheEdit * | edit | ) |
Definition at line 226 of file particle_edit.cc.
References PTCacheEdit::edited, ParticleSystem::flag, PTCacheEdit::psys, and PSYS_EDITED.
Referenced by brush_edit_apply(), convert_type_get(), PE_box_select(), PE_circle_select(), PE_deselect_all_visible(), PE_lasso_select(), PE_mouse_particles(), and shape_cut_exec().
Definition at line 1626 of file particle_edit.cc.
References depsgraph, ParticleEditSettings::flag, ParticleSystem::flag, G, LOOP_POINTS, ParticleSystem::part, PART_EMITTER, PE_apply_lengths(), PE_apply_mirror(), PE_AUTO_VELOCITY, pe_deflect_emitter(), PE_get_current(), PE_hide_keys_time(), pe_iterate_lengths(), PE_settings(), pe_x_mirror(), PEP_EDIT_RECALC, POINT_P, PTCacheEdit::psys, psys_cache_edit_paths(), ParticleSettings::type, update_velocities(), and update_world_cos().
Referenced by brush_edit_apply(), copy_particle_edit(), disconnect_hair(), blender::draw::drw_particle_update_ptcache_edit(), flushTransParticles(), PE_create_particle_edit(), rekey_exec(), remap_hair_emitter(), shape_cut_exec(), subdivide_exec(), and unify_length_exec().