Blender  V2.93
ED_particle.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2007 by Janne Karhu.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 struct Object;
31 struct PTCacheEdit;
33 struct ParticleSystem;
34 struct Scene;
35 struct UndoType;
36 struct ViewLayer;
37 struct bContext;
38 struct rcti;
39 
40 /* particle edit mode */
41 void PE_free_ptcache_edit(struct PTCacheEdit *edit);
42 int PE_start_edit(struct PTCacheEdit *edit);
43 
44 /* access */
47  struct Scene *scene,
48  struct Object *ob);
50  struct Scene *scene,
51  struct Object *ob);
52 void PE_current_changed(struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob);
53 int PE_minmax(struct Depsgraph *depsgraph,
54  struct Scene *scene,
55  struct ViewLayer *view_layer,
56  float min[3],
57  float max[3]);
59 
60 /* update calls */
61 void PE_hide_keys_time(struct Scene *scene, struct PTCacheEdit *edit, float cfra);
63  struct Scene *scene,
64  struct Object *ob,
65  int useflag);
66 
67 /* selection tools */
69  struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle);
70 bool PE_box_select(struct bContext *C, const struct rcti *rect, const int sel_op);
71 bool PE_circle_select(struct bContext *C, const int sel_op, const int mval[2], float rad);
72 int PE_lasso_select(struct bContext *C,
73  const int mcoords[][2],
74  const int mcoords_len,
75  const int sel_op);
76 bool PE_deselect_all_visible_ex(struct PTCacheEdit *edit);
77 bool PE_deselect_all_visible(struct bContext *C);
78 
79 /* particle_edit_undo.c */
80 void ED_particle_undosys_type(struct UndoType *ut);
81 
82 #ifdef __cplusplus
83 }
84 #endif
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:51
struct PTCacheEdit * PE_get_current_from_psys(struct ParticleSystem *psys)
void ED_particle_undosys_type(struct UndoType *ut)
void PE_hide_keys_time(struct Scene *scene, struct PTCacheEdit *edit, float cfra)
bool PE_box_select(struct bContext *C, const struct rcti *rect, const int sel_op)
bool PE_mouse_particles(struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle)
int PE_lasso_select(struct bContext *C, const int mcoords[][2], const int mcoords_len, const int sel_op)
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_circle_select(struct bContext *C, const int sel_op, const int mval[2], float rad)
bool PE_deselect_all_visible_ex(struct PTCacheEdit *edit)
struct ParticleEditSettings * PE_settings(struct Scene *scene)
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:39
Scene scene
const Depsgraph * depsgraph
#define min(a, b)
Definition: sort.c:51
struct ParticleSystem * psys
float max