Blender V5.0
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
8
9#pragma once
10
12
13struct Depsgraph;
14struct Object;
15struct PTCacheEdit;
17struct ParticleSystem;
18struct Scene;
20struct UndoType;
21struct ViewLayer;
22struct bContext;
23struct rcti;
25
26/* particle edit mode */
27
29int PE_start_edit(PTCacheEdit *edit);
30
31/* access */
32
34PTCacheEdit *PE_get_current(Depsgraph *depsgraph, Scene *scene, Object *ob);
35PTCacheEdit *PE_create_current(Depsgraph *depsgraph, Scene *scene, Object *ob);
36void PE_current_changed(Depsgraph *depsgraph, Scene *scene, Object *ob);
37int PE_minmax(Depsgraph *depsgraph,
38 Scene *scene,
39 ViewLayer *view_layer,
43
44/* update calls */
45
46void PE_hide_keys_time(Scene *scene, PTCacheEdit *edit, float cfra);
47void PE_update_object(Depsgraph *depsgraph, Scene *scene, Object *ob, int useflag);
48
49/* selection tools */
50
51bool PE_mouse_particles(bContext *C, const int mval[2], const SelectPick_Params &params);
52bool PE_box_select(bContext *C, const rcti *rect, int sel_op);
54 bContext *C, wmGenericUserData *wm_userdata, int sel_op, const int mval[2], float rad);
55int PE_lasso_select(bContext *C, const int mcoords[][2], int mcoords_len, int sel_op);
58
59/* `particle_edit_undo.cc` */
60
PTCacheEdit * PE_get_current_from_psys(ParticleSystem *psys)
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)
bool PE_mouse_particles(bContext *C, const int mval[2], const SelectPick_Params &params)
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)
#define C
Definition RandGen.cpp:29
BPy_StructRNA * depsgraph
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
VecBase< float, 3 > float3
#define min(a, b)
Definition sort.cc:36
max
Definition text_draw.cc:251