Changeset 10007

Show
Ignore:
Timestamp:
04/09/09 17:55:18 (4 years ago)
Author:
robert
Message:

Updated wrappers

Location:
OpenSceneGraph/trunk/src/osgWrappers
Files:
2 modified

Legend:

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

    r9918 r10007  
    101101                  "Reads a file that configures extension mappings. ", 
    102102                  "File is ASCII text and each line contains the parameters to the addFileExtensionAlias method. Lines can be commented out with an initial '#' character. "); 
     103        I_Method2(void, addMimeTypeExtensionMapping, IN, const std::string, fromMimeType, IN, const std::string, toExt, 
     104                  Properties::NON_VIRTUAL, 
     105                  __void__addMimeTypeExtensionMapping__C5_std_string__C5_std_string, 
     106                  "Registers a mapping of a mime-type to an extension. ", 
     107                  "A process fetching data over HTTP can use this facility to determine the proper ReaderWriter to use when there is no filename extension to rely upon. "); 
    103108        I_Method1(void, addDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, 
    104109                  Properties::NON_VIRTUAL, 
     
    155160                  __ReaderWriter_P1__getReaderWriterForExtension__C5_std_string_R1, 
    156161                  "get a reader writer which handles specified extension. ", 
     162                  ""); 
     163        I_Method1(osgDB::ReaderWriter *, getReaderWriterForMimeType, IN, const std::string &, mimeType, 
     164                  Properties::NON_VIRTUAL, 
     165                  __ReaderWriter_P1__getReaderWriterForMimeType__C5_std_string_R1, 
     166                  "gets a reader/writer that handles the extension mapped to by one of the registered mime-types. ", 
    157167                  ""); 
    158168        I_Method0(osgDB::Registry::ReaderWriterList &, getReaderWriterList, 
     
    594604                           "", 
    595605                           ""); 
    596         I_ProtectedMethod2(osgDB::ReaderWriter::ReadResult, readImplementation, IN, const osgDB::Registry::ReadFunctor &, readFunctor, IN, bool, useObjectCache, 
     606        I_ProtectedMethod2(osgDB::ReaderWriter::ReadResult, readImplementation, IN, const osgDB::Registry::ReadFunctor &, readFunctor, IN, osgDB::ReaderWriter::Options::CacheHintOptions, cacheHint, 
    597607                           Properties::NON_VIRTUAL, 
    598608                           Properties::NON_CONST, 
    599                            __ReaderWriter_ReadResult__readImplementation__C5_ReadFunctor_R1__bool, 
     609                           __ReaderWriter_ReadResult__readImplementation__C5_ReadFunctor_R1__ReaderWriter_Options_CacheHintOptions, 
    600610                           "", 
    601611                           ""); 
  • OpenSceneGraph/trunk/src/osgWrappers/osgGA/TrackballManipulator.cpp

    r9918 r10007  
    170170                  "Get the size of the trackball. ", 
    171171                  ""); 
     172        I_Method1(void, setAllowThrow, IN, bool, allowThrow, 
     173                  Properties::NON_VIRTUAL, 
     174                  __void__setAllowThrow__bool, 
     175                  "Set the 'allow throw' flag. ", 
     176                  "Releasing the mouse button while moving the camera results in a throw. "); 
     177        I_Method0(bool, getAllowThrow, 
     178                  Properties::NON_VIRTUAL, 
     179                  __bool__getAllowThrow, 
     180                  "Returns true if the camera can be thrown, false otherwise. ", 
     181                  "This defaults to true. "); 
    172182        I_ProtectedMethod0(void, flushMouseEventStack, 
    173183                           Properties::NON_VIRTUAL, 
     
    212222                           "Check the speed at which the mouse is moving. ", 
    213223                           "If speed is below a threshold then return false, otherwise return true. "); 
     224        I_SimpleProperty(bool, AllowThrow,  
     225                         __bool__getAllowThrow,  
     226                         __void__setAllowThrow__bool); 
    214227        I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix,  
    215228                         0,