Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions

BKE_dynamicpaint.h File Reference

Go to the source code of this file.

Classes

struct  PaintSurfaceData
struct  PaintPoint
struct  PaintWavePoint

Defines

#define DPAINT_PAINT_NONE   -1
#define DPAINT_PAINT_DRY   0
#define DPAINT_PAINT_WET   1
#define DPAINT_PAINT_NEW   2
#define DPAINT_WAVE_ISECT_CHANGED   -1
#define DPAINT_WAVE_NONE   0
#define DPAINT_WAVE_OBSTACLE   1
#define DPAINT_WAVE_REFLECT_ONLY   2

Typedefs

typedef struct PaintSurfaceData PaintSurfaceData
typedef struct PaintPoint PaintPoint
typedef struct PaintWavePoint PaintWavePoint

Functions

struct DerivedMeshdynamicPaint_Modifier_do (struct DynamicPaintModifierData *pmd, struct Scene *scene, struct Object *ob, struct DerivedMesh *dm)
void dynamicPaint_Modifier_free (struct DynamicPaintModifierData *pmd)
void dynamicPaint_Modifier_copy (struct DynamicPaintModifierData *pmd, struct DynamicPaintModifierData *tsmd)
int dynamicPaint_createType (struct DynamicPaintModifierData *pmd, int type, struct Scene *scene)
struct DynamicPaintSurfacedynamicPaint_createNewSurface (struct DynamicPaintCanvasSettings *canvas, struct Scene *scene)
void dynamicPaint_clearSurface (struct DynamicPaintSurface *surface)
int dynamicPaint_resetSurface (struct DynamicPaintSurface *surface)
void dynamicPaint_freeSurface (struct DynamicPaintSurface *surface)
void dynamicPaint_freeCanvas (struct DynamicPaintModifierData *pmd)
void dynamicPaint_freeBrush (struct DynamicPaintModifierData *pmd)
void dynamicPaint_freeSurfaceData (struct DynamicPaintSurface *surface)
void dynamicPaint_cacheUpdateFrames (struct DynamicPaintSurface *surface)
int dynamicPaint_surfaceHasColorPreview (struct DynamicPaintSurface *surface)
int dynamicPaint_outputLayerExists (struct DynamicPaintSurface *surface, struct Object *ob, int output)
void dynamicPaintSurface_updateType (struct DynamicPaintSurface *surface)
void dynamicPaintSurface_setUniqueName (struct DynamicPaintSurface *surface, const char *basename)
void dynamicPaint_resetPreview (struct DynamicPaintCanvasSettings *canvas)
struct DynamicPaintSurfaceget_activeSurface (struct DynamicPaintCanvasSettings *canvas)
int dynamicPaint_createUVSurface (struct DynamicPaintSurface *surface)
int dynamicPaint_calculateFrame (struct DynamicPaintSurface *surface, struct Scene *scene, struct Object *cObject, int frame)
void dynamicPaint_outputSurfaceImage (struct DynamicPaintSurface *surface, char *filename, short output_layer)

Define Documentation

#define DPAINT_PAINT_DRY   0

Definition at line 81 of file BKE_dynamicpaint.h.

Referenced by dynamicPaint_surfacePreStep().

#define DPAINT_PAINT_NEW   2

Definition at line 83 of file BKE_dynamicpaint.h.

Referenced by dynamicPaint_mixPaintColors().

#define DPAINT_PAINT_NONE   -1

Definition at line 80 of file BKE_dynamicpaint.h.

#define DPAINT_PAINT_WET   1

Definition at line 82 of file BKE_dynamicpaint.h.

Referenced by dynamicPaint_surfacePreStep().

#define DPAINT_WAVE_ISECT_CHANGED   -1

Definition at line 86 of file BKE_dynamicpaint.h.

Referenced by dynamicPaint_mixWaveHeight().

#define DPAINT_WAVE_NONE   0

Definition at line 87 of file BKE_dynamicpaint.h.

Referenced by dynamicPaint_doWaveStep().

#define DPAINT_WAVE_OBSTACLE   1

Definition at line 88 of file BKE_dynamicpaint.h.

Referenced by dynamicPaint_mixWaveHeight().

#define DPAINT_WAVE_REFLECT_ONLY   2

Definition at line 89 of file BKE_dynamicpaint.h.

Referenced by dynamicPaint_mixWaveHeight().


Typedef Documentation

typedef struct PaintPoint PaintPoint

Function Documentation

void dynamicPaint_cacheUpdateFrames ( struct DynamicPaintSurface surface)
int dynamicPaint_calculateFrame ( struct DynamicPaintSurface surface,
struct Scene scene,
struct Object cObject,
int  frame 
)
void dynamicPaint_clearSurface ( struct DynamicPaintSurface surface)
struct DynamicPaintSurface* dynamicPaint_createNewSurface ( struct DynamicPaintCanvasSettings canvas,
struct Scene scene 
) [read]

