Changeset 10916

Show
Ignore:
Timestamp:
01/05/10 12:15:17 (3 years ago)
Author:
robert
Message:

Updated wrappers

Location:
OpenSceneGraph/trunk/src/osgWrappers
Files:
2 added
1 removed
6 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgWrappers/osgDB/ReaderWriter.cpp

    r10201 r10916  
    234234                              "", 
    235235                              ""); 
     236        I_Method2(void, supportsProtocol, IN, const std::string &, fmt, IN, const std::string &, description, 
     237                  Properties::NON_VIRTUAL, 
     238                  __void__supportsProtocol__C5_std_string_R1__C5_std_string_R1, 
     239                  "Specify fmt string as a supported protocol. ", 
     240                  "Please note, this method should usually only be used internally by subclasses of ReaderWriter, Only in special cases will a ReaderWriter implementation be able to handle a protocol format that is wasn't original designed for. To know whether it's safe to inject a new protocol format to an existing ReaderWriter you will need to review the source code and dependencies of that ReaderWriter. "); 
     241        I_Method2(void, supportsExtension, IN, const std::string &, ext, IN, const std::string &, description, 
     242                  Properties::NON_VIRTUAL, 
     243                  __void__supportsExtension__C5_std_string_R1__C5_std_string_R1, 
     244                  "Specify ext string as a supported file extension. ", 
     245                  "Please note, this method should usually only be used internally by subclasses of ReaderWriter. Only in special cases will a ReaderWriter implementation be able to handle a file extension that is wasn't original designed for. To know whether it's safe to inject a new file extension to an existing ReaderWriter you will need to review the the source code and dependencies of that ReaderWriter. "); 
     246        I_Method2(void, supportsOption, IN, const std::string &, opt, IN, const std::string &, description, 
     247                  Properties::NON_VIRTUAL, 
     248                  __void__supportsOption__C5_std_string_R1__C5_std_string_R1, 
     249                  "Specify option string as a supported option string. ", 
     250                  "Please note, this should usually only be used internally by subclasses of ReaderWriter. "); 
    236251        I_StaticMethod1(osgDB::ReaderWriter::FeatureList, featureAsString, IN, osgDB::ReaderWriter::Features, feature, 
    237252                        __FeatureList__featureAsString__Features_S, 
    238253                        "return feature as string ", 
    239254                        ""); 
    240         I_ProtectedMethod2(void, supportsProtocol, IN, const std::string &, fmt, IN, const std::string &, description, 
    241                            Properties::NON_VIRTUAL, 
    242                            Properties::NON_CONST, 
    243                            __void__supportsProtocol__C5_std_string_R1__C5_std_string_R1, 
    244                            "", 
    245                            ""); 
    246         I_ProtectedMethod2(void, supportsExtension, IN, const std::string &, fmt, IN, const std::string &, description, 
    247                            Properties::NON_VIRTUAL, 
    248                            Properties::NON_CONST, 
    249                            __void__supportsExtension__C5_std_string_R1__C5_std_string_R1, 
    250                            "", 
    251                            ""); 
    252         I_ProtectedMethod2(void, supportsOption, IN, const std::string &, fmt, IN, const std::string &, description, 
    253                            Properties::NON_VIRTUAL, 
    254                            Properties::NON_CONST, 
    255                            __void__supportsOption__C5_std_string_R1__C5_std_string_R1, 
    256                            "", 
    257                            ""); 
    258255END_REFLECTOR 
    259256 
  • OpenSceneGraph/trunk/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp

    r9775 r10916  
    144144                  "Get the FusionDistanceValue. ", 
    145145                  "Used by SceneView for setting up stereo convergence. "); 
     146        I_Method1(void, setDistance, IN, double, distance, 
     147                  Properties::NON_VIRTUAL, 
     148                  __void__setDistance__double, 
     149                  "Set the distance property. ", 
     150                  ""); 
     151        I_Method0(double, getDistance, 
     152                  Properties::VIRTUAL, 
     153                  __double__getDistance, 
     154                  "Get the distance property. ", 
     155                  ""); 
    146156        I_Method1(void, setNode, IN, osg::Node *, x, 
    147157                  Properties::VIRTUAL, 
     
    209219                         __MatrixManipulator_P1__getCurrentMatrixManipulator,  
    210220                         0); 
     221        I_SimpleProperty(double, Distance,  
     222                         __double__getDistance,  
     223                         __void__setDistance__double); 
    211224        I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode,  
    212225                         __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode,  
  • OpenSceneGraph/trunk/src/osgWrappers/osgGA/MatrixManipulator.cpp

    r7654 r10916  
    111111                  "Get the FusionDistanceValue. ", 
    112112                  "Used by SceneView for setting up stereo convergence. "); 
     113        I_Method1(void, setDistance, IN, double, x, 
     114                  Properties::NON_VIRTUAL, 
     115                  __void__setDistance__double, 
     116                  "Set the distance parameter (used by TrackballManipulator etc. ", 
     117                  ") "); 
     118        I_Method0(double, getDistance, 
     119                  Properties::VIRTUAL, 
     120                  __double__getDistance, 
     121                  "Get the distance parameter. ", 
     122                  ""); 
    113123        I_Method1(void, setIntersectTraversalMask, IN, unsigned int, mask, 
    114124                  Properties::NON_VIRTUAL, 
     
    196206                         __CoordinateFrameCallback_P1__getCoordinateFrameCallback,  
    197207                         __void__setCoordinateFrameCallback__CoordinateFrameCallback_P1); 
     208        I_SimpleProperty(double, Distance,  
     209                         __double__getDistance,  
     210                         __void__setDistance__double); 
    198211        I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode,  
    199212                         __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode,  
  • OpenSceneGraph/trunk/src/osgWrappers/osgGA/SphericalManipulator.cpp

    r10430 r10916  
    138138                  "", 
    139139                  ""); 
    140         I_Method1(bool, setDistance, IN, double, distance, 
     140        I_Method1(bool, setDistance, IN, double, x, 
    141141                  Properties::NON_VIRTUAL, 
    142142                  __bool__setDistance__double, 
    143                   "", 
    144                   ""); 
     143                  "Set the distance parameter (used by TrackballManipulator etc. ", 
     144                  ") "); 
    145145        I_Method0(double, getDistance, 
    146                   Properties::NON_VIRTUAL, 
     146                  Properties::VIRTUAL, 
    147147                  __double__getDistance, 
    148                   "", 
     148                  "Get the distance parameter. ", 
    149149                  ""); 
    150150        I_Method0(double, getHomeDistance, 
  • OpenSceneGraph/trunk/src/osgWrappers/osgGA/TerrainManipulator.cpp

    r10256 r10916  
    8484                  "Get the FusionDistanceValue. ", 
    8585                  "Used by SceneView for setting up stereo convergence. "); 
     86        I_Method1(void, setDistance, IN, double, distance, 
     87                  Properties::NON_VIRTUAL, 
     88                  __void__setDistance__double, 
     89                  "Set the distance of the trackball. ", 
     90                  ""); 
     91        I_Method0(double, getDistance, 
     92                  Properties::VIRTUAL, 
     93                  __double__getDistance, 
     94                  "Get the distance of the trackball. ", 
     95                  ""); 
    8696        I_Method1(void, setNode, IN, osg::Node *, x, 
    8797                  Properties::VIRTUAL, 
     
    179189                         0,  
    180190                         __void__setByMatrix__C5_osg_Matrixd_R1); 
     191        I_SimpleProperty(double, Distance,  
     192                         __double__getDistance,  
     193                         __void__setDistance__double); 
    181194        I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode,  
    182195                         __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode,  
  • OpenSceneGraph/trunk/src/osgWrappers/osgGA/TrackballManipulator.cpp

    r10007 r10916  
    156156                  ""); 
    157157        I_Method0(double, getDistance, 
    158                   Properties::NON_VIRTUAL, 
     158                  Properties::VIRTUAL, 
    159159                  __double__getDistance, 
    160160                  "Get the distance of the trackball. ",