~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/editors/include/ED_object.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * $Id: ED_object.h 29451 2010-06-14 15:39:50Z campbellbarton $
3
 
 *
 
1
/*
4
2
 * ***** BEGIN GPL LICENSE BLOCK *****
5
3
 *
6
4
 * This program is free software; you can redistribute it and/or
25
23
 *
26
24
 * ***** END GPL LICENSE BLOCK *****
27
25
 */
28
 
#ifndef ED_OBJECT_H
29
 
#define ED_OBJECT_H
30
 
 
31
 
struct wmKeyConfig;
32
 
struct wmKeyMap;
33
 
struct Scene;
34
 
struct Object;
35
 
struct bContext;
 
26
 
 
27
/** \file ED_object.h
 
28
 *  \ingroup editors
 
29
 */
 
30
 
 
31
#ifndef __ED_OBJECT_H__
 
32
#define __ED_OBJECT_H__
 
33
 
 
34
#ifdef __cplusplus
 
35
extern "C" {
 
36
#endif
 
37
 
36
38
struct Base;
37
 
struct View3D;
38
39
struct bConstraint;
 
40
struct bContext;
39
41
struct bPoseChannel;
 
42
struct Curve;
 
43
struct EnumPropertyItem;
40
44
struct KeyBlock;
41
45
struct Lattice;
 
46
struct Main;
42
47
struct Mesh;
43
 
struct Curve;
 
48
struct ModifierData;
 
49
struct Object;
44
50
struct ReportList;
45
 
struct ModifierData;
 
51
struct Scene;
 
52
struct View3D;
 
53
struct wmEvent;
 
54
struct wmKeyConfig;
 
55
struct wmKeyMap;
 
56
struct wmOperator;
46
57
struct wmOperatorType;
47
 
struct wmOperator;
48
 
struct wmEvent;
49
58
 
50
59
/* object_edit.c */
51
 
struct Object *ED_object_active_context(struct bContext *C);
 
60
struct Object *ED_object_context(struct bContext *C);               /* context.object */
 
61
struct Object *ED_object_active_context(struct bContext *C); /* context.object or context.active_object */
52
62
 
53
63
/* object_ops.c */
54
64
void ED_operatortypes_object(void);
55
65
void ED_operatormacros_object(void);
56
66
void ED_keymap_object(struct wmKeyConfig *keyconf);
57
67
 
58
 
/* generic editmode keys like pet */
 
68
/* object_relations.c */
 
69
typedef enum eParentType {
 
70
        PAR_OBJECT,
 
71
        PAR_ARMATURE,
 
72
        PAR_ARMATURE_NAME,
 
73
        PAR_ARMATURE_ENVELOPE,
 
74
        PAR_ARMATURE_AUTO,
 
75
        PAR_BONE,
 
76
        PAR_CURVE,
 
77
        PAR_FOLLOW,
 
78
        PAR_PATH_CONST,
 
79
        PAR_LATTICE,
 
80
        PAR_VERTEX,
 
81
        PAR_TRIA
 
82
} eParentType;
 
83
 
 
84
extern struct EnumPropertyItem prop_clear_parent_types[];
 
85
extern struct EnumPropertyItem prop_make_parent_types[];
 
86
 
 
87
int ED_object_parent_set(struct ReportList *reports, struct Main *bmain, struct Scene *scene, struct Object *ob, struct Object *par, int partype);
 
88
void ED_object_parent_clear(struct bContext *C, int type);
 
89
 
 
90
 
 
91
/* generic editmode keys like pet
 
92
 * do_pet
 
93
 *      0: No
 
94
 *      1: Object
 
95
 *      2: Edit
 
96
 *      3: Edit with connected
 
97
 * */
59
98
void ED_object_generic_keymap(struct wmKeyConfig *keyconf, struct wmKeyMap *keymap, int do_pet);
60
99
 
61
100
        /* send your own notifier for select! */
63
102
        /* includes notifier */
64
103
void ED_base_object_activate(struct bContext *C, struct Base *base);
65
104
 
66
 
void ED_base_object_free_and_unlink(struct Scene *scene, struct Base *base);
 
105
void ED_base_object_free_and_unlink(struct Main *bmain, struct Scene *scene, struct Base *base);
67
106
 
68
107
        /* single object duplicate, if dupflag==0, fully linked, else it uses the flags given */
69
 
struct Base *ED_object_add_duplicate(struct Scene *scene, struct Base *base, int dupflag);
 
108
struct Base *ED_object_add_duplicate(struct Main *bmain, struct Scene *scene, struct Base *base, int dupflag);
70
109
 
71
110
void ED_object_parent(struct Object *ob, struct Object *parent, int type, const char *substr);
72
111
 
88
127
 
89
128
void ED_object_add_generic_props(struct wmOperatorType *ot, int do_editmode);
90
129
int ED_object_add_generic_invoke(struct bContext *C, struct wmOperator *op, struct wmEvent *event);
91
 
int ED_object_add_generic_get_opts(struct bContext *C, struct wmOperator *op, float *loc, float *rot, int *enter_editmode, unsigned int *layer);
92
 
struct Object *ED_object_add_type(struct bContext *C, int type, float *loc, float *rot, int enter_editmode, unsigned int layer);
93
 
 
94
 
void ED_object_single_users(struct Scene *scene, int full);
95
 
 
96
 
/* cleanup */
97
 
int object_is_libdata(struct Object *ob);
98
 
int object_data_is_libdata(struct Object *ob);
 
130
int ED_object_add_generic_get_opts(struct bContext *C, struct wmOperator *op, 
 
131
        float *loc, float *rot, int *enter_editmode, unsigned int *layer, int *is_view_aligned);
 
132
 
 
133
struct Object *ED_object_add_type(struct bContext *C, int type, float *loc,
 
134
        float *rot, int enter_editmode, unsigned int layer);
 
135
 
 
136
void ED_object_single_users(struct Main *bmain, struct Scene *scene, int full);
 
137
void ED_object_single_user(struct Scene *scene, struct Object *ob);
99
138
 
100
139
/* object motion paths */
101
 
void ED_objects_clear_paths(struct bContext *C, struct Scene *scene);
 
140
void ED_objects_clear_paths(struct bContext *C);
102
141
void ED_objects_recalculate_paths(struct bContext *C, struct Scene *scene);
103
142
 
104
143
/* constraints */
110
149
 
111
150
void ED_object_constraint_set_active(struct Object *ob, struct bConstraint *con);
112
151
void ED_object_constraint_update(struct Object *ob);
113
 
void ED_object_constraint_dependency_update(struct Scene *scene, struct Object *ob);
 
152
void ED_object_constraint_dependency_update(struct Main *bmain, struct Scene *scene, struct Object *ob);
114
153
 
115
154
/* object_lattice.c */
116
 
int  mouse_lattice(struct bContext *C, short mval[2], int extend);
117
 
void undo_push_lattice(struct bContext *C, char *name);
 
155
int  mouse_lattice(struct bContext *C, const int mval[2], int extend);
 
156
void undo_push_lattice(struct bContext *C, const char *name);
118
157
 
119
158
/* object_lattice.c */
120
159
 
123
162
/* object_modifier.c */
124
163
enum {
125
164
        MODIFIER_APPLY_DATA=1,
126
 
        MODIFIER_APPLY_SHAPE,
127
 
} eModifier_Apply_Mode;
 
165
        MODIFIER_APPLY_SHAPE
 
166
};
128
167
 
