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

object_modifier.c File Reference

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_curve_types.h"
#include "DNA_key_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_force.h"
#include "DNA_scene_types.h"
#include "BLI_math.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "BLI_path_util.h"
#include "BLI_editVert.h"
#include "BLI_utildefines.h"
#include "BKE_animsys.h"
#include "BKE_curve.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h"
#include "BKE_displist.h"
#include "BKE_DerivedMesh.h"
#include "BKE_effect.h"
#include "BKE_global.h"
#include "BKE_key.h"
#include "BKE_lattice.h"
#include "BKE_main.h"
#include "BKE_mesh.h"
#include "BKE_modifier.h"
#include "BKE_multires.h"
#include "BKE_report.h"
#include "BKE_object.h"
#include "BKE_ocean.h"
#include "BKE_particle.h"
#include "BKE_softbody.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "ED_armature.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "ED_mesh.h"
#include "WM_api.h"
#include "WM_types.h"
#include "object_intern.h"

Go to the source code of this file.

Classes

struct  OceanBakeJob

Typedefs

typedef struct OceanBakeJob OceanBakeJob

Functions

ModifierDataED_object_modifier_add (ReportList *reports, Main *bmain, Scene *scene, Object *ob, const char *name, int type)
static int object_modifier_remove (Object *ob, ModifierData *md, int *sort_depsgraph)
int ED_object_modifier_remove (ReportList *reports, Main *bmain, Scene *scene, Object *ob, ModifierData *md)
void ED_object_modifier_clear (Main *bmain, Scene *scene, Object *ob)
int ED_object_modifier_move_up (ReportList *reports, Object *ob, ModifierData *md)
int ED_object_modifier_move_down (ReportList *reports, Object *ob, ModifierData *md)
int ED_object_modifier_convert (ReportList *UNUSED(reports), Main *bmain, Scene *scene, Object *ob, ModifierData *md)
static int modifier_apply_shape (ReportList *reports, Scene *scene, Object *ob, ModifierData *md)
static int modifier_apply_obdata (ReportList *reports, Scene *scene, Object *ob, ModifierData *md)
int ED_object_modifier_apply (ReportList *reports, Scene *scene, Object *ob, ModifierData *md, int mode)
int ED_object_modifier_copy (ReportList *UNUSED(reports), Object *ob, ModifierData *md)
static int modifier_add_exec (bContext *C, wmOperator *op)
static EnumPropertyItemmodifier_add_itemf (bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), int *free)
void OBJECT_OT_modifier_add (wmOperatorType *ot)
static int edit_modifier_poll_generic (bContext *C, StructRNA *rna_type, int obtype_flag)
static int edit_modifier_poll (bContext *C)
static void edit_modifier_properties (wmOperatorType *ot)
static int edit_modifier_invoke_properties (bContext *C, wmOperator *op)
static ModifierDataedit_modifier_property_get (wmOperator *op, Object *ob, int type)
static int modifier_remove_exec (bContext *C, wmOperator *op)
static int modifier_remove_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void OBJECT_OT_modifier_remove (wmOperatorType *ot)
static int modifier_move_up_exec (bContext *C, wmOperator *op)
static int modifier_move_up_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void OBJECT_OT_modifier_move_up (wmOperatorType *ot)
static int modifier_move_down_exec (bContext *C, wmOperator *op)
static int modifier_move_down_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void OBJECT_OT_modifier_move_down (wmOperatorType *ot)
static int modifier_apply_exec (bContext *C, wmOperator *op)
static int modifier_apply_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void OBJECT_OT_modifier_apply (wmOperatorType *ot)
static int modifier_convert_exec (bContext *C, wmOperator *op)
static int modifier_convert_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void OBJECT_OT_modifier_convert (wmOperatorType *ot)
static int modifier_copy_exec (bContext *C, wmOperator *op)
static int modifier_copy_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void OBJECT_OT_modifier_copy (wmOperatorType *ot)
static int multires_poll (bContext *C)
static int multires_higher_levels_delete_exec (bContext *C, wmOperator *op)
static int multires_higher_levels_delete_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void OBJECT_OT_multires_higher_levels_delete (wmOperatorType *ot)
static int multires_subdivide_exec (bContext *C, wmOperator *op)
static int multires_subdivide_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void OBJECT_OT_multires_subdivide (wmOperatorType *ot)
static int multires_reshape_exec (bContext *C, wmOperator *op)
static int multires_reshape_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void OBJECT_OT_multires_reshape (wmOperatorType *ot)
static int multires_external_save_exec (bContext *C, wmOperator *op)
static int multires_external_save_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void OBJECT_OT_multires_external_save (wmOperatorType *ot)
static int multires_external_pack_exec (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_multires_external_pack (wmOperatorType *ot)
static int multires_base_apply_exec (bContext *C, wmOperator *op)
static int multires_base_apply_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void OBJECT_OT_multires_base_apply (wmOperatorType *ot)
static int meshdeform_poll (bContext *C)
static int meshdeform_bind_exec (bContext *C, wmOperator *op)
static int meshdeform_bind_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void OBJECT_OT_meshdeform_bind (wmOperatorType *ot)
static int explode_poll (bContext *C)
static int explode_refresh_exec (bContext *C, wmOperator *op)
static int explode_refresh_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void OBJECT_OT_explode_refresh (wmOperatorType *ot)
static int ocean_bake_poll (bContext *C)
static void init_ocean_modifier_bake (struct Ocean *oc, struct OceanModifierData *omd)
static void oceanbake_free (void *customdata)
static int oceanbake_breakjob (void *UNUSED(customdata))
static void oceanbake_update (void *customdata, float progress, int *cancel)
static void oceanbake_startjob (void *customdata, short *stop, short *do_update, float *progress)
static void oceanbake_endjob (void *customdata)
static int ocean_bake_exec (bContext *C, wmOperator *op)
static int ocean_bake_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void OBJECT_OT_ocean_bake (wmOperatorType *ot)

Variables

static EnumPropertyItem modifier_apply_as_items []

Detailed Description

Definition in file object_modifier.c.


Typedef Documentation

typedef struct OceanBakeJob OceanBakeJob

Function Documentation

ModifierData* ED_object_modifier_add ( ReportList reports,
Main bmain,
Scene scene,
Object ob,
const char *  name,
int  type 
) [read]
int ED_object_modifier_apply ( ReportList reports,
Scene scene,
Object ob,
ModifierData md,
int  mode 
)
void ED_object_modifier_clear ( Main bmain,
Scene scene,
Object ob 
)
int ED_object_modifier_convert ( ReportList UNUSEDreports,
Main bmain,
Scene scene,
Object ob,
ModifierData md 
)
int ED_object_modifier_copy ( ReportList UNUSEDreports,
Object ob,
ModifierData md 
)
int ED_object_modifier_move_down ( ReportList reports,
Object ob,
ModifierData md 
)
int ED_object_modifier_move_up ( ReportList reports,
Object ob,
ModifierData md 
)
int ED_object_modifier_remove ( ReportList reports,
Main bmain,
Scene scene,
Object ob,
ModifierData md 
)
static int edit_modifier_invoke_properties ( bContext C,
wmOperator op 
) [static]
static int edit_modifier_poll ( bContext C) [static]
static int edit_modifier_poll_generic ( bContext C,
StructRNA rna_type,
int  obtype_flag 
) [static]
static void edit_modifier_properties ( wmOperatorType ot) [static]
static ModifierData* edit_modifier_property_get ( wmOperator op,
Object ob,
int  type 
) [static]
static int explode_poll ( bContext C) [static]

Definition at line 1410 of file object_modifier.c.

References edit_modifier_poll_generic(), and RNA_ExplodeModifier.

Referenced by OBJECT_OT_explode_refresh().

static int explode_refresh_exec ( bContext C,
wmOperator op 
) [static]
static int explode_refresh_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static void init_ocean_modifier_bake ( struct Ocean oc,
struct OceanModifierData omd 
) [static]
static int meshdeform_bind_exec ( bContext C,
wmOperator op 
) [static]
static int meshdeform_bind_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int meshdeform_poll ( bContext C) [static]
static int modifier_add_exec ( bContext C,
wmOperator op 
) [static]
static EnumPropertyItem* modifier_add_itemf ( bContext C,
PointerRNA UNUSEDptr,
PropertyRNA UNUSEDprop,
int *  free 
) [static]
static int modifier_apply_exec ( bContext C,
wmOperator op 
) [static]
static int modifier_apply_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int modifier_apply_obdata ( ReportList reports,
Scene scene,
Object ob,
ModifierData md 
) [static]
static int modifier_apply_shape ( ReportList reports,
Scene scene,
Object ob,
ModifierData md 
) [static]
static int modifier_convert_exec ( bContext C,
wmOperator op 
) [static]
static int modifier_convert_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int modifier_copy_exec ( bContext C,
wmOperator op 
) [static]
static int modifier_copy_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int modifier_move_down_exec ( bContext C,
wmOperator op 
) [static]
static int modifier_move_down_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int modifier_move_up_exec ( bContext C,
wmOperator op 
) [static]
static int modifier_move_up_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int modifier_remove_exec ( bContext C,
wmOperator op 
) [static]
static int modifier_remove_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int multires_base_apply_exec ( bContext C,
wmOperator op 
) [static]
static int multires_base_apply_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int multires_external_pack_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int multires_external_save_exec ( bContext C,
wmOperator op 
) [static]
static int multires_external_save_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int multires_higher_levels_delete_exec ( bContext C,
wmOperator op 
) [static]
static int multires_higher_levels_delete_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int multires_poll ( bContext C) [static]
static int multires_reshape_exec ( bContext C,
wmOperator op 
) [static]
static int multires_reshape_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int multires_subdivide_exec ( bContext C,
wmOperator op 
) [static]
static int multires_subdivide_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int object_modifier_remove ( Object ob,
ModifierData md,
int *  sort_depsgraph 
) [static]
void OBJECT_OT_explode_refresh ( wmOperatorType ot)
void OBJECT_OT_meshdeform_bind ( wmOperatorType ot)
void OBJECT_OT_modifier_add ( wmOperatorType ot)
void OBJECT_OT_modifier_apply ( wmOperatorType ot)
void OBJECT_OT_modifier_convert ( wmOperatorType ot)
void OBJECT_OT_modifier_copy ( wmOperatorType ot)
void OBJECT_OT_modifier_move_down ( wmOperatorType ot)
void OBJECT_OT_modifier_move_up ( wmOperatorType ot)
void OBJECT_OT_modifier_remove ( wmOperatorType ot)
void OBJECT_OT_multires_base_apply ( wmOperatorType ot)
void OBJECT_OT_multires_external_pack ( wmOperatorType ot)
void OBJECT_OT_multires_external_save ( wmOperatorType ot)
void OBJECT_OT_multires_higher_levels_delete ( wmOperatorType ot)
void OBJECT_OT_multires_reshape ( wmOperatorType ot)
void OBJECT_OT_multires_subdivide ( wmOperatorType ot)
void OBJECT_OT_ocean_bake ( wmOperatorType ot)
static int ocean_bake_exec ( bContext C,
wmOperator op 
) [static]
static int ocean_bake_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int ocean_bake_poll ( bContext C) [static]

Definition at line 1458 of file object_modifier.c.

References edit_modifier_poll_generic(), and RNA_OceanModifier.

Referenced by OBJECT_OT_ocean_bake().

static int oceanbake_breakjob ( void *  UNUSEDcustomdata) [static]

Definition at line 1500 of file object_modifier.c.

References G.

Referenced by oceanbake_update().

static void oceanbake_endjob ( void *  customdata) [static]
static void oceanbake_free ( void *  customdata) [static]

Definition at line 1493 of file object_modifier.c.

References MEM_freeN().

Referenced by ocean_bake_exec().

static void oceanbake_startjob ( void *  customdata,
short *  stop,
short *  do_update,
float *  progress 
) [static]
static void oceanbake_update ( void *  customdata,
float  progress,
int *  cancel 
) [static]

Variable Documentation

Initial value:
 {
    {MODIFIER_APPLY_DATA, "DATA", 0, "Object Data", "Apply modifier to the object's data"},
    {MODIFIER_APPLY_SHAPE, "SHAPE", 0, "New Shape", "Apply deform-only modifier to a new shape on this object"},
    {0, NULL, 0, NULL, NULL}}

Definition at line 917 of file object_modifier.c.