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

Revision 10521, 17.6 kB (checked in by robert, 5 years ago)

Updated wrappers

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