|
Blender V4.5
|
#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_listbase.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_duplilist.hh"#include "BKE_global.hh"#include "BKE_layer.hh"#include "BKE_library.hh"#include "BKE_pointcache.h"#include "DEG_depsgraph.hh"#include "ED_particle.hh"#include "WM_api.hh"#include "WM_types.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_prototypes.hh"#include "physics_intern.hh"Go to the source code of this file.
Classes | |
| struct | PointCacheJob |
|
static |
Definition at line 395 of file physics_pointcache.cc.
References BKE_ptcache_add(), BKE_ptcache_id_find(), C, PTCacheID::cache, PTCacheID::cache_ptr, CTX_data_pointer_get_type(), CTX_data_scene(), PointerRNA::data, PTCacheID::default_step, DEG_id_tag_update(), Object::id, ID_RECALC_POINT_CACHE, NC_OBJECT, NC_SCENE, ND_FRAME, ND_POINTCACHE, OPERATOR_FINISHED, PointerRNA::owner_id, ptcache_add_new_exec(), PTCacheID::ptcaches, PointCache::step, and WM_event_add_notifier().
Referenced by ptcache_add_new_exec(), and PTCACHE_OT_add().
|
static |
Definition at line 67 of file physics_pointcache.cc.
References C, CTX_data_pointer_get_type(), CTX_wm_operator_poll_msg_set(), PointerRNA::data, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY_REAL, PointerRNA::owner_id, and ptcache_add_remove_poll().
Referenced by ptcache_add_remove_poll(), PTCACHE_OT_add(), and PTCACHE_OT_remove().
|
static |
Definition at line 37 of file physics_pointcache.cc.
References C, CTX_data_scene(), and ptcache_bake_all_poll().
Referenced by ptcache_bake_all_poll(), PTCACHE_OT_bake_all(), and PTCACHE_OT_free_bake_all().
|
static |
Definition at line 257 of file physics_pointcache.cc.
References C, CTX_wm_manager(), wmOperator::customdata, ptcache_bake_cancel(), WM_JOB_TYPE_POINTCACHE, and WM_jobs_kill_type().
Referenced by ptcache_bake_cancel(), PTCACHE_OT_bake(), and PTCACHE_OT_bake_all().
|
static |
Definition at line 201 of file physics_pointcache.cc.
References all(), BKE_ptcache_bake(), C, wmOperatorType::idname, MEM_freeN(), OPERATOR_FINISHED, ptcache_bake_exec(), ptcache_baker_create(), STREQ, and wmOperator::type.
Referenced by ptcache_bake_exec(), PTCACHE_OT_bake(), and PTCACHE_OT_bake_all().
|
static |
Definition at line 335 of file physics_pointcache.cc.
References C, CTX_data_pointer_get_type(), PointerRNA::data, PointCache::flag, NC_OBJECT, ND_POINTCACHE, OPERATOR_FINISHED, PointerRNA::owner_id, ptcache_bake_from_cache_exec(), PTCACHE_BAKED, and WM_event_add_notifier().
Referenced by ptcache_bake_from_cache_exec(), and PTCACHE_OT_bake_from_cache().
|
static |
Definition at line 212 of file physics_pointcache.cc.
References all(), PTCacheBaker::bake_job, PointCacheJob::baker, C, CTX_data_scene(), CTX_wm_manager(), CTX_wm_window(), wmOperatorType::idname, MEM_mallocN(), NC_OBJECT, ND_POINTCACHE, OPERATOR_RUNNING_MODAL, ptcache_bake_invoke(), ptcache_baker_create(), ptcache_job_endjob(), ptcache_job_free(), ptcache_job_startjob(), ptcache_job_update(), STREQ, wmOperator::type, PTCacheBaker::update_progress, PointCacheJob::wm, WM_event_add_modal_handler(), WM_JOB_PROGRESS, WM_JOB_TYPE_POINTCACHE, WM_jobs_callbacks(), WM_jobs_customdata_set(), WM_jobs_get(), WM_jobs_start(), WM_jobs_timer(), and WM_set_locked_interface().
Referenced by ptcache_bake_invoke(), PTCACHE_OT_bake(), and PTCACHE_OT_bake_all().
|
static |
Definition at line 245 of file physics_pointcache.cc.
References C, CTX_wm_manager(), wmOperator::customdata, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, ptcache_bake_modal(), WM_JOB_TYPE_POINTCACHE, and WM_jobs_test().
Referenced by ptcache_bake_modal(), PTCACHE_OT_bake(), and PTCACHE_OT_bake_all().
|
static |
Definition at line 176 of file physics_pointcache.cc.
References all(), PTCacheBaker::anim_init, PTCacheBaker::bake, BKE_ptcache_id_find(), PTCacheBaker::bmain, C, CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_pointer_get_type(), CTX_data_scene(), CTX_data_view_layer(), PointerRNA::data, PTCacheBaker::depsgraph, GS, ID_OB, MEM_callocN(), ID::name, PointerRNA::owner_id, PTCacheBaker::pid, ptcache_baker_create(), wmOperator::ptr, PTCacheBaker::quick_step, PTCacheBaker::render, RNA_boolean_get(), PTCacheBaker::scene, and PTCacheBaker::view_layer.
Referenced by ptcache_bake_exec(), ptcache_bake_invoke(), and ptcache_baker_create().
|
static |
Definition at line 162 of file physics_pointcache.cc.
References PointCache::edit, PTCacheEdit::edited, PointCache::flag, PE_free_ptcache_edit(), PTCACHE_BAKED, and ptcache_free_bake().
Referenced by ptcache_free_bake(), ptcache_free_bake_all_exec(), and ptcache_free_bake_exec().
|
static |
Definition at line 266 of file physics_pointcache.cc.
References BKE_ptcache_ids_from_object(), BLI_freelistN(), C, CTX_data_scene(), FOREACH_SCENE_OBJECT_BEGIN, FOREACH_SCENE_OBJECT_END, LISTBASE_FOREACH, MAX_DUPLI_RECUR, NC_OBJECT, NC_SCENE, ND_FRAME, ND_POINTCACHE, OPERATOR_FINISHED, ptcache_free_bake(), ptcache_free_bake_all_exec(), and WM_event_add_notifier().
Referenced by ptcache_free_bake_all_exec(), and PTCACHE_OT_free_bake_all().
|
static |
Definition at line 323 of file physics_pointcache.cc.
References C, CTX_data_pointer_get_type(), PointerRNA::data, NC_OBJECT, ND_POINTCACHE, OPERATOR_FINISHED, PointerRNA::owner_id, ptcache_free_bake(), ptcache_free_bake_exec(), and WM_event_add_notifier().
Referenced by ptcache_free_bake_exec(), and PTCACHE_OT_free_bake().
|
static |
Definition at line 103 of file physics_pointcache.cc.
References G, ptcache_job_break(), and PointCacheJob::stop.
Referenced by ptcache_job_break(), and ptcache_job_update().
|
static |
Definition at line 151 of file physics_pointcache.cc.
References PointCacheJob::baker, NC_OBJECT, NC_SCENE, ND_FRAME, ND_POINTCACHE, PTCacheID::owner_id, PTCacheBaker::pid, ptcache_job_endjob(), PTCacheBaker::scene, PointCacheJob::wm, WM_main_add_notifier(), and WM_set_locked_interface().
Referenced by ptcache_bake_invoke(), and ptcache_job_endjob().
|
static |
Definition at line 96 of file physics_pointcache.cc.
References PointCacheJob::baker, MEM_freeN(), and ptcache_job_free().
Referenced by ptcache_bake_invoke(), and ptcache_job_free().
|
static |
Definition at line 130 of file physics_pointcache.cc.
References PointCacheJob::baker, BKE_ptcache_bake(), PointCacheJob::do_update, G, PointCacheJob::progress, ptcache_job_startjob(), PointCacheJob::stop, PointCacheJob::wm, and WM_set_locked_interface().
Referenced by ptcache_bake_invoke(), and ptcache_job_startjob().
|
static |
Definition at line 118 of file physics_pointcache.cc.
References PointCacheJob::do_update, PointCacheJob::progress, progress, ptcache_job_break(), and ptcache_job_update().
Referenced by ptcache_bake_invoke(), and ptcache_job_update().
| void PTCACHE_OT_add | ( | wmOperatorType * | ot | ) |
Definition at line 435 of file physics_pointcache.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, ptcache_add_new_exec(), ptcache_add_remove_poll(), and PTCACHE_OT_add().
Referenced by operatortypes_pointcache(), and PTCACHE_OT_add().
| void PTCACHE_OT_bake | ( | wmOperatorType * | ot | ) |
Definition at line 347 of file physics_pointcache.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, ptcache_bake_cancel(), ptcache_bake_exec(), ptcache_bake_invoke(), ptcache_bake_modal(), PTCACHE_OT_bake(), ptcache_poll(), RNA_def_boolean(), and wmOperatorType::srna.
Referenced by operatortypes_pointcache(), and PTCACHE_OT_bake().
| void PTCACHE_OT_bake_all | ( | wmOperatorType * | ot | ) |
Definition at line 289 of file physics_pointcache.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, ptcache_bake_all_poll(), ptcache_bake_cancel(), ptcache_bake_exec(), ptcache_bake_invoke(), ptcache_bake_modal(), PTCACHE_OT_bake_all(), RNA_def_boolean(), and wmOperatorType::srna.
Referenced by operatortypes_pointcache(), and PTCACHE_OT_bake_all().
| void PTCACHE_OT_bake_from_cache | ( | wmOperatorType * | ot | ) |
Definition at line 380 of file physics_pointcache.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, ptcache_bake_from_cache_exec(), PTCACHE_OT_bake_from_cache(), and ptcache_poll().
Referenced by operatortypes_pointcache(), and PTCACHE_OT_bake_from_cache().
| void PTCACHE_OT_free_bake | ( | wmOperatorType * | ot | ) |
Definition at line 366 of file physics_pointcache.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, ptcache_free_bake_exec(), PTCACHE_OT_free_bake(), and ptcache_poll().
Referenced by operatortypes_pointcache(), and PTCACHE_OT_free_bake().
| void PTCACHE_OT_free_bake_all | ( | wmOperatorType * | ot | ) |
Definition at line 308 of file physics_pointcache.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, ptcache_bake_all_poll(), ptcache_free_bake_all_exec(), and PTCACHE_OT_free_bake_all().
Referenced by operatortypes_pointcache(), and PTCACHE_OT_free_bake_all().
| void PTCACHE_OT_remove | ( | wmOperatorType * | ot | ) |
Definition at line 449 of file physics_pointcache.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, ptcache_add_remove_poll(), PTCACHE_OT_remove(), and ptcache_remove_exec().
Referenced by operatortypes_pointcache(), and PTCACHE_OT_remove().
|
static |
Definition at line 42 of file physics_pointcache.cc.
References C, CTX_data_pointer_get_type(), CTX_wm_operator_poll_msg_set(), PointerRNA::data, PointCache::flag, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY_REAL, PointerRNA::owner_id, PTCACHE_DISK_CACHE, and ptcache_poll().
Referenced by PTCACHE_OT_bake(), PTCACHE_OT_bake_from_cache(), PTCACHE_OT_free_bake(), and ptcache_poll().
|
static |
Definition at line 415 of file physics_pointcache.cc.
References BKE_ptcache_free(), BKE_ptcache_id_find(), BLI_remlink(), C, PTCacheID::cache, PTCacheID::cache_ptr, CTX_data_pointer_get_type(), CTX_data_scene(), PointerRNA::data, DEG_id_tag_update(), ListBase::first, Object::id, ID_RECALC_SYNC_TO_EVAL, ListBase::last, NC_OBJECT, ND_POINTCACHE, OPERATOR_FINISHED, PointerRNA::owner_id, ptcache_remove_exec(), PTCacheID::ptcaches, and WM_event_add_notifier().
Referenced by PTCACHE_OT_remove(), and ptcache_remove_exec().