4 * ***** BEGIN GPL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 * The Original Code is Copyright (C) 2008 Blender Foundation.
21 * All rights reserved.
24 * Contributor(s): Blender Foundation
26 * ***** END GPL LICENSE BLOCK *****
46 void ED_operatortypes_object(void);
47 void ED_operatormacros_object(void);
48 void ED_keymap_object(struct wmKeyConfig *keyconf);
50 /* send your own notifier for select! */
51 void ED_base_object_select(struct Base *base, short mode);
52 /* includes notifier */
53 void ED_base_object_activate(struct bContext *C, struct Base *base);
55 void ED_base_object_free_and_unlink(struct Scene *scene, struct Base *base);
57 void ED_object_apply_obmat(struct Object *ob);
58 /* single object duplicate, if dupflag==0, fully linked, else it uses the flags given */
59 struct Base *ED_object_add_duplicate(struct Scene *scene, struct Base *base, int dupflag);
61 void ED_object_parent(struct Object *ob, struct Object *parent, int type, const char *substr);
63 void ED_object_toggle_modes(struct bContext *C, int mode);
65 /* bitflags for enter/exit editmode */
68 #define EM_WAITCURSOR 4
70 void ED_object_exit_editmode(struct bContext *C, int flag);
71 void ED_object_enter_editmode(struct bContext *C, int flag);
73 void ED_object_base_init_from_view(struct bContext *C, struct Base *base);
74 struct Object *ED_object_add_type(struct bContext *C, int type);
76 void ED_object_single_users(struct Scene *scene, int full);
79 int object_is_libdata(struct Object *ob);
80 int object_data_is_libdata(struct Object *ob);
83 struct bConstraint *add_new_constraint(short type);
84 void add_constraint_to_object(struct bConstraint *con, struct Object *ob);
86 struct ListBase *get_active_constraints(struct Object *ob);
87 struct bConstraint *get_active_constraint(struct Object *ob);
89 void object_test_constraints(struct Object *ob);
91 void ED_object_constraint_rename(struct Object *ob, struct bConstraint *con, char *oldname);
92 void ED_object_constraint_set_active(struct Object *ob, struct bConstraint *con);
93 void ED_object_constraint_update(struct Object *ob);
94 void ED_object_constraint_dependency_update(struct Scene *scene, struct Object *ob);
96 /* object_lattice.c */
97 void mouse_lattice(struct bContext *C, short mval[2], int extend);
98 void undo_push_lattice(struct bContext *C, char *name);
100 /* object_shapekey.c */
101 void insert_shapekey(struct Scene *scene, struct Object *ob);
102 void delete_key(struct Scene *scene, struct Object *ob);
103 void key_to_mesh(struct KeyBlock *kb, struct Mesh *me);
104 void mesh_to_key(struct Mesh *me, struct KeyBlock *kb);
105 void key_to_latt(struct KeyBlock *kb, struct Lattice *lt);
106 void latt_to_key(struct Lattice *lt, struct KeyBlock *kb);
107 void key_to_curve(struct KeyBlock *kb, struct Curve *cu, struct ListBase *nurb);
108 void curve_to_key(struct Curve *cu, struct KeyBlock *kb, struct ListBase *nurb);
110 /* object_modifier.c */
111 int ED_object_modifier_add(struct ReportList *reports, struct Scene *scene, struct Object *ob, int type);
112 int ED_object_modifier_remove(struct ReportList *reports, struct Scene *scene, struct Object *ob, struct ModifierData *md);
113 int ED_object_modifier_move_down(struct ReportList *reports, struct Object *ob, struct ModifierData *md);
114 int ED_object_modifier_move_up(struct ReportList *reports, struct Object *ob, struct ModifierData *md);
115 int ED_object_modifier_convert(struct ReportList *reports, struct Scene *scene, struct Object *ob, struct ModifierData *md);
116 int ED_object_modifier_apply(struct ReportList *reports, struct Scene *scene, struct Object *ob, struct ModifierData *md);
117 int ED_object_modifier_copy(struct ReportList *reports, struct Object *ob, struct ModifierData *md);
119 #endif /* ED_OBJECT_H */