Blender  V2.93
object_intern.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2008 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 struct Object;
31 struct StructRNA;
32 struct bContext;
33 struct wmOperator;
34 struct wmOperatorType;
35 
36 struct ModifierData;
37 
38 /* add hook menu */
43 };
44 
45 /* internal exports only */
46 
47 /* object_transform.c */
56 
57 /* object_relations.c */
72 
73 /* object_edit.c */
89 
92 
94 
95 /* object_select.c */
105 
106 /* object_add.c */
107 void OBJECT_OT_add(struct wmOperatorType *ot);
110 void OBJECT_OT_text_add(struct wmOperatorType *ot);
120 void OBJECT_OT_hair_add(struct wmOperatorType *ot);
124 
127 void OBJECT_OT_delete(struct wmOperatorType *ot);
128 void OBJECT_OT_join(struct wmOperatorType *ot);
130 void OBJECT_OT_convert(struct wmOperatorType *ot);
131 
132 /* object_volume.c */
135 
136 /* object_hook.c */
144 
145 /* object_collection.c */
151 
152 /* object_modifier.c */
154  struct StructRNA *rna_type,
155  int obtype_flag,
156  const bool is_editmode_allowed,
157  const bool is_liboverride_allowed);
159 bool edit_modifier_invoke_properties(struct bContext *C, struct wmOperator *op);
161  struct wmOperator *op,
162  const struct wmEvent *event,
163  int *r_retval);
164 
166  struct Object *ob,
167  int type);
168 
198 
199 /* object_gpencil_modifiers.c */
208 
209 /* object_shader_fx.c */
216 
217 /* object_constraint.c */
222 
225 
228 
229 void POSE_OT_ik_add(struct wmOperatorType *ot);
230 void POSE_OT_ik_clear(struct wmOperatorType *ot);
231 
233 
237 
245 
246 /* object_vgroup.c */
276 
277 /* object_facemap_ops.c */
285 
286 /* object_warp.c */
288 
289 /* object_shapekey.c */
296 
297 /* object_collection.c */
303 
304 /* object_bake.c */
307 
308 /* object_random.c */
310 
311 /* object_remesh.c */
315 
316 /* object_transfer_data.c */
319 
320 #ifdef __cplusplus
321 }
322 #endif
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
#define C
Definition: RandGen.cpp:39
void CONSTRAINT_OT_objectsolver_set_inverse(struct wmOperatorType *ot)
void OBJECT_OT_data_instance_add(struct wmOperatorType *ot)
Definition: object_add.c:1778
void OBJECT_OT_datalayout_transfer(struct wmOperatorType *ot)
bool edit_modifier_invoke_properties(struct bContext *C, struct wmOperator *op)
void OBJECT_OT_vertex_group_sort(struct wmOperatorType *ot)
void OBJECT_OT_collection_link(struct wmOperatorType *ot)
void OBJECT_OT_make_local(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_copy_to_selected(struct wmOperatorType *ot)
void OBJECT_OT_gpencil_modifier_copy(struct wmOperatorType *ot)
void OBJECT_OT_face_map_remove_from(struct wmOperatorType *ot)
void OBJECT_OT_shape_key_clear(struct wmOperatorType *ot)
void TRANSFORM_OT_vertex_random(struct wmOperatorType *ot)
void OBJECT_OT_location_clear(struct wmOperatorType *ot)
void OBJECT_OT_gpencil_modifier_move_to_index(struct wmOperatorType *ot)
void OBJECT_OT_select_linked(struct wmOperatorType *ot)
void OBJECT_OT_effector_add(struct wmOperatorType *ot)
Definition: object_add.c:885
void OBJECT_OT_transform_axis_target(struct wmOperatorType *ot)
bool edit_modifier_poll_generic(struct bContext *C, struct StructRNA *rna_type, int obtype_flag, const bool is_editmode_allowed, const bool is_liboverride_allowed)
void COLLECTION_OT_objects_add_active(struct wmOperatorType *ot)
void OBJECT_OT_multires_subdivide(struct wmOperatorType *ot)
void OBJECT_OT_gpencil_modifier_apply(struct wmOperatorType *ot)
void OBJECT_OT_gpencil_modifier_copy_to_selected(struct wmOperatorType *ot)
void OBJECT_OT_armature_add(struct wmOperatorType *ot)
Definition: object_add.c:1139
void OBJECT_OT_multires_external_save(struct wmOperatorType *ot)
void CONSTRAINT_OT_move_up(struct wmOperatorType *ot)
void OBJECT_OT_pointcloud_add(struct wmOperatorType *ot)
Definition: object_add.c:1934
void OBJECT_OT_vertex_group_quantize(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_clean(struct wmOperatorType *ot)
void COLLECTION_OT_objects_remove_all(struct wmOperatorType *ot)
void OBJECT_OT_face_map_remove(struct wmOperatorType *ot)
void OBJECT_OT_mode_set_with_submode(struct wmOperatorType *ot)
Definition: object_edit.c:1756
void OBJECT_OT_bake(wmOperatorType *ot)
void OBJECT_OT_speaker_add(struct wmOperatorType *ot)
Definition: object_add.c:1844
void OBJECT_OT_vertex_group_fix(struct wmOperatorType *ot)
void OBJECT_OT_track_clear(struct wmOperatorType *ot)
void OBJECT_OT_quadriflow_remesh(struct wmOperatorType *ot)
void OBJECT_OT_posemode_toggle(struct wmOperatorType *ot)
Definition: object_edit.c:1029
void OBJECT_OT_light_add(struct wmOperatorType *ot)
Definition: object_add.c:1587
void OBJECT_OT_empty_add(struct wmOperatorType *ot)
Definition: object_add.c:1183
void OBJECT_OT_explode_refresh(struct wmOperatorType *ot)
void CONSTRAINT_OT_childof_clear_inverse(struct wmOperatorType *ot)
void OBJECT_OT_hook_select(struct wmOperatorType *ot)
Definition: object_hook.c:967
void CONSTRAINT_OT_limitdistance_reset(struct wmOperatorType *ot)
void OBJECT_OT_shaderfx_move_up(struct wmOperatorType *ot)
void OBJECT_OT_add(struct wmOperatorType *ot)
Definition: object_add.c:698
void OBJECT_OT_constraints_clear(struct wmOperatorType *ot)
void OBJECT_OT_volume_import(struct wmOperatorType *ot)
void OBJECT_OT_scale_clear(struct wmOperatorType *ot)
void OBJECT_OT_laplaciandeform_bind(struct wmOperatorType *ot)
void OBJECT_OT_shaderfx_move_to_index(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_deselect(struct wmOperatorType *ot)
void OBJECT_OT_constraint_add(struct wmOperatorType *ot)
void OBJECT_OT_skin_root_mark(struct wmOperatorType *ot)
void OBJECT_OT_hook_assign(struct wmOperatorType *ot)
Definition: object_hook.c:920
void OBJECT_OT_skin_radii_equalize(struct wmOperatorType *ot)
void OBJECT_OT_gpencil_modifier_remove(struct wmOperatorType *ot)
void OBJECT_OT_hook_recenter(struct wmOperatorType *ot)
Definition: object_hook.c:859
void OBJECT_OT_convert(struct wmOperatorType *ot)
Definition: object_add.c:3192
void OBJECT_OT_paths_clear(struct wmOperatorType *ot)
Definition: object_edit.c:1387
void CONSTRAINT_OT_move_down(struct wmOperatorType *ot)
void OBJECT_OT_hook_add_newob(struct wmOperatorType *ot)
Definition: object_hook.c:691
void OBJECT_OT_move_to_collection(struct wmOperatorType *ot)
Definition: object_edit.c:2039
void OBJECT_OT_join_shapes(struct wmOperatorType *ot)
Definition: object_add.c:3670
void OBJECT_OT_shape_key_move(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_smooth(struct wmOperatorType *ot)
void OBJECT_OT_visual_transform_apply(struct wmOperatorType *ot)
bool edit_modifier_invoke_properties_with_hover(struct bContext *C, struct wmOperator *op, const struct wmEvent *event, int *r_retval)
void OBJECT_OT_shape_key_mirror(struct wmOperatorType *ot)
void OBJECT_OT_multires_external_pack(struct wmOperatorType *ot)
void COLLECTION_OT_create(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_limit_total(struct wmOperatorType *ot)
void OBJECT_OT_origin_set(struct wmOperatorType *ot)
void OBJECT_OT_collection_unlink(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_move(struct wmOperatorType *ot)
void OBJECT_OT_lightprobe_add(struct wmOperatorType *ot)
Definition: object_add.c:767
void OBJECT_OT_hair_add(struct wmOperatorType *ot)
Definition: object_add.c:1889
void OBJECT_OT_select_random(struct wmOperatorType *ot)
void POSE_OT_ik_clear(struct wmOperatorType *ot)
void OBJECT_OT_modifier_copy(struct wmOperatorType *ot)
void OBJECT_OT_transfer_mode(struct wmOperatorType *ot)
Definition: object_modes.c:545
void OBJECT_OT_collection_add(struct wmOperatorType *ot)
void OBJECT_OT_select_more(struct wmOperatorType *ot)
void OBJECT_OT_parent_clear(struct wmOperatorType *ot)
void CONSTRAINT_OT_objectsolver_clear_inverse(struct wmOperatorType *ot)
void OBJECT_OT_editmode_toggle(struct wmOperatorType *ot)
Definition: object_edit.c:938
void OBJECT_OT_modifier_apply_as_shapekey(wmOperatorType *ot)
void OBJECT_OT_vertex_group_select(struct wmOperatorType *ot)
void OBJECT_OT_modifier_remove(struct wmOperatorType *ot)
void OBJECT_OT_voxel_size_edit(struct wmOperatorType *ot)
void OBJECT_OT_metaball_add(struct wmOperatorType *ot)
Definition: object_add.c:1017
void OBJECT_OT_constraints_copy(struct wmOperatorType *ot)
void OBJECT_OT_hide_view_set(struct wmOperatorType *ot)
Definition: object_edit.c:343
void OBJECT_OT_vertex_group_remove(struct wmOperatorType *ot)
void OBJECT_OT_gpencil_modifier_move_down(struct wmOperatorType *ot)
void POSE_OT_constraint_add_with_targets(struct wmOperatorType *ot)
struct ModifierData * edit_modifier_property_get(struct wmOperator *op, struct Object *ob, int type)
void OBJECT_OT_vertex_group_normalize_all(struct wmOperatorType *ot)
void OBJECT_OT_make_single_user(struct wmOperatorType *ot)
void OBJECT_OT_vertex_weight_copy(struct wmOperatorType *ot)
void OBJECT_OT_hide_collection(struct wmOperatorType *ot)
Definition: object_edit.c:465
void OBJECT_OT_make_links_scene(struct wmOperatorType *ot)
void OBJECT_OT_multires_higher_levels_delete(struct wmOperatorType *ot)
void OBJECT_OT_forcefield_toggle(struct wmOperatorType *ot)
Definition: object_edit.c:1095
void POSE_OT_constraints_clear(struct wmOperatorType *ot)
void OBJECT_OT_vertex_weight_set_active(struct wmOperatorType *ot)
void OBJECT_OT_skin_armature_create(struct wmOperatorType *ot)
void OBJECT_OT_mode_set(struct wmOperatorType *ot)
Definition: object_edit.c:1731
void OBJECT_OT_paths_range_update(struct wmOperatorType *ot)
Definition: object_edit.c:1433
void OBJECT_OT_surfacedeform_bind(struct wmOperatorType *ot)
void OBJECT_OT_face_map_select(struct wmOperatorType *ot)
void OBJECT_OT_transform_apply(struct wmOperatorType *ot)
void OBJECT_OT_modifier_add(struct wmOperatorType *ot)
void OBJECT_OT_select_all(struct wmOperatorType *ot)
void OBJECT_OT_shape_key_retime(struct wmOperatorType *ot)
void CONSTRAINT_OT_followpath_path_animate(struct wmOperatorType *ot)
void OBJECT_OT_origin_clear(struct wmOperatorType *ot)
eObject_Hook_Add_Mode
Definition: object_intern.h:39
@ OBJECT_ADDHOOK_NEWOB
Definition: object_intern.h:40
@ OBJECT_ADDHOOK_SELOB_BONE
Definition: object_intern.h:42
@ OBJECT_ADDHOOK_SELOB
Definition: object_intern.h:41
void OBJECT_OT_correctivesmooth_bind(struct wmOperatorType *ot)
void OBJECT_OT_vertex_weight_delete(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_copy_to_linked(struct wmOperatorType *ot)
void OBJECT_OT_shade_smooth(struct wmOperatorType *ot)
Definition: object_edit.c:1559
void OBJECT_OT_vertex_group_normalize(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_copy(struct wmOperatorType *ot)
void POSE_OT_constraints_copy(struct wmOperatorType *ot)
void COLLECTION_OT_objects_remove_active(struct wmOperatorType *ot)
void OBJECT_OT_select_mirror(struct wmOperatorType *ot)
void OBJECT_OT_parent_set(struct wmOperatorType *ot)
void OBJECT_OT_camera_add(struct wmOperatorType *ot)
Definition: object_add.c:944
void OBJECT_OT_modifier_convert(struct wmOperatorType *ot)
void OBJECT_OT_hook_reset(struct wmOperatorType *ot)
Definition: object_hook.c:808
void OBJECT_OT_shaderfx_move_down(struct wmOperatorType *ot)
void OBJECT_OT_shape_key_add(struct wmOperatorType *ot)
void OBJECT_OT_face_map_move(struct wmOperatorType *ot)
void OBJECT_OT_paths_update(struct wmOperatorType *ot)
Definition: object_edit.c:1311
void OBJECT_OT_voxel_remesh(struct wmOperatorType *ot)
void OBJECT_OT_skin_loose_mark_clear(struct wmOperatorType *ot)
void OBJECT_OT_hook_remove(struct wmOperatorType *ot)
Definition: object_hook.c:760
void OBJECT_OT_vertex_weight_normalize_active_vertex(struct wmOperatorType *ot)
void OBJECT_OT_make_override_library(struct wmOperatorType *ot)
void OBJECT_OT_gpencil_add(struct wmOperatorType *ot)
Definition: object_add.c:1489
void OBJECT_OT_bake_image(wmOperatorType *ot)
Definition: object_bake.c:639
void OBJECT_OT_select_grouped(struct wmOperatorType *ot)
void OBJECT_OT_shaderfx_copy(struct wmOperatorType *ot)
void OBJECT_OT_modifier_apply(struct wmOperatorType *ot)
void POSE_OT_constraint_add(struct wmOperatorType *ot)
void OBJECT_OT_modifier_set_active(struct wmOperatorType *ot)
void OBJECT_OT_proxy_make(struct wmOperatorType *ot)
void CONSTRAINT_OT_childof_set_inverse(struct wmOperatorType *ot)
void OBJECT_OT_face_map_add(struct wmOperatorType *ot)
void OBJECT_OT_shape_key_remove(struct wmOperatorType *ot)
void OBJECT_OT_hook_add_selob(struct wmOperatorType *ot)
Definition: object_hook.c:652
void OBJECT_OT_modifier_move_up(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_levels(struct wmOperatorType *ot)
void OBJECT_OT_shaderfx_add(struct wmOperatorType *ot)
void OBJECT_OT_gpencil_modifier_add(struct wmOperatorType *ot)
void OBJECT_OT_data_transfer(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_remove_from(struct wmOperatorType *ot)
void OBJECT_OT_modifier_copy_to_selected(struct wmOperatorType *ot)
void OBJECT_OT_rotation_clear(struct wmOperatorType *ot)
void OBJECT_OT_shade_flat(struct wmOperatorType *ot)
Definition: object_edit.c:1544
void edit_modifier_properties(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_assign(struct wmOperatorType *ot)
void OBJECT_OT_select_by_type(struct wmOperatorType *ot)
void TRANSFORM_OT_vertex_warp(struct wmOperatorType *ot)
Definition: object_warp.c:259
void OBJECT_OT_modifier_move_down(struct wmOperatorType *ot)
void CONSTRAINT_OT_delete(struct wmOperatorType *ot)
void CONSTRAINT_OT_move_to_index(struct wmOperatorType *ot)
void OBJECT_OT_multires_rebuild_subdiv(struct wmOperatorType *ot)
void OBJECT_OT_shaderfx_remove(struct wmOperatorType *ot)
void OBJECT_OT_collection_remove(struct wmOperatorType *ot)
void OBJECT_OT_face_map_assign(struct wmOperatorType *ot)
void POSE_OT_ik_add(struct wmOperatorType *ot)
void COLLECTION_OT_objects_remove(struct wmOperatorType *ot)
void OBJECT_OT_text_add(struct wmOperatorType *ot)
Definition: object_add.c:1068
void OBJECT_OT_parent_no_inverse_set(struct wmOperatorType *ot)
void OBJECT_OT_delete(struct wmOperatorType *ot)
Definition: object_add.c:2082
void OBJECT_OT_vertex_parent_set(struct wmOperatorType *ot)
void OBJECT_OT_select_same_collection(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_add(struct wmOperatorType *ot)
void OBJECT_OT_make_links_data(struct wmOperatorType *ot)
void OBJECT_OT_collection_objects_select(struct wmOperatorType *ot)
void OBJECT_OT_face_map_deselect(struct wmOperatorType *ot)
void OBJECT_OT_volume_add(struct wmOperatorType *ot)
Definition: object_volume.c:70
void OBJECT_OT_add_named(struct wmOperatorType *ot)
Definition: object_add.c:3506
void OBJECT_OT_track_set(struct wmOperatorType *ot)
void OBJECT_OT_select_less(struct wmOperatorType *ot)
void OBJECT_OT_convert_proxy_to_override(struct wmOperatorType *ot)
void OBJECT_OT_paths_calculate(struct wmOperatorType *ot)
Definition: object_edit.c:1242
void OBJECT_OT_hide_view_clear(struct wmOperatorType *ot)
Definition: object_edit.c:285
void OBJECT_OT_drop_named_image(struct wmOperatorType *ot)
Definition: object_add.c:1253
void CONSTRAINT_OT_stretchto_reset(struct wmOperatorType *ot)
void OBJECT_OT_join(struct wmOperatorType *ot)
Definition: object_add.c:3613
void OBJECT_OT_vertex_group_lock(struct wmOperatorType *ot)
void OBJECT_OT_link_to_collection(struct wmOperatorType *ot)
Definition: object_edit.c:2078
void OBJECT_OT_unlink_data(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_set_active(struct wmOperatorType *ot)
void OBJECT_OT_vertex_weight_paste(struct wmOperatorType *ot)
void OBJECT_OT_ocean_bake(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_mirror(struct wmOperatorType *ot)
void OBJECT_OT_gpencil_modifier_move_up(struct wmOperatorType *ot)
void OBJECT_OT_collection_instance_add(struct wmOperatorType *ot)
Definition: object_add.c:1689
void OBJECT_OT_multires_reshape(struct wmOperatorType *ot)
void OBJECT_OT_modifier_move_to_index(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_assign_new(struct wmOperatorType *ot)
void OBJECT_OT_meshdeform_bind(struct wmOperatorType *ot)
void OBJECT_OT_vertex_group_invert(struct wmOperatorType *ot)
void OBJECT_OT_constraint_add_with_targets(struct wmOperatorType *ot)
void OBJECT_OT_duplicate(struct wmOperatorType *ot)
Definition: object_add.c:3403
void OBJECT_OT_duplicates_make_real(struct wmOperatorType *ot)
Definition: object_add.c:2489
void OBJECT_OT_drop_named_material(struct wmOperatorType *ot)
void OBJECT_OT_multires_unsubdivide(struct wmOperatorType *ot)
void OBJECT_OT_multires_base_apply(struct wmOperatorType *ot)
wmOperatorType * ot
Definition: wm_files.c:3156