Blender V4.3
ED_particle.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2007 by Janne Karhu. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
12
13struct Object;
14struct PTCacheEdit;
16struct ParticleSystem;
17struct Scene;
19struct UndoType;
20struct ViewLayer;
21struct bContext;
22struct rcti;
24
25/* particle edit mode */
26
28int PE_start_edit(PTCacheEdit *edit);
29
30/* access */
31
33PTCacheEdit *PE_get_current(Depsgraph *depsgraph, Scene *scene, Object *ob);
34PTCacheEdit *PE_create_current(Depsgraph *depsgraph, Scene *scene, Object *ob);
35void PE_current_changed(Depsgraph *depsgraph, Scene *scene, Object *ob);
36int PE_minmax(Depsgraph *depsgraph,
37 Scene *scene,
38 ViewLayer *view_layer,
40 blender::float3 &max);
42
43/* update calls */
44
45void PE_hide_keys_time(Scene *scene, PTCacheEdit *edit, float cfra);
46void PE_update_object(Depsgraph *depsgraph, Scene *scene, Object *ob, int useflag);
47
48/* selection tools */
49
50bool PE_mouse_particles(bContext *C, const int mval[2], const SelectPick_Params *params);
51bool PE_box_select(bContext *C, const rcti *rect, int sel_op);
53 bContext *C, wmGenericUserData *wm_userdata, int sel_op, const int mval[2], float rad);
54int PE_lasso_select(bContext *C, const int mcoords[][2], int mcoords_len, int sel_op);
57
58/* `particle_edit_undo.cc` */
59
PTCacheEdit * PE_get_current_from_psys(ParticleSystem *psys)
bool PE_mouse_particles(bContext *C, const int mval[2], const SelectPick_Params *params)
bool PE_deselect_all_visible_ex(PTCacheEdit *edit)
void PE_current_changed(Depsgraph *depsgraph, Scene *scene, Object *ob)
int PE_minmax(Depsgraph *depsgraph, Scene *scene, ViewLayer *view_layer, blender::float3 &min, blender::float3 &max)
void PE_update_object(Depsgraph *depsgraph, Scene *scene, Object *ob, int useflag)
bool PE_circle_select(bContext *C, wmGenericUserData *wm_userdata, int sel_op, const int mval[2], float rad)
void PE_free_ptcache_edit(PTCacheEdit *edit)
void PE_hide_keys_time(Scene *scene, PTCacheEdit *edit, float cfra)
ParticleEditSettings * PE_settings(Scene *scene)
bool PE_box_select(bContext *C, const rcti *rect, int sel_op)
PTCacheEdit * PE_get_current(Depsgraph *depsgraph, Scene *scene, Object *ob)
void ED_particle_undosys_type(UndoType *ut)
int PE_start_edit(PTCacheEdit *edit)
int PE_lasso_select(bContext *C, const int mcoords[][2], int mcoords_len, int sel_op)
bool PE_deselect_all_visible(bContext *C)
PTCacheEdit * PE_create_current(Depsgraph *depsgraph, Scene *scene, Object *ob)
const Depsgraph * depsgraph
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
#define min(a, b)
Definition sort.c:32