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

« back to all changes in this revision

Viewing changes to OpenSceneGraph/src/osgWrappers/osgShadow/OccluderGeometry.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Luaces
  • Date: 2011-01-29 11:36:29 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110129113629-qisrm2kdqlurc7t3
Tags: 2.9.11-1
* Removed bug-555869-ftbfs_with_binutils_gold.dpatch since upstream has
  already taken care of the issue.
* Removed bug-528229.dpatch since the pkgconfig files are now also split
  in upstream.
* Removed explicit dependency on GLU.
* Upstream no longer includes osgIntrospection (Closes: #592420).
* Disabled zip plugin as its implementation stores an embedded copy of
  zlib.
* Enabled Qt support. Thanks James Goppert.
* Enabled SVG and PDF plugins. Thanks James Goppert.

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/BoundingBox>
14
 
#include <osg/CopyOp>
15
 
#include <osg/Drawable>
16
 
#include <osg/Matrix>
17
 
#include <osg/Node>
18
 
#include <osg/Object>
19
 
#include <osg/Polytope>
20
 
#include <osg/RenderInfo>
21
 
#include <osg/Vec4>
22
 
#include <osgShadow/OccluderGeometry>
23
 
 
24
 
// Must undefine IN and OUT macros defined in Windows headers
25
 
#ifdef IN
26
 
#undef IN
27
 
#endif
28
 
#ifdef OUT
29
 
#undef OUT
30
 
#endif
31
 
 
32
 
TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgShadow::OccluderGeometry::Vec3List)
33
 
 
34
 
TYPE_NAME_ALIAS(std::vector< GLuint >, osgShadow::OccluderGeometry::UIntList)
35
 
 
36
 
BEGIN_OBJECT_REFLECTOR(osgShadow::OccluderGeometry)
37
 
        I_DeclaringFile("osgShadow/OccluderGeometry");
38
 
        I_BaseType(osg::Drawable);
39
 
        I_Constructor0(____OccluderGeometry,
40
 
                       "",
41
 
                       "");
42
 
        I_ConstructorWithDefaults2(IN, const osgShadow::OccluderGeometry &, oc, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
43
 
                                   ____OccluderGeometry__C5_OccluderGeometry_R1__C5_osg_CopyOp_R1,
44
 
                                   "",
45
 
                                   "");
46
 
        I_Method0(osg::Object *, cloneType,
47
 
                  Properties::VIRTUAL,
48
 
                  __Object_P1__cloneType,
49
 
                  "Clone the type of an object, with Object* return type. ",
50
 
                  "Must be defined by derived classes. ");
51
 
        I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop,
52
 
                  Properties::VIRTUAL,
53
 
                  __Object_P1__clone__C5_osg_CopyOp_R1,
54
 
                  "Clone an object, with Object* return type. ",
55
 
                  "Must be defined by derived classes. ");
56
 
        I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
57
 
                  Properties::VIRTUAL,
58
 
                  __bool__isSameKindAs__C5_osg_Object_P1,
59
 
                  "",
60
 
                  "");
61
 
        I_Method0(const char *, libraryName,
62
 
                  Properties::VIRTUAL,
63
 
                  __C5_char_P1__libraryName,
64
 
                  "return the name of the object's library. ",
65
 
                  "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. ");
66
 
        I_Method0(const char *, className,
67
 
                  Properties::VIRTUAL,
68
 
                  __C5_char_P1__className,
69
 
                  "return the name of the object's class type. ",
70
 
                  "Must be defined by derived classes. ");
71
 
        I_MethodWithDefaults3(void, computeOccluderGeometry, IN, osg::Node *, subgraph, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f,
72
 
                              Properties::NON_VIRTUAL,
73
 
                              __void__computeOccluderGeometry__osg_Node_P1__osg_Matrix_P1__float,
74
 
                              "Compute an occluder geometry containing all the geometry in specified subgraph. ",
75
 
                              "");
76
 
        I_MethodWithDefaults3(void, computeOccluderGeometry, IN, osg::Drawable *, drawable, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f,
77
 
                              Properties::NON_VIRTUAL,
78
 
                              __void__computeOccluderGeometry__osg_Drawable_P1__osg_Matrix_P1__float,
79
 
                              "Compute an occluder geometry containing the geometry in specified drawable. ",
80
 
                              "");
81
 
        I_Method2(void, computeShadowVolumeGeometry, IN, const osg::Vec4 &, lightpos, IN, osgShadow::ShadowVolumeGeometry &, svg,
82
 
                  Properties::NON_VIRTUAL,
83
 
                  __void__computeShadowVolumeGeometry__C5_osg_Vec4_R1__ShadowVolumeGeometry_R1,
84
 
                  "Compute ShadowVolumeGeometry. ",
85
 
                  "");
86
 
        I_Method1(void, setBoundingPolytope, IN, const osg::Polytope &, polytope,
87
 
                  Properties::NON_VIRTUAL,
88
 
                  __void__setBoundingPolytope__C5_osg_Polytope_R1,
89
 
                  "Set the bounding polytope of the OccluderGeometry. ",
90
 
                  "");
