root/OpenSceneGraph/trunk/src/osgWrappers/introspection/osg/CullSettings.cpp @ 11164

Revision 11164, 16.7 kB (checked in by robert, 4 years ago)

Replaced use of unsigned int/enum mask combinations with int/enum mask combinations to avoid the need for casting enums to unsigned ints,
and to avoid associated warnings.

Update wrappers to reflect these changes.

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/CullSettings>
15#include <osg/Matrixd>
16#include <osg/Matrixf>
17#include <osg/Node>
18
19// Must undefine IN and OUT macros defined in Windows headers
20#ifdef IN
21#undef IN
22#endif
23#ifdef OUT
24#undef OUT
25#endif
26
27BEGIN_ENUM_REFLECTOR(osg::CullSettings::VariablesMask)
28        I_DeclaringFile("osg/CullSettings");
29        I_EnumLabel(osg::CullSettings::COMPUTE_NEAR_FAR_MODE);
30        I_EnumLabel(osg::CullSettings::CULLING_MODE);
31        I_EnumLabel(osg::CullSettings::LOD_SCALE);
32        I_EnumLabel(osg::CullSettings::SMALL_FEATURE_CULLING_PIXEL_SIZE);
33        I_EnumLabel(osg::CullSettings::CLAMP_PROJECTION_MATRIX_CALLBACK);
34        I_EnumLabel(osg::CullSettings::NEAR_FAR_RATIO);
35        I_EnumLabel(osg::CullSettings::IMPOSTOR_ACTIVE);
36        I_EnumLabel(osg::CullSettings::DEPTH_SORT_IMPOSTOR_SPRITES);
37        I_EnumLabel(osg::CullSettings::IMPOSTOR_PIXEL_ERROR_THRESHOLD);
38        I_EnumLabel(osg::CullSettings::NUM_FRAMES_TO_KEEP_IMPOSTORS_SPRITES);
39        I_EnumLabel(osg::CullSettings::CULL_MASK);
40        I_EnumLabel(osg::CullSettings::CULL_MASK_LEFT);
41        I_EnumLabel(osg::CullSettings::CULL_MASK_RIGHT);
42        I_EnumLabel(osg::CullSettings::CLEAR_COLOR);
43        I_EnumLabel(osg::CullSettings::CLEAR_MASK);
44        I_EnumLabel(osg::CullSettings::LIGHTING_MODE);
45        I_EnumLabel(osg::CullSettings::LIGHT);
46        I_EnumLabel(osg::CullSettings::DRAW_BUFFER);
47        I_EnumLabel(osg::CullSettings::READ_BUFFER);
48        I_EnumLabel(osg::CullSettings::NO_VARIABLES);
49        I_EnumLabel(osg::CullSettings::ALL_VARIABLES);
50END_REFLECTOR
51
52BEGIN_ENUM_REFLECTOR(osg::CullSettings::InheritanceMaskActionOnAttributeSetting)
53        I_DeclaringFile("osg/CullSettings");
54        I_EnumLabel(osg::CullSettings::DISABLE_ASSOCIATED_INHERITANCE_MASK_BIT);
55        I_EnumLabel(osg::CullSettings::DO_NOT_MODIFY_INHERITANCE_MASK);
56END_REFLECTOR
57
58BEGIN_ENUM_REFLECTOR(osg::CullSettings::ComputeNearFarMode)
59        I_DeclaringFile("osg/CullSettings");
60        I_EnumLabel(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);
61        I_EnumLabel(osg::CullSettings::COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES);
62        I_EnumLabel(osg::CullSettings::COMPUTE_NEAR_FAR_USING_PRIMITIVES);
63END_REFLECTOR
64
65BEGIN_ENUM_REFLECTOR(osg::CullSettings::CullingModeValues)
66        I_DeclaringFile("osg/CullSettings");
67        I_EnumLabel(osg::CullSettings::NO_CULLING);
68        I_EnumLabel(osg::CullSettings::VIEW_FRUSTUM_SIDES_CULLING);
69        I_EnumLabel(osg::CullSettings::NEAR_PLANE_CULLING);
70        I_EnumLabel(osg::CullSettings::FAR_PLANE_CULLING);
71        I_EnumLabel(osg::CullSettings::VIEW_FRUSTUM_CULLING);
72        I_EnumLabel(osg::CullSettings::SMALL_FEATURE_CULLING);
73        I_EnumLabel(osg::CullSettings::SHADOW_OCCLUSION_CULLING);
74        I_EnumLabel(osg::CullSettings::CLUSTER_CULLING);
75        I_EnumLabel(osg::CullSettings::DEFAULT_CULLING);
76        I_EnumLabel(osg::CullSettings::ENABLE_ALL_CULLING);
77END_REFLECTOR
78
79TYPE_NAME_ALIAS(int, osg::CullSettings::InheritanceMask)
80
81TYPE_NAME_ALIAS(int, osg::CullSettings::CullingMode)
82
83BEGIN_VALUE_REFLECTOR(osg::CullSettings)
84        I_DeclaringFile("osg/CullSettings");
85        I_Constructor0(____CullSettings,
86                       "",
87                       "");
88        I_Constructor1(IN, osg::ArgumentParser &, arguments,
89                       Properties::NON_EXPLICIT,
90                       ____CullSettings__ArgumentParser_R1,
91                       "",
92                       "");
93        I_Constructor1(IN, const osg::CullSettings &, cs,
94                       Properties::NON_EXPLICIT,
95                       ____CullSettings__C5_CullSettings_R1,
96                       "",
97                       "");
98        I_Method0(void, setDefaults,
99                  Properties::VIRTUAL,
100                  __void__setDefaults,
101                  "",
102                  "");
103        I_Method1(void, setInheritanceMask, IN, osg::CullSettings::InheritanceMask, mask,
104                  Properties::NON_VIRTUAL,
105                  __void__setInheritanceMask__InheritanceMask,
106                  "Set the inheritance mask used in inheritCullSettings to control which variables get overwritten by the passed in CullSettings object. ",
107                  "");
108        I_Method0(osg::CullSettings::InheritanceMask, getInheritanceMask,
109                  Properties::NON_VIRTUAL,
110                  __InheritanceMask__getInheritanceMask,
111                  "Get the inheritance mask used in inheritCullSettings to control which variables get overwritten by the passed in CullSettings object. ",
112                  "");
113        I_Method1(void, setCullSettings, IN, const osg::CullSettings &, settings,
114                  Properties::NON_VIRTUAL,
115                  __void__setCullSettings__C5_CullSettings_R1,
116                  "Set the local cull settings values from specified CullSettings object. ",
117                  "");
118        I_Method1(void, inheritCullSettings, IN, const osg::CullSettings &, settings,
119                  Properties::VIRTUAL,
120                  __void__inheritCullSettings__C5_CullSettings_R1,
121                  "Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask. ",
122                  "");
123        I_Method2(void, inheritCullSettings, IN, const osg::CullSettings &, settings, IN, unsigned int, inheritanceMask,
124                  Properties::VIRTUAL,
125                  __void__inheritCullSettings__C5_CullSettings_R1__unsigned_int,
126                  "Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask. ",
127                  "");
128        I_Method0(void, readEnvironmentalVariables,
129                  Properties::NON_VIRTUAL,
130                  __void__readEnvironmentalVariables,
131                  "read the environmental variables. ",
132                  "");
133        I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, arguments,
134                  Properties::NON_VIRTUAL,
135                  __void__readCommandLine__ArgumentParser_R1,
136                  "read the commandline arguments. ",
137                  "");
138        I_Method1(void, setInheritanceMaskActionOnAttributeSetting, IN, osg::CullSettings::InheritanceMaskActionOnAttributeSetting, action,
139                  Properties::NON_VIRTUAL,
140                  __void__setInheritanceMaskActionOnAttributeSetting__InheritanceMaskActionOnAttributeSetting,
141                  "",
142                  "");
143        I_Method0(osg::CullSettings::InheritanceMaskActionOnAttributeSetting, getInheritanceMaskActionOnAttributeSetting,
144                  Properties::NON_VIRTUAL,
145                  __InheritanceMaskActionOnAttributeSetting__getInheritanceMaskActionOnAttributeSetting,
146                  "",
147                  "");
148        I_Method1(void, applyMaskAction, IN, unsigned int, maskBit,
149                  Properties::NON_VIRTUAL,
150                  __void__applyMaskAction__unsigned_int,
151                  "Apply the action, specified by the InheritanceMaskActionOnAttributeSetting, to apply to the inheritance bit mask. ",
152                  "This method is called by CullSettings::set*() parameter methods to ensure that CullSettings inheritance mechanisms doesn't overwrite the local parameter settings. ");
153        I_Method1(void, setImpostorsActive, IN, bool, active,
154                  Properties::NON_VIRTUAL,
155                  __void__setImpostorsActive__bool,
156                  "Switch the creation of Impostors on or off. ",
157                  "Setting active to false forces the CullVisitor to use the Impostor LOD children for rendering. Setting active to true forces the CullVisitor to create the appropriate pre-rendering stages which render to the ImpostorSprite's texture. ");
158        I_Method0(bool, getImpostorsActive,
159                  Properties::NON_VIRTUAL,
160                  __bool__getImpostorsActive,
161                  "Get whether impostors are active or not. ",
162                  "");
163        I_Method1(void, setImpostorPixelErrorThreshold, IN, float, numPixels,
164                  Properties::NON_VIRTUAL,
165                  __void__setImpostorPixelErrorThreshold__float,
166                  "Set the impostor error threshold. ",
167                  "Used in calculation of whether impostors remain valid. ");
168        I_Method0(float, getImpostorPixelErrorThreshold,
169                  Properties::NON_VIRTUAL,
170                  __float__getImpostorPixelErrorThreshold,
171                  "Get the impostor error threshold. ",
172                  "");
173        I_Method1(void, setDepthSortImpostorSprites, IN, bool, doDepthSort,
174                  Properties::NON_VIRTUAL,
175                  __void__setDepthSortImpostorSprites__bool,
176                  "Set whether ImpostorSprite's should be placed in a depth sorted bin for rendering. ",
177                  "");
178        I_Method0(bool, getDepthSortImpostorSprites,
179                  Properties::NON_VIRTUAL,
180                  __bool__getDepthSortImpostorSprites,
181                  "Get whether ImpostorSprite's are depth sorted bin for rendering. ",
182                  "");
183        I_Method1(void, setNumberOfFrameToKeepImpostorSprites, IN, int, numFrames,
184                  Properties::NON_VIRTUAL,
185                  __void__setNumberOfFrameToKeepImpostorSprites__int,
186                  "Set the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled. ",
187                  "");
188        I_Method0(int, getNumberOfFrameToKeepImpostorSprites,
189                  Properties::NON_VIRTUAL,
190                  __int__getNumberOfFrameToKeepImpostorSprites,
191                  "Get the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled. ",
192                  "");
193        I_Method1(void, setComputeNearFarMode, IN, osg::CullSettings::ComputeNearFarMode, cnfm,
194                  Properties::NON_VIRTUAL,
195                  __void__setComputeNearFarMode__ComputeNearFarMode,
196                  "",
197                  "");
198        I_Method0(osg::CullSettings::ComputeNearFarMode, getComputeNearFarMode,
199                  Properties::NON_VIRTUAL,
200                  __ComputeNearFarMode__getComputeNearFarMode,
201                  "",
202                  "");
203        I_Method1(void, setNearFarRatio, IN, double, ratio,
204                  Properties::NON_VIRTUAL,
205                  __void__setNearFarRatio__double,
206                  "",
207                  "");
208        I_Method0(double, getNearFarRatio,
209                  Properties::NON_VIRTUAL,
210                  __double__getNearFarRatio,
211                  "",
212                  "");
213        I_Method1(void, setCullingMode, IN, osg::CullSettings::CullingMode, mode,
214                  Properties::NON_VIRTUAL,
215                  __void__setCullingMode__CullingMode,
216                  "Set the culling mode for the CullVisitor to use. ",
217                  "");
218        I_Method0(osg::CullSettings::CullingMode, getCullingMode,
219                  Properties::NON_VIRTUAL,
220                  __CullingMode__getCullingMode,
221                  "Returns the current CullingMode. ",
222                  "");
223        I_Method1(void, setCullMask, IN, osg::Node::NodeMask, nm,
224                  Properties::NON_VIRTUAL,
225                  __void__setCullMask__osg_Node_NodeMask,
226                  "",
227                  "");
228        I_Method0(osg::Node::NodeMask, getCullMask,
229                  Properties::NON_VIRTUAL,
230                  __osg_Node_NodeMask__getCullMask,
231                  "",
232                  "");
233        I_Method1(void, setCullMaskLeft, IN, osg::Node::NodeMask, nm,
234                  Properties::NON_VIRTUAL,
235                  __void__setCullMaskLeft__osg_Node_NodeMask,
236                  "",
237                  "");
238        I_Method0(osg::Node::NodeMask, getCullMaskLeft,
239                  Properties::NON_VIRTUAL,
240                  __osg_Node_NodeMask__getCullMaskLeft,
241                  "",
242                  "");
243        I_Method1(void, setCullMaskRight, IN, osg::Node::NodeMask, nm,
244                  Properties::NON_VIRTUAL,
245                  __void__setCullMaskRight__osg_Node_NodeMask,
246                  "",
247                  "");
248        I_Method0(osg::Node::NodeMask, getCullMaskRight,
249                  Properties::NON_VIRTUAL,
250                  __osg_Node_NodeMask__getCullMaskRight,
251                  "",
252                  "");
253        I_Method1(void, setLODScale, IN, float, scale,
254                  Properties::NON_VIRTUAL,
255                  __void__setLODScale__float,
256                  "Set the LOD bias for the CullVisitor to use. ",
257                  "");
258        I_Method0(float, getLODScale,
259                  Properties::NON_VIRTUAL,
260                  __float__getLODScale,
261                  "Get the LOD bias. ",
262                  "");
263        I_Method1(void, setSmallFeatureCullingPixelSize, IN, float, value,
264                  Properties::NON_VIRTUAL,
265                  __void__setSmallFeatureCullingPixelSize__float,
266                  "Set the Small Feature Culling Pixel Size. ",
267                  "");
268        I_Method0(float, getSmallFeatureCullingPixelSize,
269                  Properties::NON_VIRTUAL,
270                  __float__getSmallFeatureCullingPixelSize,
271                  "Get the Small Feature Culling Pixel Size. ",
272                  "");
273        I_Method1(void, setClampProjectionMatrixCallback, IN, osg::CullSettings::ClampProjectionMatrixCallback *, cpmc,
274                  Properties::NON_VIRTUAL,
275                  __void__setClampProjectionMatrixCallback__ClampProjectionMatrixCallback_P1,
276                  "set the ClampProjectionMatrixCallback. ",
277                  "");
278        I_Method0(osg::CullSettings::ClampProjectionMatrixCallback *, getClampProjectionMatrixCallback,
279                  Properties::NON_VIRTUAL,
280                  __ClampProjectionMatrixCallback_P1__getClampProjectionMatrixCallback,
281                  "get the non const ClampProjectionMatrixCallback. ",
282                  "");
283        I_Method0(const osg::CullSettings::ClampProjectionMatrixCallback *, getClampProjectionMatrixCallback,
284                  Properties::NON_VIRTUAL,
285                  __C5_ClampProjectionMatrixCallback_P1__getClampProjectionMatrixCallback,
286                  "get the const ClampProjectionMatrixCallback. ",
287                  "");
288        I_Method1(void, write, IN, std::ostream &, out,
289                  Properties::NON_VIRTUAL,
290                  __void__write__std_ostream_R1,
291                  "Write out internal settings of CullSettings. ",
292                  "");
293        I_SimpleProperty(osg::CullSettings::ClampProjectionMatrixCallback *, ClampProjectionMatrixCallback,
294                         __ClampProjectionMatrixCallback_P1__getClampProjectionMatrixCallback,
295                         __void__setClampProjectionMatrixCallback__ClampProjectionMatrixCallback_P1);
296        I_SimpleProperty(osg::CullSettings::ComputeNearFarMode, ComputeNearFarMode,
297                         __ComputeNearFarMode__getComputeNearFarMode,
298                         __void__setComputeNearFarMode__ComputeNearFarMode);
299        I_SimpleProperty(osg::Node::NodeMask, CullMask,
300                         __osg_Node_NodeMask__getCullMask,
301                         __void__setCullMask__osg_Node_NodeMask);
302        I_SimpleProperty(osg::Node::NodeMask, CullMaskLeft,
303                         __osg_Node_NodeMask__getCullMaskLeft,
304                         __void__setCullMaskLeft__osg_Node_NodeMask);
305        I_SimpleProperty(osg::Node::NodeMask, CullMaskRight,
306                         __osg_Node_NodeMask__getCullMaskRight,
307                         __void__setCullMaskRight__osg_Node_NodeMask);
308        I_SimpleProperty(const osg::CullSettings &, CullSettings,
309                         0,
310                         __void__setCullSettings__C5_CullSettings_R1);
311        I_SimpleProperty(osg::CullSettings::CullingMode, CullingMode,
312                         __CullingMode__getCullingMode,
313                         __void__setCullingMode__CullingMode);
314        I_SimpleProperty(bool, DepthSortImpostorSprites,
315                         __bool__getDepthSortImpostorSprites,
316                         __void__setDepthSortImpostorSprites__bool);
317        I_SimpleProperty(float, ImpostorPixelErrorThreshold,
318                         __float__getImpostorPixelErrorThreshold,
319                         __void__setImpostorPixelErrorThreshold__float);
320        I_SimpleProperty(bool, ImpostorsActive,
321                         __bool__getImpostorsActive,
322                         __void__setImpostorsActive__bool);
323        I_SimpleProperty(osg::CullSettings::InheritanceMask, InheritanceMask,
324                         __InheritanceMask__getInheritanceMask,
325                         __void__setInheritanceMask__InheritanceMask);
326        I_SimpleProperty(osg::CullSettings::InheritanceMaskActionOnAttributeSetting, InheritanceMaskActionOnAttributeSetting,
327                         __InheritanceMaskActionOnAttributeSetting__getInheritanceMaskActionOnAttributeSetting,
328                         __void__setInheritanceMaskActionOnAttributeSetting__InheritanceMaskActionOnAttributeSetting);
329        I_SimpleProperty(float, LODScale,
330                         __float__getLODScale,
331                         __void__setLODScale__float);
332        I_SimpleProperty(double, NearFarRatio,
333                         __double__getNearFarRatio,
334                         __void__setNearFarRatio__double);
335        I_SimpleProperty(int, NumberOfFrameToKeepImpostorSprites,
336                         __int__getNumberOfFrameToKeepImpostorSprites,
337                         __void__setNumberOfFrameToKeepImpostorSprites__int);
338        I_SimpleProperty(float, SmallFeatureCullingPixelSize,
339                         __float__getSmallFeatureCullingPixelSize,
340                         __void__setSmallFeatureCullingPixelSize__float);
341END_REFLECTOR
342
343BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::CullSettings::ClampProjectionMatrixCallback)
344        I_DeclaringFile("osg/CullSettings");
345        I_BaseType(osg::Referenced);
346        I_Constructor0(____ClampProjectionMatrixCallback,
347                       "",
348                       "");
349        I_Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixf &, projection, IN, double &, znear, IN, double &, zfar,
350                  Properties::PURE_VIRTUAL,
351                  __bool__clampProjectionMatrixImplementation__osg_Matrixf_R1__double_R1__double_R1,
352                  "",
353                  "");
354        I_Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixd &, projection, IN, double &, znear, IN, double &, zfar,
355                  Properties::PURE_VIRTUAL,
356                  __bool__clampProjectionMatrixImplementation__osg_Matrixd_R1__double_R1__double_R1,
357                  "",
358                  "");
359END_REFLECTOR
Note: See TracBrowser for help on using the browser.