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

BKE_modifier.h File Reference

#include "DNA_modifier_types.h"
#include "BKE_customdata.h"

Go to the source code of this file.

Classes

struct  ModifierTypeInfo

Typedefs

typedef void(* ObjectWalkFunc )(void *userData, struct Object *ob, struct Object **obpoin)
typedef void(* IDWalkFunc )(void *userData, struct Object *ob, struct ID **idpoin)
typedef void(* TexWalkFunc )(void *userData, struct Object *ob, struct ModifierData *md, const char *propname)
typedef struct ModifierTypeInfo ModifierTypeInfo

Enumerations

enum  ModifierTypeType {
  eModifierTypeType_None, eModifierTypeType_OnlyDeform, eModifierTypeType_Constructive, eModifierTypeType_Nonconstructive,
  eModifierTypeType_DeformOrConstruct, eModifierTypeType_NonGeometrical
}
enum  ModifierTypeFlag {
  eModifierTypeFlag_AcceptsMesh = (1<<0), eModifierTypeFlag_AcceptsCVs = (1<<1), eModifierTypeFlag_SupportsMapping = (1<<2), eModifierTypeFlag_SupportsEditmode = (1<<3),
  eModifierTypeFlag_EnableInEditmode = (1<<4), eModifierTypeFlag_RequiresOriginalData = (1<<5), eModifierTypeFlag_UsesPointCache = (1<<6), eModifierTypeFlag_Single = (1<<7),
  eModifierTypeFlag_NoUserAdd = (1<<8)
}

Functions

ModifierTypeInfomodifierType_getInfo (ModifierType type)
struct ModifierDatamodifier_new (int type)
void modifier_free (struct ModifierData *md)
void modifier_unique_name (struct ListBase *modifiers, struct ModifierData *md)
void modifier_copyData (struct ModifierData *md, struct ModifierData *target)
int modifier_dependsOnTime (struct ModifierData *md)
int modifier_supportsMapping (struct ModifierData *md)
int modifier_couldBeCage (struct Scene *scene, struct ModifierData *md)
int modifier_isCorrectableDeformed (struct ModifierData *md)
int modifier_sameTopology (ModifierData *md)
int modifier_nonGeometrical (ModifierData *md)
int modifier_isEnabled (struct Scene *scene, struct ModifierData *md, int required_mode)
void modifier_setError (struct ModifierData *md, const char *format,...)
void modifiers_foreachObjectLink (struct Object *ob, ObjectWalkFunc walk, void *userData)
void modifiers_foreachIDLink (struct Object *ob, IDWalkFunc walk, void *userData)
void modifiers_foreachTexLink (struct Object *ob, TexWalkFunc walk, void *userData)
struct ModifierDatamodifiers_findByType (struct Object *ob, ModifierType type)
struct ModifierDatamodifiers_findByName (struct Object *ob, const char *name)
void modifiers_clearErrors (struct Object *ob)
int modifiers_getCageIndex (struct Scene *scene, struct Object *ob, int *lastPossibleCageIndex_r, int virtual_)
int modifiers_isSoftbodyEnabled (struct Object *ob)
int modifiers_isClothEnabled (struct Object *ob)
int modifiers_isParticleEnabled (struct Object *ob)
struct Objectmodifiers_isDeformedByArmature (struct Object *ob)
struct Objectmodifiers_isDeformedByLattice (struct Object *ob)
int modifiers_usesArmature (struct Object *ob, struct bArmature *arm)
int modifiers_isCorrectableDeformed (struct Object *ob)
void modifier_freeTemporaryData (struct ModifierData *md)
int modifiers_indexInObject (struct Object *ob, struct ModifierData *md)
struct LinkNodemodifiers_calcDataMasks (struct Scene *scene, struct Object *ob, struct ModifierData *md, CustomDataMask dataMask, int required_mode)
struct ModifierDatamodifiers_getVirtualModifierList (struct Object *ob)
void test_object_modifiers (struct Object *ob)
void modifier_mdef_compact_influences (struct ModifierData *md)
void modifier_path_init (char *path, int path_maxlen, const char *name)
const char * modifier_path_relbase (struct Object *ob)

Detailed Description

Definition in file BKE_modifier.h.


Typedef Documentation

typedef void(* IDWalkFunc)(void *userData, struct Object *ob, struct ID **idpoin)

Definition at line 106 of file BKE_modifier.h.

typedef void(* ObjectWalkFunc)(void *userData, struct Object *ob, struct Object **obpoin)

Definition at line 105 of file BKE_modifier.h.

