Go to file
Robert Osfield f3b71fc2ac From David Callu:
"
  the main problem is the wrapper generation:
       The PropertyInfo class use MethodInfo class to access to the value.
       When the property are define with the I_Property* macro,
       the MethodInfo use by the property to have access to the value
       are instancied in the I_Property* macro, but there
       are already instantied by the I_Method* macro before


   secondary problem:
      - the function used by the property could no be customized
        in the genwrapper.conf file
      - an array property can't insert a value
      - the std::map reflector (and indexedProperty in general) haven't remove method
      - about the help in wrapper ... why not ...



   solution :
      To use the function define by the I_Method, I add a MethodInfo variable in the I_Method0 macro
        old macro :
           #define I_Method0(ret, fn) (\
           params.clear(),\
           addMethod(new osgIntrospection::TypedMethodIn
fo0<reflected_type, ret >(qualifyName(#fn), &reflected_type::fn, params)))

        new macro :
           #define I_Method0(ret, fn, signature, briefHelp, detailedHelp) \
           params.clear(); \
          osgIntrospection::MethodInfo* signature = addMethod(new osgIntrospection::TypedMethodInfo0<reflected_type, ret >(qualifyName(#fn), &reflected_type::fn, params, briefHelp, detailedHelp)); sink(signature)



    the osgIntrospection::MethodInfo* signature is used by the I_Property macro to define the MethodInfo that it use

    so for I_Property macro :
        old macro :
          #define I_PropertyWithReturnType(t, n, r) \
          cap=addProperty(new osgIntrospection::PropertyInfo(osgIntrospection::Reflection::getType(typeid(reflected_type)), osgIntrospection::Reflection::getType(typeid(t)), #n, \
          I_Method0(t, get##n), \
          I_Method1(r, set##n, IN, t, value)))

         new macro:
           #define I_SimpleProperty(t, n, get, set) \
           get, \
           set))

      The genwrapper has been modified in this way.
      The method signature is define by the prototype of the method
      For example, the "const char* libraryName();" have "__C5_char_P1__libraryName" for signature


   solution for secondary problem:
      The genwrapper accept new tokens in the configuration to custumize the property.
      The new PropertyInserter and the CustomPropertyInsertAttribute class has been defined
      The PropertyRemover has been added to the StdMapReflector
      The _briefHelp and _detailedHelp variable has been added in PropertyInfo, MethodInfo and ContructorInfo class






   modification:

      I have modify the genwrapper files
          Configuration.cpp Configuration.h                          add some tokens to custumize the property
          Doxyfile.template                                                 add the comment in the output xml
          genwrapper.conf                                                  customize some property in osg::Geometry
          RegistryBuilder.h RegistryBuilder.cpp                    add the process_help function (to extract help from xml)
          TypeRegister.cpp TypeRegister.h                         optimize the property detection
          TypeDesc.h TypeDesc.cpp                                   modify FunctionDesc and PropertyDesc
          WrapperGenerator.h WrapperGenerator.cpp          modify the output




      I also modify the fallowing osgIntrospection files:

          include/osgIntrospection/Attributes                              add the PropertyInserter and the CustomPropertyInsertAttribute class
          include/osgIntrospection/ConstructorInfo                      add the _briefHelp and _detailedHelp variable in the ConstructorInfo class
                                                                                          add access function for the two new variables (_briefHelp and _detailedHelp)
                                                                                          modify the constructor to define the two new variables (_briefHelp and _detailedHelp)
          include/osgIntrospection/MethodInfo                            add the _briefHelp and _detailedHelp variable in the MethodInfo class
                                                                                          add access function for the two new variables (_briefHelp and _detailedHelp)
                                                                                          modify the constructor to define the two new variables (_briefHelp and _detailedHelp)
          include/osgIntrospection/PropertyInfo                          add the _briefHelp and _detailedHelp variable in the PropertyInfo class
                                                                                          add access function for the two new variables (_briefHelp and _detailedHelp)
                                                                                          modify the constructor to define the two new variables (_briefHelp and _detailedHelp)
          include/osgIntrospection/ReflectionMacro                    remove unused I_Property* macro
                                                                                          modify all I_Method macro to accept the help string
                                                                                          modify all I_Method macro to define a MethodInfo signature
          include/osgIntrospection/Reflector                              add the PropertyInserter in StdVectorReflector and StdListReflector
                                                                                          add the PropertyRemover in the StdMapReflector
          include/osgIntrospection/StaticMethodInfo                   modify all StaticMethodInfo* to accept the help in parameter
          include/osgIntrospection/TypedMethodInfo                  modify all TypedMethodInfo* to accept the help in parameter
          include/osgIntrospection/TypedConstructorInfo             modify all TypedConstructorInfo* to accept the help in parameter
          include/osgIntrospection/Type                                     add the _briefHelp and _detailedHelp variable in the Type class

"
2006-10-17 15:17:06 +00:00
applications Updated NEWS, AUTHORS file and osgversion for the 1.2-rc1 2006-09-05 15:22:54 +00:00
bin Added .README to prevent CVS from deleting the empty bin directory when checking 2001-12-29 20:53:08 +00:00
dist Removed old RPM spec files. This shouldn't be in the repository as they 2004-12-04 23:59:16 +00:00
doc Started experimenting with sections and table of contents. 2005-11-16 16:35:56 +00:00
examples Ported FLTK example across to using GraphicsWindow 2006-10-15 11:56:52 +00:00
include From David Callu: 2006-10-17 15:17:06 +00:00
lib Removed osgPlugins from lib, which is now built on the fly 2003-03-12 20:10:43 +00:00
Make First cut at class interfaces and stubs for implementations for the new osgShadow NodeKit 2006-10-06 14:16:11 +00:00
src From David Callu: 2006-10-17 15:17:06 +00:00
VisualStudio Changed name osg osgshadow example.dsp to avoid MS conflicts 2006-10-17 12:29:07 +00:00
Xcode From Eric Wing, updated to Xcode projects 2006-09-21 11:26:18 +00:00
AUTHORS.txt Updated AUTHORS file for 1.2 release 2006-09-12 10:46:59 +00:00
ChangeLog Updated ChangeLog for 1.2 release 2006-09-12 19:09:59 +00:00
GNUmakefile Added tagrules for 'make tag' convenience 2004-12-02 21:49:58 +00:00
INSTALL.txt Fixed reference to install instructions 2004-11-27 17:06:44 +00:00
LICENSE.txt Update of 5/27/03 backup with 6/20/03 tarball 2003-06-24 15:36:53 +00:00
NEWS.txt Correct HP's AIX to IBM's AIX. 2006-09-13 13:33:36 +00:00
README.txt Updated ChangedLog and READE for the 1.1 release 2006-07-19 21:11:16 +00:00
runexamples.bat Added osgprecipitation to runexamples list. 2006-07-26 15:19:42 +00:00

Welcome to the OpenSceneGraph (OSG).

For up to date information on the project, how to compile and run libraries 
and examples, and see the documentation on the OpenSceneGraph website.

    http://www.openscenegraph.org
  

Robert Osfield. 
robert@openscenegraph.com
July 19th 2006.