~ubuntu-branches/debian/experimental/openscenegraph/experimental

« back to all changes in this revision

Viewing changes to OpenSceneGraph/src/osgWrappers/osgAnimation/MorphGeometry.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Luaces
  • Date: 2010-05-03 21:42:01 UTC
  • mfrom: (1.1.9 upstream) (2.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20100503214201-iy060qxb94vsfv87
Tags: 2.8.3-3
* Added README.source. Thanks Manuel Montecelo.
* Removed FindGDAL.cmake file supplied by upstream since it does not
  detect current libgdal1-1.6.0. The script provided by CMake works
  fine.
* Removed openthreads-doc since OpenThreads documentation is shared with
  OpenSceneGraph's, hence this package was empty.
* Now ccache handling is being done automatically by CMake.
* Drop conflict dependencies with previous versions to let them coexist
  with current ones (Closes: #580079 #580081).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// ***************************************************************************
 
2
//
 
3
//   Generated automatically by genwrapper.
 
4
//   Please DO NOT EDIT this file!
 
5
//
 
6
// ***************************************************************************
 
7
 
 
8
#include <osgIntrospection/ReflectionMacros>
 
9
#include <osgIntrospection/TypedMethodInfo>
 
10
#include <osgIntrospection/StaticMethodInfo>
 
11
#include <osgIntrospection/Attributes>
 
12
 
 
13
#include <osg/CopyOp>
 
14
#include <osg/Drawable>
 
15
#include <osg/Geometry>
 
16
#include <osg/Node>
 
17
#include <osg/NodeVisitor>
 
18
#include <osg/Object>
 
19
#include <osgAnimation/Channel>
 
20
#include <osgAnimation/MorphGeometry>
 
21
 
 
22
// Must undefine IN and OUT macros defined in Windows headers
 
23
#ifdef IN
 
24
#undef IN
 
25
#endif
 
26
#ifdef OUT
 
27
#undef OUT
 
28
#endif
 
29
 
 
30
TYPE_NAME_ALIAS(std::vector< osgAnimation::MorphGeometry::MorphTarget >, osgAnimation::MorphGeometry::MorphTargetList)
 
31
 
 
32
BEGIN_ENUM_REFLECTOR(osgAnimation::MorphGeometry::Method)
 
33
        I_DeclaringFile("osgAnimation/MorphGeometry");
 
34
        I_EnumLabel(osgAnimation::MorphGeometry::NORMALIZED);
 
35
        I_EnumLabel(osgAnimation::MorphGeometry::RELATIVE);
 
36
END_REFLECTOR
 
37
 
 
38
BEGIN_OBJECT_REFLECTOR(osgAnimation::MorphGeometry)
 
39
        I_DeclaringFile("osgAnimation/MorphGeometry");
 
40
        I_BaseType(osg::Geometry);
 
41
        I_Constructor0(____MorphGeometry,
 
42
                       "",
 
43
                       "");
 
44
        I_Constructor1(IN, const osg::Geometry &, b,
 
45
                       Properties::NON_EXPLICIT,
 
46
                       ____MorphGeometry__C5_osg_Geometry_R1,
 
47
                       "",
 
48
                       "");
 
49
        I_ConstructorWithDefaults2(IN, const osgAnimation::MorphGeometry &, b, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
 
50
                                   ____MorphGeometry__C5_MorphGeometry_R1__C5_osg_CopyOp_R1,
 
51
                                   "",
 
52
                                   "");
 
53
        I_Method0(osg::Object *, cloneType,
 
54
                  Properties::VIRTUAL,
 
55
                  __osg_Object_P1__cloneType,
 
56
                  "Clone the type of an object, with Object* return type. ",
 
57
                  "Must be defined by derived classes. ");
 
58
        I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop,
 
59
                  Properties::VIRTUAL,
 
60
                  __osg_Object_P1__clone__C5_osg_CopyOp_R1,
 
61
                  "Clone an object, with Object* return type. ",
 
62
                  "Must be defined by derived classes. ");
 
63
        I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
 
64
                  Properties::VIRTUAL,
 
65
                  __bool__isSameKindAs__C5_osg_Object_P1,
 
66
                  "",
 
67
                  "");
 
68
        I_Method0(const char *, libraryName,
 
69
                  Properties::VIRTUAL,
 
70
                  __C5_char_P1__libraryName,
 
71
                  "return the name of the object's library. ",
 
72
                  "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. ");
 
73
        I_Method0(const char *, className,
 
74
                  Properties::VIRTUAL,
 
75
                  __C5_char_P1__className,
 
76
                  "return the name of the object's class type. ",
 
77
                  "Must be defined by derived classes. ");
 
