|
Blender V4.3
|
#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_layer.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 394 of file physics_pointcache.cc.
References BKE_ptcache_add(), BKE_ptcache_id_find(), 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, PTCacheID::ptcaches, ptr, PointCache::step, and WM_event_add_notifier().
Referenced by PTCACHE_OT_add().
|
static |
Definition at line 64 of file physics_pointcache.cc.
References 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 ptr.
Referenced by PTCACHE_OT_add(), and PTCACHE_OT_remove().
|
static |
Definition at line 34 of file physics_pointcache.cc.
References CTX_data_scene().
Referenced by PTCACHE_OT_bake_all(), and PTCACHE_OT_free_bake_all().
|
static |
Definition at line 256 of file physics_pointcache.cc.
References CTX_wm_manager(), wmOperator::customdata, WM_JOB_TYPE_POINTCACHE, and WM_jobs_kill_type().
Referenced by PTCACHE_OT_bake(), and PTCACHE_OT_bake_all().
|
static |
Definition at line 199 of file physics_pointcache.cc.
References BKE_ptcache_bake(), wmOperatorType::idname, MEM_freeN(), OPERATOR_FINISHED, ptcache_baker_create(), STREQ, and wmOperator::type.
Referenced by PTCACHE_OT_bake(), and PTCACHE_OT_bake_all().
|
static |
Definition at line 334 of file physics_pointcache.cc.
References CTX_data_pointer_get_type(), PointerRNA::data, PointCache::flag, NC_OBJECT, ND_POINTCACHE, OPERATOR_FINISHED, PointerRNA::owner_id, PTCACHE_BAKED, ptr, and WM_event_add_notifier().
Referenced by PTCACHE_OT_bake_from_cache().
|
static |
Definition at line 210 of file physics_pointcache.cc.
References PTCacheBaker::bake_job, PointCacheJob::baker, CTX_data_scene(), CTX_wm_manager(), CTX_wm_window(), wmOperatorType::idname, MEM_mallocN, NC_OBJECT, ND_POINTCACHE, OPERATOR_RUNNING_MODAL, 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_OT_bake(), and PTCACHE_OT_bake_all().
|
static |
Definition at line 244 of file physics_pointcache.cc.
References CTX_wm_manager(), wmOperator::customdata, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, WM_JOB_TYPE_POINTCACHE, and WM_jobs_test().
Referenced by PTCACHE_OT_bake(), and PTCACHE_OT_bake_all().
|
static |
Definition at line 173 of file physics_pointcache.cc.
References PTCacheBaker::anim_init, PTCacheBaker::bake, BKE_ptcache_id_find(), PTCacheBaker::bmain, 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, PointerRNA::owner_id, PTCacheBaker::pid, ptr, wmOperator::ptr, PTCacheBaker::quick_step, PTCacheBaker::render, RNA_boolean_get(), PTCacheBaker::scene, and PTCacheBaker::view_layer.
Referenced by ptcache_bake_exec(), and ptcache_bake_invoke().
|
static |
Definition at line 159 of file physics_pointcache.cc.
References PointCache::edit, PTCacheEdit::edited, PointCache::flag, and PE_free_ptcache_edit().
Referenced by ptcache_free_bake_all_exec(), and ptcache_free_bake_exec().
|
static |
Definition at line 265 of file physics_pointcache.cc.
References BKE_ptcache_ids_from_object(), BLI_freelistN(), 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(), and WM_event_add_notifier().
Referenced by PTCACHE_OT_free_bake_all().
|
static |
Definition at line 322 of file physics_pointcache.cc.
References CTX_data_pointer_get_type(), PointerRNA::data, NC_OBJECT, ND_POINTCACHE, OPERATOR_FINISHED, PointerRNA::owner_id, ptcache_free_bake(), ptr, and WM_event_add_notifier().
Referenced by PTCACHE_OT_free_bake().
|
static |
Definition at line 100 of file physics_pointcache.cc.
References G, and PointCacheJob::stop.
Referenced by ptcache_job_update().
|
static |
Definition at line 148 of file physics_pointcache.cc.
References PointCacheJob::baker, NC_OBJECT, NC_SCENE, ND_FRAME, ND_POINTCACHE, PTCacheID::owner_id, PTCacheBaker::pid, PTCacheBaker::scene, PointCacheJob::wm, WM_main_add_notifier(), and WM_set_locked_interface().
Referenced by ptcache_bake_invoke().
|
static |
Definition at line 93 of file physics_pointcache.cc.
References PointCacheJob::baker, and MEM_freeN().
Referenced by ptcache_bake_invoke().
|
static |
Definition at line 127 of file physics_pointcache.cc.
References PointCacheJob::baker, BKE_ptcache_bake(), PointCacheJob::do_update, wmJobWorkerStatus::do_update, G, PointCacheJob::progress, wmJobWorkerStatus::progress, PointCacheJob::stop, wmJobWorkerStatus::stop, PointCacheJob::wm, and WM_set_locked_interface().
Referenced by ptcache_bake_invoke().
Definition at line 115 of file physics_pointcache.cc.
References PointCacheJob::do_update, PointCacheJob::progress, and ptcache_job_break().
Referenced by ptcache_bake_invoke().
| void PTCACHE_OT_add | ( | wmOperatorType * | ot | ) |
Definition at line 434 of file physics_pointcache.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, ptcache_add_new_exec(), and ptcache_add_remove_poll().
Referenced by operatortypes_pointcache().
| void PTCACHE_OT_bake | ( | wmOperatorType * | ot | ) |
Definition at line 346 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, ot, wmOperatorType::poll, ptcache_bake_cancel(), ptcache_bake_exec(), ptcache_bake_invoke(), ptcache_bake_modal(), ptcache_poll(), RNA_def_boolean(), and wmOperatorType::srna.
Referenced by operatortypes_pointcache().
| void PTCACHE_OT_bake_all | ( | wmOperatorType * | ot | ) |
Definition at line 288 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, ot, wmOperatorType::poll, ptcache_bake_all_poll(), ptcache_bake_cancel(), ptcache_bake_exec(), ptcache_bake_invoke(), ptcache_bake_modal(), RNA_def_boolean(), and wmOperatorType::srna.
Referenced by operatortypes_pointcache().
| void PTCACHE_OT_bake_from_cache | ( | wmOperatorType * | ot | ) |
Definition at line 379 of file physics_pointcache.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, ptcache_bake_from_cache_exec(), and ptcache_poll().
Referenced by operatortypes_pointcache().
| void PTCACHE_OT_free_bake | ( | wmOperatorType * | ot | ) |
Definition at line 365 of file physics_pointcache.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, ptcache_free_bake_exec(), and ptcache_poll().
Referenced by operatortypes_pointcache().
| void PTCACHE_OT_free_bake_all | ( | wmOperatorType * | ot | ) |
Definition at line 307 of file physics_pointcache.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, ptcache_bake_all_poll(), and ptcache_free_bake_all_exec().
Referenced by operatortypes_pointcache().
| void PTCACHE_OT_remove | ( | wmOperatorType * | ot | ) |
Definition at line 448 of file physics_pointcache.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, ptcache_add_remove_poll(), and ptcache_remove_exec().
Referenced by operatortypes_pointcache().
|
static |
Definition at line 39 of file physics_pointcache.cc.
References 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 ptr.
Referenced by PTCACHE_OT_bake(), PTCACHE_OT_bake_from_cache(), and PTCACHE_OT_free_bake().
|
static |
Definition at line 414 of file physics_pointcache.cc.
References BKE_ptcache_free(), BKE_ptcache_id_find(), BLI_remlink(), 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, PTCacheID::ptcaches, ptr, and WM_event_add_notifier().
Referenced by PTCACHE_OT_remove().