Blender  V3.3
ED_particle.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2007 by Janne Karhu. All rights reserved. */
3 
8 #pragma once
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 struct Object;
15 struct PTCacheEdit;
17 struct ParticleSystem;
18 struct Scene;
19 struct SelectPick_Params;
20 struct UndoType;
21 struct ViewLayer;
22 struct bContext;
23 struct rcti;
24 struct wmGenericUserData;
25 
26 /* particle edit mode */
27 
28 void PE_free_ptcache_edit(struct PTCacheEdit *edit);
29 int PE_start_edit(struct PTCacheEdit *edit);
30 
31 /* access */
32 
35  struct Scene *scene,
36  struct Object *ob);
38  struct Scene *scene,
39  struct Object *ob);
40 void PE_current_changed(struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob);
41 int PE_minmax(struct Depsgraph *depsgraph,
42  struct Scene *scene,
43  struct ViewLayer *view_layer,
44  float min[3],
45  float max[3]);
47 
48 /* update calls */
49 
50 void PE_hide_keys_time(struct Scene *scene, struct PTCacheEdit *edit, float cfra);
52  struct Scene *scene,
53  struct Object *ob,
54  int useflag);
55 
56 /* selection tools */
57 
58 bool PE_mouse_particles(struct bContext *C,
59  const int mval[2],
60  const struct SelectPick_Params *params);
61 bool PE_box_select(struct bContext *C, const struct rcti *rect, int sel_op);
62 bool PE_circle_select(struct bContext *C,
63  struct wmGenericUserData *wm_userdata,
64  int sel_op,
65  const int mval[2],
66  float rad);
67 int PE_lasso_select(struct bContext *C, const int mcoords[][2], int mcoords_len, int sel_op);
68 bool PE_deselect_all_visible_ex(struct PTCacheEdit *edit);
69 bool PE_deselect_all_visible(struct bContext *C);
70 
71 /* particle_edit_undo.c */
72 
74 void ED_particle_undosys_type(struct UndoType *ut);
75 
76 #ifdef __cplusplus
77 }
78 #endif
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
int PE_lasso_select(struct bContext *C, const int mcoords[][2], int mcoords_len, int sel_op)
struct PTCacheEdit * PE_get_current_from_psys(struct ParticleSystem *psys)
bool PE_circle_select(struct bContext *C, struct wmGenericUserData *wm_userdata, int sel_op, const int mval[2], float rad)
void ED_particle_undosys_type(struct UndoType *ut)
void PE_hide_keys_time(struct Scene *scene, struct PTCacheEdit *edit, float cfra)
void PE_free_ptcache_edit(struct PTCacheEdit *edit)
int PE_start_edit(struct PTCacheEdit *edit)
bool PE_deselect_all_visible(struct bContext *C)
bool PE_box_select(struct bContext *C, const struct rcti *rect, int sel_op)
bool PE_deselect_all_visible_ex(struct PTCacheEdit *edit)
struct ParticleEditSettings * PE_settings(struct Scene *scene)
bool PE_mouse_particles(struct bContext *C, const int mval[2], const struct SelectPick_Params *params)
struct PTCacheEdit * PE_create_current(struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob)
void PE_current_changed(struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob)
int PE_minmax(struct Depsgraph *depsgraph, struct Scene *scene, struct ViewLayer *view_layer, float min[3], float max[3])
void PE_update_object(struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob, int useflag)
struct PTCacheEdit * PE_get_current(struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob)
#define C
Definition: RandGen.cpp:25
Scene scene
const Depsgraph * depsgraph
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
#define min(a, b)
Definition: sort.c:35
struct ParticleSystem * psys
float max