Blender  V3.3
Classes | Typedefs | Functions
physics_pointcache.c File Reference
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "DNA_scene_types.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_layer.h"
#include "BKE_pointcache.h"
#include "DEG_depsgraph.h"
#include "ED_particle.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_prototypes.h"
#include "physics_intern.h"

Go to the source code of this file.

Classes

struct  PointCacheJob
 

Typedefs

typedef struct PointCacheJob 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, short *stop, short *do_update, float *progress)
 
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 *UNUSED(event))
 
static int ptcache_bake_modal (bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
 
static void ptcache_bake_cancel (bContext *C, wmOperator *op)
 
static int ptcache_free_bake_all_exec (bContext *C, wmOperator *UNUSED(op))
 
void PTCACHE_OT_bake_all (wmOperatorType *ot)
 
void PTCACHE_OT_free_bake_all (wmOperatorType *ot)
 
static int ptcache_free_bake_exec (bContext *C, wmOperator *UNUSED(op))
 
static int ptcache_bake_from_cache_exec (bContext *C, wmOperator *UNUSED(op))
 
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 *UNUSED(op))
 
static int ptcache_remove_exec (bContext *C, wmOperator *UNUSED(op))
 
void PTCACHE_OT_add (wmOperatorType *ot)
 
void PTCACHE_OT_remove (wmOperatorType *ot)
 

Typedef Documentation

◆ PointCacheJob

typedef struct PointCacheJob PointCacheJob

Function Documentation

◆ ptcache_add_new_exec()

static int ptcache_add_new_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ ptcache_add_remove_poll()

static bool ptcache_add_remove_poll ( bContext C)
static

◆ ptcache_bake_all_poll()

static bool ptcache_bake_all_poll ( bContext C)
static

Definition at line 36 of file physics_pointcache.c.

References C, CTX_data_scene(), and NULL.

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()

static int ptcache_bake_from_cache_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ ptcache_bake_invoke()

static int ptcache_bake_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

◆ ptcache_bake_modal()

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

◆ ptcache_baker_create()

static PTCacheBaker* ptcache_baker_create ( bContext C,
wmOperator op,
bool  all 
)
static

◆ ptcache_free_bake()

static void ptcache_free_bake ( PointCache cache)
static

◆ ptcache_free_bake_all_exec()

static int ptcache_free_bake_all_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ ptcache_free_bake_exec()

static int ptcache_free_bake_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ ptcache_job_break()

static int ptcache_job_break ( void customdata)
static

Definition at line 102 of file physics_pointcache.c.

References G, and PointCacheJob::stop.

Referenced by ptcache_job_update().

◆ ptcache_job_endjob()

static void ptcache_job_endjob ( void customdata)
static

◆ ptcache_job_free()

static void ptcache_job_free ( void customdata)
static

Definition at line 95 of file physics_pointcache.c.

References PointCacheJob::baker, and MEM_freeN.

Referenced by ptcache_bake_invoke().

◆ ptcache_job_startjob()

static void ptcache_job_startjob ( void customdata,
short *  stop,
short *  do_update,
float progress 
)
static

◆ ptcache_job_update()

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

◆ PTCACHE_OT_add()

void PTCACHE_OT_add ( wmOperatorType ot)

◆ PTCACHE_OT_bake()

void PTCACHE_OT_bake ( wmOperatorType ot)

◆ PTCACHE_OT_bake_all()

void PTCACHE_OT_bake_all ( wmOperatorType ot)

◆ 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()

static bool ptcache_poll ( bContext C)
static

◆ ptcache_remove_exec()

static int ptcache_remove_exec ( bContext C,
wmOperator UNUSEDop 
)
static