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