91
 
        I_Method0(osg::Polytope &, getBoundingPolytope,
92
 
                  Properties::NON_VIRTUAL,
93
 
                  __osg_Polytope_R1__getBoundingPolytope,
94
 
                  "Get the bounding polytope of the OccluderGeometry. ",
95
 
                  "");
96
 
        I_Method0(const osg::Polytope &, getBoundingPolytope,
97
 
                  Properties::NON_VIRTUAL,
98
 
                  __C5_osg_Polytope_R1__getBoundingPolytope,
99
 
                  "Get the const bounding polytope of the OccluderGeometry. ",
100
 
                  "");
101
 
        I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo,
102
 
                  Properties::VIRTUAL,
103
 
                  __void__drawImplementation__osg_RenderInfo_R1,
104
 
                  "Render the occluder geometry. ",
105
 
                  "");
106
 
        I_Method0(osg::BoundingBox, computeBound,
107
 
                  Properties::VIRTUAL,
108
 
                  __osg_BoundingBox__computeBound,
109
 
                  "Compute the bounding box around occluder geometry. ",
110
 
                  "");
111
 
        I_MethodWithDefaults3(void, processGeometry, IN, osg::Drawable *, drawable, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f,
112
 
                              Properties::NON_VIRTUAL,
113
 
                              __void__processGeometry__osg_Drawable_P1__osg_Matrix_P1__float,
114
 
                              "",
115
 
                              "");
116
 
 
117
 
 
118
 
        I_ProtectedMethod0(void, setUpInternalStructures,
119
 
                           Properties::NON_VIRTUAL,
120
 
                           Properties::NON_CONST,
121
 
                           __void__setUpInternalStructures,
122
 
                           "",
123
 
                           "");
124
 
        I_ProtectedMethod0(void, removeDuplicateVertices,
125
 
                           Properties::NON_VIRTUAL,
126
 
                           Properties::NON_CONST,
127
 
                           __void__removeDuplicateVertices,
128
 
                           "",
129
 
                           "");
130
 
        I_ProtectedMethod0(void, removeNullTriangles,
131
 
                           Properties::NON_VIRTUAL,
132
 
                           Properties::NON_CONST,
133
 
                           __void__removeNullTriangles,
134
 
                           "",
135
 
                           "");
136
 
        I_ProtectedMethod0(void, computeNormals,
137
 
                           Properties::NON_VIRTUAL,
138
 
                           Properties::NON_CONST,
139
 
                           __void__computeNormals,
140
 
                           "",
141
 
                           "");
142
 
        I_ProtectedMethod0(void, buildEdgeMaps,
143
 
                           Properties::NON_VIRTUAL,
144
 
                           Properties::NON_CONST,
145
 
                           __void__buildEdgeMaps,
146
 
                           "",
147
 
                           "");
148
 
        I_ProtectedMethod2(void, computeLightDirectionSilhouetteEdges, IN, const osg::Vec3 &, lightdirection, IN, osgShadow::OccluderGeometry::UIntList &, silhouetteIndices,
149
 
                           Properties::NON_VIRTUAL,
150
 
                           Properties::CONST,
151
 
                           __void__computeLightDirectionSilhouetteEdges__C5_osg_Vec3_R1__UIntList_R1,
152
 
                           "",
153
 
                           "");
154
 
        I_ProtectedMethod2(void, computeLightPositionSilhouetteEdges, IN, const osg::Vec3 &, lightpos, IN, osgShadow::OccluderGeometry::UIntList &, silhouetteIndices,
155
 
                           Properties::NON_VIRTUAL,
156
 
                           Properties::CONST,
157
 
                           __void__computeLightPositionSilhouetteEdges__C5_osg_Vec3_R1__UIntList_R1,
158
 
                           "",
159
 
                           "");
160
 
        I_SimpleProperty(const osg::Polytope &, BoundingPolytope, 
161
 
                         __C5_osg_Polytope_R1__getBoundingPolytope, 
162
 
                         __void__setBoundingPolytope__C5_osg_Polytope_R1);
163
 
END_REFLECTOR
164
 
 
165
 
TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgShadow::ShadowVolumeGeometry::Vec3List)
166
 
 
167
 
TYPE_NAME_ALIAS(std::vector< GLuint >, osgShadow::ShadowVolumeGeometry::UIntList)
168
 
 
169
 
BEGIN_ENUM_REFLECTOR(osgShadow::ShadowVolumeGeometry::DrawMode)
170
 
        I_DeclaringFile("osgShadow/OccluderGeometry");
171
 
        I_EnumLabel(osgShadow::ShadowVolumeGeometry::GEOMETRY);
172
 
        I_EnumLabel(osgShadow::ShadowVolumeGeometry::STENCIL_TWO_PASS);
173
 
        I_EnumLabel(osgShadow::ShadowVolumeGeometry::STENCIL_TWO_SIDED);
174
 
END_REFLECTOR
175
 
 
176
 
BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolumeGeometry)
177
 
        I_DeclaringFile("osgShadow/OccluderGeometry");
178
 
        I_BaseType(osg::Drawable);
179
 
        I_Constructor0(____ShadowVolumeGeometry,
180
 
                       "",
181
 
                       "");