129
 
struct ModifierData *ED_object_modifier_add(struct ReportList *reports, struct Scene *scene, struct Object *ob, char *name, int type);
130
 
int ED_object_modifier_remove(struct ReportList *reports, struct Scene *scene, struct Object *ob, struct ModifierData *md);
 
168
struct ModifierData *ED_object_modifier_add(struct ReportList *reports, struct Main *bmain, struct Scene *scene, struct Object *ob, const char *name, int type);
 
169
int ED_object_modifier_remove(struct ReportList *reports, struct Main *bmain, struct Scene *scene, struct Object *ob, struct ModifierData *md);
 
170
void ED_object_modifier_clear(struct Main *bmain, struct Scene *scene, struct Object *ob);
131
171
int ED_object_modifier_move_down(struct ReportList *reports, struct Object *ob, struct ModifierData *md);
132
172
int ED_object_modifier_move_up(struct ReportList *reports, struct Object *ob, struct ModifierData *md);
133
 
int ED_object_modifier_convert(struct ReportList *reports, struct Scene *scene, struct Object *ob, struct ModifierData *md);
 
173
int ED_object_modifier_convert(struct ReportList *reports, struct Main *bmain, struct Scene *scene, struct Object *ob, struct ModifierData *md);
134
174
int ED_object_modifier_apply(struct ReportList *reports, struct Scene *scene, struct Object *ob, struct ModifierData *md, int mode);
135
175
int ED_object_modifier_copy(struct ReportList *reports, struct Object *ob, struct ModifierData *md);
136
176
 
137
 
#endif /* ED_OBJECT_H */
 
177
#ifdef __cplusplus
 
178
}
 
179
#endif
 
180
 
 
181
#endif /* __ED_OBJECT_H__ */
138
182