| 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/CopyOp> |
|---|
| 14 | #include <osg/NodeVisitor> |
|---|
| 15 | #include <osg/Object> |
|---|
| 16 | #include <osg/State> |
|---|
| 17 | #include <osg/Uniform> |
|---|
| 18 | #include <osg/Vec3d> |
|---|
| 19 | #include <osgTerrain/GeometryTechnique> |
|---|
| 20 | #include <osgTerrain/Locator> |
|---|
| 21 | #include <osgUtil/CullVisitor> |
|---|
| 22 | #include <osgUtil/UpdateVisitor> |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | #ifdef IN |
|---|
| 26 | #undef IN |
|---|
| 27 | #endif |
|---|
| 28 | #ifdef OUT |
|---|
| 29 | #undef OUT |
|---|
| 30 | #endif |
|---|
| 31 | |
|---|
| 32 | BEGIN_ENUM_REFLECTOR(osgTerrain::GeometryTechnique::FilterType) |
|---|
| 33 | I_DeclaringFile("osgTerrain/GeometryTechnique"); |
|---|
| 34 | I_EnumLabel(osgTerrain::GeometryTechnique::GAUSSIAN); |
|---|
| 35 | I_EnumLabel(osgTerrain::GeometryTechnique::SMOOTH); |
|---|
| 36 | I_EnumLabel(osgTerrain::GeometryTechnique::SHARPEN); |
|---|
| 37 | END_REFLECTOR |
|---|
| 38 | |
|---|
| 39 | BEGIN_OBJECT_REFLECTOR(osgTerrain::GeometryTechnique) |
|---|
| 40 | I_DeclaringFile("osgTerrain/GeometryTechnique"); |
|---|
| 41 | I_BaseType(osgTerrain::TerrainTechnique); |
|---|
| 42 | I_Constructor0(____GeometryTechnique, |
|---|
| 43 | "", |
|---|
| 44 | ""); |
|---|
| 45 | I_ConstructorWithDefaults2(IN, const osgTerrain::GeometryTechnique &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, |
|---|
| 46 | ____GeometryTechnique__C5_GeometryTechnique_R1__C5_osg_CopyOp_R1, |
|---|
| 47 | "Copy constructor using CopyOp to manage deep vs shallow copy. ", |
|---|
| 48 | ""); |
|---|
| 49 | I_Method0(osg::Object *, cloneType, |
|---|
| 50 | Properties::VIRTUAL, |
|---|
| 51 | __osg_Object_P1__cloneType, |
|---|
| 52 | "Clone the type of an object, with Object* return type. ", |
|---|
| 53 | "Must be defined by derived classes. "); |
|---|
| 54 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, |
|---|
| 55 | Properties::VIRTUAL, |
|---|
| 56 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 57 | "Clone an object, with Object* return type. ", |
|---|
| 58 | "Must be defined by derived classes. "); |
|---|
| 59 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 60 | Properties::VIRTUAL, |
|---|
| 61 | __bool__isSameKindAs__C5_osg_Object_P1, |
|---|
| 62 | "", |
|---|
| 63 | ""); |
|---|
| 64 | I_Method0(const char *, libraryName, |
|---|
| 65 | Properties::VIRTUAL, |
|---|
| 66 | __C5_char_P1__libraryName, |
|---|
| 67 | "return the name of the object's library. ", |
|---|
| 68 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
|---|
| 69 | I_Method0(const char *, className, |
|---|
| 70 | Properties::VIRTUAL, |
|---|
| 71 | __C5_char_P1__className, |
|---|
| 72 | "return the name of the object's class type. ", |
|---|
| 73 | "Must be defined by derived classes. "); |
|---|
| 74 | I_Method0(void, init, |
|---|
| 75 | Properties::VIRTUAL, |
|---|
| 76 | __void__init, |
|---|
| 77 | "", |
|---|
| 78 | ""); |
|---|
| 79 | I_Method0(osgTerrain::Locator *, computeMasterLocator, |
|---|
| 80 | Properties::VIRTUAL, |
|---|
| 81 | __Locator_P1__computeMasterLocator, |
|---|
| 82 | "", |
|---|
| 83 | ""); |
|---|
| 84 | I_Method1(osg::Vec3d, computeCenterModel, IN, osgTerrain::Locator *, masterLocator, |
|---|
| 85 | Properties::VIRTUAL, |
|---|
| 86 | __osg_Vec3d__computeCenterModel__Locator_P1, |
|---|
| 87 | "", |
|---|
| 88 | ""); |
|---|
| 89 | I_Method2(void, generateGeometry, IN, osgTerrain::Locator *, masterLocator, IN, const osg::Vec3d &, centerModel, |
|---|
| 90 | Properties::VIRTUAL, |
|---|
| 91 | __void__generateGeometry__Locator_P1__C5_osg_Vec3d_R1, |
|---|
| 92 | "", |
|---|
| 93 | ""); |
|---|
| 94 | I_Method0(void, applyColorLayers, |
|---|
| 95 | Properties::VIRTUAL, |
|---|
| 96 | __void__applyColorLayers, |
|---|
| 97 | "", |
|---|
| 98 | ""); |
|---|
| 99 | I_Method0(void, applyTransparency, |
|---|
| 100 | Properties::VIRTUAL, |
|---|
| 101 | __void__applyTransparency, |
|---|
| 102 | "", |
|---|
| 103 | ""); |
|---|
| 104 | I_Method0(void, smoothGeometry, |
|---|
| 105 | Properties::VIRTUAL, |
|---|
| 106 | __void__smoothGeometry, |
|---|
| 107 | "", |
|---|
| 108 | ""); |
|---|
| 109 | I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, |
|---|
| 110 | Properties::VIRTUAL, |
|---|
| 111 | __void__update__osgUtil_UpdateVisitor_P1, |
|---|
| 112 | "", |
|---|
| 113 | ""); |
|---|
| 114 | I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, |
|---|
| 115 | Properties::VIRTUAL, |
|---|
| 116 | __void__cull__osgUtil_CullVisitor_P1, |
|---|
| 117 | "", |
|---|
| 118 | ""); |
|---|
| 119 | I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, |
|---|
| 120 | Properties::VIRTUAL, |
|---|
| 121 | __void__traverse__osg_NodeVisitor_R1, |
|---|
| 122 | "Traverse the terain subgraph. ", |
|---|
| 123 | ""); |
|---|
| 124 | I_Method0(void, cleanSceneGraph, |
|---|
| 125 | Properties::VIRTUAL, |
|---|
| 126 | __void__cleanSceneGraph, |
|---|
| 127 | "Clean scene graph from any terrain technique specific nodes. ", |
|---|
| 128 | ""); |
|---|
| 129 | I_Method1(void, setFilterBias, IN, float, filterBias, |
|---|
| 130 | Properties::NON_VIRTUAL, |
|---|
| 131 | __void__setFilterBias__float, |
|---|
| 132 | "", |
|---|
| 133 | ""); |
|---|
| 134 | I_Method0(float, getFilterBias, |
|---|
| 135 | Properties::NON_VIRTUAL, |
|---|
| 136 | __float__getFilterBias, |
|---|
| 137 | "", |
|---|
| 138 | ""); |
|---|
| 139 | I_Method1(void, setFilterWidth, IN, float, filterWidth, |
|---|
| 140 | Properties::NON_VIRTUAL, |
|---|
| 141 | __void__setFilterWidth__float, |
|---|
| 142 | "", |
|---|
| 143 | ""); |
|---|
| 144 | I_Method0(float, getFilterWidth, |
|---|
| 145 | Properties::NON_VIRTUAL, |
|---|
| 146 | __float__getFilterWidth, |
|---|
| 147 | "", |
|---|
| 148 | ""); |
|---|
| 149 | I_Method1(void, setFilterMatrix, IN, const osg::Matrix3 &, matrix, |
|---|
| 150 | Properties::NON_VIRTUAL, |
|---|
| 151 | __void__setFilterMatrix__C5_osg_Matrix3_R1, |
|---|
| 152 | "", |
|---|
| 153 | ""); |
|---|
| 154 | I_Method0(osg::Matrix3 &, getFilterMatrix, |
|---|
| 155 | Properties::NON_VIRTUAL, |
|---|
| 156 | __osg_Matrix3_R1__getFilterMatrix, |
|---|
| 157 | "", |
|---|
| 158 | ""); |
|---|
| 159 | I_Method0(const osg::Matrix3 &, getFilterMatrix, |
|---|
| 160 | Properties::NON_VIRTUAL, |
|---|
| 161 | __C5_osg_Matrix3_R1__getFilterMatrix, |
|---|
| 162 | "", |
|---|
| 163 | ""); |
|---|
| 164 | I_Method1(void, setFilterMatrixAs, IN, osgTerrain::GeometryTechnique::FilterType, filterType, |
|---|
| 165 | Properties::NON_VIRTUAL, |
|---|
| 166 | __void__setFilterMatrixAs__FilterType, |
|---|
| 167 | "", |
|---|
| 168 | ""); |
|---|
| 169 | I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, |
|---|
| 170 | Properties::VIRTUAL, |
|---|
| 171 | __void__releaseGLObjects__osg_State_P1, |
|---|
| 172 | "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ", |
|---|
| 173 | "Otherwise, releases OpenGL objects for all graphics contexts. "); |
|---|
| 174 | I_SimpleProperty(float, FilterBias, |
|---|
| 175 | __float__getFilterBias, |
|---|
| 176 | __void__setFilterBias__float); |
|---|
| 177 | I_SimpleProperty(const osg::Matrix3 &, FilterMatrix, |
|---|
| 178 | __C5_osg_Matrix3_R1__getFilterMatrix, |
|---|
| 179 | __void__setFilterMatrix__C5_osg_Matrix3_R1); |
|---|
| 180 | I_SimpleProperty(osgTerrain::GeometryTechnique::FilterType, FilterMatrixAs, |
|---|
| 181 | 0, |
|---|
| 182 | __void__setFilterMatrixAs__FilterType); |
|---|
| 183 | I_SimpleProperty(float, FilterWidth, |
|---|
| 184 | __float__getFilterWidth, |
|---|
| 185 | __void__setFilterWidth__float); |
|---|
| 186 | END_REFLECTOR |
|---|