Blender V2.61 - r43446
Functions | Variables

object_add.c File Reference

#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_curve_types.h"
#include "DNA_group_types.h"
#include "DNA_lamp_types.h"
#include "DNA_key_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meta_types.h"
#include "DNA_object_fluidsim.h"
#include "DNA_object_force.h"
#include "DNA_scene_types.h"
#include "DNA_speaker_types.h"
#include "DNA_vfont_types.h"
#include "BLI_ghash.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BKE_anim.h"
#include "BKE_animsys.h"
#include "BKE_armature.h"
#include "BKE_camera.h"
#include "BKE_constraint.h"
#include "BKE_context.h"
#include "BKE_curve.h"
#include "BKE_depsgraph.h"
#include "BKE_DerivedMesh.h"
#include "BKE_displist.h"
#include "BKE_effect.h"
#include "BKE_group.h"
#include "BKE_lamp.h"
#include "BKE_lattice.h"
#include "BKE_library.h"
#include "BKE_key.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_mball.h"
#include "BKE_mesh.h"
#include "BKE_modifier.h"
#include "BKE_nla.h"
#include "BKE_object.h"
#include "BKE_particle.h"
#include "BKE_report.h"
#include "BKE_sca.h"
#include "BKE_scene.h"
#include "BKE_speaker.h"
#include "BKE_texture.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_armature.h"
#include "ED_curve.h"
#include "ED_mball.h"
#include "ED_mesh.h"
#include "ED_node.h"
#include "ED_object.h"
#include "ED_render.h"
#include "ED_screen.h"
#include "ED_transform.h"
#include "ED_view3d.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "object_intern.h"

Go to the source code of this file.

Functions

void ED_object_location_from_view (bContext *C, float *loc)
void ED_object_rotation_from_view (bContext *C, float *rot)
void ED_object_base_init_transform (bContext *C, Base *base, float *loc, float *rot)
float ED_object_new_primitive_matrix (bContext *C, Object *obedit, float *loc, float *rot, float primmat[][4])
void view_align_update (struct Main *UNUSED(main), struct Scene *UNUSED(scene), struct PointerRNA *ptr)
void ED_object_add_generic_props (wmOperatorType *ot, int do_editmode)
static void object_add_generic_invoke_options (bContext *C, wmOperator *op)
int ED_object_add_generic_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
int ED_object_add_generic_get_opts (bContext *C, wmOperator *op, float *loc, float *rot, int *enter_editmode, unsigned int *layer)
ObjectED_object_add_type (bContext *C, int type, float *loc, float *rot, int enter_editmode, unsigned int layer)
static int object_add_exec (bContext *C, wmOperator *op)
void OBJECT_OT_add (wmOperatorType *ot)
static Objecteffector_add_type (bContext *C, wmOperator *op, int type)
static int effector_add_exec (bContext *C, wmOperator *op)
void OBJECT_OT_effector_add (wmOperatorType *ot)
static int object_camera_add_exec (bContext *C, wmOperator *op)
void OBJECT_OT_camera_add (wmOperatorType *ot)
static int object_metaball_add_exec (bContext *C, wmOperator *op)
static int object_metaball_add_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void OBJECT_OT_metaball_add (wmOperatorType *ot)
static int object_add_text_exec (bContext *C, wmOperator *op)
void OBJECT_OT_text_add (wmOperatorType *ot)
static int object_armature_add_exec (bContext *C, wmOperator *op)
void OBJECT_OT_armature_add (wmOperatorType *ot)
static const char * get_lamp_defname (int type)
static int object_lamp_add_exec (bContext *C, wmOperator *op)
void OBJECT_OT_lamp_add (wmOperatorType *ot)
static int group_instance_add_exec (bContext *C, wmOperator *op)
static int object_speaker_add_exec (bContext *C, wmOperator *op)
void OBJECT_OT_speaker_add (wmOperatorType *ot)
void OBJECT_OT_group_instance_add (wmOperatorType *ot)
void ED_base_object_free_and_unlink (Main *bmain, Scene *scene, Base *base)
static int object_delete_exec (bContext *C, wmOperator *op)
void OBJECT_OT_delete (wmOperatorType *ot)
static void copy_object_set_idnew (bContext *C, int dupflag)
static void make_object_duplilist_real (bContext *C, Scene *scene, Base *base, const short use_base_parent, const short use_hierarchy)
static int object_duplicates_make_real_exec (bContext *C, wmOperator *op)
void OBJECT_OT_duplicates_make_real (wmOperatorType *ot)
static void curvetomesh (Scene *scene, Object *ob)
static int convert_poll (bContext *C)
static Baseduplibase_for_convert (Scene *scene, Base *base, Object *ob)
static int convert_exec (bContext *C, wmOperator *op)
void OBJECT_OT_convert (wmOperatorType *ot)
static Baseobject_add_duplicate_internal (Main *bmain, Scene *scene, Base *base, int dupflag)
BaseED_object_add_duplicate (Main *bmain, Scene *scene, Base *base, int dupflag)
static int duplicate_exec (bContext *C, wmOperator *op)
void OBJECT_OT_duplicate (wmOperatorType *ot)
static int add_named_exec (bContext *C, wmOperator *op)
void OBJECT_OT_add_named (wmOperatorType *ot)
static int join_poll (bContext *C)
static int join_exec (bContext *C, wmOperator *op)
void OBJECT_OT_join (wmOperatorType *ot)
static int join_shapes_poll (bContext *C)
static int join_shapes_exec (bContext *C, wmOperator *op)
void OBJECT_OT_join_shapes (wmOperatorType *ot)

