Blender V5.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
8
9#pragma once
10
12
13namespace blender {
14
15struct Depsgraph;
16struct Object;
17struct PTCacheEdit;
19struct ParticleSystem;
20struct Scene;
22struct UndoType;
23struct ViewLayer;
24struct bContext;
25struct rcti;
27
28/* particle edit mode */
29
31int PE_start_edit(PTCacheEdit *edit);
32
33/* access */
34
36PTCacheEdit *PE_get_current(Depsgraph *depsgraph, Scene *scene, Object *ob);
37PTCacheEdit *PE_create_current(Depsgraph *depsgraph, Scene *scene, Object *ob);
38void PE_current_changed(Depsgraph *depsgraph, Scene *scene, Object *ob);
39int PE_minmax(Depsgraph *depsgraph, Scene *scene, ViewLayer *view_layer, float3 &min, float3 &max);
41
42/* update calls */
43
44void PE_hide_keys_time(Scene *scene, PTCacheEdit *edit, float cfra);
45void PE_update_object(Depsgraph *depsgraph, Scene *scene, Object *ob, int useflag);
46
47/* selection tools */
48
49bool PE_mouse_particles(bContext *C, const int mval[2], const SelectPick_Params &params);
50bool PE_box_select(bContext *C, const rcti *rect, int sel_op);
52 bContext *C, wmGenericUserData *wm_userdata, int sel_op, const int mval[2], float rad);
53int PE_lasso_select(bContext *C, const int mcoords[][2], int mcoords_len, int sel_op);
56
57/* `particle_edit_undo.cc` */
58
61
62} // namespace blender
#define C
Definition RandGen.cpp:29
btScalar max
BMesh Iterators.
PTCacheEdit * PE_get_current_from_psys(ParticleSystem *psys)
bool PE_box_select(bContext *C, const rcti *rect, int sel_op)
void PE_hide_keys_time(Scene *scene, PTCacheEdit *edit, float cfra)
void PE_current_changed(Depsgraph *depsgraph, Scene *scene, Object *ob)
bool PE_deselect_all_visible(bContext *C)
int PE_minmax(Depsgraph *depsgraph, Scene *scene, ViewLayer *view_layer, float3 &min, float3 &max)
void PE_update_object(Depsgraph *depsgraph, Scene *scene, Object *ob, int useflag)
int PE_lasso_select(bContext *C, const int mcoords[][2], int mcoords_len, int sel_op)
PTCacheEdit * PE_get_current(Depsgraph *depsgraph, Scene *scene, Object *ob)
bool PE_circle_select(bContext *C, wmGenericUserData *wm_userdata, int sel_op, const int mval[2], float rad)
bool PE_mouse_particles(bContext *C, const int mval[2], const SelectPick_Params &params)
void PE_free_ptcache_edit(PTCacheEdit *edit)
int PE_start_edit(PTCacheEdit *edit)
VecBase< float, 3 > float3
PTCacheEdit * PE_create_current(Depsgraph *depsgraph, Scene *scene, Object *ob)
bool PE_deselect_all_visible_ex(PTCacheEdit *edit)
ParticleEditSettings * PE_settings(Scene *scene)
void ED_particle_undosys_type(UndoType *ut)
#define min(a, b)
Definition sort.cc:38