root/OpenSceneGraph/trunk/src/osgWrappers/osgDB/Registry.cpp @ 10174

Revision 10174, 39.7 kB (checked in by robert, 6 years ago)

Moved Registry::ReadFileCallback? + WriteFileCallback?, and osgDB::ReaderWriter::Options into their own separate Options file and into the osgDB namespace.

Introduced a new callback osgDB::FindFileCallback? that overrides the default behavior of findDataFile/findLibraryFile.

Introduced support for assigning ReaderWriter::Options directory to PagedLOD.

Introduced new osgDB::FileLocationCallback? for assistancing the DatabasePager? to know when a file is hosted on a local or remote file system.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1// ***************************************************************************
2//
3//   Generated automatically by genwrapper.
4//   Please DO NOT EDIT this file!
5//
6// ***************************************************************************
7
8#include <osgIntrospection/ReflectionMacros>
9#include <osgIntrospection/TypedMethodInfo>
10#include <osgIntrospection/StaticMethodInfo>
11#include <osgIntrospection/Attributes>
12
13#include <osg/ArgumentParser>
14#include <osg/Drawable>
15#include <osg/Image>
16#include <osg/KdTree>
17#include <osg/Node>
18#include <osg/Object>
19#include <osg/Shader>
20#include <osg/Shape>
21#include <osg/State>
22#include <osg/StateAttribute>
23#include <osg/Uniform>
24#include <osgDB/Archive>
25#include <osgDB/AuthenticationMap>
26#include <osgDB/DotOsgWrapper>
27#include <osgDB/DynamicLibrary>
28#include <osgDB/FileCache>
29#include <osgDB/Input>
30#include <osgDB/Options>
31#include <osgDB/Output>
32#include <osgDB/ReaderWriter>
33#include <osgDB/Registry>
34#include <osgDB/SharedStateManager>
35
36// Must undefine IN and OUT macros defined in Windows headers
37#ifdef IN
38#undef IN
39#endif
40#ifdef OUT
41#undef OUT
42#endif
43
44BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::basic_type_wrapper)
45        I_DeclaringFile("osgDB/Registry");
46        I_Constructor0(____basic_type_wrapper,
47                       "",
48                       "");
49        I_Method1(bool, matches, IN, const osg::Object *, proto,
50                  Properties::PURE_VIRTUAL,
51                  __bool__matches__C5_osg_Object_P1,
52                  "",
53                  "");
54END_REFLECTOR
55
56BEGIN_VALUE_REFLECTOR(osgDB::PluginFunctionProxy)
57        I_DeclaringFile("osgDB/Registry");
58        I_Constructor1(IN, CPluginFunction, function,
59                       Properties::NON_EXPLICIT,
60                       ____PluginFunctionProxy__CPluginFunction,
61                       "",
62                       "");
63END_REFLECTOR
64
65BEGIN_VALUE_REFLECTOR(osgDB::RegisterDotOsgWrapperProxy)
66        I_DeclaringFile("osgDB/Registry");
67        I_ConstructorWithDefaults6(IN, osg::Object *, proto, , IN, const std::string &, name, , IN, const std::string &, associates, , IN, osgDB::DotOsgWrapper::ReadFunc, readFunc, , IN, osgDB::DotOsgWrapper::WriteFunc, writeFunc, , IN, osgDB::DotOsgWrapper::ReadWriteMode, readWriteMode, osgDB::DotOsgWrapper::READ_AND_WRITE,
68                                   ____RegisterDotOsgWrapperProxy__osg_Object_P1__C5_std_string_R1__C5_std_string_R1__DotOsgWrapper_ReadFunc__DotOsgWrapper_WriteFunc__DotOsgWrapper_ReadWriteMode,
69                                   "",
70                                   "");
71END_REFLECTOR
72
73BEGIN_ENUM_REFLECTOR(osgDB::Registry::LoadStatus)
74        I_DeclaringFile("osgDB/Registry");
75        I_EnumLabel(osgDB::Registry::NOT_LOADED);
76        I_EnumLabel(osgDB::Registry::PREVIOUSLY_LOADED);
77        I_EnumLabel(osgDB::Registry::LOADED);
78END_REFLECTOR
79
80TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgDB::ReaderWriter > >, osgDB::Registry::ReaderWriterList)
81
82TYPE_NAME_ALIAS(class osgDB::FindFileCallback, osgDB::Registry::FindFileCallback)
83
84TYPE_NAME_ALIAS(class osgDB::ReadFileCallback, osgDB::Registry::ReadFileCallback)
85
86TYPE_NAME_ALIAS(class osgDB::WriteFileCallback, osgDB::Registry::WriteFileCallback)
87
88TYPE_NAME_ALIAS(class osgDB::FileLocationCallback, osgDB::Registry::FileLocationCallback)
89
90BEGIN_OBJECT_REFLECTOR(osgDB::Registry)
91        I_DeclaringFile("osgDB/Registry");
92        I_BaseType(osg::Referenced);
93        I_StaticMethodWithDefaults1(osgDB::Registry *, instance, IN, bool, erase, false,
94                                    __Registry_P1__instance__bool_S,
95                                    "",
96                                    "");
97        I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, commandLine,
98                  Properties::NON_VIRTUAL,
99                  __void__readCommandLine__osg_ArgumentParser_R1,
100                  "read the command line arguments. ",
101                  "");
102        I_Method2(void, addFileExtensionAlias, IN, const std::string, mapExt, IN, const std::string, toExt,
103                  Properties::NON_VIRTUAL,
104                  __void__addFileExtensionAlias__C5_std_string__C5_std_string,
105                  "register an .fileextension alias to mapExt toExt, the later should the the extension name of the readerwriter plugin library. ",
106                  "For example to map .tif files to the tiff loader, use addExtAlias(\"tif\",\"tiff\") which will enable .tif to be read by the libdb_tiff readerwriter plugin. ");
107        I_Method1(bool, readPluginAliasConfigurationFile, IN, const std::string &, file,
108                  Properties::NON_VIRTUAL,
109                  __bool__readPluginAliasConfigurationFile__C5_std_string_R1,
110                  "Reads a file that configures extension mappings. ",
111                  "File is ASCII text and each line contains the parameters to the addFileExtensionAlias method. Lines can be commented out with an initial '#' character. ");
112        I_Method2(void, addMimeTypeExtensionMapping, IN, const std::string, fromMimeType, IN, const std::string, toExt,
113                  Properties::NON_VIRTUAL,
114                  __void__addMimeTypeExtensionMapping__C5_std_string__C5_std_string,
115                  "Registers a mapping of a mime-type to an extension. ",
116                  "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. ");
117        I_Method1(void, addDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper,
118                  Properties::NON_VIRTUAL,
119                  __void__addDotOsgWrapper__DotOsgWrapper_P1,
120                  "",
121                  "");
122        I_Method1(void, removeDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper,
123                  Properties::NON_VIRTUAL,
124                  __void__removeDotOsgWrapper__DotOsgWrapper_P1,
125                  "",
126                  "");
127        I_Method1(void, addReaderWriter, IN, osgDB::ReaderWriter *, rw,
128                  Properties::NON_VIRTUAL,
129                  __void__addReaderWriter__ReaderWriter_P1,
130                  "",
131                  "");
132        I_Method1(void, removeReaderWriter, IN, osgDB::ReaderWriter *, rw,
133                  Properties::NON_VIRTUAL,
134                  __void__removeReaderWriter__ReaderWriter_P1,
135                  "",
136                  "");
137        I_Method1(std::string, createLibraryNameForFile, IN, const std::string &, fileName,
138                  Properties::NON_VIRTUAL,
139                  __std_string__createLibraryNameForFile__C5_std_string_R1,
140                  "create the platform specific library name associated with file. ",
141                  "");
142        I_Method1(std::string, createLibraryNameForExtension, IN, const std::string &, ext,
143                  Properties::NON_VIRTUAL,
144                  __std_string__createLibraryNameForExtension__C5_std_string_R1,
145                  "create the platform specific library name associated with file extension. ",
146                  "");
147        I_Method1(std::string, createLibraryNameForNodeKit, IN, const std::string &, name,
148                  Properties::NON_VIRTUAL,
149                  __std_string__createLibraryNameForNodeKit__C5_std_string_R1,
150                  "create the platform specific library name associated with nodekit library name. ",
151                  "");
152        I_Method1(osgDB::Registry::LoadStatus, loadLibrary, IN, const std::string &, fileName,
153                  Properties::NON_VIRTUAL,
154                  __LoadStatus__loadLibrary__C5_std_string_R1,
155                  "find the library in the OSG_LIBRARY_PATH and load it. ",
156                  "");
157        I_Method1(bool, closeLibrary, IN, const std::string &, fileName,
158                  Properties::NON_VIRTUAL,
159                  __bool__closeLibrary__C5_std_string_R1,
160                  "close the attached library with specified name. ",
161                  "");
162        I_Method0(void, closeAllLibraries,
163                  Properties::NON_VIRTUAL,
164                  __void__closeAllLibraries,
165                  "close all libraries. ",
166                  "");
167        I_Method1(osgDB::ReaderWriter *, getReaderWriterForExtension, IN, const std::string &, ext,
168                  Properties::NON_VIRTUAL,
169                  __ReaderWriter_P1__getReaderWriterForExtension__C5_std_string_R1,
170                  "get a reader writer which handles specified extension. ",
171                  "");
172        I_Method1(osgDB::ReaderWriter *, getReaderWriterForMimeType, IN, const std::string &, mimeType,
173                  Properties::NON_VIRTUAL,
174                  __ReaderWriter_P1__getReaderWriterForMimeType__C5_std_string_R1,
175                  "gets a reader/writer that handles the extension mapped to by one of the registered mime-types. ",
176                  "");
177        I_Method0(osgDB::Registry::ReaderWriterList &, getReaderWriterList,
178                  Properties::NON_VIRTUAL,
179                  __ReaderWriterList_R1__getReaderWriterList,
180                  "get list of all registered ReaderWriters. ",
181                  "");
182        I_Method0(const osgDB::Registry::ReaderWriterList &, getReaderWriterList,
183                  Properties::NON_VIRTUAL,
184                  __C5_ReaderWriterList_R1__getReaderWriterList,
185                  "get const list of all registered ReaderWriters. ",
186                  "");
187        I_Method2(osg::Object *, readObjectOfType, IN, const osg::Object &, compObj, IN, osgDB::Input &, fr,
188                  Properties::NON_VIRTUAL,
189                  __osg_Object_P1__readObjectOfType__C5_osg_Object_R1__Input_R1,
190                  "",
191                  "");
192        I_Method2(osg::Object *, readObjectOfType, IN, const osgDB::basic_type_wrapper &, btw, IN, osgDB::Input &, fr,
193                  Properties::NON_VIRTUAL,
194                  __osg_Object_P1__readObjectOfType__C5_basic_type_wrapper_R1__Input_R1,
195                  "",
196                  "");
197        I_Method1(osg::Object *, readObject, IN, osgDB::Input &, fr,
198                  Properties::NON_VIRTUAL,
199                  __osg_Object_P1__readObject__Input_R1,
200                  "",
201                  "");
202        I_Method1(osg::Image *, readImage, IN, osgDB::Input &, fr,
203                  Properties::NON_VIRTUAL,
204                  __osg_Image_P1__readImage__Input_R1,
205                  "",
206                  "");
207        I_Method1(osg::Drawable *, readDrawable, IN, osgDB::Input &, fr,
208                  Properties::NON_VIRTUAL,
209                  __osg_Drawable_P1__readDrawable__Input_R1,
210                  "",
211                  "");
212        I_Method1(osg::Uniform *, readUniform, IN, osgDB::Input &, fr,
213                  Properties::NON_VIRTUAL,
214                  __osg_Uniform_P1__readUniform__Input_R1,
215                  "",
216                  "");
217        I_Method1(osg::StateAttribute *, readStateAttribute, IN, osgDB::Input &, fr,
218                  Properties::NON_VIRTUAL,
219                  __osg_StateAttribute_P1__readStateAttribute__Input_R1,
220                  "",
221                  "");
222        I_Method1(osg::Node *, readNode, IN, osgDB::Input &, fr,
223                  Properties::NON_VIRTUAL,
224                  __osg_Node_P1__readNode__Input_R1,
225                  "",
226                  "");
227        I_Method1(osg::Shader *, readShader, IN, osgDB::Input &, fr,
228                  Properties::NON_VIRTUAL,
229                  __osg_Shader_P1__readShader__Input_R1,
230                  "",
231                  "");
232        I_Method2(bool, writeObject, IN, const osg::Object &, obj, IN, osgDB::Output &, fw,
233                  Properties::NON_VIRTUAL,
234                  __bool__writeObject__C5_osg_Object_R1__Output_R1,
235                  "",
236                  "");
237        I_Method1(void, setFindFileCallback, IN, osgDB::Registry::FindFileCallback *, cb,
238                  Properties::NON_VIRTUAL,
239                  __void__setFindFileCallback__FindFileCallback_P1,
240                  "Set the Registry callback to use in place of the default findFile calls. ",
241                  "");
242        I_Method0(osgDB::Registry::FindFileCallback *, getFindFileCallback,
243                  Properties::NON_VIRTUAL,
244                  __FindFileCallback_P1__getFindFileCallback,
245                  "Get the findFile callback. ",
246                  "");
247        I_Method0(const osgDB::Registry::FindFileCallback *, getFindFileCallback,
248                  Properties::NON_VIRTUAL,
249                  __C5_FindFileCallback_P1__getFindFileCallback,
250                  "Get the const findFile callback. ",
251                  "");
252        I_Method3(std::string, findDataFile, IN, const std::string &, fileName, IN, const osgDB::Options *, options, IN, osgDB::CaseSensitivity, caseSensitivity,
253                  Properties::NON_VIRTUAL,
254                  __std_string__findDataFile__C5_std_string_R1__C5_Options_P1__CaseSensitivity,
255                  "",
256                  "");
257        I_Method3(std::string, findDataFileImplementation, IN, const std::string &, fileName, IN, const osgDB::Options *, options, IN, osgDB::CaseSensitivity, caseSensitivity,
258                  Properties::NON_VIRTUAL,
259                  __std_string__findDataFileImplementation__C5_std_string_R1__C5_Options_P1__CaseSensitivity,
260                  "",
261                  "");
262        I_Method3(std::string, findLibraryFile, IN, const std::string &, fileName, IN, const osgDB::Options *, options, IN, osgDB::CaseSensitivity, caseSensitivity,
263                  Properties::NON_VIRTUAL,
264                  __std_string__findLibraryFile__C5_std_string_R1__C5_Options_P1__CaseSensitivity,
265                  "",
266                  "");
267        I_Method3(std::string, findLibraryFileImplementation, IN, const std::string &, fileName, IN, const osgDB::Options *, options, IN, osgDB::CaseSensitivity, caseSensitivity,
268                  Properties::NON_VIRTUAL,
269                  __std_string__findLibraryFileImplementation__C5_std_string_R1__C5_Options_P1__CaseSensitivity,
270                  "",
271                  "");
272        I_Method1(void, setReadFileCallback, IN, osgDB::Registry::ReadFileCallback *, cb,
273                  Properties::NON_VIRTUAL,
274                  __void__setReadFileCallback__ReadFileCallback_P1,
275                  "Set the Registry callback to use in place of the default readFile calls. ",
276                  "");
277        I_Method0(osgDB::Registry::ReadFileCallback *, getReadFileCallback,
278                  Properties::NON_VIRTUAL,
279                  __ReadFileCallback_P1__getReadFileCallback,
280                  "Get the readFile callback. ",
281                  "");
282        I_Method0(const osgDB::Registry::ReadFileCallback *, getReadFileCallback,
283                  Properties::NON_VIRTUAL,
284                  __C5_ReadFileCallback_P1__getReadFileCallback,
285                  "Get the const readFile callback. ",
286                  "");
287        I_Method4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::Options *, options,
288                  Properties::NON_VIRTUAL,
289                  __ReaderWriter_ReadResult__openArchive__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_Options_P1,
290                  "",
291                  "");
292        I_Method4(osgDB::ReaderWriter::ReadResult, openArchiveImplementation, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::Options *, options,
293                  Properties::NON_VIRTUAL,
294                  __ReaderWriter_ReadResult__openArchiveImplementation__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_Options_P1,
295                  "",
296                  "");
297        I_MethodWithDefaults3(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, fileName, , IN, const osgDB::Options *, options, , IN, bool, buildKdTreeIfRequired, true,
298                              Properties::NON_VIRTUAL,
299                              __ReaderWriter_ReadResult__readObject__C5_std_string_R1__C5_Options_P1__bool,
300                              "",
301                              "");
302        I_Method2(osgDB::ReaderWriter::ReadResult, readObjectImplementation, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
303                  Properties::NON_VIRTUAL,
304                  __ReaderWriter_ReadResult__readObjectImplementation__C5_std_string_R1__C5_Options_P1,
305                  "",
306                  "");
307        I_Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
308                  Properties::NON_VIRTUAL,
309                  __ReaderWriter_ReadResult__readImage__C5_std_string_R1__C5_Options_P1,
310                  "",
311                  "");
312        I_Method2(osgDB::ReaderWriter::ReadResult, readImageImplementation, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
313                  Properties::NON_VIRTUAL,
314                  __ReaderWriter_ReadResult__readImageImplementation__C5_std_string_R1__C5_Options_P1,
315                  "",
316                  "");
317        I_Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
318                  Properties::NON_VIRTUAL,
319                  __ReaderWriter_ReadResult__readHeightField__C5_std_string_R1__C5_Options_P1,
320                  "",
321                  "");
322        I_Method2(osgDB::ReaderWriter::ReadResult, readHeightFieldImplementation, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
323                  Properties::NON_VIRTUAL,
324                  __ReaderWriter_ReadResult__readHeightFieldImplementation__C5_std_string_R1__C5_Options_P1,
325                  "",
326                  "");
327        I_MethodWithDefaults3(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, fileName, , IN, const osgDB::Options *, options, , IN, bool, buildKdTreeIfRequired, true,
328                              Properties::NON_VIRTUAL,
329                              __ReaderWriter_ReadResult__readNode__C5_std_string_R1__C5_Options_P1__bool,
330                              "",
331                              "");
332        I_Method2(osgDB::ReaderWriter::ReadResult, readNodeImplementation, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
333                  Properties::NON_VIRTUAL,
334                  __ReaderWriter_ReadResult__readNodeImplementation__C5_std_string_R1__C5_Options_P1,
335                  "",
336                  "");
337        I_Method2(osgDB::ReaderWriter::ReadResult, readShader, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
338                  Properties::NON_VIRTUAL,
339                  __ReaderWriter_ReadResult__readShader__C5_std_string_R1__C5_Options_P1,
340                  "",
341                  "");
342        I_Method2(osgDB::ReaderWriter::ReadResult, readShaderImplementation, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
343                  Properties::NON_VIRTUAL,
344                  __ReaderWriter_ReadResult__readShaderImplementation__C5_std_string_R1__C5_Options_P1,
345                  "",
346                  "");
347        I_Method1(void, setWriteFileCallback, IN, osgDB::Registry::WriteFileCallback *, cb,
348                  Properties::NON_VIRTUAL,
349                  __void__setWriteFileCallback__WriteFileCallback_P1,
350                  "Set the Registry callback to use in place of the default writeFile calls. ",
351                  "");
352        I_Method0(osgDB::Registry::WriteFileCallback *, getWriteFileCallback,
353                  Properties::NON_VIRTUAL,
354                  __WriteFileCallback_P1__getWriteFileCallback,
355                  "Get the writeFile callback. ",
356                  "");
357        I_Method0(const osgDB::Registry::WriteFileCallback *, getWriteFileCallback,
358                  Properties::NON_VIRTUAL,
359                  __C5_WriteFileCallback_P1__getWriteFileCallback,
360                  "Get the const writeFile callback. ",
361                  "");
362        I_Method3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
363                  Properties::NON_VIRTUAL,
364                  __ReaderWriter_WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1__C5_Options_P1,
365                  "",
366                  "");
367        I_Method3(osgDB::ReaderWriter::WriteResult, writeObjectImplementation, IN, const osg::Object &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
368                  Properties::NON_VIRTUAL,
369                  __ReaderWriter_WriteResult__writeObjectImplementation__C5_osg_Object_R1__C5_std_string_R1__C5_Options_P1,
370                  "",
371                  "");
372        I_Method3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
373                  Properties::NON_VIRTUAL,
374                  __ReaderWriter_WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1__C5_Options_P1,
375                  "",
376                  "");
377        I_Method3(osgDB::ReaderWriter::WriteResult, writeImageImplementation, IN, const osg::Image &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
378                  Properties::NON_VIRTUAL,
379                  __ReaderWriter_WriteResult__writeImageImplementation__C5_osg_Image_R1__C5_std_string_R1__C5_Options_P1,
380                  "",
381                  "");
382        I_Method3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
383                  Properties::NON_VIRTUAL,
384                  __ReaderWriter_WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1__C5_Options_P1,
385                  "",
386                  "");
387        I_Method3(osgDB::ReaderWriter::WriteResult, writeHeightFieldImplementation, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
388                  Properties::NON_VIRTUAL,
389                  __ReaderWriter_WriteResult__writeHeightFieldImplementation__C5_osg_HeightField_R1__C5_std_string_R1__C5_Options_P1,
390                  "",
391                  "");
392        I_Method3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, node, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
393                  Properties::NON_VIRTUAL,
394                  __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1__C5_Options_P1,
395                  "",
396                  "");
397        I_Method3(osgDB::ReaderWriter::WriteResult, writeNodeImplementation, IN, const osg::Node &, node, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
398                  Properties::NON_VIRTUAL,
399                  __ReaderWriter_WriteResult__writeNodeImplementation__C5_osg_Node_R1__C5_std_string_R1__C5_Options_P1,
400                  "",
401                  "");
402        I_Method3(osgDB::ReaderWriter::WriteResult, writeShader, IN, const osg::Shader &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
403                  Properties::NON_VIRTUAL,
404                  __ReaderWriter_WriteResult__writeShader__C5_osg_Shader_R1__C5_std_string_R1__C5_Options_P1,
405                  "",
406                  "");
407        I_Method3(osgDB::ReaderWriter::WriteResult, writeShaderImplementation, IN, const osg::Shader &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options,
408                  Properties::NON_VIRTUAL,
409                  __ReaderWriter_WriteResult__writeShaderImplementation__C5_osg_Shader_R1__C5_std_string_R1__C5_Options_P1,
410                  "",
411                  "");
412        I_Method2(void, _buildKdTreeIfRequired, IN, osgDB::ReaderWriter::ReadResult &, result, IN, const osgDB::Options *, options,
413                  Properties::NON_VIRTUAL,
414                  __void___buildKdTreeIfRequired__ReaderWriter_ReadResult_R1__C5_Options_P1,
415                  "",
416                  "");
417        I_Method1(void, setFileLocationCallback, IN, osgDB::Registry::FileLocationCallback *, cb,
418                  Properties::NON_VIRTUAL,
419                  __void__setFileLocationCallback__FileLocationCallback_P1,
420                  "Set the callback to use inform the DatabasePager whether a file is located on local or remote file system. ",
421                  "");
422        I_Method0(osgDB::Registry::FileLocationCallback *, getFileLocationCallback,
423                  Properties::NON_VIRTUAL,
424                  __FileLocationCallback_P1__getFileLocationCallback,
425                  "Get the callback to use inform the DatabasePager whether a file is located on local or remote file system. ",
426                  "");
427        I_Method1(void, setBuildKdTreesHint, IN, osgDB::Options::BuildKdTreesHint, hint,
428                  Properties::NON_VIRTUAL,
429                  __void__setBuildKdTreesHint__Options_BuildKdTreesHint,
430                  "Set whether the KdTrees should be built for geometry in the loader model. ",
431                  "");
432        I_Method0(osgDB::Options::BuildKdTreesHint, getBuildKdTreesHint,
433                  Properties::NON_VIRTUAL,
434                  __Options_BuildKdTreesHint__getBuildKdTreesHint,
435                  "Get whether the KdTrees should be built for geometry in the loader model. ",
436                  "");
437        I_Method1(void, setKdTreeBuilder, IN, osg::KdTreeBuilder *, builder,
438                  Properties::NON_VIRTUAL,
439                  __void__setKdTreeBuilder__osg_KdTreeBuilder_P1,
440                  "Set the KdTreeBuilder visitor that is used to build KdTree on loaded models. ",
441                  "");
442        I_Method0(osg::KdTreeBuilder *, getKdTreeBuilder,
443                  Properties::NON_VIRTUAL,
444                  __osg_KdTreeBuilder_P1__getKdTreeBuilder,
445                  "Get the KdTreeBuilder visitor that is used to build KdTree on loaded models. ",
446                  "");
447        I_Method1(void, setFileCache, IN, osgDB::FileCache *, fileCache,
448                  Properties::NON_VIRTUAL,
449                  __void__setFileCache__FileCache_P1,
450                  "Set the FileCache that is used to manage local storage of files downloaded from the internet. ",
451                  "");
452        I_Method0(osgDB::FileCache *, getFileCache,
453                  Properties::NON_VIRTUAL,
454                  __FileCache_P1__getFileCache,
455                  "Get the FileCache that is used to manage local storage of files downloaded from the internet. ",
456                  "");
457        I_Method0(const osgDB::FileCache *, getFileCache,
458                  Properties::NON_VIRTUAL,
459                  __C5_FileCache_P1__getFileCache,
460                  "Get the const FileCache that is used to manage local storage of files downloaded from the internet. ",
461                  "");
462        I_Method1(void, setAuthenticationMap, IN, osgDB::AuthenticationMap *, authenticationMap,
463                  Properties::NON_VIRTUAL,
464                  __void__setAuthenticationMap__AuthenticationMap_P1,
465                  "Set the password map to be used by plugins when access files from secure locations. ",
466                  "");
467        I_Method0(osgDB::AuthenticationMap *, getAuthenticationMap,
468                  Properties::NON_VIRTUAL,
469                  __AuthenticationMap_P1__getAuthenticationMap,
470                  "Get the password map to be used by plugins when access files from secure locations. ",
471                  "");
472        I_Method0(const osgDB::AuthenticationMap *, getAuthenticationMap,
473                  Properties::NON_VIRTUAL,
474                  __C5_AuthenticationMap_P1__getAuthenticationMap,
475                  "Get the password map to be used by plugins when access files from secure locations. ",
476                  "");
477        I_Method1(void, setCreateNodeFromImage, IN, bool, flag,
478                  Properties::NON_VIRTUAL,
479                  __void__setCreateNodeFromImage__bool,
480                  "",
481                  "");
482        I_Method0(bool, getCreateNodeFromImage,
483                  Properties::NON_VIRTUAL,
484                  __bool__getCreateNodeFromImage,
485                  "",
486                  "");
487        I_Method1(void, setOptions, IN, osgDB::Options *, opt,
488                  Properties::NON_VIRTUAL,
489                  __void__setOptions__Options_P1,
490                  "",
491                  "");
492        I_Method0(osgDB::Options *, getOptions,
493                  Properties::NON_VIRTUAL,
494                  __Options_P1__getOptions,
495                  "",
496                  "");
497        I_Method0(const osgDB::Options *, getOptions,
498                  Properties::NON_VIRTUAL,
499                  __C5_Options_P1__getOptions,
500                  "",
501                  "");
502        I_Method0(void, initFilePathLists,
503                  Properties::NON_VIRTUAL,
504                  __void__initFilePathLists,
505                  "initialize both the Data and Library FilePaths, by default called by the constructor, so it should only be required if you want to force the re-reading of environmental variables. ",
506                  "");
507        I_Method0(void, initDataFilePathList,
508                  Properties::NON_VIRTUAL,
509                  __void__initDataFilePathList,
510                  "initialize the Data FilePath by reading the OSG_FILE_PATH environmental variable. ",
511                  "");
512        I_Method1(void, setDataFilePathList, IN, const osgDB::FilePathList &, filepath,
513                  Properties::NON_VIRTUAL,
514                  __void__setDataFilePathList__C5_FilePathList_R1,
515                  "Set the data file path using a list of paths stored in a FilePath, which is used when search for data files. ",
516                  "");
517        I_Method1(void, setDataFilePathList, IN, const std::string &, paths,
518                  Properties::NON_VIRTUAL,
519                  __void__setDataFilePathList__C5_std_string_R1,
520                  "Set the data file path using a single string delimited either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. ",
521                  "");
522        I_Method0(osgDB::FilePathList &, getDataFilePathList,
523                  Properties::NON_VIRTUAL,
524                  __FilePathList_R1__getDataFilePathList,
525                  "get the data file path which is used when search for data files. ",
526                  "");
527        I_Method0(const osgDB::FilePathList &, getDataFilePathList,
528                  Properties::NON_VIRTUAL,
529                  __C5_FilePathList_R1__getDataFilePathList,
530                  "get the const data file path which is used when search for data files. ",
531                  "");
532        I_Method0(void, initLibraryFilePathList,
533                  Properties::NON_VIRTUAL,
534                  __void__initLibraryFilePathList,
535                  "initialize the Library FilePath by reading the OSG_LIBRARY_PATH and the appropriate system environmental variables ",
536                  "");
537        I_Method1(void, setLibraryFilePathList, IN, const osgDB::FilePathList &, filepath,
538                  Properties::NON_VIRTUAL,
539                  __void__setLibraryFilePathList__C5_FilePathList_R1,
540                  "Set the library file path using a list of paths stored in a FilePath, which is used when search for data files. ",
541                  "");
542        I_Method1(void, setLibraryFilePathList, IN, const std::string &, paths,
543                  Properties::NON_VIRTUAL,
544                  __void__setLibraryFilePathList__C5_std_string_R1,
545                  "Set the library file path using a single string delimited either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. ",
546                  "");
547        I_Method0(osgDB::FilePathList &, getLibraryFilePathList,
548                  Properties::NON_VIRTUAL,
549                  __FilePathList_R1__getLibraryFilePathList,
550                  "get the library file path which is used when search for library (dso/dll's) files. ",
551                  "");
552        I_Method0(const osgDB::FilePathList &, getLibraryFilePathList,
553                  Properties::NON_VIRTUAL,
554                  __C5_FilePathList_R1__getLibraryFilePathList,
555                  "get the const library file path which is used when search for library (dso/dll's) files. ",
556                  "");
557        I_Method1(void, updateTimeStampOfObjectsInCacheWithExternalReferences, IN, double, currentTime,
558                  Properties::NON_VIRTUAL,
559                  __void__updateTimeStampOfObjectsInCacheWithExternalReferences__double,
560                  "For each object in the cache which has an reference count greater than 1 (and therefore referenced by elsewhere in the application) set the time stamp for that object in the cache to specified time. ",
561                  "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required. Time value is time in seconds. ");
562        I_Method1(void, removeExpiredObjectsInCache, IN, double, expiryTime,
563                  Properties::NON_VIRTUAL,
564                  __void__removeExpiredObjectsInCache__double,
565                  "Removed object in the cache which have a time stamp at or before the specified expiry time. ",
566                  "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required, and called after the a called after the call to updateTimeStampOfObjectsInCacheWithExternalReferences(currentTime). Note, the currentTime is not the expiryTime, one would typically set the expiry time to a fixed amount of time before currentTime, such as expiryTime = currentTime-10.0. Time value is time in seconds. ");
567        I_Method0(void, clearObjectCache,
568                  Properties::NON_VIRTUAL,
569                  __void__clearObjectCache,
570                  "Remove all objects in the cache regardless of having external references or expiry times. ",
571                  "");
572        I_MethodWithDefaults3(void, addEntryToObjectCache, IN, const std::string &, filename, , IN, osg::Object *, object, , IN, double, timestamp, 0.0,
573                              Properties::NON_VIRTUAL,
574                              __void__addEntryToObjectCache__C5_std_string_R1__osg_Object_P1__double,
575                              "Add a filename,object,timestamp triple to the Registry::ObjectCache. ",
576                              "");
577        I_Method1(osg::Object *, getFromObjectCache, IN, const std::string &, fileName,
578                  Properties::NON_VIRTUAL,
579                  __osg_Object_P1__getFromObjectCache__C5_std_string_R1,
580                  "Get an object from the object cache. ",
581                  "");
582        I_Method2(void, addToArchiveCache, IN, const std::string &, fileName, IN, osgDB::Archive *, archive,
583                  Properties::NON_VIRTUAL,
584                  __void__addToArchiveCache__C5_std_string_R1__osgDB_Archive_P1,
585                  "Add archive to archive cache so that future calls reference this archive. ",
586                  "");
587        I_Method1(void, removeFromArchiveCache, IN, const std::string &, fileName,
588                  Properties::NON_VIRTUAL,
589                  __void__removeFromArchiveCache__C5_std_string_R1,
590                  "Remove archive from cache. ",
591                  "");
592        I_Method1(osgDB::Archive *, getFromArchiveCache, IN, const std::string &, fileName,
593                  Properties::NON_VIRTUAL,
594                  __osgDB_Archive_P1__getFromArchiveCache__C5_std_string_R1,
595                  "Get an archive from the archive cache. ",
596                  "");
597        I_Method0(void, clearArchiveCache,
598                  Properties::NON_VIRTUAL,
599                  __void__clearArchiveCache,
600                  "Remove all archives from the archive cache. ",
601                  "");
602        I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0,
603                              Properties::NON_VIRTUAL,
604                              __void__releaseGLObjects__osg_State_P1,
605                              "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ",
606                              "Otherwise, releases OpenGL objexts for all graphics contexts. ");
607        I_Method1(osgDB::DynamicLibrary *, getLibrary, IN, const std::string &, fileName,
608                  Properties::NON_VIRTUAL,
609                  __DynamicLibrary_P1__getLibrary__C5_std_string_R1,
610                  "get the attached library with specified name. ",
611                  "");
612        I_Method1(void, setSharedStateManager, IN, osgDB::SharedStateManager *, SharedStateManager,
613                  Properties::NON_VIRTUAL,
614                  __void__setSharedStateManager__SharedStateManager_P1,
615                  "Set the SharedStateManager. ",
616                  "");
617        I_Method0(osgDB::SharedStateManager *, getOrCreateSharedStateManager,
618                  Properties::NON_VIRTUAL,
619                  __SharedStateManager_P1__getOrCreateSharedStateManager,
620                  "Get the SharedStateManager, creating one if one is not already created. ",
621                  "");
622        I_Method0(osgDB::SharedStateManager *, getSharedStateManager,
623                  Properties::NON_VIRTUAL,
624                  __SharedStateManager_P1__getSharedStateManager,
625                  "Get the SharedStateManager. ",
626                  "Return 0 if no SharedStateManager has been assigned. ");
627        I_Method1(void, addArchiveExtension, IN, const std::string, ext,
628                  Properties::NON_VIRTUAL,
629                  __void__addArchiveExtension__C5_std_string,
630                  "Add an Archive extension. ",
631                  "");
632        I_Method1(void, registerProtocol, IN, const std::string &, protocol,
633                  Properties::NON_VIRTUAL,
634                  __void__registerProtocol__C5_std_string_R1,
635                  "registers a protocol ",
636                  "");
637        I_Method1(bool, isProtocolRegistered, IN, const std::string &, protocol,
638                  Properties::NON_VIRTUAL,
639                  __bool__isProtocolRegistered__C5_std_string_R1,
640                  "returns true, if named protocol is registered ",
641                  "");
642        I_ProtectedConstructor0(____Registry,
643                                "constructor is private, as its a singleton, preventing construction other than via the instance() method and therefore ensuring only one copy is ever constructed ",
644                                "");
645
646
647
648        I_ProtectedMethod0(void, destruct,
649                           Properties::NON_VIRTUAL,
650                           Properties::NON_CONST,
651                           __void__destruct,
652                           "",
653                           "");
654        I_ProtectedMethod1(osgDB::ReaderWriter::ReadResult, read, IN, const osgDB::Registry::ReadFunctor &, readFunctor,
655                           Properties::NON_VIRTUAL,
656                           Properties::NON_CONST,
657                           __ReaderWriter_ReadResult__read__C5_ReadFunctor_R1,
658                           "",
659                           "");
660        I_ProtectedMethod2(osgDB::ReaderWriter::ReadResult, readImplementation, IN, const osgDB::Registry::ReadFunctor &, readFunctor, IN, osgDB::Options::CacheHintOptions, cacheHint,
661                           Properties::NON_VIRTUAL,
662                           Properties::NON_CONST,
663                           __ReaderWriter_ReadResult__readImplementation__C5_ReadFunctor_R1__Options_CacheHintOptions,
664                           "",
665                           "");
666        I_SimpleProperty(osgDB::AuthenticationMap *, AuthenticationMap,
667                         __AuthenticationMap_P1__getAuthenticationMap,
668                         __void__setAuthenticationMap__AuthenticationMap_P1);
669        I_SimpleProperty(osgDB::Options::BuildKdTreesHint, BuildKdTreesHint,
670                         __Options_BuildKdTreesHint__getBuildKdTreesHint,
671                         __void__setBuildKdTreesHint__Options_BuildKdTreesHint);
672        I_SimpleProperty(bool, CreateNodeFromImage,
673                         __bool__getCreateNodeFromImage,
674                         __void__setCreateNodeFromImage__bool);
675        I_SimpleProperty(const osgDB::FilePathList &, DataFilePathList,
676                         __C5_FilePathList_R1__getDataFilePathList,
677                         __void__setDataFilePathList__C5_FilePathList_R1);
678        I_SimpleProperty(osgDB::FileCache *, FileCache,
679                         __FileCache_P1__getFileCache,
680                         __void__setFileCache__FileCache_P1);
681        I_SimpleProperty(osgDB::Registry::FileLocationCallback *, FileLocationCallback,
682                         __FileLocationCallback_P1__getFileLocationCallback,
683                         __void__setFileLocationCallback__FileLocationCallback_P1);
684        I_SimpleProperty(osgDB::Registry::FindFileCallback *, FindFileCallback,
685                         __FindFileCallback_P1__getFindFileCallback,
686                         __void__setFindFileCallback__FindFileCallback_P1);
687        I_SimpleProperty(osg::KdTreeBuilder *, KdTreeBuilder,
688                         __osg_KdTreeBuilder_P1__getKdTreeBuilder,
689                         __void__setKdTreeBuilder__osg_KdTreeBuilder_P1);
690        I_SimpleProperty(const osgDB::FilePathList &, LibraryFilePathList,
691                         __C5_FilePathList_R1__getLibraryFilePathList,
692                         __void__setLibraryFilePathList__C5_FilePathList_R1);
693        I_SimpleProperty(osgDB::Options *, Options,
694                         __Options_P1__getOptions,
695                         __void__setOptions__Options_P1);
696        I_SimpleProperty(osgDB::Registry::ReadFileCallback *, ReadFileCallback,
697                         __ReadFileCallback_P1__getReadFileCallback,
698                         __void__setReadFileCallback__ReadFileCallback_P1);
699        I_SimpleProperty(osgDB::Registry::ReaderWriterList &, ReaderWriterList,
700                         __ReaderWriterList_R1__getReaderWriterList,
701                         0);
702        I_SimpleProperty(osgDB::SharedStateManager *, SharedStateManager,
703                         __SharedStateManager_P1__getSharedStateManager,
704                         __void__setSharedStateManager__SharedStateManager_P1);
705        I_SimpleProperty(osgDB::Registry::WriteFileCallback *, WriteFileCallback,
706                         __WriteFileCallback_P1__getWriteFileCallback,
707                         __void__setWriteFileCallback__WriteFileCallback_P1);
708END_REFLECTOR
709
710BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Registry::ReadFunctor)
711        I_DeclaringFile("osgDB/Registry");
712        I_Constructor2(IN, const std::string &, filename, IN, const osgDB::Options *, options,
713                       ____ReadFunctor__C5_std_string_R1__C5_Options_P1,
714                       "",
715                       "");
716        I_Method1(osgDB::ReaderWriter::ReadResult, doRead, IN, osgDB::ReaderWriter &, rw,
717                  Properties::PURE_VIRTUAL,
718                  __ReaderWriter_ReadResult__doRead__ReaderWriter_R1,
719                  "",
720                  "");
721        I_Method1(bool, isValid, IN, osgDB::ReaderWriter::ReadResult &, readResult,
722                  Properties::PURE_VIRTUAL,
723                  __bool__isValid__ReaderWriter_ReadResult_R1,
724                  "",
725                  "");
726        I_Method1(bool, isValid, IN, osg::Object *, object,
727                  Properties::PURE_VIRTUAL,
728                  __bool__isValid__osg_Object_P1,
729                  "",
730                  "");
731        I_PublicMemberProperty(std::string, _filename);
732END_REFLECTOR
733
734BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgDB::ReaderWriter >)
735        I_DeclaringFile("osg/ref_ptr");
736        I_Constructor0(____ref_ptr,
737                       "",
738                       "");
739        I_Constructor1(IN, osgDB::ReaderWriter *, ptr,
740                       Properties::NON_EXPLICIT,
741                       ____ref_ptr__T_P1,
742                       "",
743                       "");
744        I_Constructor1(IN, const osg::ref_ptr< osgDB::ReaderWriter > &, rp,
745                       Properties::NON_EXPLICIT,
746                       ____ref_ptr__C5_ref_ptr_R1,
747                       "",
748                       "");
749        I_Method0(osgDB::ReaderWriter *, get,
750                  Properties::NON_VIRTUAL,
751                  __T_P1__get,
752                  "",
753                  "");
754        I_Method0(bool, valid,
755                  Properties::NON_VIRTUAL,
756                  __bool__valid,
757                  "",
758                  "");
759        I_Method0(osgDB::ReaderWriter *, release,
760                  Properties::NON_VIRTUAL,
761                  __T_P1__release,
762                  "",
763                  "");
764        I_Method1(void, swap, IN, osg::ref_ptr< osgDB::ReaderWriter > &, rp,
765                  Properties::NON_VIRTUAL,
766                  __void__swap__ref_ptr_R1,
767                  "",
768                  "");
769        I_SimpleProperty(osgDB::ReaderWriter *, ,
770                         __T_P1__get,
771                         0);
772END_REFLECTOR
773
774STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgDB::ReaderWriter > >)
Note: See TracBrowser for help on using the browser.