Blender V4.3
physics_pointcache.cc File Reference
#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
 

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 int ptcache_bake_exec (bContext *C, wmOperator *op)
 
static int ptcache_bake_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
static int ptcache_bake_modal (bContext *C, wmOperator *op, const wmEvent *)
 
static void ptcache_bake_cancel (bContext *C, wmOperator *op)
 
static int ptcache_free_bake_all_exec (bContext *C, wmOperator *)
 
void PTCACHE_OT_bake_all (wmOperatorType *ot)
 
void PTCACHE_OT_free_bake_all (wmOperatorType *ot)
 
static int ptcache_free_bake_exec (bContext *C, wmOperator *)
 
static int 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 int ptcache_add_new_exec (bContext *C, wmOperator *)
 
static int 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()

◆ ptcache_bake_all_poll()

static bool ptcache_bake_all_poll ( bContext * C)
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().

◆ ptcache_bake_cancel()

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

◆ ptcache_bake_exec()

static int ptcache_bake_exec ( bContext * C,
wmOperator * op )
static

◆ ptcache_bake_from_cache_exec()

◆ ptcache_bake_invoke()

◆ ptcache_bake_modal()

static int ptcache_bake_modal ( bContext * C,
wmOperator * op,
const wmEvent *  )
static

◆ ptcache_baker_create()

◆ ptcache_free_bake()

static void ptcache_free_bake ( PointCache * cache)
static

◆ ptcache_free_bake_all_exec()

◆ ptcache_free_bake_exec()

◆ ptcache_job_break()

static int ptcache_job_break ( void * customdata)
static

Definition at line 100 of file physics_pointcache.cc.

References G, and PointCacheJob::stop.

Referenced by ptcache_job_update().

◆ ptcache_job_endjob()

◆ ptcache_job_free()

static void ptcache_job_free ( void * customdata)
static

Definition at line 93 of file physics_pointcache.cc.

References PointCacheJob::baker, and MEM_freeN().

Referenced by ptcache_bake_invoke().

◆ ptcache_job_startjob()

◆ ptcache_job_update()

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

◆ PTCACHE_OT_add()

◆ PTCACHE_OT_bake()

◆ PTCACHE_OT_bake_all()

◆ PTCACHE_OT_bake_from_cache()

◆ PTCACHE_OT_free_bake()

◆ PTCACHE_OT_free_bake_all()

◆ PTCACHE_OT_remove()

◆ ptcache_poll()

◆ ptcache_remove_exec()