Variables

static EnumPropertyItem field_type_items []
static EnumPropertyItem convert_target_items []

Detailed Description

Definition in file object_add.c.


Function Documentation

static int add_named_exec ( bContext C,
wmOperator op 
) [static]
static int convert_exec ( bContext C,
wmOperator op 
) [static]
static int convert_poll ( bContext C) [static]
static void copy_object_set_idnew ( bContext C,
int  dupflag 
) [static]
static void curvetomesh ( Scene scene,
Object ob 
) [static]
static Base* duplibase_for_convert ( Scene scene,
Base base,
Object ob 
) [static]
static int duplicate_exec ( bContext C,
wmOperator op 
) [static]
void ED_base_object_free_and_unlink ( Main bmain,
Scene scene,
Base base 
)
Base* ED_object_add_duplicate ( Main bmain,
Scene scene,
Base base,
int  dupflag 
) [read]
int ED_object_add_generic_get_opts ( bContext C,
wmOperator op,
float *  loc,
float *  rot,
int *  enter_editmode,
unsigned int *  layer 
)
int ED_object_add_generic_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
)
void ED_object_add_generic_props ( wmOperatorType ot,
int  do_editmode 
)
Object* ED_object_add_type ( bContext C,
int  type,
float *  loc,
float *  rot,
int  enter_editmode,
unsigned int  layer 
) [read]
void ED_object_base_init_transform ( bContext C,
Base base,
float *  loc,
float *  rot 
)
void ED_object_location_from_view ( bContext C,
float *  loc 
)
float ED_object_new_primitive_matrix ( bContext C,
Object obedit,
float *  loc,
float *  rot,
float  primmat[][4] 
)
void ED_object_rotation_from_view ( bContext C,
float *  rot 
)
static int effector_add_exec ( bContext C,
wmOperator op 
) [static]
static Object* effector_add_type ( bContext C,
wmOperator op,
int  type 
) [static]
static const char* get_lamp_defname ( int  type) [static]

Definition at line 699 of file object_add.c.

References LA_AREA, LA_HEMI, LA_LOCAL, LA_SPOT, and LA_SUN.

Referenced by object_lamp_add_exec().

