root/OpenSceneGraph/trunk/src/osgWrappers/osg/PagedLOD.cpp @ 10174

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

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

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

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

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

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1// ***************************************************************************
2//
3//   Generated automatically by genwrapper.
4//   Please DO NOT EDIT this file!
5//
6// ***************************************************************************
7
8#include <osgIntrospection/ReflectionMacros>
9#include <osgIntrospection/TypedMethodInfo>
10#include <osgIntrospection/StaticMethodInfo>
11#include <osgIntrospection/Attributes>
12
13#include <osg/CopyOp>
14#include <osg/Group>
15#include <osg/Node>
16#include <osg/NodeVisitor>
17#include <osg/Object>
18#include <osg/PagedLOD>
19#include <osg/Referenced>
20
21// Must undefine IN and OUT macros defined in Windows headers
22#ifdef IN
23#undef IN
24#endif
25#ifdef OUT
26#undef OUT
27#endif
28
29TYPE_NAME_ALIAS(std::vector< osg::PagedLOD::PerRangeData >, osg::PagedLOD::PerRangeDataList)
30
31BEGIN_OBJECT_REFLECTOR(osg::PagedLOD)
32        I_DeclaringFile("osg/PagedLOD");
33        I_BaseType(osg::LOD);
34        I_Constructor0(____PagedLOD,
35                       "",
36                       "");
37        I_ConstructorWithDefaults2(IN, const osg::PagedLOD &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
38                                   ____PagedLOD__C5_PagedLOD_R1__C5_CopyOp_R1,
39                                   "Copy constructor using CopyOp to manage deep vs shallow copy. ",
40                                   "");
41        I_Method0(osg::Object *, cloneType,
42                  Properties::VIRTUAL,
43                  __osg_Object_P1__cloneType,
44                  "clone an object of the same type as the node. ",
45                  "");
46        I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop,
47                  Properties::VIRTUAL,
48                  __osg_Object_P1__clone__C5_osg_CopyOp_R1,
49                  "return a clone of a node, with Object* return type. ",
50                  "");
51        I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
52                  Properties::VIRTUAL,
53                  __bool__isSameKindAs__C5_osg_Object_P1,
54                  "return true if this and obj are of the same kind of object. ",
55                  "");
56        I_Method0(const char *, className,
57                  Properties::VIRTUAL,
58                  __C5_char_P1__className,
59                  "return the name of the node's class type. ",
60                  "");
61        I_Method0(const char *, libraryName,
62                  Properties::VIRTUAL,
63                  __C5_char_P1__libraryName,
64                  "return the name of the node's library. ",
65                  "");
66        I_Method1(void, accept, IN, osg::NodeVisitor &, nv,
67                  Properties::VIRTUAL,
68                  __void__accept__osg_NodeVisitor_R1,
69                  "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ",
70                  "");
71        I_Method1(void, traverse, IN, osg::NodeVisitor &, x,
72                  Properties::VIRTUAL,
73                  __void__traverse__NodeVisitor_R1,
74                  "Traverse downwards : calls children's accept method with NodeVisitor. ",
75                  "");
76        I_Method1(bool, addChild, IN, osg::Node *, child,
77                  Properties::VIRTUAL,
78                  __bool__addChild__Node_P1,
79                  "Add Node to Group. ",
80                  "If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes. ");
81        I_Method3(bool, addChild, IN, osg::Node *, child, IN, float, min, IN, float, max,
82                  Properties::VIRTUAL,
83                  __bool__addChild__Node_P1__float__float,
84                  "",
85                  "");
86        I_MethodWithDefaults6(bool, addChild, IN, osg::Node *, child, , IN, float, min, , IN, float, max, , IN, const std::string &, filename, , IN, float, priorityOffset, 0.0f, IN, float, priorityScale, 1.0f,
87                              Properties::VIRTUAL,
88                              __bool__addChild__Node_P1__float__float__C5_std_string_R1__float__float,
89                              "",
90                              "");
91        I_MethodWithDefaults2(bool, removeChildren, IN, unsigned int, pos, , IN, unsigned int, numChildrenToRemove, 1,
92                              Properties::VIRTUAL,
93                              __bool__removeChildren__unsigned_int__unsigned_int,
94                              "Remove children from Group. ",
95                              "Note, must be override by subclasses of Group which add per child attributes. ");
96        I_Method1(void, setDatabaseOptions, IN, osg::Referenced *, options,
97                  Properties::NON_VIRTUAL,
98                  __void__setDatabaseOptions__osg_Referenced_P1,
99                  "Set the optional database osgDB::Options object to use when loaded children. ",
100                  "");
101        I_Method0(osg::Referenced *, getDatabaseOptions,
102                  Properties::NON_VIRTUAL,
103                  __osg_Referenced_P1__getDatabaseOptions,
104                  "Get the optional database osgDB::Options object used when loaded children. ",
105                  "");
106        I_Method0(const osg::Referenced *, getDatabaseOptions,
107                  Properties::NON_VIRTUAL,
108                  __C5_osg_Referenced_P1__getDatabaseOptions,
109                  "Get the optional database osgDB::Options object used when loaded children. ",
110                  "");
111        I_Method1(void, setDatabasePath, IN, const std::string &, path,
112                  Properties::NON_VIRTUAL,
113                  __void__setDatabasePath__C5_std_string_R1,
114                  "Set the database path to prepend to children's filenames. ",
115                  "");
116        I_Method0(const std::string &, getDatabasePath,
117                  Properties::NON_VIRTUAL,
118                  __C5_std_string_R1__getDatabasePath,
119                  "Get the database path used to prepend to children's filenames. ",
120                  "");
121        I_Method2(void, setFileName, IN, unsigned int, childNo, IN, const std::string &, filename,
122                  Properties::NON_VIRTUAL,
123                  __void__setFileName__unsigned_int__C5_std_string_R1,
124                  "",
125                  "");
126        I_Method1(const std::string &, getFileName, IN, unsigned int, childNo,
127                  Properties::NON_VIRTUAL,
128                  __C5_std_string_R1__getFileName__unsigned_int,
129                  "",
130                  "");
131        I_Method0(unsigned int, getNumFileNames,
132                  Properties::NON_VIRTUAL,
133                  __unsigned_int__getNumFileNames,
134                  "",
135                  "");
136        I_Method2(void, setPriorityOffset, IN, unsigned int, childNo, IN, float, priorityOffset,
137                  Properties::NON_VIRTUAL,
138                  __void__setPriorityOffset__unsigned_int__float,
139                  "",
140                  "");
141        I_Method1(float, getPriorityOffset, IN, unsigned int, childNo,
142                  Properties::NON_VIRTUAL,
143                  __float__getPriorityOffset__unsigned_int,
144                  "",
145                  "");
146        I_Method0(unsigned int, getNumPriorityOffsets,
147                  Properties::NON_VIRTUAL,
148                  __unsigned_int__getNumPriorityOffsets,
149                  "",
150                  "");
151        I_Method2(void, setPriorityScale, IN, unsigned int, childNo, IN, float, priorityScale,
152                  Properties::NON_VIRTUAL,
153                  __void__setPriorityScale__unsigned_int__float,
154                  "",
155                  "");
156        I_Method1(float, getPriorityScale, IN, unsigned int, childNo,
157                  Properties::NON_VIRTUAL,
158                  __float__getPriorityScale__unsigned_int,
159                  "",
160                  "");
161        I_Method0(unsigned int, getNumPriorityScales,
162                  Properties::NON_VIRTUAL,
163                  __unsigned_int__getNumPriorityScales,
164                  "",
165                  "");
166        I_Method2(void, setTimeStamp, IN, unsigned int, childNo, IN, double, timeStamp,
167                  Properties::NON_VIRTUAL,
168                  __void__setTimeStamp__unsigned_int__double,
169                  "",
170                  "");
171        I_Method1(double, getTimeStamp, IN, unsigned int, childNo,
172                  Properties::NON_VIRTUAL,
173                  __double__getTimeStamp__unsigned_int,
174                  "",
175                  "");
176        I_Method0(unsigned int, getNumTimeStamps,
177                  Properties::NON_VIRTUAL,
178                  __unsigned_int__getNumTimeStamps,
179                  "",
180                  "");
181        I_Method2(void, setFrameNumber, IN, unsigned int, childNo, IN, int, frameNumber,
182                  Properties::NON_VIRTUAL,
183                  __void__setFrameNumber__unsigned_int__int,
184                  "",
185                  "");
186        I_Method1(double, getFrameNumber, IN, unsigned int, childNo,
187                  Properties::NON_VIRTUAL,
188                  __double__getFrameNumber__unsigned_int,
189                  "",
190                  "");
191        I_Method0(unsigned int, getNumFrameNumbers,
192                  Properties::NON_VIRTUAL,
193                  __unsigned_int__getNumFrameNumbers,
194                  "",
195                  "");
196        I_Method1(osg::ref_ptr< osg::Referenced > &, getDatabaseRequest, IN, unsigned int, childNo,
197                  Properties::NON_VIRTUAL,
198                  __osg_ref_ptrT1_osg_Referenced__R1__getDatabaseRequest__unsigned_int,
199                  "Return the DatabaseRequest object used by the DatabasePager to keep track of file load requests being carried on behalf of the DatabasePager. ",
200                  "Note, in normal OSG usage you should not set this value yourself, as this will be managed by the osgDB::DatabasePager. ");
201        I_Method1(const osg::ref_ptr< osg::Referenced > &, getDatabaseRequest, IN, unsigned int, childNo,
202                  Properties::NON_VIRTUAL,
203                  __C5_osg_ref_ptrT1_osg_Referenced__R1__getDatabaseRequest__unsigned_int,
204                  "Return the const DatabaseRequest object. ",
205                  "");
206        I_Method1(void, setFrameNumberOfLastTraversal, IN, int, frameNumber,
207                  Properties::NON_VIRTUAL,
208                  __void__setFrameNumberOfLastTraversal__int,
209                  "Set the frame number of the last time that this PageLOD node was traversed. ",
210                  "Note, this frame number is automatically set by the traverse() method for all traversals (update, cull etc.). ");
211        I_Method0(int, getFrameNumberOfLastTraversal,
212                  Properties::NON_VIRTUAL,
213                  __int__getFrameNumberOfLastTraversal,
214                  "Get the frame number of the last time that this PageLOD node was traversed. ",
215                  "");
216        I_Method1(void, setNumChildrenThatCannotBeExpired, IN, unsigned int, num,
217                  Properties::NON_VIRTUAL,
218                  __void__setNumChildrenThatCannotBeExpired__unsigned_int,
219                  "Set the number of children that the PagedLOD must keep around, even if they are older than their expiry time. ",
220                  "");
221        I_Method0(unsigned int, getNumChildrenThatCannotBeExpired,
222                  Properties::NON_VIRTUAL,
223                  __unsigned_int__getNumChildrenThatCannotBeExpired,
224                  "Get the number of children that the PagedLOD must keep around, even if they are older than their expiry time. ",
225                  "");
226        I_Method3(bool, removeExpiredChildren, IN, double, expiryTime, IN, int, expiryFrame, IN, osg::NodeList &, removedChildren,
227                  Properties::VIRTUAL,
228                  __bool__removeExpiredChildren__double__int__NodeList_R1,
229                  "Remove the children from the PagedLOD which haven't been visited since specified expiry time and expiry frame number. ",
230                  "The removed children are added to the removeChildren list passed into the method, this allows the children to be deleted later at the caller's discretion. Return true if children are removed, false otherwise. ");
231        I_Method2(bool, releaseGLObjectsOnExpiredChildren, IN, double, releaseTime, IN, int, releaseFrame,
232                  Properties::VIRTUAL,
233                  __bool__releaseGLObjectsOnExpiredChildren__double__int,
234                  "Release the GL Objects of the children from the PagedLOD which haven't been visited since specified expiry time and expiry frame number. ",
235                  "Return true if any children have release called upon them, false otherwise. ");
236        I_ProtectedMethod1(void, expandPerRangeDataTo, IN, unsigned int, pos,
237                           Properties::NON_VIRTUAL,
238                           Properties::NON_CONST,
239                           __void__expandPerRangeDataTo__unsigned_int,
240                           "",
241                           "");
242        I_SimpleProperty(osg::Referenced *, DatabaseOptions,
243                         __osg_Referenced_P1__getDatabaseOptions,
244                         __void__setDatabaseOptions__osg_Referenced_P1);
245        I_SimpleProperty(const std::string &, DatabasePath,
246                         __C5_std_string_R1__getDatabasePath,
247                         __void__setDatabasePath__C5_std_string_R1);
248        I_ArrayProperty(const std::string &, FileName,
249                        __C5_std_string_R1__getFileName__unsigned_int,
250                        __void__setFileName__unsigned_int__C5_std_string_R1,
251                        __unsigned_int__getNumFileNames,
252                        0,
253                        0,
254                        0);
255        I_ArrayProperty(double, FrameNumber,
256                        __double__getFrameNumber__unsigned_int,
257                        0,
258                        __unsigned_int__getNumFrameNumbers,
259                        0,
260                        0,
261                        0);
262        I_SimpleProperty(int, FrameNumberOfLastTraversal,
263                         __int__getFrameNumberOfLastTraversal,
264                         __void__setFrameNumberOfLastTraversal__int);
265        I_SimpleProperty(unsigned int, NumChildrenThatCannotBeExpired,
266                         0,
267                         __void__setNumChildrenThatCannotBeExpired__unsigned_int);
268        I_ArrayProperty(float, PriorityOffset,
269                        __float__getPriorityOffset__unsigned_int,
270                        __void__setPriorityOffset__unsigned_int__float,
271                        __unsigned_int__getNumPriorityOffsets,
272                        0,
273                        0,
274                        0);
275        I_ArrayProperty(float, PriorityScale,
276                        __float__getPriorityScale__unsigned_int,
277                        __void__setPriorityScale__unsigned_int__float,
278                        __unsigned_int__getNumPriorityScales,
279                        0,
280                        0,
281                        0);
282        I_ArrayProperty(double, TimeStamp,
283                        __double__getTimeStamp__unsigned_int,
284                        __void__setTimeStamp__unsigned_int__double,
285                        __unsigned_int__getNumTimeStamps,
286                        0,
287                        0,
288                        0);
289END_REFLECTOR
290
291BEGIN_VALUE_REFLECTOR(osg::PagedLOD::PerRangeData)
292        I_DeclaringFile("osg/PagedLOD");
293        I_Constructor0(____PerRangeData,
294                       "",
295                       "");
296        I_Constructor1(IN, const osg::PagedLOD::PerRangeData &, prd,
297                       Properties::NON_EXPLICIT,
298                       ____PerRangeData__C5_PerRangeData_R1,
299                       "",
300                       "");
301        I_PublicMemberProperty(std::string, _filename);
302        I_PublicMemberProperty(float, _priorityOffset);
303        I_PublicMemberProperty(float, _priorityScale);
304        I_PublicMemberProperty(double, _timeStamp);
305        I_PublicMemberProperty(int, _frameNumber);
306        I_PublicMemberProperty(int, _frameNumberOfLastReleaseGLObjects);
307        I_PublicMemberProperty(osg::ref_ptr< osg::Referenced >, _databaseRequest);
308END_REFLECTOR
309
310STD_VECTOR_REFLECTOR(std::vector< osg::PagedLOD::PerRangeData >)
Note: See TracBrowser for help on using the browser.