Definition at line 969 of file dynamicpaint.c.

References BKE_add_effector_weights(), BKE_ptcache_add(), BLI_addtail(), DynamicPaintSurface::canvas, DynamicPaintSurface::color_dry_threshold, DynamicPaintSurface::color_spread_speed, DynamicPaintSurface::depth_clamp, DynamicPaintSurface::disp_factor, DynamicPaintSurface::disp_type, DynamicPaintSurface::diss_speed, DynamicPaintSurface::dry_speed, dynamicPaintSurface_setUniqueName(), dynamicPaintSurface_updateType(), DynamicPaintSurface::effect, DynamicPaintSurface::effect_ui, DynamicPaintSurface::effector_weights, RenderData::efra, DynamicPaintSurface::end_frame, PointCache::flag, DynamicPaintSurface::flags, DynamicPaintSurface::format, DynamicPaintSurface::image_fileformat, DynamicPaintSurface::image_output_path, DynamicPaintSurface::image_resolution, DynamicPaintSurface::influence_scale, DynamicPaintSurface::init_color, MEM_callocN(), MOD_DPAINT_ACTIVE, MOD_DPAINT_ANTIALIAS, MOD_DPAINT_DISP_DISPLACE, MOD_DPAINT_DISSOLVE_LOG, MOD_DPAINT_DRY_LOG, MOD_DPAINT_IMGFORMAT_PNG, MOD_DPAINT_MULALPHA, MOD_DPAINT_OUT1, MOD_DPAINT_PREVIEW, MOD_DPAINT_SURFACE_F_VERTEX, MOD_DPAINT_SURFACE_T_PAINT, MOD_DPAINT_USE_DRYING, modifier_path_init(), NULL, DynamicPaintSurface::pointcache, PTCACHE_DISK_CACHE, DynamicPaintSurface::ptcaches, Scene::r, DynamicPaintSurface::radius_scale, RenderData::sfra, DynamicPaintSurface::shrink_speed, DynamicPaintSurface::spread_speed, DynamicPaintSurface::start_frame, PointCache::step, DynamicPaintSurface::substeps, DynamicPaintCanvasSettings::surfaces, DynamicPaintSurface::type, DynamicPaintSurface::wave_damping, DynamicPaintSurface::wave_speed, DynamicPaintSurface::wave_spring, and DynamicPaintSurface::wave_timescale.

Referenced by dynamicPaint_createType(), and surface_slot_add_exec().

int dynamicPaint_createType ( struct DynamicPaintModifierData pmd,
int  type,
struct Scene scene 
)
int dynamicPaint_createUVSurface ( struct DynamicPaintSurface surface)
void dynamicPaint_freeBrush ( struct DynamicPaintModifierData pmd)
void dynamicPaint_freeCanvas ( struct DynamicPaintModifierData pmd)
void dynamicPaint_freeSurface ( struct DynamicPaintSurface surface)
void dynamicPaint_freeSurfaceData ( struct DynamicPaintSurface surface)
void dynamicPaint_Modifier_copy ( struct DynamicPaintModifierData pmd,
struct DynamicPaintModifierData tsmd 
)
struct DerivedMesh* dynamicPaint_Modifier_do ( struct DynamicPaintModifierData pmd,
struct Scene scene,
struct Object ob,
struct DerivedMesh dm 
) [read]

Definition at line 1891 of file dynamicpaint.c.

References dynamicPaint_frameUpdate(), and dynamicPaint_Modifier_apply().

Referenced by applyModifier().

void dynamicPaint_Modifier_free ( struct DynamicPaintModifierData pmd)

Definition at line 953 of file dynamicpaint.c.

References dynamicPaint_freeBrush(), and dynamicPaint_freeCanvas().

Referenced by freeData().

int dynamicPaint_outputLayerExists ( struct DynamicPaintSurface surface,
struct Object ob,
int  output 
)
void dynamicPaint_outputSurfaceImage ( struct DynamicPaintSurface surface,
char *  filename,
short  output_layer 
)
void dynamicPaint_resetPreview ( struct DynamicPaintCanvasSettings canvas)
int dynamicPaint_resetSurface ( struct DynamicPaintSurface surface)
int dynamicPaint_surfaceHasColorPreview ( struct DynamicPaintSurface surface)
void dynamicPaintSurface_setUniqueName ( struct DynamicPaintSurface surface,
const char *  basename 
)
void dynamicPaintSurface_updateType ( struct DynamicPaintSurface surface)
struct DynamicPaintSurface* get_activeSurface ( struct DynamicPaintCanvasSettings canvas) [read]