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

Revision 10171, 38.7 kB (checked in by robert, 6 years ago)

Refactored the Registry::ReadFileCallback?, WriteFileCallback? and ReaderWriter::Options to they are now defined in their own header and in the osgDB namespace.

Introduced a new FindFileCallback? to Registry to compliement the existing ReadFileCallback? and WriteFileCallback?.

Added support for assign Find, Read and WriteFileCallbacks? to osdDB::Options to enable plugins/applications to override the callbacks just for that
read/write call and any nested file operations

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