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

Revision 10007, 41.2 kB (checked in by robert, 6 years ago)

Updated wrappers

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