Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_object.h
| Show All 35 Lines | |||||
| #endif | #endif | ||||
| struct Base; | struct Base; | ||||
| struct EnumPropertyItem; | struct EnumPropertyItem; | ||||
| struct ID; | struct ID; | ||||
| struct Main; | struct Main; | ||||
| struct ModifierData; | struct ModifierData; | ||||
| struct Object; | struct Object; | ||||
| struct ObjectBase; | |||||
| struct ReportList; | struct ReportList; | ||||
| struct Scene; | struct Scene; | ||||
| struct SceneLayer; | |||||
| struct bConstraint; | struct bConstraint; | ||||
| struct bContext; | struct bContext; | ||||
| struct bPoseChannel; | struct bPoseChannel; | ||||
| struct wmKeyConfig; | struct wmKeyConfig; | ||||
| struct wmKeyMap; | struct wmKeyMap; | ||||
| struct wmOperator; | struct wmOperator; | ||||
| struct wmOperatorType; | struct wmOperatorType; | ||||
| struct PointerRNA; | struct PointerRNA; | ||||
| ▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
| void ED_keymap_proportional_editmode(struct wmKeyConfig *keyconf, struct wmKeyMap *keymap, | void ED_keymap_proportional_editmode(struct wmKeyConfig *keyconf, struct wmKeyMap *keymap, | ||||
| const bool do_connected); | const bool do_connected); | ||||
| /* send your own notifier for select! */ | /* send your own notifier for select! */ | ||||
| void ED_base_object_select(struct Base *base, short mode); | void ED_base_object_select(struct Base *base, short mode); | ||||
| /* includes notifier */ | /* includes notifier */ | ||||
| void ED_base_object_activate(struct bContext *C, struct Base *base); | void ED_base_object_activate(struct bContext *C, struct Base *base); | ||||
| void ED_object_base_select(struct ObjectBase *base, short mode); | |||||
| void ED_object_base_activate(struct bContext *C, struct ObjectBase *base); | |||||
| void ED_base_object_free_and_unlink(struct Main *bmain, struct Scene *scene, struct Base *base); | void ED_base_object_free_and_unlink(struct Main *bmain, struct Scene *scene, struct Base *base); | ||||
| /* single object duplicate, if (dupflag == 0), fully linked, else it uses the flags given */ | /* single object duplicate, if (dupflag == 0), fully linked, else it uses the flags given */ | ||||
| struct Base *ED_object_add_duplicate(struct Main *bmain, struct Scene *scene, struct Base *base, int dupflag); | struct Base *ED_object_add_duplicate(struct Main *bmain, struct Scene *scene, struct Base *base, int dupflag); | ||||
| void ED_object_parent(struct Object *ob, struct Object *parent, const int type, const char *substr); | void ED_object_parent(struct Object *ob, struct Object *parent, const int type, const char *substr); | ||||
| bool ED_object_mode_compat_set(struct bContext *C, struct Object *ob, int mode, struct ReportList *reports); | bool ED_object_mode_compat_set(struct bContext *C, struct Object *ob, int mode, struct ReportList *reports); | ||||
| void ED_object_toggle_modes(struct bContext *C, int mode); | void ED_object_toggle_modes(struct bContext *C, int mode); | ||||
| /* bitflags for enter/exit editmode */ | /* bitflags for enter/exit editmode */ | ||||
| #define EM_FREEDATA 1 | #define EM_FREEDATA 1 | ||||
| #define EM_FREEUNDO 2 | #define EM_FREEUNDO 2 | ||||
| #define EM_WAITCURSOR 4 | #define EM_WAITCURSOR 4 | ||||
| #define EM_DO_UNDO 8 | #define EM_DO_UNDO 8 | ||||
| #define EM_IGNORE_LAYER 16 | #define EM_IGNORE_LAYER 16 | ||||
| void ED_object_editmode_exit(struct bContext *C, int flag); | void ED_object_editmode_exit(struct bContext *C, int flag); | ||||
| void ED_object_editmode_enter(struct bContext *C, int flag); | void ED_object_editmode_enter(struct bContext *C, int flag); | ||||
| bool ED_object_editmode_load(struct Object *obedit); | bool ED_object_editmode_load(struct Object *obedit); | ||||
| bool ED_object_editmode_calc_active_center(struct Object *obedit, const bool select_only, float r_center[3]); | bool ED_object_editmode_calc_active_center(struct Object *obedit, const bool select_only, float r_center[3]); | ||||
| void ED_object_location_from_view(struct bContext *C, float loc[3]); | void ED_object_location_from_view(struct bContext *C, float loc[3]); | ||||
| void ED_object_rotation_from_view(struct bContext *C, float rot[3], const char align_axis); | void ED_object_rotation_from_view(struct bContext *C, float rot[3], const char align_axis); | ||||
| void ED_object_base_init_transform(struct bContext *C, struct Base *base, const float loc[3], const float rot[3]); | void ED_object_base_init_transform(struct bContext *C, struct ObjectBase *base, const float loc[3], const float rot[3]); | ||||
| float ED_object_new_primitive_matrix( | float ED_object_new_primitive_matrix( | ||||
| struct bContext *C, struct Object *editob, | struct bContext *C, struct Object *editob, | ||||
| const float loc[3], const float rot[3], float primmat[4][4]); | const float loc[3], const float rot[3], float primmat[4][4]); | ||||
| /* Avoid allowing too much insane values even by typing (typos can hang/crash Blender otherwise). */ | /* Avoid allowing too much insane values even by typing (typos can hang/crash Blender otherwise). */ | ||||
| #define OBJECT_ADD_SIZE_MAXF 1.0e12f | #define OBJECT_ADD_SIZE_MAXF 1.0e12f | ||||
| ▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
| struct ModifierData *ED_object_modifier_add(struct ReportList *reports, struct Main *bmain, struct Scene *scene, | struct ModifierData *ED_object_modifier_add(struct ReportList *reports, struct Main *bmain, struct Scene *scene, | ||||
| struct Object *ob, const char *name, int type); | struct Object *ob, const char *name, int type); | ||||
| bool ED_object_modifier_remove(struct ReportList *reports, struct Main *bmain, | bool ED_object_modifier_remove(struct ReportList *reports, struct Main *bmain, | ||||
| struct Object *ob, struct ModifierData *md); | struct Object *ob, struct ModifierData *md); | ||||
| void ED_object_modifier_clear(struct Main *bmain, struct Object *ob); | void ED_object_modifier_clear(struct Main *bmain, struct Object *ob); | ||||
| int ED_object_modifier_move_down(struct ReportList *reports, struct Object *ob, struct ModifierData *md); | int ED_object_modifier_move_down(struct ReportList *reports, struct Object *ob, struct ModifierData *md); | ||||
| int ED_object_modifier_move_up(struct ReportList *reports, struct Object *ob, struct ModifierData *md); | int ED_object_modifier_move_up(struct ReportList *reports, struct Object *ob, struct ModifierData *md); | ||||
| int ED_object_modifier_convert(struct ReportList *reports, struct Main *bmain, struct Scene *scene, | int ED_object_modifier_convert(struct ReportList *reports, struct Main *bmain, struct Scene *scene, | ||||
| struct Object *ob, struct ModifierData *md); | struct SceneLayer *sl, struct Object *ob, struct ModifierData *md); | ||||
| int ED_object_modifier_apply(struct ReportList *reports, struct Scene *scene, | int ED_object_modifier_apply(struct ReportList *reports, struct Scene *scene, | ||||
| struct Object *ob, struct ModifierData *md, int mode); | struct Object *ob, struct ModifierData *md, int mode); | ||||
| int ED_object_modifier_copy(struct ReportList *reports, struct Object *ob, struct ModifierData *md); | int ED_object_modifier_copy(struct ReportList *reports, struct Object *ob, struct ModifierData *md); | ||||
| bool ED_object_iter_other(struct Main *bmain, struct Object *orig_ob, const bool include_orig, | bool ED_object_iter_other(struct Main *bmain, struct Object *orig_ob, const bool include_orig, | ||||
| bool (*callback)(struct Object *ob, void *callback_data), | bool (*callback)(struct Object *ob, void *callback_data), | ||||
| void *callback_data); | void *callback_data); | ||||
| Show All 19 Lines | |||||