static int group_instance_add_exec ( bContext C,
wmOperator op 
) [static]
static int join_exec ( bContext C,
wmOperator op 
) [static]
static int join_poll ( bContext C) [static]
static int join_shapes_exec ( bContext C,
wmOperator op 
) [static]
static int join_shapes_poll ( bContext C) [static]
static void make_object_duplilist_real ( bContext C,
Scene scene,
Base base,
const short  use_base_parent,
const short  use_hierarchy 
) [static]
static Base* object_add_duplicate_internal ( Main bmain,
Scene scene,
Base base,
int  dupflag 
) [static]
static int object_add_exec ( bContext C,
wmOperator op 
) [static]
static void object_add_generic_invoke_options ( bContext C,
wmOperator op 
) [static]
static int object_add_text_exec ( bContext C,
wmOperator op 
) [static]
static int object_armature_add_exec ( bContext C,
wmOperator op 
) [static]
static int object_camera_add_exec ( bContext C,
wmOperator op 
) [static]
static int object_delete_exec ( bContext C,
wmOperator op 
) [static]
static int object_duplicates_make_real_exec ( bContext C,
wmOperator op 
) [static]
static int object_lamp_add_exec ( bContext C,
wmOperator op 
) [static]
static int object_metaball_add_exec ( bContext C,
wmOperator op 
) [static]
static int object_metaball_add_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
void OBJECT_OT_add ( wmOperatorType ot)
void OBJECT_OT_add_named ( wmOperatorType ot)
void OBJECT_OT_armature_add ( wmOperatorType ot)
void OBJECT_OT_camera_add ( wmOperatorType ot)
void OBJECT_OT_convert ( wmOperatorType ot)
void OBJECT_OT_delete ( wmOperatorType ot)
void OBJECT_OT_duplicate ( wmOperatorType ot)
void OBJECT_OT_duplicates_make_real ( wmOperatorType ot)
void OBJECT_OT_effector_add ( wmOperatorType ot)
void OBJECT_OT_group_instance_add ( wmOperatorType ot)
void OBJECT_OT_join ( wmOperatorType ot)
void OBJECT_OT_join_shapes ( wmOperatorType ot)
void OBJECT_OT_lamp_add ( wmOperatorType ot)
void OBJECT_OT_metaball_add ( wmOperatorType ot)
void OBJECT_OT_speaker_add ( wmOperatorType ot)
void OBJECT_OT_text_add ( wmOperatorType ot)
static int object_speaker_add_exec ( bContext C,
wmOperator op 
) [static]
void view_align_update ( struct Main UNUSEDmain,
struct Scene UNUSEDscene,
struct PointerRNA ptr 
)

Definition at line 182 of file object_add.c.

References RNA_struct_idprops_unset().

Referenced by ED_object_add_generic_props().


Variable Documentation

Initial value:
 {
    {OB_CURVE, "CURVE", ICON_OUTLINER_OB_CURVE, "Curve from Mesh/Text", ""},
    {OB_MESH, "MESH", ICON_OUTLINER_OB_MESH, "Mesh from Curve/Meta/Surf/Text", ""},
    {0, NULL, 0, NULL, NULL}}

Definition at line 1227 of file object_add.c.

Initial value:
 {
    {PFIELD_FORCE, "FORCE", ICON_FORCE_FORCE, "Force", ""},
    {PFIELD_WIND, "WIND", ICON_FORCE_WIND, "Wind", ""},
    {PFIELD_VORTEX, "VORTEX", ICON_FORCE_VORTEX, "Vortex", ""},
    {PFIELD_MAGNET, "MAGNET", ICON_FORCE_MAGNETIC, "Magnetic", ""},
    {PFIELD_HARMONIC, "HARMONIC", ICON_FORCE_HARMONIC, "Harmonic", ""},
    {PFIELD_CHARGE, "CHARGE", ICON_FORCE_CHARGE, "Charge", ""},
    {PFIELD_LENNARDJ, "LENNARDJ", ICON_FORCE_LENNARDJONES, "Lennard-Jones", ""},
    {PFIELD_TEXTURE, "TEXTURE", ICON_FORCE_TEXTURE, "Texture", ""},
    {PFIELD_GUIDE, "GUIDE", ICON_FORCE_CURVE, "Curve Guide", ""},
    {PFIELD_BOID, "BOID", ICON_FORCE_BOID, "Boid", ""},
    {PFIELD_TURBULENCE, "TURBULENCE", ICON_FORCE_TURBULENCE, "Turbulence", ""},
    {PFIELD_DRAG, "DRAG", ICON_FORCE_DRAG, "Drag", ""},
    {0, NULL, 0, NULL, NULL}}

Definition at line 385 of file object_add.c.

Referenced by rna_def_field().