| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | #include <osgIntrospection/ReflectionMacros> |
|---|
| 9 | #include <osgIntrospection/TypedMethodInfo> |
|---|
| 10 | #include <osgIntrospection/StaticMethodInfo> |
|---|
| 11 | #include <osgIntrospection/Attributes> |
|---|
| 12 | |
|---|
| 13 | #include <osg/BoundingSphere> |
|---|
| 14 | #include <osg/Camera> |
|---|
| 15 | #include <osg/CopyOp> |
|---|
| 16 | #include <osg/NodeVisitor> |
|---|
| 17 | #include <osg/Object> |
|---|
| 18 | #include <osg/OcclusionQueryNode> |
|---|
| 19 | #include <osg/State> |
|---|
| 20 | #include <osg/StateSet> |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | #ifdef IN |
|---|
| 24 | #undef IN |
|---|
| 25 | #endif |
|---|
| 26 | #ifdef OUT |
|---|
| 27 | #undef OUT |
|---|
| 28 | #endif |
|---|
| 29 | |
|---|
| 30 | BEGIN_OBJECT_REFLECTOR(osg::OcclusionQueryNode) |
|---|
| 31 | I_DeclaringFile("osg/OcclusionQueryNode"); |
|---|
| 32 | I_BaseType(osg::Group); |
|---|
| 33 | I_Constructor0(____OcclusionQueryNode, |
|---|
| 34 | "", |
|---|
| 35 | ""); |
|---|
| 36 | I_ConstructorWithDefaults2(IN, const osg::OcclusionQueryNode &, oqn, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, |
|---|
| 37 | ____OcclusionQueryNode__C5_OcclusionQueryNode_R1__C5_osg_CopyOp_R1, |
|---|
| 38 | "", |
|---|
| 39 | ""); |
|---|
| 40 | I_Method0(osg::Object *, cloneType, |
|---|
| 41 | Properties::VIRTUAL, |
|---|
| 42 | __osg_Object_P1__cloneType, |
|---|
| 43 | "clone an object of the same type as the node. ", |
|---|
| 44 | ""); |
|---|
| 45 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, |
|---|
| 46 | Properties::VIRTUAL, |
|---|
| 47 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 48 | "return a clone of a node, with Object* return type. ", |
|---|
| 49 | ""); |
|---|
| 50 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 51 | Properties::VIRTUAL, |
|---|
| 52 | __bool__isSameKindAs__C5_osg_Object_P1, |
|---|
| 53 | "return true if this and obj are of the same kind of object. ", |
|---|
| 54 | ""); |
|---|
| 55 | I_Method0(const char *, className, |
|---|
| 56 | Properties::VIRTUAL, |
|---|
| 57 | __C5_char_P1__className, |
|---|
| 58 | "return the name of the node's class type. ", |
|---|
| 59 | ""); |
|---|
| 60 | I_Method0(const char *, libraryName, |
|---|
| 61 | Properties::VIRTUAL, |
|---|
| 62 | __C5_char_P1__libraryName, |
|---|
| 63 | "return the name of the node's library. ", |
|---|
| 64 | ""); |
|---|
| 65 | I_Method1(void, accept, IN, osg::NodeVisitor &, nv, |
|---|
| 66 | Properties::VIRTUAL, |
|---|
| 67 | __void__accept__osg_NodeVisitor_R1, |
|---|
| 68 | "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", |
|---|
| 69 | ""); |
|---|
| 70 | I_Method0(osg::BoundingSphere, computeBound, |
|---|
| 71 | Properties::VIRTUAL, |
|---|
| 72 | __osg_BoundingSphere__computeBound, |
|---|
| 73 | "Compute the bounding sphere around Node's geometry or children. ", |
|---|
| 74 | "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); |
|---|
| 75 | I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, |
|---|
| 76 | Properties::VIRTUAL, |
|---|
| 77 | __void__releaseGLObjects__osg_State_P1, |
|---|
| 78 | "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ", |
|---|
| 79 | "Otherwise, releases OpenGL objects for all graphics contexts. "); |
|---|
| 80 | I_MethodWithDefaults1(void, setQueriesEnabled, IN, bool, enable, true, |
|---|
| 81 | Properties::NON_VIRTUAL, |
|---|
| 82 | __void__setQueriesEnabled__bool, |
|---|
| 83 | "", |
|---|
| 84 | ""); |
|---|
| 85 | I_Method0(bool, getQueriesEnabled, |
|---|
| 86 | Properties::NON_VIRTUAL, |
|---|
| 87 | __bool__getQueriesEnabled, |
|---|
| 88 | "", |
|---|
| 89 | ""); |
|---|
| 90 | I_Method1(void, setVisibilityThreshold, IN, unsigned int, pixels, |
|---|
| 91 | Properties::NON_VIRTUAL, |
|---|
| 92 | __void__setVisibilityThreshold__unsigned_int, |
|---|
| 93 | "", |
|---|
| 94 | ""); |
|---|
| 95 | I_Method0(unsigned int, getVisibilityThreshold, |
|---|
| 96 | Properties::NON_VIRTUAL, |
|---|
| 97 | __unsigned_int__getVisibilityThreshold, |
|---|
| 98 | "", |
|---|
| 99 | ""); |
|---|
| 100 | I_Method1(void, setQueryFrameCount, IN, int, frames, |
|---|
| 101 | Properties::NON_VIRTUAL, |
|---|
| 102 | __void__setQueryFrameCount__int, |
|---|
| 103 | "", |
|---|
| 104 | ""); |
|---|
| 105 | I_Method0(int, getQueryFrameCount, |
|---|
| 106 | Properties::NON_VIRTUAL, |
|---|
| 107 | __int__getQueryFrameCount, |
|---|
| 108 | "", |
|---|
| 109 | ""); |
|---|
| 110 | I_Method1(void, setDebugDisplay, IN, bool, enable, |
|---|
| 111 | Properties::NON_VIRTUAL, |
|---|
| 112 | __void__setDebugDisplay__bool, |
|---|
| 113 | "", |
|---|
| 114 | ""); |
|---|
| 115 | I_Method0(bool, getDebugDisplay, |
|---|
| 116 | Properties::NON_VIRTUAL, |
|---|
| 117 | __bool__getDebugDisplay, |
|---|
| 118 | "", |
|---|
| 119 | ""); |
|---|
| 120 | I_Method1(void, setQueryStateSet, IN, osg::StateSet *, ss, |
|---|
| 121 | Properties::NON_VIRTUAL, |
|---|
| 122 | __void__setQueryStateSet__osg_StateSet_P1, |
|---|
| 123 | "", |
|---|
| 124 | ""); |
|---|
| 125 | I_Method0(osg::StateSet *, getQueryStateSet, |
|---|
| 126 | Properties::NON_VIRTUAL, |
|---|
| 127 | __osg_StateSet_P1__getQueryStateSet, |
|---|
| 128 | "", |
|---|
| 129 | ""); |
|---|
| 130 | I_Method0(const osg::StateSet *, getQueryStateSet, |
|---|
| 131 | Properties::NON_VIRTUAL, |
|---|
| 132 | __C5_osg_StateSet_P1__getQueryStateSet, |
|---|
| 133 | "", |
|---|
| 134 | ""); |
|---|
| 135 | I_Method1(void, setDebugStateSet, IN, osg::StateSet *, ss, |
|---|
| 136 | Properties::NON_VIRTUAL, |
|---|
| 137 | __void__setDebugStateSet__osg_StateSet_P1, |
|---|
| 138 | "", |
|---|
| 139 | ""); |
|---|
| 140 | I_Method0(osg::StateSet *, getDebugStateSet, |
|---|
| 141 | Properties::NON_VIRTUAL, |
|---|
| 142 | __osg_StateSet_P1__getDebugStateSet, |
|---|
| 143 | "", |
|---|
| 144 | ""); |
|---|
| 145 | I_Method0(const osg::StateSet *, getDebugStateSet, |
|---|
| 146 | Properties::NON_VIRTUAL, |
|---|
| 147 | __C5_osg_StateSet_P1__getDebugStateSet, |
|---|
| 148 | "", |
|---|
| 149 | ""); |
|---|
| 150 | I_Method0(bool, getPassed, |
|---|
| 151 | Properties::NON_VIRTUAL, |
|---|
| 152 | __bool__getPassed, |
|---|
| 153 | "", |
|---|
| 154 | ""); |
|---|
| 155 | I_Method2(bool, getPassed, IN, const osg::Camera *, camera, IN, float, distanceToEyePoint, |
|---|
| 156 | Properties::NON_VIRTUAL, |
|---|
| 157 | __bool__getPassed__C5_osg_Camera_P1__float, |
|---|
| 158 | "", |
|---|
| 159 | ""); |
|---|
| 160 | I_Method2(void, traverseQuery, IN, const osg::Camera *, camera, IN, osg::NodeVisitor &, nv, |
|---|
| 161 | Properties::NON_VIRTUAL, |
|---|
| 162 | __void__traverseQuery__C5_osg_Camera_P1__osg_NodeVisitor_R1, |
|---|
| 163 | "", |
|---|
| 164 | ""); |
|---|
| 165 | I_Method1(void, traverseDebug, IN, osg::NodeVisitor &, nv, |
|---|
| 166 | Properties::NON_VIRTUAL, |
|---|
| 167 | __void__traverseDebug__osg_NodeVisitor_R1, |
|---|
| 168 | "", |
|---|
| 169 | ""); |
|---|
| 170 | I_StaticMethod3(void, flushDeletedQueryObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, |
|---|
| 171 | __void__flushDeletedQueryObjects__unsigned_int__double__double_R1_S, |
|---|
| 172 | "", |
|---|
| 173 | ""); |
|---|
| 174 | I_StaticMethod1(void, discardDeletedQueryObjects, IN, unsigned int, contextID, |
|---|
| 175 | __void__discardDeletedQueryObjects__unsigned_int_S, |
|---|
| 176 | "", |
|---|
| 177 | ""); |
|---|
| 178 | I_ProtectedMethod0(void, createSupportNodes, |
|---|
| 179 | Properties::NON_VIRTUAL, |
|---|
| 180 | Properties::NON_CONST, |
|---|
| 181 | __void__createSupportNodes, |
|---|
| 182 | "", |
|---|
| 183 | ""); |
|---|
| 184 | I_SimpleProperty(bool, DebugDisplay, |
|---|
| 185 | __bool__getDebugDisplay, |
|---|
| 186 | __void__setDebugDisplay__bool); |
|---|
| 187 | I_SimpleProperty(osg::StateSet *, DebugStateSet, |
|---|
| 188 | __osg_StateSet_P1__getDebugStateSet, |
|---|
| 189 | __void__setDebugStateSet__osg_StateSet_P1); |
|---|
| 190 | I_SimpleProperty(bool, Passed, |
|---|
| 191 | __bool__getPassed, |
|---|
| 192 | 0); |
|---|
| 193 | I_SimpleProperty(bool, QueriesEnabled, |
|---|
| 194 | __bool__getQueriesEnabled, |
|---|
| 195 | __void__setQueriesEnabled__bool); |
|---|
| 196 | I_SimpleProperty(int, QueryFrameCount, |
|---|
| 197 | __int__getQueryFrameCount, |
|---|
| 198 | __void__setQueryFrameCount__int); |
|---|
| 199 | I_SimpleProperty(osg::StateSet *, QueryStateSet, |
|---|
| 200 | __osg_StateSet_P1__getQueryStateSet, |
|---|
| 201 | __void__setQueryStateSet__osg_StateSet_P1); |
|---|
| 202 | I_SimpleProperty(unsigned int, VisibilityThreshold, |
|---|
| 203 | __unsigned_int__getVisibilityThreshold, |
|---|
| 204 | __void__setVisibilityThreshold__unsigned_int); |
|---|
| 205 | END_REFLECTOR |
|---|