Blender  V2.59
object_intern.h
Go to the documentation of this file.
00001 /*
00002  * $Id: object_intern.h 36458 2011-05-03 07:09:02Z campbellbarton $
00003  *
00004  * ***** BEGIN GPL LICENSE BLOCK *****
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version. 
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software Foundation,
00018  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  *
00020  * The Original Code is Copyright (C) 2008 Blender Foundation.
00021  * All rights reserved.
00022  *
00023  * 
00024  * Contributor(s): Blender Foundation
00025  *
00026  * ***** END GPL LICENSE BLOCK *****
00027  */
00028 
00033 #ifndef ED_OBJECT_INTERN_H
00034 #define ED_OBJECT_INTERN_H
00035 
00036 struct wmOperatorType;
00037 struct KeyBlock;
00038 struct Lattice;
00039 struct Curve;
00040 struct Object;
00041 struct Mesh;
00042 struct HookModifierData;
00043 
00044 /* add hook menu */
00045 enum {
00046         OBJECT_ADDHOOK_NEWOB = 1,
00047         OBJECT_ADDHOOK_SELOB,
00048 } eObject_Hook_Add_Mode;
00049 
00050 /* internal exports only */
00051 
00052 /* object_transform.c */
00053 void OBJECT_OT_location_clear(struct wmOperatorType *ot);
00054 void OBJECT_OT_rotation_clear(struct wmOperatorType *ot);
00055 void OBJECT_OT_scale_clear(struct wmOperatorType *ot);
00056 void OBJECT_OT_origin_clear(struct wmOperatorType *ot);
00057 void OBJECT_OT_visual_transform_apply(struct wmOperatorType *ot);
00058 void OBJECT_OT_transform_apply(struct wmOperatorType *ot);
00059 void OBJECT_OT_origin_set(struct wmOperatorType *ot);
00060 
00061 /* object_relations.c */
00062 void OBJECT_OT_parent_set(struct wmOperatorType *ot);
00063 void OBJECT_OT_parent_no_inverse_set(struct wmOperatorType *ot);
00064 void OBJECT_OT_parent_clear(struct wmOperatorType *ot);
00065 void OBJECT_OT_vertex_parent_set(struct wmOperatorType *ot);
00066 void OBJECT_OT_track_set(struct wmOperatorType *ot);
00067 void OBJECT_OT_track_clear(struct wmOperatorType *ot);
00068 void OBJECT_OT_slow_parent_set(struct wmOperatorType *ot);
00069 void OBJECT_OT_slow_parent_clear(struct wmOperatorType *ot);
00070 void OBJECT_OT_make_local(struct wmOperatorType *ot);
00071 void OBJECT_OT_make_single_user(struct wmOperatorType *ot);
00072 void OBJECT_OT_make_links_scene(struct wmOperatorType *ot);
00073 void OBJECT_OT_make_links_data(struct wmOperatorType *ot);
00074 void OBJECT_OT_move_to_layer(struct wmOperatorType *ot);
00075 void OBJECT_OT_drop_named_material(struct wmOperatorType *ot);
00076 
00077 /* object_edit.c */
00078 void OBJECT_OT_mode_set(struct wmOperatorType *ot);
00079 void OBJECT_OT_editmode_toggle(struct wmOperatorType *ot);
00080 void OBJECT_OT_posemode_toggle(struct wmOperatorType *ot);
00081 void OBJECT_OT_hide_view_set(struct wmOperatorType *ot);
00082 void OBJECT_OT_hide_view_clear(struct wmOperatorType *ot);
00083 void OBJECT_OT_hide_render_set(struct wmOperatorType *ot);
00084 void OBJECT_OT_hide_render_clear(struct wmOperatorType *ot);
00085 void OBJECT_OT_proxy_make(struct wmOperatorType *ot);
00086 void OBJECT_OT_shade_smooth(struct wmOperatorType *ot);
00087 void OBJECT_OT_shade_flat(struct wmOperatorType *ot);
00088 void OBJECT_OT_paths_calculate(struct wmOperatorType *ot);
00089 void OBJECT_OT_paths_clear(struct wmOperatorType *ot);
00090 void OBJECT_OT_forcefield_toggle(struct wmOperatorType *ot);
00091 
00092 void OBJECT_OT_game_property_new(struct wmOperatorType *ot);
00093 void OBJECT_OT_game_property_remove(struct wmOperatorType *ot);
00094 void OBJECT_OT_game_property_copy(struct wmOperatorType *ot);
00095 void OBJECT_OT_game_property_clear(struct wmOperatorType *ot);
00096 void OBJECT_OT_logic_bricks_copy(struct wmOperatorType *ot);
00097 
00098 /* object_select.c */
00099 void OBJECT_OT_select_all(struct wmOperatorType *ot);
00100 void OBJECT_OT_select_inverse(struct wmOperatorType *ot);
00101 void OBJECT_OT_select_random(struct wmOperatorType *ot);
00102 void OBJECT_OT_select_by_type(struct wmOperatorType *ot);
00103 void OBJECT_OT_select_by_layer(struct wmOperatorType *ot);
00104 void OBJECT_OT_select_linked(struct wmOperatorType *ot);
00105 void OBJECT_OT_select_grouped(struct wmOperatorType *ot);
00106 void OBJECT_OT_select_mirror(struct wmOperatorType *ot);
00107 void OBJECT_OT_select_name(struct wmOperatorType *ot);
00108 void OBJECT_OT_select_same_group(struct wmOperatorType *ot);
00109 
00110 /* object_add.c */
00111 void OBJECT_OT_add(struct wmOperatorType *ot);
00112 void OBJECT_OT_add_named(struct wmOperatorType *ot);
00113 void OBJECT_OT_metaball_add(struct wmOperatorType *ot);
00114 void OBJECT_OT_text_add(struct wmOperatorType *ot);
00115 void OBJECT_OT_armature_add(struct wmOperatorType *ot);
00116 void OBJECT_OT_lamp_add(struct wmOperatorType *ot);
00117 void OBJECT_OT_effector_add(struct wmOperatorType *ot);
00118 void OBJECT_OT_camera_add(struct wmOperatorType *ot);
00119 void OBJECT_OT_group_instance_add(struct wmOperatorType *ot);
00120 
00121 void OBJECT_OT_duplicates_make_real(struct wmOperatorType *ot);
00122 void OBJECT_OT_duplicate(struct wmOperatorType *ot);
00123 void OBJECT_OT_delete(struct wmOperatorType *ot);
00124 void OBJECT_OT_join(struct wmOperatorType *ot);
00125 void OBJECT_OT_join_shapes(struct wmOperatorType *ot);
00126 void OBJECT_OT_convert(struct wmOperatorType *ot);
00127 
00128 /* object_hook.c */
00129 void OBJECT_OT_hook_add_selobj(struct wmOperatorType *ot);
00130 void OBJECT_OT_hook_add_newobj(struct wmOperatorType *ot);
00131 void OBJECT_OT_hook_remove(struct wmOperatorType *ot);
00132 void OBJECT_OT_hook_select(struct wmOperatorType *ot);
00133 void OBJECT_OT_hook_assign(struct wmOperatorType *ot);
00134 void OBJECT_OT_hook_reset(struct wmOperatorType *ot);
00135 void OBJECT_OT_hook_recenter(struct wmOperatorType *ot);
00136 
00137 /* object_lattice.c */
00138 void LATTICE_OT_select_all(struct wmOperatorType *ot);
00139 void LATTICE_OT_make_regular(struct wmOperatorType *ot);
00140 
00141 /* object_group.c */
00142 void GROUP_OT_create(struct wmOperatorType *ot);
00143 void GROUP_OT_objects_remove(struct wmOperatorType *ot);
00144 void GROUP_OT_objects_add_active(struct wmOperatorType *ot);
00145 void GROUP_OT_objects_remove_active(struct wmOperatorType *ot);
00146 
00147 /* object_modifier.c */
00148 void OBJECT_OT_modifier_add(struct wmOperatorType *ot);
00149 void OBJECT_OT_modifier_remove(struct wmOperatorType *ot);
00150 void OBJECT_OT_modifier_move_up(struct wmOperatorType *ot);
00151 void OBJECT_OT_modifier_move_down(struct wmOperatorType *ot);
00152 void OBJECT_OT_modifier_apply(struct wmOperatorType *ot);
00153 void OBJECT_OT_modifier_convert(struct wmOperatorType *ot);
00154 void OBJECT_OT_modifier_copy(struct wmOperatorType *ot);
00155 void OBJECT_OT_multires_subdivide(struct wmOperatorType *ot);
00156 void OBJECT_OT_multires_reshape(struct wmOperatorType *ot);
00157 void OBJECT_OT_multires_higher_levels_delete(struct wmOperatorType *ot);
00158 void OBJECT_OT_multires_base_apply(struct wmOperatorType *ot);
00159 void OBJECT_OT_multires_external_save(struct wmOperatorType *ot);
00160 void OBJECT_OT_multires_external_pack(struct wmOperatorType *ot);
00161 void OBJECT_OT_meshdeform_bind(struct wmOperatorType *ot);
00162 void OBJECT_OT_explode_refresh(struct wmOperatorType *ot);
00163 
00164 /* object_constraint.c */
00165 void OBJECT_OT_constraint_add(struct wmOperatorType *ot);
00166 void OBJECT_OT_constraint_add_with_targets(struct wmOperatorType *ot);
00167 void POSE_OT_constraint_add(struct wmOperatorType *ot);
00168 void POSE_OT_constraint_add_with_targets(struct wmOperatorType *ot);
00169 
00170 void OBJECT_OT_constraints_copy(struct wmOperatorType *ot);
00171 void POSE_OT_constraints_copy(struct wmOperatorType *ot);
00172 
00173 void OBJECT_OT_constraints_clear(struct wmOperatorType *ot);
00174 void POSE_OT_constraints_clear(struct wmOperatorType *ot);
00175 
00176 void POSE_OT_ik_add(struct wmOperatorType *ot);
00177 void POSE_OT_ik_clear(struct wmOperatorType *ot);
00178 
00179 void CONSTRAINT_OT_delete(struct wmOperatorType *ot);
00180 
00181 void CONSTRAINT_OT_move_up(struct wmOperatorType *ot);
00182 void CONSTRAINT_OT_move_down(struct wmOperatorType *ot);
00183 
00184 void CONSTRAINT_OT_stretchto_reset(struct wmOperatorType *ot);
00185 void CONSTRAINT_OT_limitdistance_reset(struct wmOperatorType *ot);
00186 void CONSTRAINT_OT_childof_set_inverse(struct wmOperatorType *ot);
00187 void CONSTRAINT_OT_childof_clear_inverse(struct wmOperatorType *ot);
00188 
00189 /* object_vgroup.c */
00190 void OBJECT_OT_vertex_group_add(struct wmOperatorType *ot);
00191 void OBJECT_OT_vertex_group_remove(struct wmOperatorType *ot);
00192 void OBJECT_OT_vertex_group_assign(struct wmOperatorType *ot);
00193 void OBJECT_OT_vertex_group_remove_from(struct wmOperatorType *ot);
00194 void OBJECT_OT_vertex_group_select(struct wmOperatorType *ot);
00195 void OBJECT_OT_vertex_group_deselect(struct wmOperatorType *ot);
00196 void OBJECT_OT_vertex_group_copy_to_linked(struct wmOperatorType *ot);
00197 void OBJECT_OT_vertex_group_copy_to_selected(struct wmOperatorType *ot);
00198 void OBJECT_OT_vertex_group_copy(struct wmOperatorType *ot);
00199 void OBJECT_OT_vertex_group_normalize(struct wmOperatorType *ot);
00200 void OBJECT_OT_vertex_group_normalize_all(struct wmOperatorType *ot);
00201 void OBJECT_OT_vertex_group_levels(struct wmOperatorType *ot);
00202 void OBJECT_OT_vertex_group_invert(struct wmOperatorType *ot);
00203 void OBJECT_OT_vertex_group_blend(struct wmOperatorType *ot);
00204 void OBJECT_OT_vertex_group_clean(struct wmOperatorType *ot);
00205 void OBJECT_OT_vertex_group_mirror(struct wmOperatorType *ot);
00206 void OBJECT_OT_vertex_group_set_active(struct wmOperatorType *ot);
00207 void OBJECT_OT_vertex_group_sort(struct wmOperatorType *ot);
00208 void OBJECT_OT_vertex_group_move(struct wmOperatorType *ot);
00209 
00210 /* object_shapekey.c */
00211 void OBJECT_OT_shape_key_add(struct wmOperatorType *ot);
00212 void OBJECT_OT_shape_key_remove(struct wmOperatorType *ot);
00213 void OBJECT_OT_shape_key_clear(struct wmOperatorType *ot);
00214 void OBJECT_OT_shape_key_mirror(struct wmOperatorType *ot);
00215 void OBJECT_OT_shape_key_move(struct wmOperatorType *ot);
00216 
00217 /* object_group.c */
00218 void OBJECT_OT_group_add(struct wmOperatorType *ot);
00219 void OBJECT_OT_group_link(struct wmOperatorType *ot);
00220 void OBJECT_OT_group_remove(struct wmOperatorType *ot);
00221 
00222 /* object_bake.c */
00223 void OBJECT_OT_bake_image(wmOperatorType *ot);
00224 
00225 #endif /* ED_OBJECT_INTERN_H */
00226