|
Blender V4.3
|
#include <cstdlib>#include "MEM_guardedalloc.h"#include "DNA_particle_types.h"#include "BLI_listbase.h"#include "BLI_utildefines.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 int | rule_add_exec (bContext *C, wmOperator *op) |
| void | BOID_OT_rule_add (wmOperatorType *ot) |
| static int | rule_del_exec (bContext *C, wmOperator *) |
| void | BOID_OT_rule_del (wmOperatorType *ot) |
| static int | rule_move_up_exec (bContext *C, wmOperator *) |
| void | BOID_OT_rule_move_up (wmOperatorType *ot) |
| static int | rule_move_down_exec (bContext *C, wmOperator *) |
| void | BOID_OT_rule_move_down (wmOperatorType *ot) |
| static int | state_add_exec (bContext *C, wmOperator *) |
| void | BOID_OT_state_add (wmOperatorType *ot) |
| static int | state_del_exec (bContext *C, wmOperator *) |
| void | BOID_OT_state_del (wmOperatorType *ot) |
| static int | state_move_up_exec (bContext *C, wmOperator *) |
| void | BOID_OT_state_move_up (wmOperatorType *ot) |
| static int | 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 64 of file particle_boids.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::prop, RNA_def_enum(), rna_enum_boidrule_type_items, rule_add_exec(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by operatortypes_boids().
| void BOID_OT_rule_del | ( | wmOperatorType * | ot | ) |
Definition at line 113 of file particle_boids.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and rule_del_exec().
Referenced by operatortypes_boids().
| void BOID_OT_rule_move_down | ( | wmOperatorType * | ot | ) |
Definition at line 188 of file particle_boids.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, 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 152 of file particle_boids.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and rule_move_up_exec().
Referenced by operatortypes_boids().
| void BOID_OT_state_add | ( | wmOperatorType * | ot | ) |
Definition at line 223 of file particle_boids.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and state_add_exec().
Referenced by operatortypes_boids().
| void BOID_OT_state_del | ( | wmOperatorType * | ot | ) |
Definition at line 272 of file particle_boids.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and state_del_exec().
Referenced by operatortypes_boids().
| void BOID_OT_state_move_down | ( | wmOperatorType * | ot | ) |
Definition at line 346 of file particle_boids.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, 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 310 of file particle_boids.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and state_move_up_exec().
Referenced by operatortypes_boids().
|
static |
Definition at line 35 of file particle_boids.cc.
References BLI_addtail(), boid_get_current_state(), boid_new_rule(), BOIDRULE_CURRENT, CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), BoidRule::flag, ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ptr, wmOperator::ptr, RNA_enum_get(), and state.
Referenced by BOID_OT_rule_add().
|
static |
Definition at line 80 of file particle_boids.cc.
References BLI_remlink(), boid_get_current_state(), BOIDRULE_CURRENT, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), DEG_relations_tag_update(), BoidRule::flag, ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, LISTBASE_FOREACH, MEM_freeN(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ptr, and state.
Referenced by BOID_OT_rule_del().
|
static |
Definition at line 164 of file particle_boids.cc.
References BLI_insertlinkafter(), BLI_remlink(), boid_get_current_state(), BOIDRULE_CURRENT, CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ptr, and state.
Referenced by BOID_OT_rule_move_down().
|
static |
Definition at line 128 of file particle_boids.cc.
References BLI_insertlinkbefore(), BLI_remlink(), boid_get_current_state(), BOIDRULE_CURRENT, CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ptr, and state.
Referenced by BOID_OT_rule_move_up().
|
static |
Definition at line 201 of file particle_boids.cc.
References BLI_addtail(), boid_new_state(), BOIDSTATE_CURRENT, CTX_data_pointer_get_type(), PointerRNA::data, BoidState::flag, LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ptr, and state.
Referenced by BOID_OT_state_add().
|
static |
Definition at line 236 of file particle_boids.cc.
References BLI_addtail(), BLI_remlink(), boid_new_state(), BOIDSTATE_CURRENT, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), DEG_relations_tag_update(), BoidState::flag, ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, LISTBASE_FOREACH, MEM_freeN(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ptr, and state.
Referenced by BOID_OT_state_del().
|
static |
Definition at line 322 of file particle_boids.cc.
References BLI_insertlinkafter(), BLI_remlink(), BOIDSTATE_CURRENT, CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ptr, state, and BoidSettings::states.
Referenced by BOID_OT_state_move_down().
|
static |
Definition at line 287 of file particle_boids.cc.
References BLI_insertlinkbefore(), BLI_remlink(), BOIDSTATE_CURRENT, CTX_data_pointer_get_type(), PointerRNA::data, LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ptr, state, and BoidSettings::states.
Referenced by BOID_OT_state_move_up().