root/OpenSceneGraph/trunk/src/osgWrappers/genwrapper.conf @ 9878

Revision 9878, 17.3 kB (checked in by robert, 5 years ago)

Fixed osgWrappers for osgAnimation library

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#############################################################################
2#                                                                           #
3#                     GenWrapper Configuration File                         #
4#                                                                           #
5#############################################################################
6
7
8configure library "osgFX"
9        dependency unix "-losgUtil -losgDB"
10end
11
12configure library "osgParticle"
13        dependency unix "-losgUtil -losgDB"
14end
15
16configure library "osgGA"
17        dependency unix "-losgUtil"
18end
19
20configure library "osgSim"
21        dependency unix "-losgUtil -losgText -losgDB"
22end
23
24configure library "osgTerrain"
25        dependency win32-debug      "gdal_iD.lib"
26        dependency win32-release    "gdal_i.lib"
27        dependency unix "-losgDB -losgUtil -losgFX"
28end
29
30configure library "osgText"
31        dependency unix "-losgDB"
32end
33
34configure library "osgVolume"
35        dependency unix "-losgUtil -losgDB -losgGA"
36end
37
38configure library "osgViewer"
39        dependency unix "-losgUtil -losgDB -losgGA -losgText"
40end
41
42#############################################################################
43
44ignore file "osgDB/fstream"
45
46ignore file "osgUtil/OperationArrayFunctor"
47
48ignore file "osgViewer/api/X11/GraphicsWindowX11"
49ignore file "osgViewer/api/Win32/GraphicsWindowWin32"
50ignore file "osgViewer/api/Cocoa/GraphicsWindowCocoa"
51
52suppress reflector "osgUtil::AddRangeFunctor"
53suppress reflector "osgUtil::MultiplyRangeFunctor"
54
55suppress reflector "CPluginFunction"
56suppress reflector "PluginFunctionProxy"
57
58suppress reflector "osgWidget::UIObjectParent"
59
60
61#############################################################################
62
63suppress reflector "osgShadow::ProjectionShadowMap"
64
65suppress reflector "osgShadow::DebugShadowMap::ViewData"
66suppress reflector "osgShadow::DebugShadowMap::ViewData::PolytopeGeometry"
67suppress reflector "osgShadow::ViewDependentShadowTechnique::ViewData"
68
69suppress reflector "osgShadow::MinimalDrawBoundsShadowMap::META_ViewDependentShadowTechniqueData"
70suppress reflector "osgShadow::DebugShadowMap::META_ViewDependentShadowTechniqueData"
71suppress reflector "osgShadow::MinimalCullBoundsShadowMap::META_ViewDependentShadowTechniqueData"
72suppress reflector "osgShadow::MinimalShadowMap::META_ViewDependentShadowTechniqueData"
73suppress reflector "osgShadow::ProjectionShadowMap::META_ViewDependentShadowTechniqueData"
74suppress reflector "osgShadow::StandardShadowMap::META_ViewDependentShadowTechniqueData"
75suppress reflector "osgShadow::ViewDependentShadowTechnique::META_ViewDependentShadowTechniqueData"
76
77
78suppress reflector "osgShadow::ViewDependentShadowTechnique::getViewDependentData"
79suppress reflector "osgShadow::ViewDependentShadowTechnique::setViewDependentData"
80
81#############################################################################
82
83configure file /osg\/GraphicsContext/
84        emit before "#include <osg/Camera>
85        "
86end
87
88configure file /osgViewer\/ViewerBase/
89        emit before "#include <osgViewer/View>
90        "
91end
92
93configure file /osg\/BoundingBox/
94        emit before "#include <osg/BoundingSphere>
95        "
96end
97
98configure file /osg\/BoundingSphere/
99        emit before "#include <osg/BoundingBox>
100        "
101end
102
103#############################################################################
104
105# add <io_utils> header to Plane, Quat and Vec* files
106
107configure file /osg\/(Plane|Quat|(Vec(2|3|4)(f|d|b|ub)))/
108        emit before "#include <osg/io_utils>
109        "
110end
111
112# add ReaderWriter and Comparator objects to Vec*, Quat and Plane classes
113
114configure reflector /osg::(Plane|Quat|(Vec(2|3|4)(f|d|b|ub)))/
115        readerwriter "osgIntrospection::StdReaderWriter<reflected_type>"
116        comparator "osgIntrospection::PartialOrderComparator<reflected_type>"
117end
118
119
120# add StateGraph includes in RenderLeaf.cpp
121
122configure file /osgUtil\/RenderLeaf/
123        emit before "#include <osgUtil/StateGraph>
124        "
125end
126
127#############################################################################
128
129# Doxygen fails to detect that std::vector<T> is a base class for
130# osg::Vector*, so we need to specify that manually
131
132configure reflector "osgText::VectorUInt"
133        add base "std::vector<unsigned int>"
134end
135
136
137#############################################################################
138
139# Doxygen/genwrapper is not coping with the new MixinVector so disable associated wrappers
140
141suppress reflector /osg::TemplateIndexArray< GLbyte.*/
142suppress reflector /osg::TemplateIndexArray< GLubyte.*/
143suppress reflector /osg::TemplateIndexArray< GLshort.*/
144suppress reflector /osg::TemplateIndexArray< GLushort.*/
145suppress reflector /osg::TemplateIndexArray< GLint.*/
146suppress reflector /osg::TemplateIndexArray< GLuint.*/
147suppress reflector /osg::TemplateArray< GLfloat.*/
148suppress reflector /osg::TemplateArray< GLdouble.*/
149suppress reflector /osg::TemplateArray< osg::Vec2\s*\,.*/
150suppress reflector /osg::TemplateArray< osg::Vec3\s*\,.*/
151suppress reflector /osg::TemplateArray< osg::Vec4\s*\,.*/
152suppress reflector /osg::TemplateArray< osg::Vec2d\s*\,.*/
153suppress reflector /osg::TemplateArray< osg::Vec3d\s*\,.*/
154suppress reflector /osg::TemplateArray< osg::Vec4d\s*\,.*/
155suppress reflector /osg::TemplateArray< osg::Vec2b\s*\,.*/
156suppress reflector /osg::TemplateArray< osg::Vec3b\s*\,.*/
157suppress reflector /osg::TemplateArray< osg::Vec4b\s*\,.*/
158suppress reflector /osg::TemplateArray< osg::Vec2s\s*\,.*/
159suppress reflector /osg::TemplateArray< osg::Vec3s\s*\,.*/
160suppress reflector /osg::TemplateArray< osg::Vec4s\s*\,.*/
161suppress reflector /osg::TemplateArray< osg::Vec4ub\s*\,.*/
162
163
164suppress reflector "osg::DrawArrayLengths"
165suppress reflector "osg::DrawElementsUByte"
166suppress reflector "osg::DrawElementsUShort"
167suppress reflector "osg::DrawElementsUInt"
168
169suppress reflector "osg::VectorGLsizei"
170suppress reflector "osg::VectorGLubyte"
171suppress reflector "osg::VectorGLushort"
172suppress reflector "osg::VectorGLuint"
173
174suppress reflector "osg::MixinVector< GLsizei >"
175suppress reflector "osg::MixinVector< GLubyte >"
176suppress reflector "osg::MixinVector< GLushort >"
177suppress reflector "osg::MixinVector< GLuint >"
178
179suppress reflector "OpenThreads::Atomic"
180suppress reflector "OpenThreads::AtomicPtr"
181
182suppress reflector "osg::BoundingBoxImpl< osg::Vec3f >"
183suppress reflector "osg::BoundingBoxImpl< osg::Vec3d >"
184
185suppress reflector "osg::BoundingSphereImpl< osg::Vec3f >"
186suppress reflector "osg::BoundingSphereImpl< osg::Vec3d >"
187
188suppress reflector "osgAnimation::TemplateTarget< osg::Quat >"
189suppress reflector "osgAnimation::TemplateTarget< osg::Vec3 >"
190suppress reflector "osgAnimation::TemplateTarget< osg::Vec4 >"
191suppress reflector "osgAnimation::TemplateTarget< osg::Vec2 >"
192suppress reflector "osgAnimation::TemplateTarget< float >"
193suppress reflector "osgAnimation::TemplateTarget< double >"
194
195suppress reflector "osgAnimation::TemplateLinearInterpolator< double, double >"
196suppress reflector "osgAnimation::TemplateLinearInterpolator< float, float >"
197suppress reflector "osgAnimation::TemplateLinearInterpolator< osg::Vec2, osg::Vec2 >"
198suppress reflector "osgAnimation::TemplateLinearInterpolator< osg::Vec3, osg::Vec3 >"
199suppress reflector "osgAnimation::TemplateLinearInterpolator< osg::Vec3, osgAnimation::Vec3Packed >"
200suppress reflector "osgAnimation::TemplateLinearInterpolator< osg::Vec4, osg::Vec4 >"
201suppress reflector "osgAnimation::TemplateSphericalLinearInterpolator< osg::Quat, osg::Quat >"
202
203suppress reflector "osgAnimation::TemplateCubicBezierInterpolator< float, osgAnimation::FloatCubicBezier >"
204suppress reflector "osgAnimation::TemplateCubicBezierInterpolator< double, osgAnimation::DoubleCubicBezier >"
205suppress reflector "osgAnimation::TemplateCubicBezierInterpolator< osg::Vec2, osgAnimation::Vec2CubicBezier >"
206suppress reflector "osgAnimation::TemplateCubicBezierInterpolator< osg::Vec3, osgAnimation::Vec3CubicBezier >"
207suppress reflector "osgAnimation::TemplateCubicBezierInterpolator< osg::Vec4, osgAnimation::Vec4CubicBezier >"
208
209suppress reflector "osgAnimation::TemplateKeyframe< float >"
210suppress reflector "osgAnimation::TemplateKeyframeContainer< float >"
211   
212suppress reflector "osgAnimation::TemplateKeyframe< double >"
213suppress reflector "osgAnimation::TemplateKeyframeContainer< double >"
214
215suppress reflector "osgAnimation::TemplateKeyframe< osg::Vec2 >"
216suppress reflector "osgAnimation::TemplateKeyframeContainer< osg::Vec2 >"
217
218suppress reflector "osgAnimation::TemplateKeyframe< osg::Vec3 >"
219suppress reflector "osgAnimation::TemplateKeyframeContainer< osg::Vec3 >"
220
221suppress reflector "osgAnimation::TemplateKeyframe< osg::Vec4 >"
222suppress reflector "osgAnimation::TemplateKeyframeContainer< osg::Vec4 >"
223
224suppress reflector "osgAnimation::TemplateKeyframe< osg::Quat >"
225suppress reflector "osgAnimation::TemplateKeyframeContainer< osg::Quat >"
226
227suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::Vec3Packed >"
228suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec3Packed >"
229
230suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::FloatCubicBezier >"
231suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::FloatCubicBezier >"
232   
233suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::DoubleCubicBezier >"
234suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::DoubleCubicBezier >"
235   
236suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::Vec2CubicBezier >"
237suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec2CubicBezier >"
238   
239suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::Vec3CubicBezier >"
240suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec3CubicBezier >"
241   
242suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::Vec4CubicBezier >"
243suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec4CubicBezier >"
244
245suppress reflector "osgAnimation::TemplateCubicBezier< float >"
246suppress reflector "osgAnimation::TemplateCubicBezier< double >"
247suppress reflector "osgAnimation::TemplateCubicBezier< osg::Vec2 >"
248suppress reflector "osgAnimation::TemplateCubicBezier< osg::Vec3 >"
249suppress reflector "osgAnimation::TemplateCubicBezier< osg::Vec4 >"
250
251
252suppress reflector "osgAnimation::std::vector< osg::ref_ptr< osgAnimation::Channel >  >"
253suppress reflector "osgAnimation::TemplateChannel< osgAnimation::DoubleLinearSampler >"
254suppress reflector "osgAnimation::TemplateChannel< osgAnimation::FloatLinearSampler >"
255
256suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec2LinearSampler >"
257suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec3LinearSampler >"
258suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec4LinearSampler >"
259suppress reflector "osgAnimation::TemplateChannel< osgAnimation::QuatSphericalLinearSampler >"
260
261suppress reflector "osgAnimation::TemplateChannel< osgAnimation::FloatCubicBezierSampler >"
262suppress reflector "osgAnimation::TemplateChannel< osgAnimation::DoubleCubicBezierSampler >"
263suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec2CubicBezierSampler >"
264suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec3CubicBezierSampler >"
265suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec4CubicBezierSampler >"
266
267#############################################################################
268
269# StateSet and related types need some advanced tweaking
270
271configure reflector "std::map< osg::StateAttribute::GLMode, osg::StateAttribute::GLModeValue >"
272        replace with "STD_MAP_REFLECTOR_WITH_TYPES(std::map< osg::StateAttribute::GLMode COMMA  osg::StateAttribute::GLModeValue >, osg::StateAttribute::GLMode, osg::StateAttribute::Values)"
273end
274
275configure reflector "osg::StateSet"
276
277        # remove indexed property "Mode" because its index would not belong to a
278        # finite set of values
279               
280        configure property "Mode"
281                replace with ""
282        end     
283       
284end
285
286configure reflector "osg::Geometry"
287
288        # define the count method for some Property
289 
290               
291        configure property "TexCoordData"
292                count_method "__unsigned_int__getNumTexCoordArrays"
293        end
294
295        configure property "TexCoordIndices"
296                count_method "__unsigned_int__getNumTexCoordArrays"
297        end
298
299        configure property "VertexAttribBinding"
300                count_method "__unsigned_int__getNumVertexAttribArrays"
301        end
302
303        configure property "VertexAttribData"
304                count_method "__unsigned_int__getNumVertexAttribArrays"
305        end
306
307        configure property "VertexAttribIndices"
308                count_method "__unsigned_int__getNumVertexAttribArrays"
309        end
310
311        configure property "VertexAttribNormalize"
312                count_method "__unsigned_int__getNumVertexAttribArrays"
313        end
314       
315end
316
317#############################################################################
318
319# Doxygen fails to detect that /osg::Texture(1D|2D|3D|Rectangle)/ and
320# osgText::Font::GlyphTexture are not-abstract class, so we need
321# to specify that manually
322
323configure reflector /osg::Texture(1D|2D|3D|Rectangle)/
324    object-type
325end
326
327configure reflector "osgText::Font::GlyphTexture"
328    object-type
329end
330
331#############################################################################
332
333# must suppress reflector for osgDB::Output because some of its methods
334# are not supported by osgIntrospection (they return non-const references)
335
336suppress reflector "osgDB::Output"
337
338#############################################################################
339
340# some types are incorrectly detected as value type or object type. Here we
341# specify the type kind explicitly
342
343configure reflector "OpenThreads::Mutex"
344        object-type
345end
346
347configure reflector "OpenThreads::Condition"
348        object-type
349end
350
351configure reflector "OpenThreads::Block"
352        object-type
353end
354
355configure reflector "OpenThreads::BlockCount"
356        object-type
357end
358
359configure reflector "OpenThreads::Barrier"
360        object-type
361end
362
363configure reflector "OpenThreads::ReentrantMutex"
364        object-type
365end
366
367configure reflector "OpenThreads::ReadWriteMutex"
368        object-type
369end
370
371configure reflector "osg::DeleteHandler"
372        object-type
373end
374
375configure reflector "osg::GraphicsContext"
376        abstract-object-type
377end
378
379#############################################################################
380
381# Suppress scoped lock template
382
383suppress reflector "OpenThreads::ScopedLock< OpenThreads::Mutex >"
384
385#############################################################################
386
387# Suppress nested nested class method
388
389configure reflector "osgShadow::OccluderGeometry"
390       configure method /.*_Edge_.*/
391               replace with ""
392       end
393end
394
395#############################################################################
396
397# Doxygen doesn't parse ReadFunc and WriteFunc correctly...
398
399configure reflector "osgDB::DotOsgWrapper::ReadFunc"
400        replace with "TYPE_NAME_ALIAS(bool (*)(osg::Object&,osgDB::Input&), osgDB::DotOsgWrapper::ReadFunc)
401        "
402end
403
404configure reflector "osgDB::DotOsgWrapper::WriteFunc"
405        replace with "TYPE_NAME_ALIAS(bool (*)(const osg::Object&,osgDB::Output&), osgDB::DotOsgWrapper::WriteFunc)
406        "
407end
408
409#############################################################################
410
411# temporary workaround for problems related to ambiguous name resolution
412
413suppress reflector "osg::ref_ptr< const osg::StateAttribute >"
414suppress reflector "osg::ref_ptr< const osgFX::Effect >"
415
416#############################################################################
417
418# Doxygen incorrectly parses function typedefs as methods
419
420suppress reflector "osg::VertexProgram::Extensions"
421suppress reflector "osg::StencilTwoSided::Extensions"
422suppress reflector "osg::Texture3D::Extensions"
423suppress reflector "osg::GL2Extensions"
424suppress reflector "osg::Drawable::Extensions"
425suppress reflector "osg::BufferObject::Extensions"
426suppress reflector "osg::FBOExtensions"
427suppress reflector "osg::Drawable::Extensions"
428suppress reflector "osg::BlendColor::Extensions"
429suppress reflector "osg::BlendEquation::Extensions"
430suppress reflector "osg::BlendFunc::Extensions"
431suppress reflector "osg::FragmentProgram::Extensions"
432suppress reflector "osg::Multisample::Extensions"
433suppress reflector "osg::Point::Extensions"
434suppress reflector "osg::ClampColor::Extensions"
435suppress reflector "osg::Texture::Extensions"
436suppress reflector "osg::Texture2DArray::Extensions"
437suppress reflector "osgSim::ShapeAttribute"
438
439configure reflector "osg::State"
440        configure method "__typedef__void__APIENTRY_P1"
441                replace with ""
442        end
443end
444
445configure reflector "osgWidget::Window::Getter"
446    replace with ""
447end
448
449configure reflector "osgWidget::MouseHandler::MouseAction"
450    replace with ""
451end
452
453configure reflector "osgWidget::MouseHandler::MouseEvent"
454    replace with ""
455end
456
457
458
459#############################################################################
460
461# avoid functions that use protected types, since those are not handled
462# currently
463
464configure reflector "osgSim::OverlayNode"
465        configure method /.*getOverlayData.*/
466                replace with ""
467        end
468end
469
470configure reflector "osg::Shader"
471        configure method /.*_PerContextShader_.*/
472                replace with ""
473        end
474end
475
476configure reflector "osg::State"
477        configure method /.*_(ModeStack|AttributeStack|ModeMap|AttributeMap|UniformMap)_.*/
478                replace with ""
479        end
480end
481
482configure reflector "osgUtil::Optimizer::TextureAtlasBuilder"
483        configure method /.*_Source_.*/
484                replace with ""
485        end
486end
487
488configure reflector "osgUtil::Tessellator"
489        configure method /.*_VertexPtrToIndexMap_.*/
490                replace with ""
491        end
492end
493
494configure reflector "osgDB::Registry"
495        configure method /.*_(DynamicLibraryList_iterator|DotOsgWrapperMap)_.*/
496                replace with ""
497        end
498end
499
500configure reflector "osgText::FadeText"
501        configure method /.*_ViewBlendColou?rMap_.*/
502                replace with ""
503        end
504end
505
506configure reflector "osgParticle::PrecipitationEffect"
507        configure method /.*_PrecipitationDrawableSet_.*/
508                replace with ""
509        end
510end
511
512configure reflector "osgManipulator::MotionCommand"
513        configure method /.*_SelectionList_.*/
514                replace with ""
515        end
516end
Note: See TracBrowser for help on using the browser.