Blender
V3.3
|
#include <stdlib.h>
#include "MEM_guardedalloc.h"
#include "DNA_particle_types.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "BKE_boids.h"
#include "BKE_context.h"
#include "BKE_main.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "RNA_prototypes.h"
#include "WM_api.h"
#include "WM_types.h"
#include "physics_intern.h"
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 *UNUSED(op)) |
void | BOID_OT_rule_del (wmOperatorType *ot) |
static int | rule_move_up_exec (bContext *C, wmOperator *UNUSED(op)) |
void | BOID_OT_rule_move_up (wmOperatorType *ot) |
static int | rule_move_down_exec (bContext *C, wmOperator *UNUSED(op)) |
void | BOID_OT_rule_move_down (wmOperatorType *ot) |
static int | state_add_exec (bContext *C, wmOperator *UNUSED(op)) |
void | BOID_OT_state_add (wmOperatorType *ot) |
static int | state_del_exec (bContext *C, wmOperator *UNUSED(op)) |
void | BOID_OT_state_del (wmOperatorType *ot) |
static int | state_move_up_exec (bContext *C, wmOperator *UNUSED(op)) |
void | BOID_OT_state_move_up (wmOperatorType *ot) |
static int | state_move_down_exec (bContext *C, wmOperator *UNUSED(op)) |
void | BOID_OT_state_move_down (wmOperatorType *ot) |
void BOID_OT_rule_add | ( | wmOperatorType * | ot | ) |
Definition at line 64 of file particle_boids.c.
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.c.
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 190 of file particle_boids.c.
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 153 of file particle_boids.c.
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 225 of file particle_boids.c.
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 274 of file particle_boids.c.
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 350 of file particle_boids.c.
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 313 of file particle_boids.c.
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.c.
References BLI_addtail(), boid_get_current_state(), boid_new_rule(), BOIDRULE_CURRENT, ParticleSettings::boids, C, CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), BoidRule::flag, ParticleSettings::id, ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, BoidRule::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ParticleSettings::phystype, wmOperator::ptr, ptr, RNA_enum_get(), state, and type.
Referenced by BOID_OT_rule_add().
|
static |
Definition at line 80 of file particle_boids.c.
References BLI_remlink(), boid_get_current_state(), BOIDRULE_CURRENT, ParticleSettings::boids, C, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), DEG_relations_tag_update(), BoidRule::flag, ParticleSettings::id, ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, MEM_freeN, BoidRule::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ParticleSettings::phystype, ptr, and state.
Referenced by BOID_OT_rule_del().
|
static |
Definition at line 165 of file particle_boids.c.
References BLI_insertlinkafter(), BLI_remlink(), boid_get_current_state(), BOIDRULE_CURRENT, ParticleSettings::boids, C, CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), BoidRule::flag, ParticleSettings::id, ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, BoidRule::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ParticleSettings::phystype, ptr, and state.
Referenced by BOID_OT_rule_move_down().
|
static |
Definition at line 128 of file particle_boids.c.
References BLI_insertlinkbefore(), BLI_remlink(), boid_get_current_state(), BOIDRULE_CURRENT, ParticleSettings::boids, C, CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), BoidRule::flag, ParticleSettings::id, ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, BoidRule::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ParticleSettings::phystype, BoidRule::prev, ptr, and state.
Referenced by BOID_OT_rule_move_up().
|
static |
Definition at line 203 of file particle_boids.c.
References BLI_addtail(), boid_new_state(), ParticleSettings::boids, BOIDSTATE_CURRENT, C, CTX_data_pointer_get_type(), PointerRNA::data, ListBase::first, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ParticleSettings::phystype, ptr, state, and BoidSettings::states.
Referenced by BOID_OT_state_add().
|
static |
Definition at line 238 of file particle_boids.c.
References BLI_addtail(), BLI_remlink(), boid_new_state(), ParticleSettings::boids, BOIDSTATE_CURRENT, C, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), DEG_relations_tag_update(), ListBase::first, ParticleSettings::id, ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, 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 325 of file particle_boids.c.
References BLI_insertlinkafter(), BLI_remlink(), ParticleSettings::boids, BOIDSTATE_CURRENT, C, CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), ListBase::first, ParticleSettings::id, ID_RECALC_GEOMETRY, ID_RECALC_PSYS_RESET, 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 289 of file particle_boids.c.
References BLI_insertlinkbefore(), BLI_remlink(), ParticleSettings::boids, BOIDSTATE_CURRENT, C, CTX_data_pointer_get_type(), PointerRNA::data, ListBase::first, OPERATOR_CANCELLED, OPERATOR_FINISHED, PART_PHYS_BOIDS, ParticleSettings::phystype, ptr, state, and BoidSettings::states.
Referenced by BOID_OT_state_move_up().