| 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/Camera> |
|---|
| 14 | #include <osg/CopyOp> |
|---|
| 15 | #include <osg/FrameStamp> |
|---|
| 16 | #include <osg/Light> |
|---|
| 17 | #include <osg/Matrix> |
|---|
| 18 | #include <osg/Matrixd> |
|---|
| 19 | #include <osg/Object> |
|---|
| 20 | #include <osg/Stats> |
|---|
| 21 | #include <osg/View> |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | #ifdef IN |
|---|
| 25 | #undef IN |
|---|
| 26 | #endif |
|---|
| 27 | #ifdef OUT |
|---|
| 28 | #undef OUT |
|---|
| 29 | #endif |
|---|
| 30 | |
|---|
| 31 | BEGIN_ENUM_REFLECTOR(osg::View::LightingMode) |
|---|
| 32 | I_DeclaringFile("osg/View"); |
|---|
| 33 | I_EnumLabel(osg::View::NO_LIGHT); |
|---|
| 34 | I_EnumLabel(osg::View::HEADLIGHT); |
|---|
| 35 | I_EnumLabel(osg::View::SKY_LIGHT); |
|---|
| 36 | END_REFLECTOR |
|---|
| 37 | |
|---|
| 38 | BEGIN_OBJECT_REFLECTOR(osg::View) |
|---|
| 39 | I_DeclaringFile("osg/View"); |
|---|
| 40 | I_VirtualBaseType(osg::Object); |
|---|
| 41 | I_Constructor0(____View, |
|---|
| 42 | "", |
|---|
| 43 | ""); |
|---|
| 44 | I_ConstructorWithDefaults2(IN, const osg::View &, view, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, |
|---|
| 45 | ____View__C5_osg_View_R1__C5_osg_CopyOp_R1, |
|---|
| 46 | "", |
|---|
| 47 | ""); |
|---|
| 48 | I_Method0(osg::Object *, cloneType, |
|---|
| 49 | Properties::VIRTUAL, |
|---|
| 50 | __osg_Object_P1__cloneType, |
|---|
| 51 | "Clone the type of an object, with Object* return type. ", |
|---|
| 52 | "Must be defined by derived classes. "); |
|---|
| 53 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, |
|---|
| 54 | Properties::VIRTUAL, |
|---|
| 55 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 56 | "Clone an object, with Object* return type. ", |
|---|
| 57 | "Must be defined by derived classes. "); |
|---|
| 58 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 59 | Properties::VIRTUAL, |
|---|
| 60 | __bool__isSameKindAs__C5_osg_Object_P1, |
|---|
| 61 | "", |
|---|
| 62 | ""); |
|---|
| 63 | I_Method0(const char *, libraryName, |
|---|
| 64 | Properties::VIRTUAL, |
|---|
| 65 | __C5_char_P1__libraryName, |
|---|
| 66 | "return the name of the object's library. ", |
|---|
| 67 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
|---|
| 68 | I_Method0(const char *, className, |
|---|
| 69 | Properties::VIRTUAL, |
|---|
| 70 | __C5_char_P1__className, |
|---|
| 71 | "return the name of the object's class type. ", |
|---|
| 72 | "Must be defined by derived classes. "); |
|---|
| 73 | I_Method1(void, take, IN, osg::View &, rhs, |
|---|
| 74 | Properties::VIRTUAL, |
|---|
| 75 | __void__take__View_R1, |
|---|
| 76 | "Take all the settings, Camera and Slaves from the passed in view, leaving it empty. ", |
|---|
| 77 | ""); |
|---|
| 78 | I_Method1(void, setStats, IN, osg::Stats *, stats, |
|---|
| 79 | Properties::NON_VIRTUAL, |
|---|
| 80 | __void__setStats__osg_Stats_P1, |
|---|
| 81 | "Set the Stats object used for collect various frame related timing and scene graph stats. ", |
|---|
| 82 | ""); |
|---|
| 83 | I_Method0(osg::Stats *, getStats, |
|---|
| 84 | Properties::NON_VIRTUAL, |
|---|
| 85 | __osg_Stats_P1__getStats, |
|---|
| 86 | "Get the Viewers Stats object. ", |
|---|
| 87 | ""); |
|---|
| 88 | I_Method0(const osg::Stats *, getStats, |
|---|
| 89 | Properties::NON_VIRTUAL, |
|---|
| 90 | __C5_osg_Stats_P1__getStats, |
|---|
| 91 | "Get the Viewers Stats object. ", |
|---|
| 92 | ""); |
|---|
| 93 | I_Method1(void, setLightingMode, IN, osg::View::LightingMode, lightingMode, |
|---|
| 94 | Properties::NON_VIRTUAL, |
|---|
| 95 | __void__setLightingMode__LightingMode, |
|---|
| 96 | "Set the global lighting to use for this view. ", |
|---|
| 97 | "Defaults to headlight. "); |
|---|
| 98 | I_Method0(osg::View::LightingMode, getLightingMode, |
|---|
| 99 | Properties::NON_VIRTUAL, |
|---|
| 100 | __LightingMode__getLightingMode, |
|---|
| 101 | "Get the global lighting used for this view. ", |
|---|
| 102 | ""); |
|---|
| 103 | I_Method1(void, setLight, IN, osg::Light *, light, |
|---|
| 104 | Properties::NON_VIRTUAL, |
|---|
| 105 | __void__setLight__osg_Light_P1, |
|---|
| 106 | "Get the global light. ", |
|---|
| 107 | ""); |
|---|
| 108 | I_Method0(osg::Light *, getLight, |
|---|
| 109 | Properties::NON_VIRTUAL, |
|---|
| 110 | __osg_Light_P1__getLight, |
|---|
| 111 | "Get the global lighting if assigned. ", |
|---|
| 112 | ""); |
|---|
| 113 | I_Method0(const osg::Light *, getLight, |
|---|
| 114 | Properties::NON_VIRTUAL, |
|---|
| 115 | __C5_osg_Light_P1__getLight, |
|---|
| 116 | "Get the const global lighting if assigned. ", |
|---|
| 117 | ""); |
|---|
| 118 | I_Method1(void, setCamera, IN, osg::Camera *, camera, |
|---|
| 119 | Properties::NON_VIRTUAL, |
|---|
| 120 | __void__setCamera__osg_Camera_P1, |
|---|
| 121 | "Set the master camera of the view. ", |
|---|
| 122 | ""); |
|---|
| 123 | I_Method0(osg::Camera *, getCamera, |
|---|
| 124 | Properties::NON_VIRTUAL, |
|---|
| 125 | __osg_Camera_P1__getCamera, |
|---|
| 126 | "Get the master camera of the view. ", |
|---|
| 127 | ""); |
|---|
| 128 | I_Method0(const osg::Camera *, getCamera, |
|---|
| 129 | Properties::NON_VIRTUAL, |
|---|
| 130 | __C5_osg_Camera_P1__getCamera, |
|---|
| 131 | "Get the const master camera of the view. ", |
|---|
| 132 | ""); |
|---|
| 133 | I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs, |
|---|
| 134 | Properties::NON_VIRTUAL, |
|---|
| 135 | __void__setFrameStamp__osg_FrameStamp_P1, |
|---|
| 136 | "Set the frame stamp of the view. ", |
|---|
| 137 | ""); |
|---|
| 138 | I_Method0(osg::FrameStamp *, getFrameStamp, |
|---|
| 139 | Properties::NON_VIRTUAL, |
|---|
| 140 | __osg_FrameStamp_P1__getFrameStamp, |
|---|
| 141 | "Get the frame stamp of the view. ", |
|---|
| 142 | ""); |
|---|
| 143 | I_Method0(const osg::FrameStamp *, getFrameStamp, |
|---|
| 144 | Properties::NON_VIRTUAL, |
|---|
| 145 | __C5_osg_FrameStamp_P1__getFrameStamp, |
|---|
| 146 | "Get the frame stamp of the view. ", |
|---|
| 147 | ""); |
|---|
| 148 | I_MethodWithDefaults2(bool, addSlave, IN, osg::Camera *, camera, , IN, bool, useMastersSceneData, true, |
|---|
| 149 | Properties::NON_VIRTUAL, |
|---|
| 150 | __bool__addSlave__osg_Camera_P1__bool, |
|---|
| 151 | "", |
|---|
| 152 | ""); |
|---|
| 153 | I_MethodWithDefaults4(bool, addSlave, IN, osg::Camera *, camera, , IN, const osg::Matrix &, projectionOffset, , IN, const osg::Matrix &, viewOffset, , IN, bool, useMastersSceneData, true, |
|---|
| 154 | Properties::NON_VIRTUAL, |
|---|
| 155 | __bool__addSlave__osg_Camera_P1__C5_osg_Matrix_R1__C5_osg_Matrix_R1__bool, |
|---|
| 156 | "", |
|---|
| 157 | ""); |
|---|
| 158 | I_Method1(bool, removeSlave, IN, unsigned int, pos, |
|---|
| 159 | Properties::NON_VIRTUAL, |
|---|
| 160 | __bool__removeSlave__unsigned_int, |
|---|
| 161 | "", |
|---|
| 162 | ""); |
|---|
| 163 | I_Method0(unsigned int, getNumSlaves, |
|---|
| 164 | Properties::NON_VIRTUAL, |
|---|
| 165 | __unsigned_int__getNumSlaves, |
|---|
| 166 | "", |
|---|
| 167 | ""); |
|---|
| 168 | I_Method1(osg::View::Slave &, getSlave, IN, unsigned int, pos, |
|---|
| 169 | Properties::NON_VIRTUAL, |
|---|
| 170 | __Slave_R1__getSlave__unsigned_int, |
|---|
| 171 | "", |
|---|
| 172 | ""); |
|---|
| 173 | I_Method1(const osg::View::Slave &, getSlave, IN, unsigned int, pos, |
|---|
| 174 | Properties::NON_VIRTUAL, |
|---|
| 175 | __C5_Slave_R1__getSlave__unsigned_int, |
|---|
| 176 | "", |
|---|
| 177 | ""); |
|---|
| 178 | I_Method1(unsigned int, findSlaveIndexForCamera, IN, osg::Camera *, camera, |
|---|
| 179 | Properties::NON_VIRTUAL, |
|---|
| 180 | __unsigned_int__findSlaveIndexForCamera__osg_Camera_P1, |
|---|
| 181 | "", |
|---|
| 182 | ""); |
|---|
| 183 | I_Method1(osg::View::Slave *, findSlaveForCamera, IN, osg::Camera *, camera, |
|---|
| 184 | Properties::NON_VIRTUAL, |
|---|
| 185 | __Slave_P1__findSlaveForCamera__osg_Camera_P1, |
|---|
| 186 | "", |
|---|
| 187 | ""); |
|---|
| 188 | I_Method0(void, updateSlaves, |
|---|
| 189 | Properties::NON_VIRTUAL, |
|---|
| 190 | __void__updateSlaves, |
|---|
| 191 | "", |
|---|
| 192 | ""); |
|---|
| 193 | I_Method1(void, updateSlave, IN, unsigned int, i, |
|---|
| 194 | Properties::NON_VIRTUAL, |
|---|
| 195 | __void__updateSlave__unsigned_int, |
|---|
| 196 | "", |
|---|
| 197 | ""); |
|---|
| 198 | I_ProtectedMethod1(osg::GraphicsOperation *, createRenderer, IN, osg::Camera *, x, |
|---|
| 199 | Properties::VIRTUAL, |
|---|
| 200 | Properties::NON_CONST, |
|---|
| 201 | __osg_GraphicsOperation_P1__createRenderer__osg_Camera_P1, |
|---|
| 202 | "", |
|---|
| 203 | ""); |
|---|
| 204 | I_SimpleProperty(osg::Camera *, Camera, |
|---|
| 205 | __osg_Camera_P1__getCamera, |
|---|
| 206 | __void__setCamera__osg_Camera_P1); |
|---|
| 207 | I_SimpleProperty(osg::FrameStamp *, FrameStamp, |
|---|
| 208 | __osg_FrameStamp_P1__getFrameStamp, |
|---|
| 209 | __void__setFrameStamp__osg_FrameStamp_P1); |
|---|
| 210 | I_SimpleProperty(osg::Light *, Light, |
|---|
| 211 | __osg_Light_P1__getLight, |
|---|
| 212 | __void__setLight__osg_Light_P1); |
|---|
| 213 | I_SimpleProperty(osg::View::LightingMode, LightingMode, |
|---|
| 214 | __LightingMode__getLightingMode, |
|---|
| 215 | __void__setLightingMode__LightingMode); |
|---|
| 216 | I_ArrayProperty(osg::View::Slave &, Slave, |
|---|
| 217 | __Slave_R1__getSlave__unsigned_int, |
|---|
| 218 | 0, |
|---|
| 219 | __unsigned_int__getNumSlaves, |
|---|
| 220 | 0, |
|---|
| 221 | 0, |
|---|
| 222 | __bool__removeSlave__unsigned_int); |
|---|
| 223 | I_SimpleProperty(osg::Stats *, Stats, |
|---|
| 224 | __osg_Stats_P1__getStats, |
|---|
| 225 | __void__setStats__osg_Stats_P1); |
|---|
| 226 | END_REFLECTOR |
|---|
| 227 | |
|---|
| 228 | BEGIN_VALUE_REFLECTOR(osg::View::Slave) |
|---|
| 229 | I_DeclaringFile("osg/View"); |
|---|
| 230 | I_ConstructorWithDefaults1(IN, bool, useMastersSceneData, true, |
|---|
| 231 | Properties::NON_EXPLICIT, |
|---|
| 232 | ____Slave__bool, |
|---|
| 233 | "", |
|---|
| 234 | ""); |
|---|
| 235 | I_ConstructorWithDefaults4(IN, osg::Camera *, camera, , IN, const osg::Matrixd &, projectionOffset, , IN, const osg::Matrixd &, viewOffset, , IN, bool, useMastersSceneData, true, |
|---|
| 236 | ____Slave__osg_Camera_P1__C5_osg_Matrixd_R1__C5_osg_Matrixd_R1__bool, |
|---|
| 237 | "", |
|---|
| 238 | ""); |
|---|
| 239 | I_Constructor1(IN, const osg::View::Slave &, rhs, |
|---|
| 240 | Properties::NON_EXPLICIT, |
|---|
| 241 | ____Slave__C5_Slave_R1, |
|---|
| 242 | "", |
|---|
| 243 | ""); |
|---|
| 244 | I_PublicMemberProperty(osg::ref_ptr< osg::Camera >, _camera); |
|---|
| 245 | I_PublicMemberProperty(osg::Matrixd, _projectionOffset); |
|---|
| 246 | I_PublicMemberProperty(osg::Matrixd, _viewOffset); |
|---|
| 247 | I_PublicMemberProperty(bool, _useMastersSceneData); |
|---|
| 248 | END_REFLECTOR |
|---|