Blender  V2.93
physics_ops.c
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) 2009 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #include <stdlib.h>
25 
26 #include "WM_api.h"
27 
28 #include "ED_physics.h"
29 
30 #include "physics_intern.h" /* own include */
31 
32 /***************************** particles ***********************************/
33 
34 static void operatortypes_particle(void)
35 {
44 
47 
54 
56 
58 
61 
63 
66 
76 
82 
85 
88 
91 
94 
97  // WM_operatortype_append(RIGIDBODY_OT_world_export);
98 }
99 
100 static void keymap_particle(wmKeyConfig *keyconf)
101 {
102  wmKeyMap *keymap = WM_keymap_ensure(keyconf, "Particle", 0, 0);
103  keymap->poll = PE_poll;
104 }
105 
106 /******************************* boids *************************************/
107 
108 static void operatortypes_boids(void)
109 {
114 
119 }
120 
121 /********************************* fluid ***********************************/
122 
123 static void operatortypes_fluid(void)
124 {
138 }
139 
140 /**************************** point cache **********************************/
141 
142 static void operatortypes_pointcache(void)
143 {
151 }
152 
153 /********************************* dynamic paint ***********************************/
154 
155 static void operatortypes_dynamicpaint(void)
156 {
162 }
163 
164 /****************************** general ************************************/
165 
167 {
173 }
174 
176 {
177  keymap_particle(keyconf);
178 }
bool PE_poll(struct bContext *C)
Definition: particle_edit.c:95
void DPAINT_OT_type_toggle(wmOperatorType *ot)
void DPAINT_OT_output_toggle(wmOperatorType *ot)
void DPAINT_OT_surface_slot_add(wmOperatorType *ot)
void DPAINT_OT_surface_slot_remove(wmOperatorType *ot)
void DPAINT_OT_bake(wmOperatorType *ot)
void BOID_OT_state_add(wmOperatorType *ot)
void BOID_OT_state_move_down(wmOperatorType *ot)
void BOID_OT_rule_add(wmOperatorType *ot)
void BOID_OT_rule_move_down(wmOperatorType *ot)
void BOID_OT_rule_move_up(wmOperatorType *ot)
void BOID_OT_state_del(wmOperatorType *ot)
void BOID_OT_state_move_up(wmOperatorType *ot)
void BOID_OT_rule_del(wmOperatorType *ot)
void PARTICLE_OT_select_roots(wmOperatorType *ot)
void PARTICLE_OT_unify_length(struct wmOperatorType *ot)
void PARTICLE_OT_weight_set(wmOperatorType *ot)
void PARTICLE_OT_remove_doubles(wmOperatorType *ot)
void PARTICLE_OT_shape_cut(wmOperatorType *ot)
void PARTICLE_OT_delete(wmOperatorType *ot)
void PARTICLE_OT_select_less(wmOperatorType *ot)
void PARTICLE_OT_edited_clear(wmOperatorType *ot)
void PARTICLE_OT_mirror(wmOperatorType *ot)
void PARTICLE_OT_select_random(wmOperatorType *ot)
void PARTICLE_OT_select_linked(wmOperatorType *ot)
void PARTICLE_OT_reveal(wmOperatorType *ot)
void PARTICLE_OT_subdivide(wmOperatorType *ot)
void PARTICLE_OT_select_more(wmOperatorType *ot)
void PARTICLE_OT_rekey(wmOperatorType *ot)
void PARTICLE_OT_select_all(wmOperatorType *ot)
void PARTICLE_OT_particle_edit_toggle(wmOperatorType *ot)
void PARTICLE_OT_select_tips(wmOperatorType *ot)
void PARTICLE_OT_hide(wmOperatorType *ot)
void PARTICLE_OT_select_linked_pick(wmOperatorType *ot)
void PARTICLE_OT_brush_edit(wmOperatorType *ot)
void PARTICLE_OT_target_move_up(wmOperatorType *ot)
void PARTICLE_OT_dupliob_copy(wmOperatorType *ot)
void PARTICLE_OT_dupliob_refresh(wmOperatorType *ot)
void PARTICLE_OT_new(wmOperatorType *ot)
void PARTICLE_OT_new_target(wmOperatorType *ot)
void PARTICLE_OT_disconnect_hair(wmOperatorType *ot)
void PARTICLE_OT_dupliob_move_down(wmOperatorType *ot)
void PARTICLE_OT_target_remove(wmOperatorType *ot)
void PARTICLE_OT_connect_hair(wmOperatorType *ot)
void OBJECT_OT_particle_system_remove(wmOperatorType *ot)
void PARTICLE_OT_copy_particle_systems(wmOperatorType *ot)
void PARTICLE_OT_dupliob_remove(wmOperatorType *ot)
void PARTICLE_OT_dupliob_move_up(wmOperatorType *ot)
void OBJECT_OT_particle_system_add(wmOperatorType *ot)
void PARTICLE_OT_target_move_down(wmOperatorType *ot)
void PARTICLE_OT_duplicate_particle_system(wmOperatorType *ot)
void FLUID_OT_free_mesh(wmOperatorType *ot)
void FLUID_OT_free_particles(wmOperatorType *ot)
void FLUID_OT_free_all(wmOperatorType *ot)
void FLUID_OT_bake_guides(wmOperatorType *ot)
void FLUID_OT_free_guides(wmOperatorType *ot)
void FLUID_OT_bake_particles(wmOperatorType *ot)
void FLUID_OT_bake_all(wmOperatorType *ot)
void FLUID_OT_bake_data(wmOperatorType *ot)
void FLUID_OT_free_noise(wmOperatorType *ot)
void FLUID_OT_pause_bake(wmOperatorType *ot)
void FLUID_OT_bake_noise(wmOperatorType *ot)
void FLUID_OT_free_data(wmOperatorType *ot)
void FLUID_OT_bake_mesh(wmOperatorType *ot)
void PTCACHE_OT_remove(struct wmOperatorType *ot)
void RIGIDBODY_OT_world_remove(struct wmOperatorType *ot)
void RIGIDBODY_OT_mass_calculate(struct wmOperatorType *ot)
void PTCACHE_OT_free_bake(struct wmOperatorType *ot)
void PTCACHE_OT_bake_from_cache(struct wmOperatorType *ot)
void RIGIDBODY_OT_world_add(struct wmOperatorType *ot)
void PTCACHE_OT_add(struct wmOperatorType *ot)
void RIGIDBODY_OT_objects_remove(struct wmOperatorType *ot)
void RIGIDBODY_OT_constraint_remove(struct wmOperatorType *ot)
void PTCACHE_OT_bake_all(struct wmOperatorType *ot)
void RIGIDBODY_OT_shape_change(struct wmOperatorType *ot)
void RIGIDBODY_OT_constraint_add(struct wmOperatorType *ot)
void PTCACHE_OT_free_bake_all(struct wmOperatorType *ot)
void PTCACHE_OT_bake(struct wmOperatorType *ot)
void RIGIDBODY_OT_object_add(struct wmOperatorType *ot)
void RIGIDBODY_OT_objects_add(struct wmOperatorType *ot)
void RIGIDBODY_OT_object_remove(struct wmOperatorType *ot)
void ED_operatortypes_physics(void)
Definition: physics_ops.c:166
static void operatortypes_boids(void)
Definition: physics_ops.c:108
static void operatortypes_particle(void)
Definition: physics_ops.c:34
static void operatortypes_pointcache(void)
Definition: physics_ops.c:142
static void keymap_particle(wmKeyConfig *keyconf)
Definition: physics_ops.c:100
static void operatortypes_dynamicpaint(void)
Definition: physics_ops.c:155
static void operatortypes_fluid(void)
Definition: physics_ops.c:123
void ED_keymap_physics(wmKeyConfig *keyconf)
Definition: physics_ops.c:175
bool(* poll)(struct bContext *)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
Definition: wm_keymap.c:852
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))