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

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

Moved ReadFile/WriteFile/FindFile/FileLocationCallbacks? from include/osg/Options into their own Callbacks header/source file.

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