typedef void(* TexWalkFunc)(void *userData, struct Object *ob, struct ModifierData *md, const char *propname)

Definition at line 107 of file BKE_modifier.h.


Enumeration Type Documentation

Enumerator:
eModifierTypeFlag_AcceptsMesh 
eModifierTypeFlag_AcceptsCVs 
eModifierTypeFlag_SupportsMapping 
eModifierTypeFlag_SupportsEditmode 
eModifierTypeFlag_EnableInEditmode 
eModifierTypeFlag_RequiresOriginalData 
eModifierTypeFlag_UsesPointCache 
eModifierTypeFlag_Single 
eModifierTypeFlag_NoUserAdd 

Definition at line 75 of file BKE_modifier.h.

Enumerator:
eModifierTypeType_None 
eModifierTypeType_OnlyDeform 
eModifierTypeType_Constructive 
eModifierTypeType_Nonconstructive 
eModifierTypeType_DeformOrConstruct 
eModifierTypeType_NonGeometrical 

Definition at line 49 of file BKE_modifier.h.


Function Documentation

void modifier_copyData ( struct ModifierData md,
struct ModifierData target 
)
int modifier_couldBeCage ( struct Scene scene,
struct ModifierData md 
)
int modifier_dependsOnTime ( struct ModifierData md)
void modifier_free ( struct ModifierData md)
void modifier_freeTemporaryData ( struct ModifierData md)
int modifier_isCorrectableDeformed ( struct ModifierData md)
int modifier_isEnabled ( struct Scene scene,
struct ModifierData md,
int  required_mode 
)
void modifier_mdef_compact_influences ( struct ModifierData md)
struct ModifierData* modifier_new ( int  type) [read]
int modifier_nonGeometrical ( ModifierData md)
void modifier_path_init ( char *  path,
int  path_maxlen,
const char *  name 
)

Definition at line 613 of file modifier.c.

References BLI_join_dirfile(), BLI_temporary_dir(), and G.

Referenced by dynamicPaint_createNewSurface(), fluidsim_init(), and initData().

const char* modifier_path_relbase ( struct Object ob)

Definition at line 600 of file modifier.c.

References BLI_temporary_dir(), G, Object::id, ID_BLEND_PATH, and ID::lib.

Referenced by ocean_bake_exec(), and particles_fluid_step().

int modifier_sameTopology ( ModifierData md)
void modifier_setError ( struct ModifierData md,
const char *  format,
  ... 
)
int modifier_supportsMapping ( struct ModifierData md)
void modifier_unique_name ( struct ListBase modifiers,
struct ModifierData md 
)
struct LinkNode* modifiers_calcDataMasks ( struct Scene scene,
struct Object ob,
struct ModifierData md,
CustomDataMask  dataMask,
int  required_mode 
) [read]
void modifiers_clearErrors ( struct Object ob)
struct ModifierData* modifiers_findByName ( struct Object ob,
const char *  name 
) [read]

Definition at line 156 of file modifier.c.

References BLI_findstring(), and Object::modifiers.

Referenced by edit_modifier_property_get().

struct ModifierData* modifiers_findByType ( struct Object ob,
ModifierType  type 
) [read]
void modifiers_foreachIDLink ( struct Object ob,
IDWalkFunc  walk,
void *  userData 
)
void modifiers_foreachObjectLink ( struct Object ob,
ObjectWalkFunc  walk,
void *  userData 
)
void modifiers_foreachTexLink ( struct Object ob,
TexWalkFunc  walk,
void *  userData 
)
int modifiers_getCageIndex ( struct Scene scene,
struct Object ob,
int *  lastPossibleCageIndex_r,
int  virtual_ 
)
struct ModifierData* modifiers_getVirtualModifierList ( struct Object ob) [read]
int modifiers_indexInObject ( struct Object ob,
struct ModifierData md 
)

Definition at line 548 of file modifier.c.

References ListBase::first, i, Object::modifiers, and ModifierData::next.

Referenced by mesh_calc_modifiers().

int modifiers_isClothEnabled ( struct Object ob)
int modifiers_isCorrectableDeformed ( struct Object ob)
struct Object* modifiers_isDeformedByArmature ( struct Object ob) [read]
struct Object* modifiers_isDeformedByLattice ( struct Object ob) [read]
int modifiers_isParticleEnabled ( struct Object ob)
int modifiers_isSoftbodyEnabled ( struct Object ob)
int modifiers_usesArmature ( struct Object ob,
struct bArmature arm 
)
ModifierTypeInfo* modifierType_getInfo ( ModifierType  type)
void test_object_modifiers ( struct Object ob)