182
 
        I_ConstructorWithDefaults2(IN, const osgShadow::ShadowVolumeGeometry &, oc, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
183
 
                                   ____ShadowVolumeGeometry__C5_ShadowVolumeGeometry_R1__C5_osg_CopyOp_R1,
184
 
                                   "",
185
 
                                   "");
186
 
        I_Method0(osg::Object *, cloneType,
187
 
                  Properties::VIRTUAL,
188
 
                  __Object_P1__cloneType,
189
 
                  "Clone the type of an object, with Object* return type. ",
190
 
                  "Must be defined by derived classes. ");
191
 
        I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop,
192
 
                  Properties::VIRTUAL,
193
 
                  __Object_P1__clone__C5_osg_CopyOp_R1,
194
 
                  "Clone an object, with Object* return type. ",
195
 
                  "Must be defined by derived classes. ");
196
 
        I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
197
 
                  Properties::VIRTUAL,
198
 
                  __bool__isSameKindAs__C5_osg_Object_P1,
199
 
                  "",
200
 
                  "");
201
 
        I_Method0(const char *, libraryName,
202
 
                  Properties::VIRTUAL,
203
 
                  __C5_char_P1__libraryName,
204
 
                  "return the name of the object's library. ",
205
 
                  "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. ");
206
 
        I_Method0(const char *, className,
207
 
                  Properties::VIRTUAL,
208
 
                  __C5_char_P1__className,
209
 
                  "return the name of the object's class type. ",
210
 
                  "Must be defined by derived classes. ");
211
 
        I_Method1(void, setDrawMode, IN, osgShadow::ShadowVolumeGeometry::DrawMode, mode,
212
 
                  Properties::NON_VIRTUAL,
213
 
                  __void__setDrawMode__DrawMode,
214
 
                  "",
215
 
                  "");
216
 
        I_Method0(osgShadow::ShadowVolumeGeometry::DrawMode, getDrawMode,
217
 
                  Properties::NON_VIRTUAL,
218
 
                  __DrawMode__getDrawMode,
219
 
                  "",
220
 
                  "");
221
 
        I_Method1(void, setVertices, IN, const osgShadow::ShadowVolumeGeometry::Vec3List &, vertices,
222
 
                  Properties::NON_VIRTUAL,
223
 
                  __void__setVertices__C5_Vec3List_R1,
224
 
                  "",
225
 
                  "");
226
 
        I_Method0(osgShadow::ShadowVolumeGeometry::Vec3List &, getVertices,
227
 
                  Properties::NON_VIRTUAL,
228
 
                  __Vec3List_R1__getVertices,
229
 
                  "",
230
 
                  "");
231
 
        I_Method0(const osgShadow::ShadowVolumeGeometry::Vec3List &, getVertices,
232
 
                  Properties::NON_VIRTUAL,
233
 
                  __C5_Vec3List_R1__getVertices,
234
 
                  "",
235
 
                  "");
236
 
        I_Method1(void, setNormals, IN, const osgShadow::ShadowVolumeGeometry::Vec3List &, normals,
237
 
                  Properties::NON_VIRTUAL,
238
 
                  __void__setNormals__C5_Vec3List_R1,
239
 
                  "",
240
 
                  "");
241
 
        I_Method0(osgShadow::ShadowVolumeGeometry::Vec3List &, getNormals,
242
 
                  Properties::NON_VIRTUAL,
243
 
                  __Vec3List_R1__getNormals,
244
 
                  "",
245
 
                  "");
246
 
        I_Method0(const osgShadow::ShadowVolumeGeometry::Vec3List &, getNormals,
247
 
                  Properties::NON_VIRTUAL,
248
 
                  __C5_Vec3List_R1__getNormals,
249
 
                  "",
250
 
                  "");
251
 
        I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo,
252
 
                  Properties::VIRTUAL,
253
 
                  __void__drawImplementation__osg_RenderInfo_R1,
254
 
                  "Render the occluder geometry. ",
255
 
                  "");
256
 
        I_Method0(osg::BoundingBox, computeBound,
257
 
                  Properties::VIRTUAL,
258
 
                  __osg_BoundingBox__computeBound,
259
 
                  "Compute the bounding box around occluder geometry. ",
260
 
                  "");
261
 
        I_SimpleProperty(osgShadow::ShadowVolumeGeometry::DrawMode, DrawMode, 
262
 
                         __DrawMode__getDrawMode, 
263
 
                         __void__setDrawMode__DrawMode);
264
 
        I_SimpleProperty(const osgShadow::ShadowVolumeGeometry::Vec3List &, Normals, 
265
 
                         __C5_Vec3List_R1__getNormals, 
266
 
                         __void__setNormals__C5_Vec3List_R1);
267
 
        I_SimpleProperty(const osgShadow::ShadowVolumeGeometry::Vec3List &, Vertices, 
268
 
                         __C5_Vec3List_R1__getVertices, 
269
 
                         __void__setVertices__C5_Vec3List_R1);
270
 
END_REFLECTOR
271
 
 
272
 
STD_VECTOR_REFLECTOR(std::vector< GLuint >)
273