78
        I_Method0(void, transformSoftwareMethod,
 
79
                  Properties::VIRTUAL,
 
80
                  __void__transformSoftwareMethod,
 
81
                  "",
 
82
                  "");
 
83
        I_Method1(void, setMethod, IN, osgAnimation::MorphGeometry::Method, method,
 
84
                  Properties::NON_VIRTUAL,
 
85
                  __void__setMethod__Method,
 
86
                  "Set the morphing method. ",
 
87
                  "");
 
88
        I_Method0(osgAnimation::MorphGeometry::Method, getMethod,
 
89
                  Properties::NON_VIRTUAL,
 
90
                  __Method__getMethod,
 
91
                  "Get the morphing method. ",
 
92
                  "");
 
93
        I_Method1(void, setMorphNormals, IN, bool, morphNormals,
 
94
                  Properties::NON_VIRTUAL,
 
95
                  __void__setMorphNormals__bool,
 
96
                  "Set flag for morphing normals. ",
 
97
                  "");
 
98
        I_Method0(bool, getMorphNormals,
 
99
                  Properties::NON_VIRTUAL,
 
100
                  __bool__getMorphNormals,
 
101
                  "Get the flag for morphing normals. ",
 
102
                  "");
 
103
        I_MethodWithDefaults2(void, addMorphTarget, IN, osg::Geometry *, morphTarget, , IN, float, weight, 1.0,
 
104
                              Properties::VIRTUAL,
 
105
                              __void__addMorphTarget__osg_Geometry_P1__float,
 
106
                              "Add a MorphTarget to the MorphGeometry. ",
 
107
                              " param morphTarget The MorphTarget to be added to the MorphGeometry.  weight The weight to be added to the MorphGeometry.   return true for success; false otherwise. ");
 
108
        I_Method2(void, setWeight, IN, unsigned int, index, IN, float, morphWeight,
 
109
                  Properties::NON_VIRTUAL,
 
110
                  __void__setWeight__unsigned_int__float,
 
111
                  "",
 
112
                  "");
 
113
        I_Method0(void, dirty,
 
114
                  Properties::NON_VIRTUAL,
 
115
                  __void__dirty,
 
116
                  "Set the MorphGeometry dirty. ",
 
117
                  "");
 
118
        I_Method0(const osgAnimation::MorphGeometry::MorphTargetList &, getMorphTargetList,
 
119
                  Properties::NON_VIRTUAL,
 
120
                  __C5_MorphTargetList_R1__getMorphTargetList,
 
121
                  "Get the list of MorphTargets. ",
 
122
                  "");
 
123
        I_Method0(osgAnimation::MorphGeometry::MorphTargetList &, getMorphTargetList,
 
124
                  Properties::NON_VIRTUAL,
 
125
                  __MorphTargetList_R1__getMorphTargetList,
 
126
                  "Get the list of MorphTargets. ",
 
127
                  "Warning if you modify this array you will have to call dirty() ");
 
128
        I_Method1(const osgAnimation::MorphGeometry::MorphTarget &, getMorphTarget, IN, unsigned int, i,
 
129
                  Properties::NON_VIRTUAL,
 
130
                  __C5_MorphTarget_R1__getMorphTarget__unsigned_int,
 
131
                  "Return the MorphTarget at position i. ",
 
132
                  "");
 
133
        I_Method1(osgAnimation::MorphGeometry::MorphTarget &, getMorphTarget, IN, unsigned int, i,
 
134
                  Properties::NON_VIRTUAL,
 
135
                  __MorphTarget_R1__getMorphTarget__unsigned_int,
 
136
                  "Return the MorphTarget at position i. ",
 
137
                  "");
 
138
        I_SimpleProperty(osgAnimation::MorphGeometry::Method, Method, 
 
139
                         __Method__getMethod, 
 
140
                         __void__setMethod__Method);
 
141
        I_SimpleProperty(bool, MorphNormals, 
 
142
                         __bool__getMorphNormals, 
 
143
                         __void__setMorphNormals__bool);
 
144
        I_SimpleProperty(osgAnimation::MorphGeometry::MorphTargetList &, MorphTargetList, 
 
145
                         __MorphTargetList_R1__getMorphTargetList, 
 
146
                         0);
 
147
END_REFLECTOR
 
148
 
 
149
BEGIN_VALUE_REFLECTOR(osgAnimation::MorphGeometry::MorphTarget)
 
150
        I_DeclaringFile("osgAnimation/MorphGeometry");
 
151
        I_ConstructorWithDefaults2(IN, osg::Geometry *, geom, , IN, float, w, 1.0,
 
152
                                   ____MorphTarget__osg_Geometry_P1__float,
 
153
                                   "",
 
154
                                   "");
 
