root/OpenSceneGraph/trunk/src/osgWrappers/introspection/genwrapper.conf @ 10966

Revision 10966, 18.6 kB (checked in by robert, 4 years ago)

Cleaned out all wrappers as will be moving them all into src/osgWrappers/introspection directory, and use genwrapper to generate the new ones

  • 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::TemplateStepInterpolator< double, double >"
210suppress reflector "osgAnimation::TemplateStepInterpolator< float, float >"
211suppress reflector "osgAnimation::TemplateStepInterpolator< osg::Vec2, osg::Vec2 >"
212suppress reflector "osgAnimation::TemplateStepInterpolator< osg::Vec3, osg::Vec3 >"
213suppress reflector "osgAnimation::TemplateStepInterpolator< osg::Vec3, osgAnimation::Vec3Packed >"
214suppress reflector "osgAnimation::TemplateStepInterpolator< osg::Vec4, osg::Vec4 >"
215suppress reflector "osgAnimation::TemplateStepInterpolator< osg::Quat, osg::Quat >"
216
217suppress reflector "osgAnimation::TemplateCubicBezierInterpolator< float, osgAnimation::FloatCubicBezier >"
218suppress reflector "osgAnimation::TemplateCubicBezierInterpolator< double, osgAnimation::DoubleCubicBezier >"
219suppress reflector "osgAnimation::TemplateCubicBezierInterpolator< osg::Vec2, osgAnimation::Vec2CubicBezier >"
220suppress reflector "osgAnimation::TemplateCubicBezierInterpolator< osg::Vec3, osgAnimation::Vec3CubicBezier >"
221suppress reflector "osgAnimation::TemplateCubicBezierInterpolator< osg::Vec4, osgAnimation::Vec4CubicBezier >"
222
223suppress reflector "osgAnimation::TemplateKeyframe< float >"
224suppress reflector "osgAnimation::TemplateKeyframeContainer< float >"
225   
226suppress reflector "osgAnimation::TemplateKeyframe< double >"
227suppress reflector "osgAnimation::TemplateKeyframeContainer< double >"
228
229suppress reflector "osgAnimation::TemplateKeyframe< osg::Vec2 >"
230suppress reflector "osgAnimation::TemplateKeyframeContainer< osg::Vec2 >"
231
232suppress reflector "osgAnimation::TemplateKeyframe< osg::Vec3 >"
233suppress reflector "osgAnimation::TemplateKeyframeContainer< osg::Vec3 >"
234
235suppress reflector "osgAnimation::TemplateKeyframe< osg::Vec4 >"
236suppress reflector "osgAnimation::TemplateKeyframeContainer< osg::Vec4 >"
237
238suppress reflector "osgAnimation::TemplateKeyframe< osg::Quat >"
239suppress reflector "osgAnimation::TemplateKeyframeContainer< osg::Quat >"
240
241suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::Vec3Packed >"
242suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec3Packed >"
243
244suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::FloatCubicBezier >"
245suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::FloatCubicBezier >"
246   
247suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::DoubleCubicBezier >"
248suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::DoubleCubicBezier >"
249   
250suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::Vec2CubicBezier >"
251suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec2CubicBezier >"
252   
253suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::Vec3CubicBezier >"
254suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec3CubicBezier >"
255   
256suppress reflector "osgAnimation::TemplateKeyframe< osgAnimation::Vec4CubicBezier >"
257suppress reflector "osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec4CubicBezier >"
258
259suppress reflector "osgAnimation::TemplateCubicBezier< float >"
260suppress reflector "osgAnimation::TemplateCubicBezier< double >"
261suppress reflector "osgAnimation::TemplateCubicBezier< osg::Vec2 >"
262suppress reflector "osgAnimation::TemplateCubicBezier< osg::Vec3 >"
263suppress reflector "osgAnimation::TemplateCubicBezier< osg::Vec4 >"
264
265
266suppress reflector "osgAnimation::std::vector< osg::ref_ptr< osgAnimation::Channel >  >"
267
268suppress reflector "osgAnimation::TemplateChannel< osgAnimation::DoubleStepSampler >"
269suppress reflector "osgAnimation::TemplateChannel< osgAnimation::FloatStepSampler >"
270suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec2StepSampler >"
271suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec3StepSampler >"
272suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec4StepSampler >"
273suppress reflector "osgAnimation::TemplateChannel< osgAnimation::QuatStepSampler >"
274
275suppress reflector "osgAnimation::TemplateChannel< osgAnimation::DoubleLinearSampler >"
276suppress reflector "osgAnimation::TemplateChannel< osgAnimation::FloatLinearSampler >"
277suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec2LinearSampler >"
278suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec3LinearSampler >"
279suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec4LinearSampler >"
280suppress reflector "osgAnimation::TemplateChannel< osgAnimation::QuatSphericalLinearSampler >"
281
282suppress reflector "osgAnimation::TemplateChannel< osgAnimation::FloatCubicBezierSampler >"
283suppress reflector "osgAnimation::TemplateChannel< osgAnimation::DoubleCubicBezierSampler >"
284suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec2CubicBezierSampler >"
285suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec3CubicBezierSampler >"
286suppress reflector "osgAnimation::TemplateChannel< osgAnimation::Vec4CubicBezierSampler >"
287
288suppress reflector "osgAnimation::AnimationUpdateCallback"
289
290#############################################################################
291
292# StateSet and related types need some advanced tweaking
293
294configure reflector "std::map< osg::StateAttribute::GLMode, osg::StateAttribute::GLModeValue >"
295        replace with "STD_MAP_REFLECTOR_WITH_TYPES(std::map< osg::StateAttribute::GLMode COMMA  osg::StateAttribute::GLModeValue >, osg::StateAttribute::GLMode, osg::StateAttribute::Values)"
296end
297
298configure reflector "osg::StateSet"
299
300        # remove indexed property "Mode" because its index would not belong to a
301        # finite set of values
302               
303        configure property "Mode"
304                replace with ""
305        end     
306       
307end
308
309configure reflector "osg::Geometry"
310
311        # define the count method for some Property
312 
313               
314        configure property "TexCoordData"
315                count_method "__unsigned_int__getNumTexCoordArrays"
316        end
317
318        configure property "TexCoordIndices"
319                count_method "__unsigned_int__getNumTexCoordArrays"
320        end
321
322        configure property "VertexAttribBinding"
323                count_method "__unsigned_int__getNumVertexAttribArrays"
324        end
325
326        configure property "VertexAttribData"
327                count_method "__unsigned_int__getNumVertexAttribArrays"
328        end
329
330        configure property "VertexAttribIndices"
331                count_method "__unsigned_int__getNumVertexAttribArrays"
332        end
333
334        configure property "VertexAttribNormalize"
335                count_method "__unsigned_int__getNumVertexAttribArrays"
336        end
337       
338end
339
340#############################################################################
341
342# Doxygen fails to detect that /osg::Texture(1D|2D|3D|Rectangle)/ and
343# osgText::Font::GlyphTexture are not-abstract class, so we need
344# to specify that manually
345
346configure reflector /osg::Texture(1D|2D|3D|Rectangle)/
347    object-type
348end
349
350configure reflector "osgText::Font::GlyphTexture"
351    object-type
352end
353
354#############################################################################
355
356# must suppress reflector for osgDB::Output because some of its methods
357# are not supported by osgIntrospection (they return non-const references)
358
359suppress reflector "osgDB::Output"
360
361#############################################################################
362
363# some types are incorrectly detected as value type or object type. Here we
364# specify the type kind explicitly
365
366configure reflector "OpenThreads::Mutex"
367        object-type
368end
369
370configure reflector "OpenThreads::Condition"
371        object-type
372end
373
374configure reflector "OpenThreads::Block"
375        object-type
376end
377
378configure reflector "OpenThreads::BlockCount"
379        object-type
380end
381
382configure reflector "OpenThreads::Barrier"
383        object-type
384end
385
386configure reflector "OpenThreads::ReentrantMutex"
387        object-type
388end
389
390configure reflector "OpenThreads::ReadWriteMutex"
391        object-type
392end
393
394configure reflector "osg::DeleteHandler"
395        object-type
396end
397
398configure reflector "osg::GraphicsContext"
399        abstract-object-type
400end
401
402#############################################################################
403
404# Suppress scoped lock template
405
406suppress reflector "OpenThreads::ScopedLock< OpenThreads::Mutex >"
407
408#############################################################################
409
410# Suppress nested nested class method
411
412configure reflector "osgShadow::OccluderGeometry"
413       configure method /.*_Edge_.*/
414               replace with ""
415       end
416end
417
418#############################################################################
419
420# Doxygen doesn't parse ReadFunc and WriteFunc correctly...
421
422configure reflector "osgDB::DotOsgWrapper::ReadFunc"
423        replace with "TYPE_NAME_ALIAS(bool (*)(osg::Object&,osgDB::Input&), osgDB::DotOsgWrapper::ReadFunc)
424        "
425end
426
427configure reflector "osgDB::DotOsgWrapper::WriteFunc"
428        replace with "TYPE_NAME_ALIAS(bool (*)(const osg::Object&,osgDB::Output&), osgDB::DotOsgWrapper::WriteFunc)
429        "
430end
431
432#############################################################################
433
434# temporary workaround for problems related to ambiguous name resolution
435
436suppress reflector "osg::ref_ptr< const osg::StateAttribute >"
437suppress reflector "osg::ref_ptr< const osgFX::Effect >"
438
439#############################################################################
440
441# Doxygen incorrectly parses function typedefs as methods
442
443suppress reflector "osg::VertexProgram::Extensions"
444suppress reflector "osg::StencilTwoSided::Extensions"
445suppress reflector "osg::Texture3D::Extensions"
446suppress reflector "osg::GL2Extensions"
447suppress reflector "osg::GLBufferObject::Extensions"
448suppress reflector "osg::FBOExtensions"
449suppress reflector "osg::BlendColor::Extensions"
450suppress reflector "osg::BlendEquation::Extensions"
451suppress reflector "osg::BlendFunc::Extensions"
452suppress reflector "osg::FragmentProgram::Extensions"
453suppress reflector "osg::Multisample::Extensions"
454suppress reflector "osg::Point::Extensions"
455suppress reflector "osg::ClampColor::Extensions"
456suppress reflector "osg::Texture::Extensions"
457suppress reflector "osg::Texture2DArray::Extensions"
458suppress reflector "osgSim::ShapeAttribute"
459suppress reflector "osg::Drawable::Extensions"
460
461configure reflector "osg::State"
462        configure method "__typedef__void__APIENTRY_P1"
463                replace with ""
464        end
465end
466
467configure reflector "osgWidget::Window::Getter"
468    replace with ""
469end
470
471configure reflector "osgWidget::MouseHandler::MouseAction"
472    replace with ""
473end
474
475configure reflector "osgWidget::MouseHandler::MouseEvent"
476    replace with ""
477end
478
479
480
481#############################################################################
482
483# avoid functions that use protected types, since those are not handled
484# currently
485
486configure reflector "osgSim::OverlayNode"
487        configure method /.*getOverlayData.*/
488                replace with ""
489        end
490end
491
492configure reflector "osg::Shader"
493        configure method /.*_PerContextShader_.*/
494                replace with ""
495        end
496end
497
498configure reflector "osg::State"
499        configure method /.*_(ModeStack|AttributeStack|ModeMap|AttributeMap|UniformMap)_.*/
500                replace with ""
501        end
502end
503
504configure reflector "osgUtil::Optimizer::TextureAtlasBuilder"
505        configure method /.*_Source_.*/
506                replace with ""
507        end
508end
509
510configure reflector "osgUtil::Tessellator"
511        configure method /.*_VertexPtrToIndexMap_.*/
512                replace with ""
513        end
514end
515
516configure reflector "osgDB::Registry"
517        configure method /.*_(DynamicLibraryList_iterator|DotOsgWrapperMap)_.*/
518                replace with ""
519        end
520end
521
522configure reflector "osgText::FadeText"
523        configure method /.*_ViewBlendColou?rMap_.*/
524                replace with ""
525        end
526end
527
528configure reflector "osgParticle::PrecipitationEffect"
529        configure method /.*_PrecipitationDrawableSet_.*/
530                replace with ""
531        end
532end
533
534configure reflector "osgManipulator::MotionCommand"
535        configure method /.*_SelectionList_.*/
536                replace with ""
537        end
538end
Note: See TracBrowser for help on using the browser.