Hi Marco Hi josse


2006/10/26, Marco Jez <[EMAIL PROTECTED]>:
Hi Jose,

It is responsibility of Genwrapper to tell whether a class is abstract or
not, and sometimes it fails to detect that correctly (either because of a
bug or because Doxygen gets confused by the code). The solution is to force
Genwrapper to treat Texture* classes as concrete object types rather than
abstract classes. This can be done in genwrapper.conf before generating
osgIntrospection wrappers.


It is a doxygen bugs

For example in the function "const Image* osg::Texture3D::getImage(unsigned int) const",
the argument "unsigned int" is recognized by doxygen like
this "type = unsigned", "name = int"
   
But in the function "const Image* osg::Texture::getImage( unsigned int  face) const = 0"
the argument "unsigned int face" is recognized by doxygen like this "type = unsigned int", "name = face"

Genwrapper use prototype function to check if an abstract function is reimplemented.
There two function prototype are different and the genwrapper fail to detect that the function is reimplemented.

 

I think adding these lines to genwrapper.conf should do the trick:

configure reflector /osg::Texture(1D|2D|3D|CubeMap|Rectangle)/
    object-type
end


i do a list of not-abstract class which be reflect like abstract class and i only found

osg::Texture1D
osg::Texture2D
osg::Texture3D
osg::TextureRectangle

osgText::Font::GlyphTexture




I add this in genwrapper.conf


#############################################################################

# Doxygen fails to detect that /osg::Texture(1D|2D|3D|Rectangle)/ and
# osgText::Font::GlyphTexture are not-abstract class, so we need
# to specify that manually

configure reflector /osg::Texture(1D|2D|3D|Rectangle)/
    object-type
end

configure reflector "osgText::Font::GlyphTexture"
    object-type
end



And I test with my osgIntrospection-based editor (osgDesigner)
all work fine

Thanks Marco for the easy and powerfull configuration way you made in genwrapper.

Cheers,
David

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to