|
Blender V5.0
|
#include <cstdlib>#include "MEM_guardedalloc.h"#include "DNA_particle_types.h"#include "BLI_listbase.h"#include "BKE_boids.h"#include "BKE_context.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_build.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "RNA_prototypes.hh"#include "WM_api.hh"#include "WM_types.hh"#include "physics_intern.hh"Go to the source code of this file.
Functions | |
| static wmOperatorStatus | rule_add_exec (bContext *C, wmOperator *op) |
| void | BOID_OT_rule_add (wmOperatorType *ot) |
| static wmOperatorStatus | rule_del_exec (bContext *C, wmOperator *) |
| void | BOID_OT_rule_del (wmOperatorType *ot) |
| static wmOperatorStatus | rule_move_up_exec (bContext *C, wmOperator *) |
| void | BOID_OT_rule_move_up (wmOperatorType *ot) |
| static wmOperatorStatus | rule_move_down_exec (bContext *C, wmOperator *) |
| void | BOID_OT_rule_move_down (wmOperatorType *ot) |
| static wmOperatorStatus | state_add_exec (bContext *C, wmOperator *) |
| void | BOID_OT_state_add (wmOperatorType *ot) |
| static wmOperatorStatus | state_del_exec (bContext *C, wmOperator *) |
| void | BOID_OT_state_del (wmOperatorType *ot) |
| static wmOperatorStatus | state_move_up_exec (bContext *C, wmOperator *) |
| void | BOID_OT_state_move_up (wmOperatorType *ot) |
| static wmOperatorStatus | state_move_down_exec (bContext *C, wmOperator *) |
| void | BOID_OT_state_move_down (wmOperatorType *ot) |
| void BOID_OT_rule_add | ( | wmOperatorType * | ot | ) |
Definition at line 63 of file particle_boids.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), rna_enum_boidrule_type_items, rule_add_exec(), and WM_menu_invoke().
Referenced by operatortypes_boids().
| void BOID_OT_rule_del | ( | wmOperatorType * | ot | ) |
Definition at line 112 of file particle_boids.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, and rule_del_exec().
Referenced by operatortypes_boids().
| void BOID_OT_rule_move_down | ( | wmOperatorType * | ot | ) |
Definition at line 187 of file particle_boids.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, and rule_move_down_exec().
Referenced by operatortypes_boids().
| void BOID_OT_rule_move_up | ( | wmOperatorType * | ot | ) |
Definition at line 151 of file particle_boids.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, and rule_move_up_exec().
Referenced by operatortypes_boids().
| void BOID_OT_state_add | ( | wmOperatorType * | ot | ) |
Definition at line 222 of file particle_boids.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, and state_add_exec().
Referenced by operatortypes_boids().
| void BOID_OT_state_del | ( | wmOperatorType * | ot | ) |
Definition at line 271 of file particle_boids.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, and state_del_exec().
Referenced by operatortypes_boids().
| void BOID_OT_state_move_down | ( | wmOperatorType * | ot | ) |
Definition at line 345 of file particle_boids.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, and state_move_down_exec().
Referenced by operatortypes_boids().
| void BOID_OT_state_move_up | ( | wmOperatorType * | ot | ) |
Definition at line 309 of file particle_boids.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, and state_move_up_exec().
Referenced by operatortypes_boids().
|
static |
Definition at line 34 of file particle_boids.cc.
References BLI_addtail(), boid_get_current_state(), boid_new_rule(), BOIDRULE_CURRENT, ParticleSettings::boids, C, CTX_data_pointer_get_type(), DEG_id_tag_update(), BoidRule::flag, ParticleSettings::id, ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ParticleSettings::phystype, ptr, wmOperator::ptr, RNA_enum_get(), and state.
Referenced by BOID_OT_rule_add().
|
static |
Definition at line 79 of file particle_boids.cc.
References BLI_remlink(), boid_get_current_state(), BOIDRULE_CURRENT, ParticleSettings::boids, C, CTX_data_main(), CTX_data_pointer_get_type(), DEG_id_tag_update(), DEG_relations_tag_update(), BoidRule::flag, ParticleSettings::id, ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, LISTBASE_FOREACH, MEM_freeN(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ParticleSettings::phystype, ptr, and state.
Referenced by BOID_OT_rule_del().
|
static |
Definition at line 163 of file particle_boids.cc.
References BLI_insertlinkafter(), BLI_remlink(), boid_get_current_state(), BOIDRULE_CURRENT, ParticleSettings::boids, C, CTX_data_pointer_get_type(), DEG_id_tag_update(), ParticleSettings::id, ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ParticleSettings::phystype, ptr, and state.
Referenced by BOID_OT_rule_move_down().
|
static |
Definition at line 127 of file particle_boids.cc.
References BLI_insertlinkbefore(), BLI_remlink(), boid_get_current_state(), BOIDRULE_CURRENT, ParticleSettings::boids, C, CTX_data_pointer_get_type(), DEG_id_tag_update(), ParticleSettings::id, ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ParticleSettings::phystype, ptr, and state.
Referenced by BOID_OT_rule_move_up().
|
static |
Definition at line 200 of file particle_boids.cc.
References BLI_addtail(), boid_new_state(), ParticleSettings::boids, BOIDSTATE_CURRENT, C, CTX_data_pointer_get_type(), LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ParticleSettings::phystype, ptr, state, and BoidSettings::states.
Referenced by BOID_OT_state_add().
|
static |
Definition at line 235 of file particle_boids.cc.
References BLI_addtail(), BLI_remlink(), boid_new_state(), ParticleSettings::boids, BOIDSTATE_CURRENT, C, CTX_data_main(), CTX_data_pointer_get_type(), DEG_id_tag_update(), DEG_relations_tag_update(), ListBase::first, ParticleSettings::id, ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, LISTBASE_FOREACH, MEM_freeN(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ParticleSettings::phystype, ptr, state, and BoidSettings::states.
Referenced by BOID_OT_state_del().
|
static |
Definition at line 321 of file particle_boids.cc.
References BLI_insertlinkafter(), BLI_remlink(), ParticleSettings::boids, BOIDSTATE_CURRENT, C, CTX_data_pointer_get_type(), DEG_id_tag_update(), ParticleSettings::id, ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ParticleSettings::phystype, ptr, state, and BoidSettings::states.
Referenced by BOID_OT_state_move_down().
|
static |
Definition at line 286 of file particle_boids.cc.
References BLI_insertlinkbefore(), BLI_remlink(), ParticleSettings::boids, BOIDSTATE_CURRENT, C, CTX_data_pointer_get_type(), LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ParticleSettings::phystype, ptr, state, and BoidSettings::states.
Referenced by BOID_OT_state_move_up().