| 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/Uniform> |
|---|
| 17 | #include <osg/Vec3d> |
|---|
| 18 | #include <osgTerrain/GeometryTechnique> |
|---|
| 19 | #include <osgTerrain/Locator> |
|---|
| 20 | #include <osgUtil/CullVisitor> |
|---|
| 21 | #include <osgUtil/UpdateVisitor> |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | #ifdef IN |
|---|
| 25 | #undef IN |
|---|
| 26 | #endif |
|---|
| 27 | #ifdef OUT |
|---|
| 28 | #undef OUT |
|---|
| 29 | #endif |
|---|
| 30 | |
|---|
| 31 | BEGIN_ENUM_REFLECTOR(osgTerrain::GeometryTechnique::FilterType) |
|---|
| 32 | I_DeclaringFile("osgTerrain/GeometryTechnique"); |
|---|
| 33 | I_EnumLabel(osgTerrain::GeometryTechnique::GAUSSIAN); |
|---|
| 34 | I_EnumLabel(osgTerrain::GeometryTechnique::SMOOTH); |
|---|
| 35 | I_EnumLabel(osgTerrain::GeometryTechnique::SHARPEN); |
|---|
| 36 | END_REFLECTOR |
|---|
| 37 | |
|---|
| 38 | BEGIN_OBJECT_REFLECTOR(osgTerrain::GeometryTechnique) |
|---|
| 39 | I_DeclaringFile("osgTerrain/GeometryTechnique"); |
|---|
| 40 | I_BaseType(osgTerrain::TerrainTechnique); |
|---|
| 41 | I_Constructor0(____GeometryTechnique, |
|---|
| 42 | "", |
|---|
| 43 | ""); |
|---|
| 44 | I_ConstructorWithDefaults2(IN, const osgTerrain::GeometryTechnique &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, |
|---|
| 45 | ____GeometryTechnique__C5_GeometryTechnique_R1__C5_osg_CopyOp_R1, |
|---|
| 46 | "Copy constructor using CopyOp to manage deep vs shallow copy. ", |
|---|
| 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 &, x, |
|---|
| 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_Method0(void, init, |
|---|
| 74 | Properties::VIRTUAL, |
|---|
| 75 | __void__init, |
|---|
| 76 | "", |
|---|
| 77 | ""); |
|---|
| 78 | I_Method0(osgTerrain::Locator *, computeMasterLocator, |
|---|
| 79 | Properties::VIRTUAL, |
|---|
| 80 | __Locator_P1__computeMasterLocator, |
|---|
| 81 | "", |
|---|
| 82 | ""); |
|---|
| 83 | I_Method1(osg::Vec3d, computeCenterModel, IN, osgTerrain::Locator *, masterLocator, |
|---|
| 84 | Properties::VIRTUAL, |
|---|
| 85 | __osg_Vec3d__computeCenterModel__Locator_P1, |
|---|
| 86 | "", |
|---|
| 87 | ""); |
|---|
| 88 | I_Method2(void, generateGeometry, IN, osgTerrain::Locator *, masterLocator, IN, const osg::Vec3d &, centerModel, |
|---|
| 89 | Properties::VIRTUAL, |
|---|
| 90 | __void__generateGeometry__Locator_P1__C5_osg_Vec3d_R1, |
|---|
| 91 | "", |
|---|
| 92 | ""); |
|---|
| 93 | I_Method0(void, applyColorLayers, |
|---|
| 94 | Properties::VIRTUAL, |
|---|
| 95 | __void__applyColorLayers, |
|---|
| 96 | "", |
|---|
| 97 | ""); |
|---|
| 98 | I_Method0(void, applyTransparency, |
|---|
| 99 | Properties::VIRTUAL, |
|---|
| 100 | __void__applyTransparency, |
|---|
| 101 | "", |
|---|
| 102 | ""); |
|---|
| 103 | I_Method0(void, smoothGeometry, |
|---|
| 104 | Properties::VIRTUAL, |
|---|
| 105 | __void__smoothGeometry, |
|---|
| 106 | "", |
|---|
| 107 | ""); |
|---|
| 108 | I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, |
|---|
| 109 | Properties::VIRTUAL, |
|---|
| 110 | __void__update__osgUtil_UpdateVisitor_P1, |
|---|
| 111 | "", |
|---|
| 112 | ""); |
|---|
| 113 | I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, |
|---|
| 114 | Properties::VIRTUAL, |
|---|
| 115 | __void__cull__osgUtil_CullVisitor_P1, |
|---|
| 116 | "", |
|---|
| 117 | ""); |
|---|
| 118 | I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, |
|---|
| 119 | Properties::VIRTUAL, |
|---|
| 120 | __void__traverse__osg_NodeVisitor_R1, |
|---|
| 121 | "Traverse the terain subgraph. ", |
|---|
| 122 | ""); |
|---|
| 123 | I_Method0(void, cleanSceneGraph, |
|---|
| 124 | Properties::VIRTUAL, |
|---|
| 125 | __void__cleanSceneGraph, |
|---|
| 126 | "Clean scene graph from any terrain technique specific nodes. ", |
|---|
| 127 | ""); |
|---|
| 128 | I_Method1(void, setFilterBias, IN, float, filterBias, |
|---|
| 129 | Properties::NON_VIRTUAL, |
|---|
| 130 | __void__setFilterBias__float, |
|---|
| 131 | "", |
|---|
| 132 | ""); |
|---|
| 133 | I_Method0(float, getFilterBias, |
|---|
| 134 | Properties::NON_VIRTUAL, |
|---|
| 135 | __float__getFilterBias, |
|---|
| 136 | "", |
|---|
| 137 | ""); |
|---|
| 138 | I_Method1(void, setFilterWidth, IN, float, filterWidth, |
|---|
| 139 | Properties::NON_VIRTUAL, |
|---|
| 140 | __void__setFilterWidth__float, |
|---|
| 141 | "", |
|---|
| 142 | ""); |
|---|
| 143 | I_Method0(float, getFilterWidth, |
|---|
| 144 | Properties::NON_VIRTUAL, |
|---|
| 145 | __float__getFilterWidth, |
|---|
| 146 | "", |
|---|
| 147 | ""); |
|---|
| 148 | I_Method1(void, setFilterMatrix, IN, const osg::Matrix3 &, matrix, |
|---|
| 149 | Properties::NON_VIRTUAL, |
|---|
| 150 | __void__setFilterMatrix__C5_osg_Matrix3_R1, |
|---|
| 151 | "", |
|---|
| 152 | ""); |
|---|
| 153 | I_Method0(osg::Matrix3 &, getFilterMatrix, |
|---|
| 154 | Properties::NON_VIRTUAL, |
|---|
| 155 | __osg_Matrix3_R1__getFilterMatrix, |
|---|
| 156 | "", |
|---|
| 157 | ""); |
|---|
| 158 | I_Method0(const osg::Matrix3 &, getFilterMatrix, |
|---|
| 159 | Properties::NON_VIRTUAL, |
|---|
| 160 | __C5_osg_Matrix3_R1__getFilterMatrix, |
|---|
| 161 | "", |
|---|
| 162 | ""); |
|---|
| 163 | I_Method1(void, setFilterMatrixAs, IN, osgTerrain::GeometryTechnique::FilterType, filterType, |
|---|
| 164 | Properties::NON_VIRTUAL, |
|---|
| 165 | __void__setFilterMatrixAs__FilterType, |
|---|
| 166 | "", |
|---|
| 167 | ""); |
|---|
| 168 | I_SimpleProperty(float, FilterBias, |
|---|
| 169 | __float__getFilterBias, |
|---|
| 170 | __void__setFilterBias__float); |
|---|
| 171 | I_SimpleProperty(const osg::Matrix3 &, FilterMatrix, |
|---|
| 172 | __C5_osg_Matrix3_R1__getFilterMatrix, |
|---|
| 173 | __void__setFilterMatrix__C5_osg_Matrix3_R1); |
|---|
| 174 | I_SimpleProperty(osgTerrain::GeometryTechnique::FilterType, FilterMatrixAs, |
|---|
| 175 | 0, |
|---|
| 176 | __void__setFilterMatrixAs__FilterType); |
|---|
| 177 | I_SimpleProperty(float, FilterWidth, |
|---|
| 178 | __float__getFilterWidth, |
|---|
| 179 | __void__setFilterWidth__float); |
|---|
| 180 | END_REFLECTOR |
|---|