Blender V5.0
physics_pointcache.cc File Reference
#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

Functions

static bool ptcache_bake_all_poll (bContext *C)
static bool ptcache_poll (bContext *C)
static bool ptcache_add_remove_poll (bContext *C)
static void ptcache_job_free (void *customdata)
static int ptcache_job_break (void *customdata)
static void ptcache_job_update (void *customdata, float progress, int *cancel)
static void ptcache_job_startjob (void *customdata, wmJobWorkerStatus *worker_status)
static void ptcache_job_endjob (void *customdata)
static void ptcache_free_bake (PointCache *cache)
static PTCacheBakerptcache_baker_create (bContext *C, wmOperator *op, bool all)
static wmOperatorStatus ptcache_bake_exec (bContext *C, wmOperator *op)
static wmOperatorStatus ptcache_bake_invoke (bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus ptcache_bake_modal (bContext *C, wmOperator *op, const wmEvent *)
static void ptcache_bake_cancel (bContext *C, wmOperator *op)
static wmOperatorStatus ptcache_free_bake_all_exec (bContext *C, wmOperator *)
void PTCACHE_OT_bake_all (wmOperatorType *ot)
void PTCACHE_OT_free_bake_all (wmOperatorType *ot)
static wmOperatorStatus ptcache_free_bake_exec (bContext *C, wmOperator *)
static wmOperatorStatus ptcache_bake_from_cache_exec (bContext *C, wmOperator *)
void PTCACHE_OT_bake (wmOperatorType *ot)
void PTCACHE_OT_free_bake (wmOperatorType *ot)
void PTCACHE_OT_bake_from_cache (wmOperatorType *ot)
static wmOperatorStatus ptcache_add_new_exec (bContext *C, wmOperator *)
static wmOperatorStatus ptcache_remove_exec (bContext *C, wmOperator *)
void PTCACHE_OT_add (wmOperatorType *ot)
void PTCACHE_OT_remove (wmOperatorType *ot)

Function Documentation

◆ ptcache_add_new_exec()

◆ ptcache_add_remove_poll()

bool ptcache_add_remove_poll ( bContext * C)
static

◆ ptcache_bake_all_poll()

bool ptcache_bake_all_poll ( bContext * C)
static

Definition at line 37 of file physics_pointcache.cc.

References C, and CTX_data_scene().

Referenced by PTCACHE_OT_bake_all(), and PTCACHE_OT_free_bake_all().

◆ ptcache_bake_cancel()

void ptcache_bake_cancel ( bContext * C,
wmOperator * op )
static

◆ ptcache_bake_exec()

◆ ptcache_bake_from_cache_exec()

◆ ptcache_bake_invoke()

◆ ptcache_bake_modal()

◆ ptcache_baker_create()

◆ ptcache_free_bake()

void ptcache_free_bake ( PointCache * cache)
static

◆ ptcache_free_bake_all_exec()

◆ ptcache_free_bake_exec()

◆ ptcache_job_break()

int ptcache_job_break ( void * customdata)
static

Definition at line 103 of file physics_pointcache.cc.

References G, and PointCacheJob::stop.

Referenced by ptcache_job_update().

◆ ptcache_job_endjob()

◆ ptcache_job_free()

void ptcache_job_free ( void * customdata)
static

Definition at line 96 of file physics_pointcache.cc.

References PointCacheJob::baker, and MEM_freeN().

Referenced by ptcache_bake_invoke().

◆ ptcache_job_startjob()

◆ ptcache_job_update()

void ptcache_job_update ( void * customdata,
float progress,
int * cancel )
static

◆ PTCACHE_OT_add()

void PTCACHE_OT_add ( wmOperatorType * ot)

◆ PTCACHE_OT_bake()

◆ PTCACHE_OT_bake_all()

◆ PTCACHE_OT_bake_from_cache()

void PTCACHE_OT_bake_from_cache ( wmOperatorType * ot)

◆ PTCACHE_OT_free_bake()

void PTCACHE_OT_free_bake ( wmOperatorType * ot)

◆ PTCACHE_OT_free_bake_all()

void PTCACHE_OT_free_bake_all ( wmOperatorType * ot)

◆ PTCACHE_OT_remove()

void PTCACHE_OT_remove ( wmOperatorType * ot)

◆ ptcache_poll()

◆ ptcache_remove_exec()