155
        I_Method1(void, setWeight, IN, float, weight,
 
156
                  Properties::NON_VIRTUAL,
 
157
                  __void__setWeight__float,
 
158
                  "",
 
159
                  "");
 
160
        I_Method0(const float, getWeight,
 
161
                  Properties::NON_VIRTUAL,
 
162
                  __C5_float__getWeight,
 
163
                  "",
 
164
                  "");
 
165
        I_Method0(osg::Geometry *, getGeometry,
 
166
                  Properties::NON_VIRTUAL,
 
167
                  __osg_Geometry_P1__getGeometry,
 
168
                  "",
 
169
                  "");
 
170
        I_Method0(const osg::Geometry *, getGeometry,
 
171
                  Properties::NON_VIRTUAL,
 
172
                  __C5_osg_Geometry_P1__getGeometry,
 
173
                  "",
 
174
                  "");
 
175
        I_Method1(void, setGeometry, IN, osg::Geometry *, geom,
 
176
                  Properties::NON_VIRTUAL,
 
177
                  __void__setGeometry__osg_Geometry_P1,
 
178
                  "",
 
179
                  "");
 
180
        I_SimpleProperty(osg::Geometry *, Geometry, 
 
181
                         __osg_Geometry_P1__getGeometry, 
 
182
                         __void__setGeometry__osg_Geometry_P1);
 
183
        I_SimpleProperty(float, Weight, 
 
184
                         0, 
 
185
                         __void__setWeight__float);
 
186
END_REFLECTOR
 
187
 
 
188
BEGIN_OBJECT_REFLECTOR(osgAnimation::MorphGeometry::UpdateVertex)
 
189
        I_DeclaringFile("osgAnimation/MorphGeometry");
 
190
        I_BaseType(osg::Drawable::UpdateCallback);
 
191
        I_Constructor0(____UpdateVertex,
 
192
                       "",
 
193
                       "");
 
194
        I_Method2(void, update, IN, osg::NodeVisitor *, x, IN, osg::Drawable *, drw,
 
195
                  Properties::VIRTUAL,
 
196
                  __void__update__osg_NodeVisitor_P1__osg_Drawable_P1,
 
197
                  "do customized update code. ",
 
198
                  "");
 
199
END_REFLECTOR
 
200
 
 
201
BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateMorph)
 
202
        I_DeclaringFile("osgAnimation/MorphGeometry");
 
203
        I_BaseType(osgAnimation::AnimationUpdateCallback);
 
204
        I_Method0(osg::Object *, cloneType,
 
205
                  Properties::VIRTUAL,
 
206
                  __osg_Object_P1__cloneType,
 
207
                  "",
 
208
                  "");
 
209
        I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop,
 
210
                  Properties::VIRTUAL,
 
211
                  __osg_Object_P1__clone__C5_osg_CopyOp_R1,
 
212
                  "",
 
213
                  "");
 
214
        I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
 
215
                  Properties::VIRTUAL,
 
216
                  __bool__isSameKindAs__C5_osg_Object_P1,
 
217
                  "",
 
218
                  "");
 
219
        I_Method0(const char *, libraryName,
 
220
                  Properties::VIRTUAL,
 
221
                  __C5_char_P1__libraryName,
 
222
                  "",
 
223
                  "");
 
224
        I_Method0(const char *, className,
 
225
                  Properties::VIRTUAL,
 
226
                  __C5_char_P1__className,
 
227
                  "",
 
228
                  "");
 
229
        I_ConstructorWithDefaults1(IN, const std::string &, name, "",
 
230
                                   Properties::NON_EXPLICIT,
 
231
                                   ____UpdateMorph__C5_std_string_R1,
 
232
                                   "",
 
233
                                   "");
 
234
        I_Constructor2(IN, const osgAnimation::UpdateMorph &, apc, IN, const osg::CopyOp &, copyop,
 
235
                       ____UpdateMorph__C5_UpdateMorph_R1__C5_osg_CopyOp_R1,
 
236
                       "",
 
237
                       "");
 
238
        I_Method0(bool, needLink,
 
239
                  Properties::NON_VIRTUAL,
 
240
                  __bool__needLink,
 
241
                  "",
 
242
                  "");
 
243
        I_Method1(bool, link, IN, osgAnimation::Channel *, channel,
 
244
                  Properties::NON_VIRTUAL,
 
245
                  __bool__link__osgAnimation_Channel_P1,
 
246
                  "",
 
247
                  "");
 
248
END_REFLECTOR
 
249
 
 
250
STD_VECTOR_REFLECTOR(std::vector< osgAnimation::MorphGeometry::MorphTarget >)
 
251