From c892fafa1c6b830c46f001efe84b83f3aecca5af Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 24 Oct 2006 09:45:50 +0000 Subject: [PATCH] Updated wrappers --- .../osgWrappers/osgGA/wrapper_osgGA.dsp | 4 - src/osgWrappers/osg/AlphaFunc.cpp | 96 +- src/osgWrappers/osg/AnimationPath.cpp | 382 +++- src/osgWrappers/osg/ApplicationUsage.cpp | 171 +- src/osgWrappers/osg/ArgumentParser.cpp | 257 ++- src/osgWrappers/osg/Array.cpp | 1934 +++++++++++++---- src/osgWrappers/osg/AutoTransform.cpp | 167 +- src/osgWrappers/osg/Billboard.cpp | 140 +- src/osgWrappers/osg/BlendColor.cpp | 141 +- src/osgWrappers/osg/BlendEquation.cpp | 146 +- src/osgWrappers/osg/BlendFunc.cpp | 221 +- src/osgWrappers/osg/BoundingBox.cpp | 149 +- src/osgWrappers/osg/BoundingSphere.cpp | 99 +- src/osgWrappers/osg/BufferObject.cpp | 248 ++- src/osgWrappers/osg/CameraNode.cpp | 503 ++++- src/osgWrappers/osg/CameraView.cpp | 119 +- src/osgWrappers/osg/ClampColor.cpp | 159 +- src/osgWrappers/osg/ClearNode.cpp | 81 +- src/osgWrappers/osg/ClipNode.cpp | 158 +- src/osgWrappers/osg/ClipPlane.cpp | 120 +- .../osg/ClusterCullingCallback.cpp | 120 +- .../osg/CollectOccludersVisitor.cpp | 124 +- src/osgWrappers/osg/ColorMask.cpp | 119 +- src/osgWrappers/osg/ColorMatrix.cpp | 72 +- src/osgWrappers/osg/ConvexPlanarOccluder.cpp | 77 +- src/osgWrappers/osg/ConvexPlanarPolygon.cpp | 28 +- src/osgWrappers/osg/CoordinateSystemNode.cpp | 195 +- src/osgWrappers/osg/CopyOp.cpp | 5 +- src/osgWrappers/osg/CullFace.cpp | 73 +- src/osgWrappers/osg/CullSettings.cpp | 263 ++- src/osgWrappers/osg/CullingSet.cpp | 218 +- src/osgWrappers/osg/Depth.cpp | 120 +- src/osgWrappers/osg/DisplaySettings.cpp | 391 +++- src/osgWrappers/osg/DrawPixels.cpp | 106 +- src/osgWrappers/osg/Drawable.cpp | 1056 +++++++-- src/osgWrappers/osg/Fog.cpp | 142 +- src/osgWrappers/osg/FragmentProgram.cpp | 225 +- src/osgWrappers/osg/FrameBufferObject.cpp | 267 ++- src/osgWrappers/osg/FrameStamp.cpp | 51 +- src/osgWrappers/osg/FrontFace.cpp | 68 +- src/osgWrappers/osg/GL2Extensions.cpp | 599 +++-- src/osgWrappers/osg/Geode.cpp | 168 +- src/osgWrappers/osg/Geometry.cpp | 882 ++++++-- src/osgWrappers/osg/GraphicsContext.cpp | 175 +- src/osgWrappers/osg/GraphicsThread.cpp | 181 +- src/osgWrappers/osg/Group.cpp | 170 +- src/osgWrappers/osg/Image.cpp | 369 +++- src/osgWrappers/osg/ImageStream.cpp | 115 +- src/osgWrappers/osg/LOD.cpp | 154 +- src/osgWrappers/osg/Light.cpp | 226 +- src/osgWrappers/osg/LightModel.cpp | 109 +- src/osgWrappers/osg/LightSource.cpp | 91 +- src/osgWrappers/osg/LineSegment.cpp | 79 +- src/osgWrappers/osg/LineStipple.cpp | 86 +- src/osgWrappers/osg/LineWidth.cpp | 68 +- src/osgWrappers/osg/LogicOp.cpp | 77 +- src/osgWrappers/osg/Material.cpp | 202 +- src/osgWrappers/osg/MatrixTransform.cpp | 97 +- src/osgWrappers/osg/Matrixd.cpp | 531 ++++- src/osgWrappers/osg/Matrixf.cpp | 531 ++++- src/osgWrappers/osg/Multisample.cpp | 173 +- src/osgWrappers/osg/Node.cpp | 398 +++- src/osgWrappers/osg/NodeCallback.cpp | 68 +- src/osgWrappers/osg/NodeTrackerCallback.cpp | 90 +- src/osgWrappers/osg/NodeVisitor.cpp | 314 ++- src/osgWrappers/osg/Object.cpp | 96 +- src/osgWrappers/osg/OccluderNode.cpp | 63 +- src/osgWrappers/osg/PagedLOD.cpp | 212 +- src/osgWrappers/osg/Plane.cpp | 144 +- src/osgWrappers/osg/Point.cpp | 183 +- src/osgWrappers/osg/PointSprite.cpp | 73 +- src/osgWrappers/osg/PolygonMode.cpp | 82 +- src/osgWrappers/osg/PolygonOffset.cpp | 121 +- src/osgWrappers/osg/PolygonStipple.cpp | 72 +- src/osgWrappers/osg/Polytope.cpp | 234 +- .../osg/PositionAttitudeTransform.cpp | 115 +- src/osgWrappers/osg/PrimitiveSet.cpp | 850 ++++++-- src/osgWrappers/osg/Program.cpp | 251 ++- src/osgWrappers/osg/Projection.cpp | 68 +- src/osgWrappers/osg/ProxyNode.cpp | 143 +- src/osgWrappers/osg/Quat.cpp | 210 +- src/osgWrappers/osg/Referenced.cpp | 97 +- src/osgWrappers/osg/RenderInfo.cpp | 80 +- src/osgWrappers/osg/Scissor.cpp | 113 +- src/osgWrappers/osg/Sequence.cpp | 112 +- src/osgWrappers/osg/ShadeModel.cpp | 67 +- src/osgWrappers/osg/Shader.cpp | 132 +- src/osgWrappers/osg/ShadowVolumeOccluder.cpp | 110 +- src/osgWrappers/osg/Shape.cpp | 1259 ++++++++--- src/osgWrappers/osg/ShapeDrawable.cpp | 281 ++- src/osgWrappers/osg/State.cpp | 592 +++-- src/osgWrappers/osg/StateAttribute.cpp | 214 +- src/osgWrappers/osg/StateSet.cpp | 600 +++-- src/osgWrappers/osg/Stencil.cpp | 166 +- src/osgWrappers/osg/Switch.cpp | 151 +- src/osgWrappers/osg/TexEnv.cpp | 92 +- src/osgWrappers/osg/TexEnvCombine.cpp | 310 ++- src/osgWrappers/osg/TexEnvFilter.cpp | 73 +- src/osgWrappers/osg/TexGen.cpp | 106 +- src/osgWrappers/osg/TexGenNode.cpp | 91 +- src/osgWrappers/osg/TexMat.cpp | 96 +- src/osgWrappers/osg/Texture.cpp | 842 +++++-- src/osgWrappers/osg/Texture1D.cpp | 195 +- src/osgWrappers/osg/Texture2D.cpp | 210 +- src/osgWrappers/osg/Texture3D.cpp | 377 +++- src/osgWrappers/osg/TextureCubeMap.cpp | 234 +- src/osgWrappers/osg/TextureRectangle.cpp | 196 +- src/osgWrappers/osg/Timer.cpp | 43 +- src/osgWrappers/osg/Transform.cpp | 98 +- src/osgWrappers/osg/Uniform.cpp | 799 +++++-- src/osgWrappers/osg/Vec2b.cpp | 70 +- src/osgWrappers/osg/Vec2d.cpp | 74 +- src/osgWrappers/osg/Vec2f.cpp | 69 +- src/osgWrappers/osg/Vec2s.cpp | 70 +- src/osgWrappers/osg/Vec3b.cpp | 90 +- src/osgWrappers/osg/Vec3d.cpp | 95 +- src/osgWrappers/osg/Vec3f.cpp | 90 +- src/osgWrappers/osg/Vec3s.cpp | 90 +- src/osgWrappers/osg/Vec4b.cpp | 104 +- src/osgWrappers/osg/Vec4d.cpp | 149 +- src/osgWrappers/osg/Vec4f.cpp | 144 +- src/osgWrappers/osg/Vec4s.cpp | 104 +- src/osgWrappers/osg/Vec4ub.cpp | 64 +- src/osgWrappers/osg/VertexProgram.cpp | 225 +- src/osgWrappers/osg/View.cpp | 213 +- src/osgWrappers/osg/Viewport.cpp | 123 +- src/osgWrappers/osg/observer_ptr.cpp | 9 +- src/osgWrappers/osgDB/Archive.cpp | 83 +- src/osgWrappers/osgDB/DatabasePager.cpp | 332 ++- src/osgWrappers/osgDB/DotOsgWrapper.cpp | 59 +- src/osgWrappers/osgDB/DynamicLibrary.cpp | 37 +- src/osgWrappers/osgDB/Field.cpp | 184 +- src/osgWrappers/osgDB/FieldReader.cpp | 43 +- src/osgWrappers/osgDB/FieldReaderIterator.cpp | 168 +- src/osgWrappers/osgDB/ImageOptions.cpp | 71 +- src/osgWrappers/osgDB/Input.cpp | 83 +- src/osgWrappers/osgDB/ParameterOutput.cpp | 25 +- src/osgWrappers/osgDB/ReaderWriter.cpp | 409 +++- src/osgWrappers/osgDB/ReentrantMutex.cpp | 19 +- src/osgWrappers/osgDB/Registry.cpp | 519 ++++- src/osgWrappers/osgDB/SharedStateManager.cpp | 38 +- src/osgWrappers/osgFX/AnisotropicLighting.cpp | 87 +- src/osgWrappers/osgFX/BumpMapping.cpp | 154 +- src/osgWrappers/osgFX/Cartoon.cpp | 96 +- src/osgWrappers/osgFX/Effect.cpp | 105 +- src/osgWrappers/osgFX/MultiTextureControl.cpp | 62 +- src/osgWrappers/osgFX/Registry.cpp | 24 +- src/osgWrappers/osgFX/Scribe.cpp | 82 +- src/osgWrappers/osgFX/SpecularHighlights.cpp | 110 +- src/osgWrappers/osgFX/Technique.cpp | 44 +- src/osgWrappers/osgFX/Validator.cpp | 68 +- .../osgGA/AnimationPathManipulator.cpp | 114 +- src/osgWrappers/osgGA/DriveManipulator.cpp | 131 +- src/osgWrappers/osgGA/EventQueue.cpp | 179 +- src/osgWrappers/osgGA/EventVisitor.cpp | 121 +- src/osgWrappers/osgGA/FlightManipulator.cpp | 135 +- src/osgWrappers/osgGA/GNUmakefile | 1 - src/osgWrappers/osgGA/GUIActionAdapter.cpp | 19 +- src/osgWrappers/osgGA/GUIEventAdapter.cpp | 305 ++- src/osgWrappers/osgGA/GUIEventHandler.cpp | 63 +- .../osgGA/KeySwitchMatrixManipulator.cpp | 245 ++- src/osgWrappers/osgGA/MatrixManipulator.cpp | 203 +- .../osgGA/NodeTrackerManipulator.cpp | 173 +- src/osgWrappers/osgGA/SimpleViewer.cpp | 191 +- src/osgWrappers/osgGA/StateSetManipulator.cpp | 113 +- src/osgWrappers/osgGA/TerrainManipulator.cpp | 116 +- .../osgGA/TrackballManipulator.cpp | 177 +- src/osgWrappers/osgGA/UFOManipulator.cpp | 169 +- src/osgWrappers/osgParticle/AccelOperator.cpp | 67 +- .../osgParticle/AngularAccelOperator.cpp | 58 +- src/osgWrappers/osgParticle/BoxPlacer.cpp | 105 +- .../osgParticle/CenteredPlacer.cpp | 43 +- .../osgParticle/ConnectedParticleSystem.cpp | 49 +- .../osgParticle/ConstantRateCounter.cpp | 67 +- src/osgWrappers/osgParticle/Counter.cpp | 29 +- src/osgWrappers/osgParticle/Emitter.cpp | 57 +- .../osgParticle/ExplosionDebrisEffect.cpp | 83 +- .../osgParticle/ExplosionEffect.cpp | 83 +- src/osgWrappers/osgParticle/FireEffect.cpp | 83 +- .../osgParticle/FluidFrictionOperator.cpp | 110 +- src/osgWrappers/osgParticle/FluidProgram.cpp | 114 +- src/osgWrappers/osgParticle/ForceOperator.cpp | 58 +- src/osgWrappers/osgParticle/Interpolator.cpp | 44 +- .../osgParticle/LinearInterpolator.cpp | 39 +- .../osgParticle/ModularEmitter.cpp | 110 +- .../osgParticle/ModularProgram.cpp | 64 +- .../osgParticle/MultiSegmentPlacer.cpp | 88 +- src/osgWrappers/osgParticle/Operator.cpp | 53 +- src/osgWrappers/osgParticle/Particle.cpp | 401 +++- .../osgParticle/ParticleEffect.cpp | 251 ++- .../osgParticle/ParticleProcessor.cpp | 217 +- .../osgParticle/ParticleSystem.cpp | 239 +- .../osgParticle/ParticleSystemUpdater.cpp | 107 +- src/osgWrappers/osgParticle/Placer.cpp | 38 +- src/osgWrappers/osgParticle/PointPlacer.cpp | 48 +- .../osgParticle/PrecipitationEffect.cpp | 413 +++- src/osgWrappers/osgParticle/Program.cpp | 29 +- src/osgWrappers/osgParticle/RadialShooter.cpp | 115 +- .../osgParticle/RandomRateCounter.cpp | 39 +- src/osgWrappers/osgParticle/SectorPlacer.cpp | 86 +- src/osgWrappers/osgParticle/SegmentPlacer.cpp | 91 +- src/osgWrappers/osgParticle/Shooter.cpp | 29 +- src/osgWrappers/osgParticle/SmokeEffect.cpp | 83 +- .../osgParticle/SmokeTrailEffect.cpp | 83 +- .../osgParticle/VariableRateCounter.cpp | 43 +- src/osgWrappers/osgParticle/range.cpp | 124 +- .../GraphicsContextImplementation.cpp | 59 +- .../osgProducer/KeyboardMouseCallback.cpp | 171 +- .../osgProducer/OsgCameraGroup.cpp | 374 +++- .../osgProducer/OsgSceneHandler.cpp | 176 +- src/osgWrappers/osgProducer/Viewer.cpp | 447 +++- .../osgProducer/ViewerEventHandler.cpp | 99 +- .../osgShadow/ParallelSplitShadowMap.cpp | 34 +- src/osgWrappers/osgShadow/ShadowTechnique.cpp | 34 +- src/osgWrappers/osgShadow/ShadowVolume.cpp | 34 +- src/osgWrappers/osgShadow/ShadowedScene.cpp | 91 +- src/osgWrappers/osgSim/BlinkSequence.cpp | 145 +- src/osgWrappers/osgSim/ColorRange.cpp | 24 +- src/osgWrappers/osgSim/DOFTransform.cpp | 312 ++- src/osgWrappers/osgSim/GeographicLocation.cpp | 54 +- src/osgWrappers/osgSim/Impostor.cpp | 130 +- src/osgWrappers/osgSim/ImpostorSprite.cpp | 255 ++- .../osgSim/InsertImpostorsVisitor.cpp | 57 +- src/osgWrappers/osgSim/LightPoint.cpp | 19 +- src/osgWrappers/osgSim/LightPointNode.cpp | 171 +- src/osgWrappers/osgSim/LightPointSystem.cpp | 62 +- src/osgWrappers/osgSim/MultiSwitch.cpp | 169 +- .../osgSim/OpenFlightOptimizer.cpp | 46 +- src/osgWrappers/osgSim/OverlayNode.cpp | 152 +- src/osgWrappers/osgSim/ScalarBar.cpp | 202 +- src/osgWrappers/osgSim/ScalarsToColors.cpp | 28 +- src/osgWrappers/osgSim/Sector.cpp | 391 +++- src/osgWrappers/osgSim/SphereSegment.cpp | 248 ++- src/osgWrappers/osgSim/VisibilityGroup.cpp | 91 +- src/osgWrappers/osgTerrain/DataSet.cpp | 1545 ++++++++++--- .../osgTerrain/HeightFieldNode.cpp | 168 +- .../osgTerrain/HeightFieldRenderer.cpp | 43 +- src/osgWrappers/osgText/FadeText.cpp | 53 +- src/osgWrappers/osgText/Font.cpp | 452 +++- src/osgWrappers/osgText/String.cpp | 64 +- src/osgWrappers/osgText/Text.cpp | 601 +++-- src/osgWrappers/osgUtil/CubeMapGenerator.cpp | 25 +- src/osgWrappers/osgUtil/CullVisitor.cpp | 303 ++- .../osgUtil/DelaunayTriangulator.cpp | 182 +- .../osgUtil/DisplayRequirementsVisitor.cpp | 33 +- src/osgWrappers/osgUtil/GLObjectsVisitor.cpp | 58 +- .../osgUtil/HalfWayMapGenerator.cpp | 10 +- .../osgUtil/HighlightMapGenerator.cpp | 10 +- src/osgWrappers/osgUtil/IntersectVisitor.cpp | 276 ++- src/osgWrappers/osgUtil/Optimizer.cpp | 632 ++++-- .../osgUtil/PositionalStateContainer.cpp | 87 +- .../osgUtil/ReflectionMapGenerator.cpp | 10 +- src/osgWrappers/osgUtil/RenderBin.cpp | 345 ++- src/osgWrappers/osgUtil/RenderLeaf.cpp | 20 +- src/osgWrappers/osgUtil/RenderStage.cpp | 414 +++- src/osgWrappers/osgUtil/SceneView.cpp | 808 +++++-- src/osgWrappers/osgUtil/Simplifier.cpp | 128 +- src/osgWrappers/osgUtil/SmoothingVisitor.cpp | 14 +- src/osgWrappers/osgUtil/StateGraph.cpp | 181 +- src/osgWrappers/osgUtil/Statistics.cpp | 219 +- .../osgUtil/TangentSpaceGenerator.cpp | 80 +- src/osgWrappers/osgUtil/Tesselator.cpp | 151 +- .../osgUtil/TransformAttributeFunctor.cpp | 10 +- src/osgWrappers/osgUtil/TransformCallback.cpp | 14 +- src/osgWrappers/osgUtil/TriStripVisitor.cpp | 72 +- src/osgWrappers/osgUtil/UpdateVisitor.cpp | 59 +- 266 files changed, 37808 insertions(+), 9935 deletions(-) diff --git a/VisualStudio/osgWrappers/osgGA/wrapper_osgGA.dsp b/VisualStudio/osgWrappers/osgGA/wrapper_osgGA.dsp index d03de979a..705ca74e2 100644 --- a/VisualStudio/osgWrappers/osgGA/wrapper_osgGA.dsp +++ b/VisualStudio/osgWrappers/osgGA/wrapper_osgGA.dsp @@ -127,10 +127,6 @@ SOURCE=..\..\..\src\osgWrappers\osgGA\GUIEventAdapter.cpp SOURCE=..\..\..\src\osgWrappers\osgGA\GUIEventHandler.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgGA\GraphicsWindow.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgGA\KeySwitchMatrixManipulator.cpp # End Source File diff --git a/src/osgWrappers/osg/AlphaFunc.cpp b/src/osgWrappers/osg/AlphaFunc.cpp index ed2982fb5..a82bbc47a 100644 --- a/src/osgWrappers/osg/AlphaFunc.cpp +++ b/src/osgWrappers/osg/AlphaFunc.cpp @@ -37,25 +37,81 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::AlphaFunc) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_Constructor2(IN, osg::AlphaFunc::ComparisonFunction, func, IN, float, ref); - I_ConstructorWithDefaults2(IN, const osg::AlphaFunc &, af, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method2(void, setFunction, IN, osg::AlphaFunc::ComparisonFunction, func, IN, float, ref); - I_Method1(void, setFunction, IN, osg::AlphaFunc::ComparisonFunction, func); - I_Method0(osg::AlphaFunc::ComparisonFunction, getFunction); - I_Method1(void, setReferenceValue, IN, float, value); - I_Method0(float, getReferenceValue); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(osg::AlphaFunc::ComparisonFunction, Function); - I_Property(float, ReferenceValue); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____AlphaFunc, + "", + ""); + I_Constructor2(IN, osg::AlphaFunc::ComparisonFunction, func, IN, float, ref, + ____AlphaFunc__ComparisonFunction__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::AlphaFunc &, af, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AlphaFunc__C5_AlphaFunc_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method2(void, setFunction, IN, osg::AlphaFunc::ComparisonFunction, func, IN, float, ref, + __void__setFunction__ComparisonFunction__float, + "", + ""); + I_Method1(void, setFunction, IN, osg::AlphaFunc::ComparisonFunction, func, + __void__setFunction__ComparisonFunction, + "", + ""); + I_Method0(osg::AlphaFunc::ComparisonFunction, getFunction, + __ComparisonFunction__getFunction, + "", + ""); + I_Method1(void, setReferenceValue, IN, float, value, + __void__setReferenceValue__float, + "", + ""); + I_Method0(float, getReferenceValue, + __float__getReferenceValue, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(osg::AlphaFunc::ComparisonFunction, Function, + __ComparisonFunction__getFunction, + __void__setFunction__ComparisonFunction); + I_SimpleProperty(float, ReferenceValue, + __float__getReferenceValue, + __void__setReferenceValue__float); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/AnimationPath.cpp b/src/osgWrappers/osg/AnimationPath.cpp index 938e159f7..dedb293f1 100644 --- a/src/osgWrappers/osg/AnimationPath.cpp +++ b/src/osgWrappers/osg/AnimationPath.cpp @@ -38,93 +38,315 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::AnimationPath) I_VirtualBaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::AnimationPath &, ap, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method2(bool, getMatrix, IN, double, time, IN, osg::Matrixf &, matrix); - I_Method2(bool, getMatrix, IN, double, time, IN, osg::Matrixd &, matrix); - I_Method2(bool, getInverse, IN, double, time, IN, osg::Matrixf &, matrix); - I_Method2(bool, getInverse, IN, double, time, IN, osg::Matrixd &, matrix); - I_Method2(bool, getInterpolatedControlPoint, IN, double, time, IN, osg::AnimationPath::ControlPoint &, controlPoint); - I_Method2(void, insert, IN, double, time, IN, const osg::AnimationPath::ControlPoint &, controlPoint); - I_Method0(double, getFirstTime); - I_Method0(double, getLastTime); - I_Method0(double, getPeriod); - I_Method1(void, setLoopMode, IN, osg::AnimationPath::LoopMode, lm); - I_Method0(osg::AnimationPath::LoopMode, getLoopMode); - I_Method1(void, setTimeControlPointMap, IN, osg::AnimationPath::TimeControlPointMap &, tcpm); - I_Method0(osg::AnimationPath::TimeControlPointMap &, getTimeControlPointMap); - I_Method0(const osg::AnimationPath::TimeControlPointMap &, getTimeControlPointMap); - I_Method0(bool, empty); - I_Method1(void, read, IN, std::istream &, in); - I_Method1(void, write, IN, std::ostream &, out); - I_ReadOnlyProperty(double, FirstTime); - I_ReadOnlyProperty(double, LastTime); - I_Property(osg::AnimationPath::LoopMode, LoopMode); - I_ReadOnlyProperty(double, Period); - I_Property(osg::AnimationPath::TimeControlPointMap &, TimeControlPointMap); + I_Constructor0(____AnimationPath, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::AnimationPath &, ap, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AnimationPath__C5_AnimationPath_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method2(bool, getMatrix, IN, double, time, IN, osg::Matrixf &, matrix, + __bool__getMatrix__double__Matrixf_R1, + "Given a specific time, return the transformation matrix for a point. ", + ""); + I_Method2(bool, getMatrix, IN, double, time, IN, osg::Matrixd &, matrix, + __bool__getMatrix__double__Matrixd_R1, + "Given a specific time, return the transformation matrix for a point. ", + ""); + I_Method2(bool, getInverse, IN, double, time, IN, osg::Matrixf &, matrix, + __bool__getInverse__double__Matrixf_R1, + "Given a specific time, return the inverse transformation matrix for a point. ", + ""); + I_Method2(bool, getInverse, IN, double, time, IN, osg::Matrixd &, matrix, + __bool__getInverse__double__Matrixd_R1, + "", + ""); + I_Method2(bool, getInterpolatedControlPoint, IN, double, time, IN, osg::AnimationPath::ControlPoint &, controlPoint, + __bool__getInterpolatedControlPoint__double__ControlPoint_R1, + "Given a specific time, return the local ControlPoint frame for a point. ", + ""); + I_Method2(void, insert, IN, double, time, IN, const osg::AnimationPath::ControlPoint &, controlPoint, + __void__insert__double__C5_ControlPoint_R1, + "", + ""); + I_Method0(double, getFirstTime, + __double__getFirstTime, + "", + ""); + I_Method0(double, getLastTime, + __double__getLastTime, + "", + ""); + I_Method0(double, getPeriod, + __double__getPeriod, + "", + ""); + I_Method1(void, setLoopMode, IN, osg::AnimationPath::LoopMode, lm, + __void__setLoopMode__LoopMode, + "", + ""); + I_Method0(osg::AnimationPath::LoopMode, getLoopMode, + __LoopMode__getLoopMode, + "", + ""); + I_Method1(void, setTimeControlPointMap, IN, osg::AnimationPath::TimeControlPointMap &, tcpm, + __void__setTimeControlPointMap__TimeControlPointMap_R1, + "", + ""); + I_Method0(osg::AnimationPath::TimeControlPointMap &, getTimeControlPointMap, + __TimeControlPointMap_R1__getTimeControlPointMap, + "", + ""); + I_Method0(const osg::AnimationPath::TimeControlPointMap &, getTimeControlPointMap, + __C5_TimeControlPointMap_R1__getTimeControlPointMap, + "", + ""); + I_Method0(bool, empty, + __bool__empty, + "", + ""); + I_Method1(void, read, IN, std::istream &, in, + __void__read__std_istream_R1, + "Read the animation path from a flat ASCII file stream. ", + ""); + I_Method1(void, write, IN, std::ostream &, out, + __void__write__std_ostream_R1, + "Write the animation path to a flat ASCII file stream. ", + ""); + I_SimpleProperty(double, FirstTime, + __double__getFirstTime, + 0); + I_SimpleProperty(double, LastTime, + __double__getLastTime, + 0); + I_SimpleProperty(osg::AnimationPath::LoopMode, LoopMode, + __LoopMode__getLoopMode, + __void__setLoopMode__LoopMode); + I_SimpleProperty(double, Period, + __double__getPeriod, + 0); + I_SimpleProperty(osg::AnimationPath::TimeControlPointMap &, TimeControlPointMap, + __TimeControlPointMap_R1__getTimeControlPointMap, + __void__setTimeControlPointMap__TimeControlPointMap_R1); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::AnimationPath::ControlPoint) - I_Constructor0(); - I_Constructor1(IN, const osg::Vec3d &, position); - I_Constructor2(IN, const osg::Vec3d &, position, IN, const osg::Quat &, rotation); - I_Constructor3(IN, const osg::Vec3d &, position, IN, const osg::Quat &, rotation, IN, const osg::Vec3d &, scale); - I_Method1(void, setPosition, IN, const osg::Vec3d &, position); - I_Method0(const osg::Vec3d &, getPosition); - I_Method1(void, setRotation, IN, const osg::Quat &, rotation); - I_Method0(const osg::Quat &, getRotation); - I_Method1(void, setScale, IN, const osg::Vec3d &, scale); - I_Method0(const osg::Vec3d &, getScale); - I_Method3(void, interpolate, IN, float, ratio, IN, const osg::AnimationPath::ControlPoint &, first, IN, const osg::AnimationPath::ControlPoint &, second); - I_Method3(void, interpolate, IN, double, ratio, IN, const osg::AnimationPath::ControlPoint &, first, IN, const osg::AnimationPath::ControlPoint &, second); - I_Method1(void, getMatrix, IN, osg::Matrixf &, matrix); - I_Method1(void, getMatrix, IN, osg::Matrixd &, matrix); - I_Method1(void, getInverse, IN, osg::Matrixf &, matrix); - I_Method1(void, getInverse, IN, osg::Matrixd &, matrix); - I_Property(const osg::Vec3d &, Position); - I_Property(const osg::Quat &, Rotation); - I_Property(const osg::Vec3d &, Scale); + I_Constructor0(____ControlPoint, + "", + ""); + I_Constructor1(IN, const osg::Vec3d &, position, + ____ControlPoint__C5_osg_Vec3d_R1, + "", + ""); + I_Constructor2(IN, const osg::Vec3d &, position, IN, const osg::Quat &, rotation, + ____ControlPoint__C5_osg_Vec3d_R1__C5_osg_Quat_R1, + "", + ""); + I_Constructor3(IN, const osg::Vec3d &, position, IN, const osg::Quat &, rotation, IN, const osg::Vec3d &, scale, + ____ControlPoint__C5_osg_Vec3d_R1__C5_osg_Quat_R1__C5_osg_Vec3d_R1, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3d &, position, + __void__setPosition__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPosition, + __C5_osg_Vec3d_R1__getPosition, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, rotation, + __void__setRotation__C5_osg_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + __C5_osg_Quat_R1__getRotation, + "", + ""); + I_Method1(void, setScale, IN, const osg::Vec3d &, scale, + __void__setScale__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getScale, + __C5_osg_Vec3d_R1__getScale, + "", + ""); + I_Method3(void, interpolate, IN, float, ratio, IN, const osg::AnimationPath::ControlPoint &, first, IN, const osg::AnimationPath::ControlPoint &, second, + __void__interpolate__float__C5_ControlPoint_R1__C5_ControlPoint_R1, + "", + ""); + I_Method3(void, interpolate, IN, double, ratio, IN, const osg::AnimationPath::ControlPoint &, first, IN, const osg::AnimationPath::ControlPoint &, second, + __void__interpolate__double__C5_ControlPoint_R1__C5_ControlPoint_R1, + "", + ""); + I_Method1(void, getMatrix, IN, osg::Matrixf &, matrix, + __void__getMatrix__Matrixf_R1, + "", + ""); + I_Method1(void, getMatrix, IN, osg::Matrixd &, matrix, + __void__getMatrix__Matrixd_R1, + "", + ""); + I_Method1(void, getInverse, IN, osg::Matrixf &, matrix, + __void__getInverse__Matrixf_R1, + "", + ""); + I_Method1(void, getInverse, IN, osg::Matrixd &, matrix, + __void__getInverse__Matrixd_R1, + "", + ""); + I_SimpleProperty(const osg::Vec3d &, Position, + __C5_osg_Vec3d_R1__getPosition, + __void__setPosition__C5_osg_Vec3d_R1); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_osg_Quat_R1__getRotation, + __void__setRotation__C5_osg_Quat_R1); + I_SimpleProperty(const osg::Vec3d &, Scale, + __C5_osg_Vec3d_R1__getScale, + __void__setScale__C5_osg_Vec3d_R1); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::AnimationPathCallback) I_BaseType(osg::NodeCallback); - I_Constructor0(); - I_Constructor2(IN, const osg::AnimationPathCallback &, apc, IN, const osg::CopyOp &, copyop); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_ConstructorWithDefaults3(IN, osg::AnimationPath *, ap, , IN, double, timeOffset, 0.0, IN, double, timeMultiplier, 1.0); - I_Constructor3(IN, const osg::Vec3d &, pivot, IN, const osg::Vec3d &, axis, IN, float, angularVelocity); - I_Method1(void, setAnimationPath, IN, osg::AnimationPath *, path); - I_Method0(osg::AnimationPath *, getAnimationPath); - I_Method0(const osg::AnimationPath *, getAnimationPath); - I_Method1(void, setPivotPoint, IN, const osg::Vec3d &, pivot); - I_Method0(const osg::Vec3d &, getPivotPoint); - I_Method1(void, setUseInverseMatrix, IN, bool, useInverseMatrix); - I_Method0(bool, getUseInverseMatrix); - I_Method1(void, setTimeOffset, IN, double, offset); - I_Method0(double, getTimeOffset); - I_Method1(void, setTimeMultiplier, IN, double, multiplier); - I_Method0(double, getTimeMultiplier); - I_Method0(void, reset); - I_Method1(void, setPause, IN, bool, pause); - I_Method0(bool, getPause); - I_Method0(double, getAnimationTime); - I_Method1(void, update, IN, osg::Node &, node); - I_Property(osg::AnimationPath *, AnimationPath); - I_ReadOnlyProperty(double, AnimationTime); - I_Property(bool, Pause); - I_Property(const osg::Vec3d &, PivotPoint); - I_Property(double, TimeMultiplier); - I_Property(double, TimeOffset); - I_Property(bool, UseInverseMatrix); + I_Constructor0(____AnimationPathCallback, + "", + ""); + I_Constructor2(IN, const osg::AnimationPathCallback &, apc, IN, const osg::CopyOp &, copyop, + ____AnimationPathCallback__C5_AnimationPathCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_ConstructorWithDefaults3(IN, osg::AnimationPath *, ap, , IN, double, timeOffset, 0.0, IN, double, timeMultiplier, 1.0, + ____AnimationPathCallback__AnimationPath_P1__double__double, + "Construct an AnimationPathCallback with a specified animation path. ", + ""); + I_Constructor3(IN, const osg::Vec3d &, pivot, IN, const osg::Vec3d &, axis, IN, float, angularVelocity, + ____AnimationPathCallback__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__float, + "Construct an AnimationPathCallback and automatical create an animation path to produce a rotation about a point. ", + ""); + I_Method1(void, setAnimationPath, IN, osg::AnimationPath *, path, + __void__setAnimationPath__AnimationPath_P1, + "", + ""); + I_Method0(osg::AnimationPath *, getAnimationPath, + __AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const osg::AnimationPath *, getAnimationPath, + __C5_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method1(void, setPivotPoint, IN, const osg::Vec3d &, pivot, + __void__setPivotPoint__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPivotPoint, + __C5_Vec3d_R1__getPivotPoint, + "", + ""); + I_Method1(void, setUseInverseMatrix, IN, bool, useInverseMatrix, + __void__setUseInverseMatrix__bool, + "", + ""); + I_Method0(bool, getUseInverseMatrix, + __bool__getUseInverseMatrix, + "", + ""); + I_Method1(void, setTimeOffset, IN, double, offset, + __void__setTimeOffset__double, + "", + ""); + I_Method0(double, getTimeOffset, + __double__getTimeOffset, + "", + ""); + I_Method1(void, setTimeMultiplier, IN, double, multiplier, + __void__setTimeMultiplier__double, + "", + ""); + I_Method0(double, getTimeMultiplier, + __double__getTimeMultiplier, + "", + ""); + I_Method0(void, reset, + __void__reset, + "", + ""); + I_Method1(void, setPause, IN, bool, pause, + __void__setPause__bool, + "", + ""); + I_Method0(bool, getPause, + __bool__getPause, + "", + ""); + I_Method0(double, getAnimationTime, + __double__getAnimationTime, + "Get the animation time that is used to specify the position along the AnimationPath. ", + "Animation time is computed from the formula: ((_latestTime-_firstTime)-_timeOffset)*_timeMultiplier. "); + I_Method1(void, update, IN, osg::Node &, node, + __void__update__osg_Node_R1, + "", + ""); + I_SimpleProperty(osg::AnimationPath *, AnimationPath, + __AnimationPath_P1__getAnimationPath, + __void__setAnimationPath__AnimationPath_P1); + I_SimpleProperty(double, AnimationTime, + __double__getAnimationTime, + 0); + I_SimpleProperty(bool, Pause, + __bool__getPause, + __void__setPause__bool); + I_SimpleProperty(const osg::Vec3d &, PivotPoint, + __C5_Vec3d_R1__getPivotPoint, + __void__setPivotPoint__C5_Vec3d_R1); + I_SimpleProperty(double, TimeMultiplier, + __double__getTimeMultiplier, + __void__setTimeMultiplier__double); + I_SimpleProperty(double, TimeOffset, + __double__getTimeOffset, + __void__setTimeOffset__double); + I_SimpleProperty(bool, UseInverseMatrix, + __bool__getUseInverseMatrix, + __void__setUseInverseMatrix__bool); I_PublicMemberProperty(osg::ref_ptr< osg::AnimationPath >, _animationPath); I_PublicMemberProperty(osg::Vec3d, _pivotPoint); I_PublicMemberProperty(bool, _useInverseMatrix); diff --git a/src/osgWrappers/osg/ApplicationUsage.cpp b/src/osgWrappers/osg/ApplicationUsage.cpp index b26883f09..279f9b469 100644 --- a/src/osgWrappers/osg/ApplicationUsage.cpp +++ b/src/osgWrappers/osg/ApplicationUsage.cpp @@ -29,45 +29,144 @@ BEGIN_ENUM_REFLECTOR(osg::ApplicationUsage::Type) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ApplicationUsage) - I_Constructor0(); - I_Constructor1(IN, const std::string &, commandLineUsage); - I_Method1(void, setApplicationName, IN, const std::string &, name); - I_Method0(const std::string &, getApplicationName); - I_Method1(void, setDescription, IN, const std::string &, desc); - I_Method0(const std::string &, getDescription); - I_Method3(void, addUsageExplanation, IN, osg::ApplicationUsage::Type, type, IN, const std::string &, option, IN, const std::string &, explanation); - I_Method1(void, setCommandLineUsage, IN, const std::string &, explanation); - I_Method0(const std::string &, getCommandLineUsage); - I_MethodWithDefaults3(void, addCommandLineOption, IN, const std::string &, option, , IN, const std::string &, explanation, , IN, const std::string &, defaultValue, ""); - I_Method1(void, setCommandLineOptions, IN, const osg::ApplicationUsage::UsageMap &, usageMap); - I_Method0(const osg::ApplicationUsage::UsageMap &, getCommandLineOptions); - I_Method1(void, setCommandLineOptionsDefaults, IN, const osg::ApplicationUsage::UsageMap &, usageMap); - I_Method0(const osg::ApplicationUsage::UsageMap &, getCommandLineOptionsDefaults); - I_MethodWithDefaults3(void, addEnvironmentalVariable, IN, const std::string &, option, , IN, const std::string &, explanation, , IN, const std::string &, defaultValue, ""); - I_Method1(void, setEnvironmentalVariables, IN, const osg::ApplicationUsage::UsageMap &, usageMap); - I_Method0(const osg::ApplicationUsage::UsageMap &, getEnvironmentalVariables); - I_Method1(void, setEnvironmentalVariablesDefaults, IN, const osg::ApplicationUsage::UsageMap &, usageMap); - I_Method0(const osg::ApplicationUsage::UsageMap &, getEnvironmentalVariablesDefaults); - I_Method2(void, addKeyboardMouseBinding, IN, const std::string &, option, IN, const std::string &, explanation); - I_Method1(void, setKeyboardMouseBindings, IN, const osg::ApplicationUsage::UsageMap &, usageMap); - I_Method0(const osg::ApplicationUsage::UsageMap &, getKeyboardMouseBindings); - I_MethodWithDefaults5(void, getFormattedString, IN, std::string &, str, , IN, const osg::ApplicationUsage::UsageMap &, um, , IN, unsigned int, widthOfOutput, 80, IN, bool, showDefaults, false, IN, const osg::ApplicationUsage::UsageMap &, ud, osg::ApplicationUsage::UsageMap()); - I_MethodWithDefaults5(void, write, IN, std::ostream &, output, , IN, const osg::ApplicationUsage::UsageMap &, um, , IN, unsigned int, widthOfOutput, 80, IN, bool, showDefaults, false, IN, const osg::ApplicationUsage::UsageMap &, ud, osg::ApplicationUsage::UsageMap()); - I_MethodWithDefaults4(void, write, IN, std::ostream &, output, , IN, unsigned int, type, osg::ApplicationUsage::COMMAND_LINE_OPTION, IN, unsigned int, widthOfOutput, 80, IN, bool, showDefaults, false); - I_Method1(void, writeEnvironmentSettings, IN, std::ostream &, output); - I_StaticMethod0(osg::ApplicationUsage *, instance); - I_Property(const std::string &, ApplicationName); - I_Property(const osg::ApplicationUsage::UsageMap &, CommandLineOptions); - I_Property(const osg::ApplicationUsage::UsageMap &, CommandLineOptionsDefaults); - I_Property(const std::string &, CommandLineUsage); - I_Property(const std::string &, Description); - I_Property(const osg::ApplicationUsage::UsageMap &, EnvironmentalVariables); - I_Property(const osg::ApplicationUsage::UsageMap &, EnvironmentalVariablesDefaults); - I_Property(const osg::ApplicationUsage::UsageMap &, KeyboardMouseBindings); + I_Constructor0(____ApplicationUsage, + "", + ""); + I_Constructor1(IN, const std::string &, commandLineUsage, + ____ApplicationUsage__C5_std_string_R1, + "", + ""); + I_Method1(void, setApplicationName, IN, const std::string &, name, + __void__setApplicationName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getApplicationName, + __C5_std_string_R1__getApplicationName, + "", + ""); + I_Method1(void, setDescription, IN, const std::string &, desc, + __void__setDescription__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDescription, + __C5_std_string_R1__getDescription, + "", + ""); + I_Method3(void, addUsageExplanation, IN, osg::ApplicationUsage::Type, type, IN, const std::string &, option, IN, const std::string &, explanation, + __void__addUsageExplanation__Type__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setCommandLineUsage, IN, const std::string &, explanation, + __void__setCommandLineUsage__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getCommandLineUsage, + __C5_std_string_R1__getCommandLineUsage, + "", + ""); + I_MethodWithDefaults3(void, addCommandLineOption, IN, const std::string &, option, , IN, const std::string &, explanation, , IN, const std::string &, defaultValue, "", + __void__addCommandLineOption__C5_std_string_R1__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setCommandLineOptions, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + __void__setCommandLineOptions__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getCommandLineOptions, + __C5_UsageMap_R1__getCommandLineOptions, + "", + ""); + I_Method1(void, setCommandLineOptionsDefaults, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + __void__setCommandLineOptionsDefaults__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getCommandLineOptionsDefaults, + __C5_UsageMap_R1__getCommandLineOptionsDefaults, + "", + ""); + I_MethodWithDefaults3(void, addEnvironmentalVariable, IN, const std::string &, option, , IN, const std::string &, explanation, , IN, const std::string &, defaultValue, "", + __void__addEnvironmentalVariable__C5_std_string_R1__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setEnvironmentalVariables, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + __void__setEnvironmentalVariables__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getEnvironmentalVariables, + __C5_UsageMap_R1__getEnvironmentalVariables, + "", + ""); + I_Method1(void, setEnvironmentalVariablesDefaults, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + __void__setEnvironmentalVariablesDefaults__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getEnvironmentalVariablesDefaults, + __C5_UsageMap_R1__getEnvironmentalVariablesDefaults, + "", + ""); + I_Method2(void, addKeyboardMouseBinding, IN, const std::string &, option, IN, const std::string &, explanation, + __void__addKeyboardMouseBinding__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setKeyboardMouseBindings, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + __void__setKeyboardMouseBindings__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getKeyboardMouseBindings, + __C5_UsageMap_R1__getKeyboardMouseBindings, + "", + ""); + I_MethodWithDefaults5(void, getFormattedString, IN, std::string &, str, , IN, const osg::ApplicationUsage::UsageMap &, um, , IN, unsigned int, widthOfOutput, 80, IN, bool, showDefaults, false, IN, const osg::ApplicationUsage::UsageMap &, ud, osg::ApplicationUsage::UsageMap(), + __void__getFormattedString__std_string_R1__C5_UsageMap_R1__unsigned_int__bool__C5_UsageMap_R1, + "", + ""); + I_MethodWithDefaults5(void, write, IN, std::ostream &, output, , IN, const osg::ApplicationUsage::UsageMap &, um, , IN, unsigned int, widthOfOutput, 80, IN, bool, showDefaults, false, IN, const osg::ApplicationUsage::UsageMap &, ud, osg::ApplicationUsage::UsageMap(), + __void__write__std_ostream_R1__C5_UsageMap_R1__unsigned_int__bool__C5_UsageMap_R1, + "", + ""); + I_MethodWithDefaults4(void, write, IN, std::ostream &, output, , IN, unsigned int, type, osg::ApplicationUsage::COMMAND_LINE_OPTION, IN, unsigned int, widthOfOutput, 80, IN, bool, showDefaults, false, + __void__write__std_ostream_R1__unsigned_int__unsigned_int__bool, + "", + ""); + I_Method1(void, writeEnvironmentSettings, IN, std::ostream &, output, + __void__writeEnvironmentSettings__std_ostream_R1, + "", + ""); + I_StaticMethod0(osg::ApplicationUsage *, instance, + __ApplicationUsage_P1__instance_S, + "", + ""); + I_SimpleProperty(const std::string &, ApplicationName, + __C5_std_string_R1__getApplicationName, + __void__setApplicationName__C5_std_string_R1); + I_SimpleProperty(const osg::ApplicationUsage::UsageMap &, CommandLineOptions, + __C5_UsageMap_R1__getCommandLineOptions, + __void__setCommandLineOptions__C5_UsageMap_R1); + I_SimpleProperty(const osg::ApplicationUsage::UsageMap &, CommandLineOptionsDefaults, + __C5_UsageMap_R1__getCommandLineOptionsDefaults, + __void__setCommandLineOptionsDefaults__C5_UsageMap_R1); + I_SimpleProperty(const std::string &, CommandLineUsage, + __C5_std_string_R1__getCommandLineUsage, + __void__setCommandLineUsage__C5_std_string_R1); + I_SimpleProperty(const std::string &, Description, + __C5_std_string_R1__getDescription, + __void__setDescription__C5_std_string_R1); + I_SimpleProperty(const osg::ApplicationUsage::UsageMap &, EnvironmentalVariables, + __C5_UsageMap_R1__getEnvironmentalVariables, + __void__setEnvironmentalVariables__C5_UsageMap_R1); + I_SimpleProperty(const osg::ApplicationUsage::UsageMap &, EnvironmentalVariablesDefaults, + __C5_UsageMap_R1__getEnvironmentalVariablesDefaults, + __void__setEnvironmentalVariablesDefaults__C5_UsageMap_R1); + I_SimpleProperty(const osg::ApplicationUsage::UsageMap &, KeyboardMouseBindings, + __C5_UsageMap_R1__getKeyboardMouseBindings, + __void__setKeyboardMouseBindings__C5_UsageMap_R1); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ApplicationUsageProxy) - I_Constructor3(IN, osg::ApplicationUsage::Type, type, IN, const std::string &, option, IN, const std::string &, explanation); + I_Constructor3(IN, osg::ApplicationUsage::Type, type, IN, const std::string &, option, IN, const std::string &, explanation, + ____ApplicationUsageProxy__ApplicationUsage_Type__C5_std_string_R1__C5_std_string_R1, + "register an explanation of commandline/evironmentalvaraible/keyboard mouse usage. ", + ""); END_REFLECTOR STD_MAP_REFLECTOR(std::map< std::string COMMA std::string >); diff --git a/src/osgWrappers/osg/ArgumentParser.cpp b/src/osgWrappers/osg/ArgumentParser.cpp index 84b215ea7..fcfdd49b2 100644 --- a/src/osgWrappers/osg/ArgumentParser.cpp +++ b/src/osgWrappers/osg/ArgumentParser.cpp @@ -29,50 +29,179 @@ BEGIN_ENUM_REFLECTOR(osg::ArgumentParser::ErrorSeverity) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ArgumentParser) - I_Constructor2(IN, int *, argc, IN, char **, argv); - I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, usage); - I_Method0(osg::ApplicationUsage *, getApplicationUsage); - I_Method0(const osg::ApplicationUsage *, getApplicationUsage); - I_Method0(int &, argc); - I_Method0(char **, argv); - I_Method0(std::string, getApplicationName); - I_Method1(int, find, IN, const std::string &, str); - I_Method1(bool, isOption, IN, int, pos); - I_Method1(bool, isString, IN, int, pos); - I_Method1(bool, isNumber, IN, int, pos); - I_Method0(bool, containsOptions); - I_MethodWithDefaults2(void, remove, IN, int, pos, , IN, int, num, 1); - I_Method2(bool, match, IN, int, pos, IN, const std::string &, str); - I_Method1(bool, read, IN, const std::string &, str); - I_Method2(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1); - I_Method3(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2); - I_Method4(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3); - I_Method5(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4); - I_Method6(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5); - I_Method7(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6); - I_Method8(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, IN, osg::ArgumentParser::Parameter, value7); - I_Method9(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, IN, osg::ArgumentParser::Parameter, value7, IN, osg::ArgumentParser::Parameter, value8); - I_Method2(bool, read, IN, int, pos, IN, const std::string &, str); - I_Method3(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1); - I_Method4(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2); - I_Method5(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3); - I_Method6(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4); - I_Method7(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5); - I_Method8(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6); - I_Method9(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, IN, osg::ArgumentParser::Parameter, value7); - I_Method10(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, IN, osg::ArgumentParser::Parameter, value7, IN, osg::ArgumentParser::Parameter, value8); - I_MethodWithDefaults1(bool, errors, IN, osg::ArgumentParser::ErrorSeverity, severity, osg::ArgumentParser::BENIGN); - I_MethodWithDefaults2(void, reportError, IN, const std::string &, message, , IN, osg::ArgumentParser::ErrorSeverity, severity, osg::ArgumentParser::CRITICAL); - I_MethodWithDefaults1(void, reportRemainingOptionsAsUnrecognized, IN, osg::ArgumentParser::ErrorSeverity, severity, osg::ArgumentParser::BENIGN); - I_Method0(osg::ArgumentParser::ErrorMessageMap &, getErrorMessageMap); - I_Method0(const osg::ArgumentParser::ErrorMessageMap &, getErrorMessageMap); - I_MethodWithDefaults2(void, writeErrorMessages, IN, std::ostream &, output, , IN, osg::ArgumentParser::ErrorSeverity, sevrity, osg::ArgumentParser::BENIGN); - I_StaticMethod1(bool, isOption, IN, const char *, str); - I_StaticMethod1(bool, isString, IN, const char *, str); - I_StaticMethod1(bool, isNumber, IN, const char *, str); - I_ReadOnlyProperty(std::string, ApplicationName); - I_Property(osg::ApplicationUsage *, ApplicationUsage); - I_ReadOnlyProperty(osg::ArgumentParser::ErrorMessageMap &, ErrorMessageMap); + I_Constructor2(IN, int *, argc, IN, char **, argv, + ____ArgumentParser__int_P1__char_P1P1, + "", + ""); + I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, usage, + __void__setApplicationUsage__ApplicationUsage_P1, + "", + ""); + I_Method0(osg::ApplicationUsage *, getApplicationUsage, + __ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(const osg::ApplicationUsage *, getApplicationUsage, + __C5_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(int &, argc, + __int_R1__argc, + "Return the argument count. ", + ""); + I_Method0(char **, argv, + __char_P1P1__argv, + "Return the argument array. ", + ""); + I_Method0(std::string, getApplicationName, + __std_string__getApplicationName, + "Return the application name, as specified by argv[0]. ", + ""); + I_Method1(int, find, IN, const std::string &, str, + __int__find__C5_std_string_R1, + "Return the position of an occurance of a string in the argument list. ", + "Return -1 if no string is found. "); + I_Method1(bool, isOption, IN, int, pos, + __bool__isOption__int, + "Return true if the specified parameter is an option in the form of -option or --option. ", + ""); + I_Method1(bool, isString, IN, int, pos, + __bool__isString__int, + "Return true if the specified parameter is a string not in the form of an option. ", + ""); + I_Method1(bool, isNumber, IN, int, pos, + __bool__isNumber__int, + "Return true if the specified parameter is a number. ", + ""); + I_Method0(bool, containsOptions, + __bool__containsOptions, + "", + ""); + I_MethodWithDefaults2(void, remove, IN, int, pos, , IN, int, num, 1, + __void__remove__int__int, + "Remove one or more arguments from the argv argument list, and decrement the argc respectively. ", + ""); + I_Method2(bool, match, IN, int, pos, IN, const std::string &, str, + __bool__match__int__C5_std_string_R1, + "Return true if the specified argument matches the given string. ", + ""); + I_Method1(bool, read, IN, const std::string &, str, + __bool__read__C5_std_string_R1, + "Search for an occurance of a string in the argument list. ", + "If found, remove that occurance and return true. Otherwise, return false. "); + I_Method2(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, + __bool__read__C5_std_string_R1__Parameter, + "", + ""); + I_Method3(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, + __bool__read__C5_std_string_R1__Parameter__Parameter, + "", + ""); + I_Method4(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, + __bool__read__C5_std_string_R1__Parameter__Parameter__Parameter, + "", + ""); + I_Method5(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, + __bool__read__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method6(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, + __bool__read__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method7(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, + __bool__read__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method8(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, IN, osg::ArgumentParser::Parameter, value7, + __bool__read__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method9(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, IN, osg::ArgumentParser::Parameter, value7, IN, osg::ArgumentParser::Parameter, value8, + __bool__read__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method2(bool, read, IN, int, pos, IN, const std::string &, str, + __bool__read__int__C5_std_string_R1, + "If the argument value at the specified position matches the given string, and subsequent parameters are also matched, then set the parameter values, remove the arguments from the list, and return true. ", + "Otherwise, return false. "); + I_Method3(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, + __bool__read__int__C5_std_string_R1__Parameter, + "", + ""); + I_Method4(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, + __bool__read__int__C5_std_string_R1__Parameter__Parameter, + "", + ""); + I_Method5(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, + __bool__read__int__C5_std_string_R1__Parameter__Parameter__Parameter, + "", + ""); + I_Method6(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, + __bool__read__int__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method7(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, + __bool__read__int__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method8(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, + __bool__read__int__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method9(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, IN, osg::ArgumentParser::Parameter, value7, + __bool__read__int__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method10(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, IN, osg::ArgumentParser::Parameter, value7, IN, osg::ArgumentParser::Parameter, value8, + __bool__read__int__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_MethodWithDefaults1(bool, errors, IN, osg::ArgumentParser::ErrorSeverity, severity, osg::ArgumentParser::BENIGN, + __bool__errors__ErrorSeverity, + "Return the error flag, true if an error has occured when reading arguments. ", + ""); + I_MethodWithDefaults2(void, reportError, IN, const std::string &, message, , IN, osg::ArgumentParser::ErrorSeverity, severity, osg::ArgumentParser::CRITICAL, + __void__reportError__C5_std_string_R1__ErrorSeverity, + "Report an error message by adding to the ErrorMessageMap. ", + ""); + I_MethodWithDefaults1(void, reportRemainingOptionsAsUnrecognized, IN, osg::ArgumentParser::ErrorSeverity, severity, osg::ArgumentParser::BENIGN, + __void__reportRemainingOptionsAsUnrecognized__ErrorSeverity, + "For each remaining option, report it as unrecognized. ", + ""); + I_Method0(osg::ArgumentParser::ErrorMessageMap &, getErrorMessageMap, + __ErrorMessageMap_R1__getErrorMessageMap, + "Return the error message, if any has occured. ", + ""); + I_Method0(const osg::ArgumentParser::ErrorMessageMap &, getErrorMessageMap, + __C5_ErrorMessageMap_R1__getErrorMessageMap, + "Return the error message, if any has occured. ", + ""); + I_MethodWithDefaults2(void, writeErrorMessages, IN, std::ostream &, output, , IN, osg::ArgumentParser::ErrorSeverity, sevrity, osg::ArgumentParser::BENIGN, + __void__writeErrorMessages__std_ostream_R1__ErrorSeverity, + "Write error messages to the given ostream, if at or above the given severiity. ", + ""); + I_StaticMethod1(bool, isOption, IN, const char *, str, + __bool__isOption__C5_char_P1_S, + "Return true if the specified string is an option in the form -option or --option. ", + ""); + I_StaticMethod1(bool, isString, IN, const char *, str, + __bool__isString__C5_char_P1_S, + "Return true if string is non-NULL and not an option in the form -option or --option. ", + ""); + I_StaticMethod1(bool, isNumber, IN, const char *, str, + __bool__isNumber__C5_char_P1_S, + "Return true if specified parameter is a number. ", + ""); + I_SimpleProperty(std::string, ApplicationName, + __std_string__getApplicationName, + 0); + I_SimpleProperty(osg::ApplicationUsage *, ApplicationUsage, + __ApplicationUsage_P1__getApplicationUsage, + __void__setApplicationUsage__ApplicationUsage_P1); + I_SimpleProperty(osg::ArgumentParser::ErrorMessageMap &, ErrorMessageMap, + __ErrorMessageMap_R1__getErrorMessageMap, + 0); END_REFLECTOR BEGIN_ENUM_REFLECTOR(osg::ArgumentParser::Parameter::ParameterType) @@ -84,14 +213,38 @@ BEGIN_ENUM_REFLECTOR(osg::ArgumentParser::Parameter::ParameterType) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ArgumentParser::Parameter) - I_Constructor1(IN, float &, value); - I_Constructor1(IN, double &, value); - I_Constructor1(IN, int &, value); - I_Constructor1(IN, unsigned int &, value); - I_Constructor1(IN, std::string &, value); - I_Constructor1(IN, const osg::ArgumentParser::Parameter &, param); - I_Method1(bool, valid, IN, const char *, str); - I_Method1(bool, assign, IN, const char *, str); + I_Constructor1(IN, float &, value, + ____Parameter__float_R1, + "", + ""); + I_Constructor1(IN, double &, value, + ____Parameter__double_R1, + "", + ""); + I_Constructor1(IN, int &, value, + ____Parameter__int_R1, + "", + ""); + I_Constructor1(IN, unsigned int &, value, + ____Parameter__unsigned_int_R1, + "", + ""); + I_Constructor1(IN, std::string &, value, + ____Parameter__std_string_R1, + "", + ""); + I_Constructor1(IN, const osg::ArgumentParser::Parameter &, param, + ____Parameter__C5_Parameter_R1, + "", + ""); + I_Method1(bool, valid, IN, const char *, str, + __bool__valid__C5_char_P1, + "", + ""); + I_Method1(bool, assign, IN, const char *, str, + __bool__assign__C5_char_P1, + "", + ""); END_REFLECTOR STD_MAP_REFLECTOR(std::map< std::string COMMA osg::ArgumentParser::ErrorSeverity >); diff --git a/src/osgWrappers/osg/Array.cpp b/src/osgWrappers/osg/Array.cpp index 992b892aa..3628c3baf 100644 --- a/src/osgWrappers/osg/Array.cpp +++ b/src/osgWrappers/osg/Array.cpp @@ -55,126 +55,428 @@ END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Array) I_BaseType(osg::Object); - I_ConstructorWithDefaults3(IN, osg::Array::Type, arrayType, osg::Array::ArrayType, IN, GLint, dataSize, 0, IN, GLenum, dataType, 0); - I_ConstructorWithDefaults2(IN, const osg::Array &, array, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, accept, IN, osg::ArrayVisitor &, x); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, x); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, x); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, x); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(osg::Array::Type, getType); - I_Method0(GLint, getDataSize); - I_Method0(GLenum, getDataType); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_Method0(void, trim); - I_Method0(void, dirty); - I_Method1(void, setModifiedCount, IN, unsigned int, value); - I_Method0(unsigned int, getModifiedCount); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(GLint, DataSize); - I_ReadOnlyProperty(GLenum, DataType); - I_Property(unsigned int, ModifiedCount); - I_ReadOnlyProperty(unsigned int, TotalDataSize); - I_ReadOnlyProperty(osg::Array::Type, Type); + I_ConstructorWithDefaults3(IN, osg::Array::Type, arrayType, osg::Array::ArrayType, IN, GLint, dataSize, 0, IN, GLenum, dataType, 0, + ____Array__Type__GLint__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Array &, array, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Array__C5_Array_R1__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, x, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, x, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, x, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, x, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(osg::Array::Type, getType, + __Type__getType, + "", + ""); + I_Method0(GLint, getDataSize, + __GLint__getDataSize, + "", + ""); + I_Method0(GLenum, getDataType, + __GLenum__getDataType, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(void, dirty, + __void__dirty, + "Dirty the primitive, which increments the modified count, to force buffer objects to update. ", + ""); + I_Method1(void, setModifiedCount, IN, unsigned int, value, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(GLint, DataSize, + __GLint__getDataSize, + 0); + I_SimpleProperty(GLenum, DataType, + __GLenum__getDataType, + 0); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); + I_SimpleProperty(osg::Array::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ArrayVisitor) - I_Constructor0(); - I_Method1(void, apply, IN, osg::Array &, x); - I_Method1(void, apply, IN, osg::ByteArray &, x); - I_Method1(void, apply, IN, osg::ShortArray &, x); - I_Method1(void, apply, IN, osg::IntArray &, x); - I_Method1(void, apply, IN, osg::UByteArray &, x); - I_Method1(void, apply, IN, osg::UShortArray &, x); - I_Method1(void, apply, IN, osg::UIntArray &, x); - I_Method1(void, apply, IN, osg::FloatArray &, x); - I_Method1(void, apply, IN, osg::Vec2Array &, x); - I_Method1(void, apply, IN, osg::Vec3Array &, x); - I_Method1(void, apply, IN, osg::Vec4Array &, x); - I_Method1(void, apply, IN, osg::Vec4ubArray &, x); - I_Method1(void, apply, IN, osg::Vec2bArray &, x); - I_Method1(void, apply, IN, osg::Vec3bArray &, x); - I_Method1(void, apply, IN, osg::Vec4bArray &, x); - I_Method1(void, apply, IN, osg::Vec2sArray &, x); - I_Method1(void, apply, IN, osg::Vec3sArray &, x); - I_Method1(void, apply, IN, osg::Vec4sArray &, x); + I_Constructor0(____ArrayVisitor, + "", + ""); + I_Method1(void, apply, IN, osg::Array &, x, + __void__apply__Array_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ByteArray &, x, + __void__apply__ByteArray_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ShortArray &, x, + __void__apply__ShortArray_R1, + "", + ""); + I_Method1(void, apply, IN, osg::IntArray &, x, + __void__apply__IntArray_R1, + "", + ""); + I_Method1(void, apply, IN, osg::UByteArray &, x, + __void__apply__UByteArray_R1, + "", + ""); + I_Method1(void, apply, IN, osg::UShortArray &, x, + __void__apply__UShortArray_R1, + "", + ""); + I_Method1(void, apply, IN, osg::UIntArray &, x, + __void__apply__UIntArray_R1, + "", + ""); + I_Method1(void, apply, IN, osg::FloatArray &, x, + __void__apply__FloatArray_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec2Array &, x, + __void__apply__Vec2Array_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec3Array &, x, + __void__apply__Vec3Array_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4Array &, x, + __void__apply__Vec4Array_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4ubArray &, x, + __void__apply__Vec4ubArray_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec2bArray &, x, + __void__apply__Vec2bArray_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec3bArray &, x, + __void__apply__Vec3bArray_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4bArray &, x, + __void__apply__Vec4bArray_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec2sArray &, x, + __void__apply__Vec2sArray_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec3sArray &, x, + __void__apply__Vec3sArray_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4sArray &, x, + __void__apply__Vec4sArray_R1, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ConstArrayVisitor) - I_Constructor0(); - I_Method1(void, apply, IN, const osg::Array &, x); - I_Method1(void, apply, IN, const osg::ByteArray &, x); - I_Method1(void, apply, IN, const osg::ShortArray &, x); - I_Method1(void, apply, IN, const osg::IntArray &, x); - I_Method1(void, apply, IN, const osg::UByteArray &, x); - I_Method1(void, apply, IN, const osg::UShortArray &, x); - I_Method1(void, apply, IN, const osg::UIntArray &, x); - I_Method1(void, apply, IN, const osg::FloatArray &, x); - I_Method1(void, apply, IN, const osg::Vec2Array &, x); - I_Method1(void, apply, IN, const osg::Vec3Array &, x); - I_Method1(void, apply, IN, const osg::Vec4Array &, x); - I_Method1(void, apply, IN, const osg::Vec4ubArray &, x); - I_Method1(void, apply, IN, const osg::Vec2bArray &, x); - I_Method1(void, apply, IN, const osg::Vec3bArray &, x); - I_Method1(void, apply, IN, const osg::Vec4bArray &, x); - I_Method1(void, apply, IN, const osg::Vec2sArray &, x); - I_Method1(void, apply, IN, const osg::Vec3sArray &, x); - I_Method1(void, apply, IN, const osg::Vec4sArray &, x); + I_Constructor0(____ConstArrayVisitor, + "", + ""); + I_Method1(void, apply, IN, const osg::Array &, x, + __void__apply__C5_Array_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::ByteArray &, x, + __void__apply__C5_ByteArray_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::ShortArray &, x, + __void__apply__C5_ShortArray_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::IntArray &, x, + __void__apply__C5_IntArray_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::UByteArray &, x, + __void__apply__C5_UByteArray_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::UShortArray &, x, + __void__apply__C5_UShortArray_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::UIntArray &, x, + __void__apply__C5_UIntArray_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::FloatArray &, x, + __void__apply__C5_FloatArray_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec2Array &, x, + __void__apply__C5_Vec2Array_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec3Array &, x, + __void__apply__C5_Vec3Array_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec4Array &, x, + __void__apply__C5_Vec4Array_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec4ubArray &, x, + __void__apply__C5_Vec4ubArray_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec2bArray &, x, + __void__apply__C5_Vec2bArray_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec3bArray &, x, + __void__apply__C5_Vec3bArray_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec4bArray &, x, + __void__apply__C5_Vec4bArray_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec2sArray &, x, + __void__apply__C5_Vec2sArray_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec3sArray &, x, + __void__apply__C5_Vec3sArray_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec4sArray &, x, + __void__apply__C5_Vec4sArray_R1, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ConstValueVisitor) - I_Constructor0(); - I_Method1(void, apply, IN, const GLbyte &, x); - I_Method1(void, apply, IN, const GLshort &, x); - I_Method1(void, apply, IN, const GLint &, x); - I_Method1(void, apply, IN, const GLushort &, x); - I_Method1(void, apply, IN, const GLubyte &, x); - I_Method1(void, apply, IN, const GLuint &, x); - I_Method1(void, apply, IN, const GLfloat &, x); - I_Method1(void, apply, IN, const osg::Vec4ub &, x); - I_Method1(void, apply, IN, const osg::Vec2 &, x); - I_Method1(void, apply, IN, const osg::Vec3 &, x); - I_Method1(void, apply, IN, const osg::Vec4 &, x); - I_Method1(void, apply, IN, const osg::Vec2b &, x); - I_Method1(void, apply, IN, const osg::Vec3b &, x); - I_Method1(void, apply, IN, const osg::Vec4b &, x); - I_Method1(void, apply, IN, const osg::Vec2s &, x); - I_Method1(void, apply, IN, const osg::Vec3s &, x); - I_Method1(void, apply, IN, const osg::Vec4s &, x); + I_Constructor0(____ConstValueVisitor, + "", + ""); + I_Method1(void, apply, IN, const GLbyte &, x, + __void__apply__C5_GLbyte_R1, + "", + ""); + I_Method1(void, apply, IN, const GLshort &, x, + __void__apply__C5_GLshort_R1, + "", + ""); + I_Method1(void, apply, IN, const GLint &, x, + __void__apply__C5_GLint_R1, + "", + ""); + I_Method1(void, apply, IN, const GLushort &, x, + __void__apply__C5_GLushort_R1, + "", + ""); + I_Method1(void, apply, IN, const GLubyte &, x, + __void__apply__C5_GLubyte_R1, + "", + ""); + I_Method1(void, apply, IN, const GLuint &, x, + __void__apply__C5_GLuint_R1, + "", + ""); + I_Method1(void, apply, IN, const GLfloat &, x, + __void__apply__C5_GLfloat_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec4ub &, x, + __void__apply__C5_Vec4ub_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec2 &, x, + __void__apply__C5_Vec2_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec3 &, x, + __void__apply__C5_Vec3_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec4 &, x, + __void__apply__C5_Vec4_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec2b &, x, + __void__apply__C5_Vec2b_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec3b &, x, + __void__apply__C5_Vec3b_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec4b &, x, + __void__apply__C5_Vec4b_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec2s &, x, + __void__apply__C5_Vec2s_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec3s &, x, + __void__apply__C5_Vec3s_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec4s &, x, + __void__apply__C5_Vec4s_R1, + "", + ""); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::IndexArray) I_BaseType(osg::Array); - I_ConstructorWithDefaults3(IN, osg::Array::Type, arrayType, osg::Array::ArrayType, IN, GLint, dataSize, 0, IN, GLenum, dataType, 0); - I_ConstructorWithDefaults2(IN, const osg::Array &, array, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method1(unsigned int, index, IN, unsigned int, pos); + I_ConstructorWithDefaults3(IN, osg::Array::Type, arrayType, osg::Array::ArrayType, IN, GLint, dataSize, 0, IN, GLenum, dataType, 0, + ____IndexArray__Type__GLint__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Array &, array, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____IndexArray__C5_Array_R1__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + __unsigned_int__index__unsigned_int, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ValueVisitor) - I_Constructor0(); - I_Method1(void, apply, IN, GLbyte &, x); - I_Method1(void, apply, IN, GLshort &, x); - I_Method1(void, apply, IN, GLint &, x); - I_Method1(void, apply, IN, GLushort &, x); - I_Method1(void, apply, IN, GLubyte &, x); - I_Method1(void, apply, IN, GLuint &, x); - I_Method1(void, apply, IN, GLfloat &, x); - I_Method1(void, apply, IN, osg::Vec2 &, x); - I_Method1(void, apply, IN, osg::Vec3 &, x); - I_Method1(void, apply, IN, osg::Vec4 &, x); - I_Method1(void, apply, IN, osg::Vec4ub &, x); - I_Method1(void, apply, IN, osg::Vec2b &, x); - I_Method1(void, apply, IN, osg::Vec3b &, x); - I_Method1(void, apply, IN, osg::Vec4b &, x); - I_Method1(void, apply, IN, osg::Vec2s &, x); - I_Method1(void, apply, IN, osg::Vec3s &, x); - I_Method1(void, apply, IN, osg::Vec4s &, x); + I_Constructor0(____ValueVisitor, + "", + ""); + I_Method1(void, apply, IN, GLbyte &, x, + __void__apply__GLbyte_R1, + "", + ""); + I_Method1(void, apply, IN, GLshort &, x, + __void__apply__GLshort_R1, + "", + ""); + I_Method1(void, apply, IN, GLint &, x, + __void__apply__GLint_R1, + "", + ""); + I_Method1(void, apply, IN, GLushort &, x, + __void__apply__GLushort_R1, + "", + ""); + I_Method1(void, apply, IN, GLubyte &, x, + __void__apply__GLubyte_R1, + "", + ""); + I_Method1(void, apply, IN, GLuint &, x, + __void__apply__GLuint_R1, + "", + ""); + I_Method1(void, apply, IN, GLfloat &, x, + __void__apply__GLfloat_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec2 &, x, + __void__apply__Vec2_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec3 &, x, + __void__apply__Vec3_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4 &, x, + __void__apply__Vec4_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4ub &, x, + __void__apply__Vec4ub_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec2b &, x, + __void__apply__Vec2b_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec3b &, x, + __void__apply__Vec3b_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4b &, x, + __void__apply__Vec4b_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec2s &, x, + __void__apply__Vec2s_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec3s &, x, + __void__apply__Vec3s_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4s &, x, + __void__apply__Vec4s_R1, + "", + ""); END_REFLECTOR TYPE_NAME_ALIAS(osg::TemplateIndexArray< GLbyte COMMA osg::Array::ByteArrayType COMMA 1 COMMA GL_BYTE >, osg::ByteArray); @@ -214,381 +516,1215 @@ TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec4b COMMA osg::Array::Vec4bArrayType BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< GLfloat COMMA osg::Array::FloatArrayType COMMA 1 COMMA GL_FLOAT >) I_BaseType(osg::Array); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateArray< GLfloat COMMA osg::Array::FloatArrayType COMMA 1 COMMA GL_FLOAT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, GLfloat *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateArray< GLfloat COMMA osg::Array::FloatArrayType COMMA 1 COMMA GL_FLOAT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateArray__C5_TemplateArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, GLfloat *, ptr, + ____TemplateArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2 COMMA osg::Array::Vec2ArrayType COMMA 2 COMMA GL_FLOAT >) I_BaseType(osg::Array); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec2 COMMA osg::Array::Vec2ArrayType COMMA 2 COMMA GL_FLOAT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec2 *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec2 COMMA osg::Array::Vec2ArrayType COMMA 2 COMMA GL_FLOAT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateArray__C5_TemplateArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, osg::Vec2 *, ptr, + ____TemplateArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2b COMMA osg::Array::Vec2bArrayType COMMA 2 COMMA GL_BYTE >) I_BaseType(osg::Array); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec2b COMMA osg::Array::Vec2bArrayType COMMA 2 COMMA GL_BYTE > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec2b *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec2b COMMA osg::Array::Vec2bArrayType COMMA 2 COMMA GL_BYTE > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateArray__C5_TemplateArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, osg::Vec2b *, ptr, + ____TemplateArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2s COMMA osg::Array::Vec2sArrayType COMMA 2 COMMA GL_SHORT >) I_BaseType(osg::Array); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec2s COMMA osg::Array::Vec2sArrayType COMMA 2 COMMA GL_SHORT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec2s *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec2s COMMA osg::Array::Vec2sArrayType COMMA 2 COMMA GL_SHORT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateArray__C5_TemplateArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, osg::Vec2s *, ptr, + ____TemplateArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3 COMMA osg::Array::Vec3ArrayType COMMA 3 COMMA GL_FLOAT >) I_BaseType(osg::Array); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec3 COMMA osg::Array::Vec3ArrayType COMMA 3 COMMA GL_FLOAT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec3 *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec3 COMMA osg::Array::Vec3ArrayType COMMA 3 COMMA GL_FLOAT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateArray__C5_TemplateArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, osg::Vec3 *, ptr, + ____TemplateArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3b COMMA osg::Array::Vec3bArrayType COMMA 3 COMMA GL_BYTE >) I_BaseType(osg::Array); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec3b COMMA osg::Array::Vec3bArrayType COMMA 3 COMMA GL_BYTE > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec3b *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec3b COMMA osg::Array::Vec3bArrayType COMMA 3 COMMA GL_BYTE > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateArray__C5_TemplateArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, osg::Vec3b *, ptr, + ____TemplateArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3s COMMA osg::Array::Vec3sArrayType COMMA 3 COMMA GL_SHORT >) I_BaseType(osg::Array); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec3s COMMA osg::Array::Vec3sArrayType COMMA 3 COMMA GL_SHORT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec3s *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec3s COMMA osg::Array::Vec3sArrayType COMMA 3 COMMA GL_SHORT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateArray__C5_TemplateArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, osg::Vec3s *, ptr, + ____TemplateArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4 COMMA osg::Array::Vec4ArrayType COMMA 4 COMMA GL_FLOAT >) I_BaseType(osg::Array); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec4 COMMA osg::Array::Vec4ArrayType COMMA 4 COMMA GL_FLOAT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec4 *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec4 COMMA osg::Array::Vec4ArrayType COMMA 4 COMMA GL_FLOAT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateArray__C5_TemplateArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, osg::Vec4 *, ptr, + ____TemplateArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4b COMMA osg::Array::Vec4bArrayType COMMA 4 COMMA GL_BYTE >) I_BaseType(osg::Array); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec4b COMMA osg::Array::Vec4bArrayType COMMA 4 COMMA GL_BYTE > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec4b *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec4b COMMA osg::Array::Vec4bArrayType COMMA 4 COMMA GL_BYTE > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateArray__C5_TemplateArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, osg::Vec4b *, ptr, + ____TemplateArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4s COMMA osg::Array::Vec4sArrayType COMMA 4 COMMA GL_SHORT >) I_BaseType(osg::Array); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec4s COMMA osg::Array::Vec4sArrayType COMMA 4 COMMA GL_SHORT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec4s *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec4s COMMA osg::Array::Vec4sArrayType COMMA 4 COMMA GL_SHORT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateArray__C5_TemplateArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, osg::Vec4s *, ptr, + ____TemplateArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4ub COMMA osg::Array::Vec4ubArrayType COMMA 4 COMMA GL_UNSIGNED_BYTE >) I_BaseType(osg::Array); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec4ub COMMA osg::Array::Vec4ubArrayType COMMA 4 COMMA GL_UNSIGNED_BYTE > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec4ub *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateArray< osg::Vec4ub COMMA osg::Array::Vec4ubArrayType COMMA 4 COMMA GL_UNSIGNED_BYTE > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateArray__C5_TemplateArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, osg::Vec4ub *, ptr, + ____TemplateArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLbyte COMMA osg::Array::ByteArrayType COMMA 1 COMMA GL_BYTE >) I_BaseType(osg::IndexArray); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateIndexArray< GLbyte COMMA osg::Array::ByteArrayType COMMA 1 COMMA GL_BYTE > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, GLbyte *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_Method1(unsigned int, index, IN, unsigned int, pos); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateIndexArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateIndexArray< GLbyte COMMA osg::Array::ByteArrayType COMMA 1 COMMA GL_BYTE > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateIndexArray__C5_TemplateIndexArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateIndexArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, GLbyte *, ptr, + ____TemplateIndexArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + __unsigned_int__index__unsigned_int, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLint COMMA osg::Array::IntArrayType COMMA 1 COMMA GL_INT >) I_BaseType(osg::IndexArray); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateIndexArray< GLint COMMA osg::Array::IntArrayType COMMA 1 COMMA GL_INT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, GLint *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_Method1(unsigned int, index, IN, unsigned int, pos); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateIndexArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateIndexArray< GLint COMMA osg::Array::IntArrayType COMMA 1 COMMA GL_INT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateIndexArray__C5_TemplateIndexArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateIndexArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, GLint *, ptr, + ____TemplateIndexArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + __unsigned_int__index__unsigned_int, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLshort COMMA osg::Array::ShortArrayType COMMA 1 COMMA GL_SHORT >) I_BaseType(osg::IndexArray); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateIndexArray< GLshort COMMA osg::Array::ShortArrayType COMMA 1 COMMA GL_SHORT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, GLshort *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_Method1(unsigned int, index, IN, unsigned int, pos); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateIndexArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateIndexArray< GLshort COMMA osg::Array::ShortArrayType COMMA 1 COMMA GL_SHORT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateIndexArray__C5_TemplateIndexArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateIndexArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, GLshort *, ptr, + ____TemplateIndexArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + __unsigned_int__index__unsigned_int, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLubyte COMMA osg::Array::UByteArrayType COMMA 1 COMMA GL_UNSIGNED_BYTE >) I_BaseType(osg::IndexArray); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateIndexArray< GLubyte COMMA osg::Array::UByteArrayType COMMA 1 COMMA GL_UNSIGNED_BYTE > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, GLubyte *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_Method1(unsigned int, index, IN, unsigned int, pos); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateIndexArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateIndexArray< GLubyte COMMA osg::Array::UByteArrayType COMMA 1 COMMA GL_UNSIGNED_BYTE > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateIndexArray__C5_TemplateIndexArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateIndexArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, GLubyte *, ptr, + ____TemplateIndexArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + __unsigned_int__index__unsigned_int, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLuint COMMA osg::Array::UIntArrayType COMMA 1 COMMA GL_UNSIGNED_INT >) I_BaseType(osg::IndexArray); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateIndexArray< GLuint COMMA osg::Array::UIntArrayType COMMA 1 COMMA GL_UNSIGNED_INT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, GLuint *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_Method1(unsigned int, index, IN, unsigned int, pos); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateIndexArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateIndexArray< GLuint COMMA osg::Array::UIntArrayType COMMA 1 COMMA GL_UNSIGNED_INT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateIndexArray__C5_TemplateIndexArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateIndexArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, GLuint *, ptr, + ____TemplateIndexArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + __unsigned_int__index__unsigned_int, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLushort COMMA osg::Array::UShortArrayType COMMA 1 COMMA GL_UNSIGNED_SHORT >) I_BaseType(osg::IndexArray); I_BaseType(std::vector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TemplateIndexArray< GLushort COMMA osg::Array::UShortArrayType COMMA 1 COMMA GL_UNSIGNED_SHORT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, unsigned int, no); - I_Constructor2(IN, unsigned int, no, IN, GLushort *, ptr); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(void, accept, IN, osg::ArrayVisitor &, av); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs); - I_Method0(void, trim); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(unsigned int, getNumElements); - I_Method1(unsigned int, index, IN, unsigned int, pos); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_Constructor0(____TemplateIndexArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TemplateIndexArray< GLushort COMMA osg::Array::UShortArrayType COMMA 1 COMMA GL_UNSIGNED_SHORT > &, ta, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TemplateIndexArray__C5_TemplateIndexArray_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor1(IN, unsigned int, no, + ____TemplateIndexArray__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, GLushort *, ptr, + ____TemplateIndexArray__unsigned_int__T_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + __int__compare__unsigned_int__unsigned_int, + "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", + ""); + I_Method0(void, trim, + __void__trim, + "Frees unused space on this vector - i.e. ", + "the difference between size() and max_size() of the underlying vector. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + __unsigned_int__index__unsigned_int, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/AutoTransform.cpp b/src/osgWrappers/osg/AutoTransform.cpp index 6dc98047c..9ca904d68 100644 --- a/src/osgWrappers/osg/AutoTransform.cpp +++ b/src/osgWrappers/osg/AutoTransform.cpp @@ -35,40 +35,137 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::AutoTransform) I_BaseType(osg::Transform); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::AutoTransform &, pat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(osg::AutoTransform *, asAutoTransform); - I_Method0(const osg::AutoTransform *, asAutoTransform); - I_Method1(void, setPosition, IN, const osg::Vec3 &, pos); - I_Method0(const osg::Vec3 &, getPosition); - I_Method1(void, setRotation, IN, const osg::Quat &, quat); - I_Method0(const osg::Quat &, getRotation); - I_Method1(void, setScale, IN, float, scale); - I_Method1(void, setScale, IN, const osg::Vec3 &, scale); - I_Method0(const osg::Vec3 &, getScale); - I_Method1(void, setPivotPoint, IN, const osg::Vec3 &, pivot); - I_Method0(const osg::Vec3 &, getPivotPoint); - I_Method1(void, setAutoUpdateEyeMovementTolerance, IN, float, tolerance); - I_Method0(float, getAutoUpdateEyeMovementTolerance); - I_Method1(void, setAutoRotateMode, IN, osg::AutoTransform::AutoRotateMode, mode); - I_Method0(osg::AutoTransform::AutoRotateMode, getAutoRotateMode); - I_Method1(void, setAutoScaleToScreen, IN, bool, autoScaleToScreen); - I_Method0(bool, getAutoScaleToScreen); - I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv); - I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv); - I_Method0(osg::BoundingSphere, computeBound); - I_Property(osg::AutoTransform::AutoRotateMode, AutoRotateMode); - I_Property(bool, AutoScaleToScreen); - I_Property(float, AutoUpdateEyeMovementTolerance); - I_Property(const osg::Vec3 &, PivotPoint); - I_Property(const osg::Vec3 &, Position); - I_Property(const osg::Quat &, Rotation); - I_Property(const osg::Vec3 &, Scale); + I_Constructor0(____AutoTransform, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::AutoTransform &, pat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AutoTransform__C5_AutoTransform_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(osg::AutoTransform *, asAutoTransform, + __AutoTransform_P1__asAutoTransform, + "", + ""); + I_Method0(const osg::AutoTransform *, asAutoTransform, + __C5_AutoTransform_P1__asAutoTransform, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, + __void__setPosition__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getPosition, + __C5_Vec3_R1__getPosition, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method1(void, setScale, IN, float, scale, + __void__setScale__float, + "", + ""); + I_Method1(void, setScale, IN, const osg::Vec3 &, scale, + __void__setScale__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getScale, + __C5_Vec3_R1__getScale, + "", + ""); + I_Method1(void, setPivotPoint, IN, const osg::Vec3 &, pivot, + __void__setPivotPoint__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getPivotPoint, + __C5_Vec3_R1__getPivotPoint, + "", + ""); + I_Method1(void, setAutoUpdateEyeMovementTolerance, IN, float, tolerance, + __void__setAutoUpdateEyeMovementTolerance__float, + "", + ""); + I_Method0(float, getAutoUpdateEyeMovementTolerance, + __float__getAutoUpdateEyeMovementTolerance, + "", + ""); + I_Method1(void, setAutoRotateMode, IN, osg::AutoTransform::AutoRotateMode, mode, + __void__setAutoRotateMode__AutoRotateMode, + "", + ""); + I_Method0(osg::AutoTransform::AutoRotateMode, getAutoRotateMode, + __AutoRotateMode__getAutoRotateMode, + "", + ""); + I_Method1(void, setAutoScaleToScreen, IN, bool, autoScaleToScreen, + __void__setAutoScaleToScreen__bool, + "", + ""); + I_Method0(bool, getAutoScaleToScreen, + __bool__getAutoScaleToScreen, + "", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + __BoundingSphere__computeBound, + "Overrides Group's computeBound. ", + "There is no need to override in subclasses from osg::Transform since this computeBound() uses the underlying matrix (calling computeMatrix if required)."); + I_SimpleProperty(osg::AutoTransform::AutoRotateMode, AutoRotateMode, + __AutoRotateMode__getAutoRotateMode, + __void__setAutoRotateMode__AutoRotateMode); + I_SimpleProperty(bool, AutoScaleToScreen, + __bool__getAutoScaleToScreen, + __void__setAutoScaleToScreen__bool); + I_SimpleProperty(float, AutoUpdateEyeMovementTolerance, + __float__getAutoUpdateEyeMovementTolerance, + __void__setAutoUpdateEyeMovementTolerance__float); + I_SimpleProperty(const osg::Vec3 &, PivotPoint, + __C5_Vec3_R1__getPivotPoint, + __void__setPivotPoint__C5_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_Vec3_R1__getPosition, + __void__setPosition__C5_Vec3_R1); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_Quat_R1__getRotation, + __void__setRotation__C5_Quat_R1); + I_SimpleProperty(const osg::Vec3 &, Scale, + __C5_Vec3_R1__getScale, + __void__setScale__C5_Vec3_R1); END_REFLECTOR diff --git a/src/osgWrappers/osg/Billboard.cpp b/src/osgWrappers/osg/Billboard.cpp index 60df635b9..632a2bced 100644 --- a/src/osgWrappers/osg/Billboard.cpp +++ b/src/osgWrappers/osg/Billboard.cpp @@ -37,35 +37,117 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Billboard) I_BaseType(osg::Geode); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Billboard &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, setMode, IN, osg::Billboard::Mode, mode); - I_Method0(osg::Billboard::Mode, getMode); - I_Method1(void, setAxis, IN, const osg::Vec3 &, axis); - I_Method0(const osg::Vec3 &, getAxis); - I_Method1(void, setNormal, IN, const osg::Vec3 &, normal); - I_Method0(const osg::Vec3 &, getNormal); - I_Method2(void, setPosition, IN, unsigned int, i, IN, const osg::Vec3 &, pos); - I_Method1(const osg::Vec3 &, getPosition, IN, unsigned int, i); - I_Method1(void, setPositionList, IN, osg::Billboard::PositionList &, pl); - I_Method0(osg::Billboard::PositionList &, getPositionList); - I_Method0(const osg::Billboard::PositionList &, getPositionList); - I_Method1(bool, addDrawable, IN, osg::Drawable *, gset); - I_Method2(bool, addDrawable, IN, osg::Drawable *, gset, IN, const osg::Vec3 &, pos); - I_Method1(bool, removeDrawable, IN, osg::Drawable *, gset); - I_Method3(bool, computeMatrix, IN, osg::Matrix &, modelview, IN, const osg::Vec3 &, eye_local, IN, const osg::Vec3 &, pos_local); - I_Method0(osg::BoundingSphere, computeBound); - I_Property(const osg::Vec3 &, Axis); - I_Property(osg::Billboard::Mode, Mode); - I_Property(const osg::Vec3 &, Normal); - I_IndexedProperty1(const osg::Vec3 &, Position, unsigned int, i); - I_Property(osg::Billboard::PositionList &, PositionList); + I_Constructor0(____Billboard, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Billboard &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Billboard__C5_Billboard_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, setMode, IN, osg::Billboard::Mode, mode, + __void__setMode__Mode, + "Set the billboard rotation mode. ", + ""); + I_Method0(osg::Billboard::Mode, getMode, + __Mode__getMode, + "Get the billboard rotation mode. ", + ""); + I_Method1(void, setAxis, IN, const osg::Vec3 &, axis, + __void__setAxis__C5_Vec3_R1, + "Set the rotation axis for the billboard's child Drawables. ", + "Only utlized when mode==AXIAL_ROT. "); + I_Method0(const osg::Vec3 &, getAxis, + __C5_Vec3_R1__getAxis, + "Get the rotation axis. ", + ""); + I_Method1(void, setNormal, IN, const osg::Vec3 &, normal, + __void__setNormal__C5_Vec3_R1, + "This normal defines child Drawables' front face direction when unrotated. ", + ""); + I_Method0(const osg::Vec3 &, getNormal, + __C5_Vec3_R1__getNormal, + "Get the front face direction normal. ", + ""); + I_Method2(void, setPosition, IN, unsigned int, i, IN, const osg::Vec3 &, pos, + __void__setPosition__unsigned_int__C5_Vec3_R1, + "Set the specified child Drawable's position. ", + ""); + I_Method1(const osg::Vec3 &, getPosition, IN, unsigned int, i, + __C5_Vec3_R1__getPosition__unsigned_int, + "Get the specified child Drawable's position. ", + ""); + I_Method1(void, setPositionList, IN, osg::Billboard::PositionList &, pl, + __void__setPositionList__PositionList_R1, + "Set the list of pivot point positions. ", + ""); + I_Method0(osg::Billboard::PositionList &, getPositionList, + __PositionList_R1__getPositionList, + "Get the list of pivot point positions. ", + ""); + I_Method0(const osg::Billboard::PositionList &, getPositionList, + __C5_PositionList_R1__getPositionList, + "Get a const list of pivot point positions. ", + ""); + I_Method1(bool, addDrawable, IN, osg::Drawable *, gset, + __bool__addDrawable__Drawable_P1, + "Add a Drawable with a default position of Vec3(0,0,0). ", + "Call the base-class Geode::addDrawble() to add the given Drawable gset as a child. If Geode::addDrawable() returns true, add the default position to the pivot point position list and return true. Otherwise, return false. "); + I_Method2(bool, addDrawable, IN, osg::Drawable *, gset, IN, const osg::Vec3 &, pos, + __bool__addDrawable__Drawable_P1__C5_Vec3_R1, + "Add a Drawable with a specified position. ", + "Call the base-class Geode::addDrawble() to add the given Drawable gset as a child. If Geode::addDrawable() returns true, add the given position pos to the pivot point position list and return true. Otherwise, return false. "); + I_Method1(bool, removeDrawable, IN, osg::Drawable *, gset, + __bool__removeDrawable__Drawable_P1, + "Remove a Drawable and its associated position. ", + "If gset is a child, remove it, decrement its reference count, remove its pivot point position. and return true. Otherwise, return false. "); + I_Method3(bool, computeMatrix, IN, osg::Matrix &, modelview, IN, const osg::Vec3 &, eye_local, IN, const osg::Vec3 &, pos_local, + __bool__computeMatrix__Matrix_R1__C5_Vec3_R1__C5_Vec3_R1, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + __BoundingSphere__computeBound, + "Compute the bounding sphere around Node's geometry or children. ", + "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); + I_SimpleProperty(const osg::Vec3 &, Axis, + __C5_Vec3_R1__getAxis, + __void__setAxis__C5_Vec3_R1); + I_SimpleProperty(osg::Billboard::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(const osg::Vec3 &, Normal, + __C5_Vec3_R1__getNormal, + __void__setNormal__C5_Vec3_R1); + I_IndexedProperty(const osg::Vec3 &, Position, + __C5_Vec3_R1__getPosition__unsigned_int, + __void__setPosition__unsigned_int__C5_Vec3_R1, + 0); + I_SimpleProperty(osg::Billboard::PositionList &, PositionList, + __PositionList_R1__getPositionList, + __void__setPositionList__PositionList_R1); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< osg::Vec3 >); diff --git a/src/osgWrappers/osg/BlendColor.cpp b/src/osgWrappers/osg/BlendColor.cpp index 31d07b81a..b523dc89e 100644 --- a/src/osgWrappers/osg/BlendColor.cpp +++ b/src/osgWrappers/osg/BlendColor.cpp @@ -27,39 +27,120 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendColor) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_Constructor1(IN, const osg::Vec4 &, constantColor); - I_ConstructorWithDefaults2(IN, const osg::BlendColor &, trans, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(void, setConstantColor, IN, const osg::Vec4 &, color); - I_Method0(osg::Vec4 &, getConstantColor); - I_Method0(const osg::Vec4 &, getConstantColor); - I_Method1(void, apply, IN, osg::State &, state); - I_StaticMethod2(osg::BlendColor::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::BlendColor::Extensions *, extensions); - I_Property(const osg::Vec4 &, ConstantColor); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____BlendColor, + "", + ""); + I_Constructor1(IN, const osg::Vec4 &, constantColor, + ____BlendColor__C5_osg_Vec4_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::BlendColor &, trans, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BlendColor__C5_BlendColor_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setConstantColor, IN, const osg::Vec4 &, color, + __void__setConstantColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(osg::Vec4 &, getConstantColor, + __osg_Vec4_R1__getConstantColor, + "", + ""); + I_Method0(const osg::Vec4 &, getConstantColor, + __C5_osg_Vec4_R1__getConstantColor, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_StaticMethod2(osg::BlendColor::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Returns the Extensions object for the given context. ", + "If createIfNotInitalized is true and the Exentsions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::BlendColor::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions() allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(const osg::Vec4 &, ConstantColor, + __C5_osg_Vec4_R1__getConstantColor, + __void__setConstantColor__C5_osg_Vec4_R1); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::BlendColor::Extensions) I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID); - I_Constructor1(IN, const osg::BlendColor::Extensions &, rhs); - I_Method1(void, lowestCommonDenominator, IN, const osg::BlendColor::Extensions &, rhs); - I_Method1(void, setupGLExtenions, IN, unsigned int, contextID); - I_Method1(void, setBlendColorSupported, IN, bool, flag); - I_Method0(bool, isBlendColorSupported); - I_Method1(void, setBlendColorProc, IN, void *, ptr); - I_Method4(void, glBlendColor, IN, GLclampf, red, IN, GLclampf, green, IN, GLclampf, blue, IN, GLclampf, alpha); - I_WriteOnlyProperty(void *, BlendColorProc); - I_WriteOnlyProperty(bool, BlendColorSupported); - I_WriteOnlyProperty(unsigned int, upGLExtenions); + I_Constructor1(IN, unsigned int, contextID, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::BlendColor::Extensions &, rhs, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::BlendColor::Extensions &, rhs, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setBlendColorSupported, IN, bool, flag, + __void__setBlendColorSupported__bool, + "", + ""); + I_Method0(bool, isBlendColorSupported, + __bool__isBlendColorSupported, + "", + ""); + I_Method1(void, setBlendColorProc, IN, void *, ptr, + __void__setBlendColorProc__void_P1, + "", + ""); + I_Method4(void, glBlendColor, IN, GLclampf, red, IN, GLclampf, green, IN, GLclampf, blue, IN, GLclampf, alpha, + __void__glBlendColor__GLclampf__GLclampf__GLclampf__GLclampf, + "", + ""); + I_SimpleProperty(void *, BlendColorProc, + 0, + __void__setBlendColorProc__void_P1); + I_SimpleProperty(bool, BlendColorSupported, + 0, + __void__setBlendColorSupported__bool); END_REFLECTOR diff --git a/src/osgWrappers/osg/BlendEquation.cpp b/src/osgWrappers/osg/BlendEquation.cpp index cb23273e3..b775f152c 100644 --- a/src/osgWrappers/osg/BlendEquation.cpp +++ b/src/osgWrappers/osg/BlendEquation.cpp @@ -37,40 +37,124 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::BlendEquation) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_Constructor1(IN, osg::BlendEquation::Equation, equation); - I_ConstructorWithDefaults2(IN, const osg::BlendEquation &, trans, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(void, setEquation, IN, osg::BlendEquation::Equation, equation); - I_Method0(osg::BlendEquation::Equation, getEquation); - I_Method1(void, apply, IN, osg::State &, state); - I_StaticMethod2(osg::BlendEquation::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::BlendEquation::Extensions *, extensions); - I_Property(osg::BlendEquation::Equation, Equation); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____BlendEquation, + "", + ""); + I_Constructor1(IN, osg::BlendEquation::Equation, equation, + ____BlendEquation__Equation, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::BlendEquation &, trans, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BlendEquation__C5_BlendEquation_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setEquation, IN, osg::BlendEquation::Equation, equation, + __void__setEquation__Equation, + "", + ""); + I_Method0(osg::BlendEquation::Equation, getEquation, + __Equation__getEquation, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_StaticMethod2(osg::BlendEquation::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Returns the Extensions object for the given context. ", + "If createIfNotInitalized is true and the Exentsions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::BlendEquation::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions() allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(osg::BlendEquation::Equation, Equation, + __Equation__getEquation, + __void__setEquation__Equation); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::BlendEquation::Extensions) I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID); - I_Constructor1(IN, const osg::BlendEquation::Extensions &, rhs); - I_Method1(void, lowestCommonDenominator, IN, const osg::BlendEquation::Extensions &, rhs); - I_Method1(void, setupGLExtenions, IN, unsigned int, contextID); - I_Method1(void, setBlendEquationSupported, IN, bool, flag); - I_Method0(bool, isBlendEquationSupported); - I_Method0(bool, isSGIXMinMaxSupported); - I_Method0(bool, isLogicOpSupported); - I_Method1(void, setBlendEquationProc, IN, void *, ptr); - I_Method1(void, glBlendEquation, IN, GLenum, mode); - I_WriteOnlyProperty(void *, BlendEquationProc); - I_WriteOnlyProperty(bool, BlendEquationSupported); - I_WriteOnlyProperty(unsigned int, upGLExtenions); + I_Constructor1(IN, unsigned int, contextID, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::BlendEquation::Extensions &, rhs, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::BlendEquation::Extensions &, rhs, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setBlendEquationSupported, IN, bool, flag, + __void__setBlendEquationSupported__bool, + "", + ""); + I_Method0(bool, isBlendEquationSupported, + __bool__isBlendEquationSupported, + "", + ""); + I_Method0(bool, isSGIXMinMaxSupported, + __bool__isSGIXMinMaxSupported, + "", + ""); + I_Method0(bool, isLogicOpSupported, + __bool__isLogicOpSupported, + "", + ""); + I_Method1(void, setBlendEquationProc, IN, void *, ptr, + __void__setBlendEquationProc__void_P1, + "", + ""); + I_Method1(void, glBlendEquation, IN, GLenum, mode, + __void__glBlendEquation__GLenum, + "", + ""); + I_SimpleProperty(void *, BlendEquationProc, + 0, + __void__setBlendEquationProc__void_P1); + I_SimpleProperty(bool, BlendEquationSupported, + 0, + __void__setBlendEquationSupported__bool); END_REFLECTOR diff --git a/src/osgWrappers/osg/BlendFunc.cpp b/src/osgWrappers/osg/BlendFunc.cpp index 0d1e14835..5ead0b7cb 100644 --- a/src/osgWrappers/osg/BlendFunc.cpp +++ b/src/osgWrappers/osg/BlendFunc.cpp @@ -44,56 +44,183 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::BlendFunc) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_Constructor2(IN, GLenum, source, IN, GLenum, destination); - I_Constructor4(IN, GLenum, source, IN, GLenum, destination, IN, GLenum, source_alpha, IN, GLenum, destination_alpha); - I_ConstructorWithDefaults2(IN, const osg::BlendFunc &, trans, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method2(void, setFunction, IN, GLenum, source, IN, GLenum, destination); - I_Method4(void, setFunction, IN, GLenum, source_rgb, IN, GLenum, destination_rgb, IN, GLenum, source_alpha, IN, GLenum, destination_alpha); - I_Method1(void, setSource, IN, GLenum, source); - I_Method0(GLenum, getSource); - I_Method1(void, setSourceRGB, IN, GLenum, source); - I_Method0(GLenum, getSourceRGB); - I_Method1(void, setSourceAlpha, IN, GLenum, source); - I_Method0(GLenum, getSourceAlpha); - I_Method1(void, setDestination, IN, GLenum, destination); - I_Method0(GLenum, getDestination); - I_Method1(void, setDestinationRGB, IN, GLenum, destination); - I_Method0(GLenum, getDestinationRGB); - I_Method1(void, setDestinationAlpha, IN, GLenum, destination); - I_Method0(GLenum, getDestinationAlpha); - I_Method1(void, apply, IN, osg::State &, state); - I_StaticMethod2(osg::BlendFunc::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::BlendFunc::Extensions *, extensions); - I_Property(GLenum, Destination); - I_Property(GLenum, DestinationAlpha); - I_Property(GLenum, DestinationRGB); - I_Property(GLenum, Source); - I_Property(GLenum, SourceAlpha); - I_Property(GLenum, SourceRGB); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____BlendFunc, + "", + ""); + I_Constructor2(IN, GLenum, source, IN, GLenum, destination, + ____BlendFunc__GLenum__GLenum, + "", + ""); + I_Constructor4(IN, GLenum, source, IN, GLenum, destination, IN, GLenum, source_alpha, IN, GLenum, destination_alpha, + ____BlendFunc__GLenum__GLenum__GLenum__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::BlendFunc &, trans, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BlendFunc__C5_BlendFunc_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method2(void, setFunction, IN, GLenum, source, IN, GLenum, destination, + __void__setFunction__GLenum__GLenum, + "", + ""); + I_Method4(void, setFunction, IN, GLenum, source_rgb, IN, GLenum, destination_rgb, IN, GLenum, source_alpha, IN, GLenum, destination_alpha, + __void__setFunction__GLenum__GLenum__GLenum__GLenum, + "", + ""); + I_Method1(void, setSource, IN, GLenum, source, + __void__setSource__GLenum, + "", + ""); + I_Method0(GLenum, getSource, + __GLenum__getSource, + "", + ""); + I_Method1(void, setSourceRGB, IN, GLenum, source, + __void__setSourceRGB__GLenum, + "", + ""); + I_Method0(GLenum, getSourceRGB, + __GLenum__getSourceRGB, + "", + ""); + I_Method1(void, setSourceAlpha, IN, GLenum, source, + __void__setSourceAlpha__GLenum, + "", + ""); + I_Method0(GLenum, getSourceAlpha, + __GLenum__getSourceAlpha, + "", + ""); + I_Method1(void, setDestination, IN, GLenum, destination, + __void__setDestination__GLenum, + "", + ""); + I_Method0(GLenum, getDestination, + __GLenum__getDestination, + "", + ""); + I_Method1(void, setDestinationRGB, IN, GLenum, destination, + __void__setDestinationRGB__GLenum, + "", + ""); + I_Method0(GLenum, getDestinationRGB, + __GLenum__getDestinationRGB, + "", + ""); + I_Method1(void, setDestinationAlpha, IN, GLenum, destination, + __void__setDestinationAlpha__GLenum, + "", + ""); + I_Method0(GLenum, getDestinationAlpha, + __GLenum__getDestinationAlpha, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_StaticMethod2(osg::BlendFunc::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Returns the Extensions object for the given context. ", + "If createIfNotInitalized is true and the Exentsions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::BlendFunc::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions() allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(GLenum, Destination, + __GLenum__getDestination, + __void__setDestination__GLenum); + I_SimpleProperty(GLenum, DestinationAlpha, + __GLenum__getDestinationAlpha, + __void__setDestinationAlpha__GLenum); + I_SimpleProperty(GLenum, DestinationRGB, + __GLenum__getDestinationRGB, + __void__setDestinationRGB__GLenum); + I_SimpleProperty(GLenum, Source, + __GLenum__getSource, + __void__setSource__GLenum); + I_SimpleProperty(GLenum, SourceAlpha, + __GLenum__getSourceAlpha, + __void__setSourceAlpha__GLenum); + I_SimpleProperty(GLenum, SourceRGB, + __GLenum__getSourceRGB, + __void__setSourceRGB__GLenum); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::BlendFunc::Extensions) I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID); - I_Constructor1(IN, const osg::BlendFunc::Extensions &, rhs); - I_Method1(void, lowestCommonDenominator, IN, const osg::BlendFunc::Extensions &, rhs); - I_Method1(void, setupGLExtensions, IN, unsigned int, contextID); - I_Method1(void, setBlendFuncSeparateSupported, IN, bool, flag); - I_Method0(bool, isBlendFuncSeparateSupported); - I_Method1(void, setBlendFuncSeparateProc, IN, void *, ptr); - I_Method4(void, glBlendFuncSeparate, IN, GLenum, sfactorRGB, IN, GLenum, dfactorRGB, IN, GLenum, sfactorAlpha, IN, GLenum, dfactorAlpha); - I_WriteOnlyProperty(void *, BlendFuncSeparateProc); - I_WriteOnlyProperty(bool, BlendFuncSeparateSupported); - I_WriteOnlyProperty(unsigned int, upGLExtensions); + I_Constructor1(IN, unsigned int, contextID, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::BlendFunc::Extensions &, rhs, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::BlendFunc::Extensions &, rhs, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, + __void__setupGLExtensions__unsigned_int, + "", + ""); + I_Method1(void, setBlendFuncSeparateSupported, IN, bool, flag, + __void__setBlendFuncSeparateSupported__bool, + "", + ""); + I_Method0(bool, isBlendFuncSeparateSupported, + __bool__isBlendFuncSeparateSupported, + "", + ""); + I_Method1(void, setBlendFuncSeparateProc, IN, void *, ptr, + __void__setBlendFuncSeparateProc__void_P1, + "", + ""); + I_Method4(void, glBlendFuncSeparate, IN, GLenum, sfactorRGB, IN, GLenum, dfactorRGB, IN, GLenum, sfactorAlpha, IN, GLenum, dfactorAlpha, + __void__glBlendFuncSeparate__GLenum__GLenum__GLenum__GLenum, + "", + ""); + I_SimpleProperty(void *, BlendFuncSeparateProc, + 0, + __void__setBlendFuncSeparateProc__void_P1); + I_SimpleProperty(bool, BlendFuncSeparateSupported, + 0, + __void__setBlendFuncSeparateSupported__bool); END_REFLECTOR diff --git a/src/osgWrappers/osg/BoundingBox.cpp b/src/osgWrappers/osg/BoundingBox.cpp index cae1291b5..82e0d24b5 100644 --- a/src/osgWrappers/osg/BoundingBox.cpp +++ b/src/osgWrappers/osg/BoundingBox.cpp @@ -23,36 +23,125 @@ #endif BEGIN_VALUE_REFLECTOR(osg::BoundingBox) - I_Constructor0(); - I_Constructor6(IN, float, xmin, IN, float, ymin, IN, float, zmin, IN, float, xmax, IN, float, ymax, IN, float, zmax); - I_Constructor2(IN, const osg::Vec3 &, min, IN, const osg::Vec3 &, max); - I_Method0(void, init); - I_Method0(bool, valid); - I_Method6(void, set, IN, float, xmin, IN, float, ymin, IN, float, zmin, IN, float, xmax, IN, float, ymax, IN, float, zmax); - I_Method2(void, set, IN, const osg::Vec3 &, min, IN, const osg::Vec3 &, max); - I_Method0(float &, xMin); - I_Method0(float, xMin); - I_Method0(float &, yMin); - I_Method0(float, yMin); - I_Method0(float &, zMin); - I_Method0(float, zMin); - I_Method0(float &, xMax); - I_Method0(float, xMax); - I_Method0(float &, yMax); - I_Method0(float, yMax); - I_Method0(float &, zMax); - I_Method0(float, zMax); - I_Method0(const osg::Vec3, center); - I_Method0(float, radius); - I_Method0(float, radius2); - I_Method1(const osg::Vec3, corner, IN, unsigned int, pos); - I_Method1(void, expandBy, IN, const osg::Vec3 &, v); - I_Method3(void, expandBy, IN, float, x, IN, float, y, IN, float, z); - I_Method1(void, expandBy, IN, const osg::BoundingBox &, bb); - I_Method1(void, expandBy, IN, const osg::BoundingSphere &, sh); - I_Method1(osg::BoundingBox, intersect, IN, const osg::BoundingBox &, bb); - I_Method1(bool, intersects, IN, const osg::BoundingBox &, bb); - I_Method1(bool, contains, IN, const osg::Vec3 &, v); + I_Constructor0(____BoundingBox, + "Creates an uninitialized bounding box. ", + ""); + I_Constructor6(IN, float, xmin, IN, float, ymin, IN, float, zmin, IN, float, xmax, IN, float, ymax, IN, float, zmax, + ____BoundingBox__float__float__float__float__float__float, + "Creates a bounding box initialized to the given extents. ", + ""); + I_Constructor2(IN, const osg::Vec3 &, min, IN, const osg::Vec3 &, max, + ____BoundingBox__C5_Vec3_R1__C5_Vec3_R1, + "Creates a bounding box initialized to the given extents. ", + ""); + I_Method0(void, init, + __void__init, + "Clear the bounding box. ", + "Erases existing minimum and maximum extents. "); + I_Method0(bool, valid, + __bool__valid, + "Returns true if the bounding box extents are valid, false otherwise. ", + ""); + I_Method6(void, set, IN, float, xmin, IN, float, ymin, IN, float, zmin, IN, float, xmax, IN, float, ymax, IN, float, zmax, + __void__set__float__float__float__float__float__float, + "Sets the bounding box extents. ", + ""); + I_Method2(void, set, IN, const osg::Vec3 &, min, IN, const osg::Vec3 &, max, + __void__set__C5_Vec3_R1__C5_Vec3_R1, + "Sets the bounding box extents. ", + ""); + I_Method0(float &, xMin, + __float_R1__xMin, + "", + ""); + I_Method0(float, xMin, + __float__xMin, + "", + ""); + I_Method0(float &, yMin, + __float_R1__yMin, + "", + ""); + I_Method0(float, yMin, + __float__yMin, + "", + ""); + I_Method0(float &, zMin, + __float_R1__zMin, + "", + ""); + I_Method0(float, zMin, + __float__zMin, + "", + ""); + I_Method0(float &, xMax, + __float_R1__xMax, + "", + ""); + I_Method0(float, xMax, + __float__xMax, + "", + ""); + I_Method0(float &, yMax, + __float_R1__yMax, + "", + ""); + I_Method0(float, yMax, + __float__yMax, + "", + ""); + I_Method0(float &, zMax, + __float_R1__zMax, + "", + ""); + I_Method0(float, zMax, + __float__zMax, + "", + ""); + I_Method0(const osg::Vec3, center, + __C5_Vec3__center, + "Calculates and returns the bounding box center. ", + ""); + I_Method0(float, radius, + __float__radius, + "Calculates and returns the bounding box radius. ", + ""); + I_Method0(float, radius2, + __float__radius2, + "Calculates and returns the squared length of the bounding box radius. ", + "Note, radius2() is faster to calculate than radius(). "); + I_Method1(const osg::Vec3, corner, IN, unsigned int, pos, + __C5_Vec3__corner__unsigned_int, + "Returns a specific corner of the bounding box. ", + "pos specifies the corner as a number between 0 and 7. Each bit selects an axis, X, Y, or Z from least- to most-significant. Unset bits select the minimum value for that axis, and set bits select the maximum. "); + I_Method1(void, expandBy, IN, const osg::Vec3 &, v, + __void__expandBy__C5_Vec3_R1, + "Expands the bounding box to include the given coordinate. ", + "If the box is uninitialized, set its min and max extents to v. "); + I_Method3(void, expandBy, IN, float, x, IN, float, y, IN, float, z, + __void__expandBy__float__float__float, + "Expands the bounding box to include the given coordinate. ", + "If the box is uninitialized, set its min and max extents to Vec3(x,y,z). "); + I_Method1(void, expandBy, IN, const osg::BoundingBox &, bb, + __void__expandBy__C5_BoundingBox_R1, + "Expands this bounding box to include the given bounding box. ", + "If this box is uninitialized, set it equal to bb. "); + I_Method1(void, expandBy, IN, const osg::BoundingSphere &, sh, + __void__expandBy__C5_BoundingSphere_R1, + "Expands this bounding box to include the given sphere. ", + "If this box is uninitialized, set it to include sh. "); + I_Method1(osg::BoundingBox, intersect, IN, const osg::BoundingBox &, bb, + __BoundingBox__intersect__C5_BoundingBox_R1, + "Returns the intesection of this bounding box and the specified bounding box. ", + ""); + I_Method1(bool, intersects, IN, const osg::BoundingBox &, bb, + __bool__intersects__C5_BoundingBox_R1, + "Return true if this bounding box intersects the specified bounding box. ", + ""); + I_Method1(bool, contains, IN, const osg::Vec3 &, v, + __bool__contains__C5_Vec3_R1, + "Returns true if this bounding box contains the specified coordinate. ", + ""); I_PublicMemberProperty(osg::Vec3, _min); I_PublicMemberProperty(osg::Vec3, _max); END_REFLECTOR diff --git a/src/osgWrappers/osg/BoundingSphere.cpp b/src/osgWrappers/osg/BoundingSphere.cpp index eecad2c10..fa28d6d77 100644 --- a/src/osgWrappers/osg/BoundingSphere.cpp +++ b/src/osgWrappers/osg/BoundingSphere.cpp @@ -23,26 +23,85 @@ #endif BEGIN_VALUE_REFLECTOR(osg::BoundingSphere) - I_Constructor0(); - I_Constructor2(IN, const osg::Vec3 &, center, IN, float, radius); - I_Constructor1(IN, const osg::BoundingSphere &, bs); - I_Constructor1(IN, const osg::BoundingBox &, bb); - I_Method0(void, init); - I_Method0(bool, valid); - I_Method2(void, set, IN, const osg::Vec3 &, center, IN, float, radius); - I_Method0(osg::Vec3 &, center); - I_Method0(const osg::Vec3 &, center); - I_Method0(float &, radius); - I_Method0(float, radius); - I_Method0(float, radius2); - I_Method1(void, expandBy, IN, const osg::Vec3 &, v); - I_Method1(void, expandRadiusBy, IN, const osg::Vec3 &, v); - I_Method1(void, expandBy, IN, const osg::BoundingSphere &, sh); - I_Method1(void, expandRadiusBy, IN, const osg::BoundingSphere &, sh); - I_Method1(void, expandBy, IN, const osg::BoundingBox &, bb); - I_Method1(void, expandRadiusBy, IN, const osg::BoundingBox &, bb); - I_Method1(bool, contains, IN, const osg::Vec3 &, v); - I_Method1(bool, intersects, IN, const osg::BoundingSphere &, bs); + I_Constructor0(____BoundingSphere, + "Construct a default bounding sphere with radius to -1.0f, representing an invalid/unset bounding sphere. ", + ""); + I_Constructor2(IN, const osg::Vec3 &, center, IN, float, radius, + ____BoundingSphere__C5_Vec3_R1__float, + "Creates a bounding sphere initialized to the given extents. ", + ""); + I_Constructor1(IN, const osg::BoundingSphere &, bs, + ____BoundingSphere__C5_BoundingSphere_R1, + "Creates a bounding sphere initialized to the given extents. ", + ""); + I_Constructor1(IN, const osg::BoundingBox &, bb, + ____BoundingSphere__C5_BoundingBox_R1, + "Creates a bounding sphere initialized to the given extents. ", + ""); + I_Method0(void, init, + __void__init, + "Clear the bounding sphere. ", + "Reset to default values. "); + I_Method0(bool, valid, + __bool__valid, + "Returns true of the bounding sphere extents are valid, false otherwise. ", + ""); + I_Method2(void, set, IN, const osg::Vec3 &, center, IN, float, radius, + __void__set__C5_Vec3_R1__float, + "Set the bounding sphere to the given center/radius. ", + ""); + I_Method0(osg::Vec3 &, center, + __Vec3_R1__center, + "Returns the center of the bounding sphere. ", + ""); + I_Method0(const osg::Vec3 &, center, + __C5_Vec3_R1__center, + "Returns the const center of the bounding sphere. ", + ""); + I_Method0(float &, radius, + __float_R1__radius, + "Returns the radius of the bounding sphere. ", + ""); + I_Method0(float, radius, + __float__radius, + "Returns the const radius of the bounding sphere. ", + ""); + I_Method0(float, radius2, + __float__radius2, + "Returns the squared length of the radius. ", + "Note, For performance reasons, the calling method is responsible for checking to make sure the sphere is valid. "); + I_Method1(void, expandBy, IN, const osg::Vec3 &, v, + __void__expandBy__C5_Vec3_R1, + "Expands the sphere to encompass the given point. ", + "Repositions the sphere center to minimize the radius increase. If the sphere is uninitialized, set its center to v and radius to zero. "); + I_Method1(void, expandRadiusBy, IN, const osg::Vec3 &, v, + __void__expandRadiusBy__C5_Vec3_R1, + "Expands the sphere to encompass the given point. ", + "Does not reposition the sphere center. If the sphere is uninitialized, set its center to v and radius to zero. "); + I_Method1(void, expandBy, IN, const osg::BoundingSphere &, sh, + __void__expandBy__C5_BoundingSphere_R1, + "Expands the sphere to encompass the given sphere. ", + "Repositions the sphere center to minimize the radius increase. If the sphere is uninitialized, set its center and radius to match sh. "); + I_Method1(void, expandRadiusBy, IN, const osg::BoundingSphere &, sh, + __void__expandRadiusBy__C5_BoundingSphere_R1, + "Expands the sphere to encompass the given sphere. ", + "Does not repositions the sphere center. If the sphere is uninitialized, set its center and radius to match sh. "); + I_Method1(void, expandBy, IN, const osg::BoundingBox &, bb, + __void__expandBy__C5_BoundingBox_R1, + "Expands the sphere to encompass the given box. ", + "Repositions the sphere center to minimize the radius increase. "); + I_Method1(void, expandRadiusBy, IN, const osg::BoundingBox &, bb, + __void__expandRadiusBy__C5_BoundingBox_R1, + "Expands the sphere to encompass the given box. ", + "Does not repositions the sphere center. "); + I_Method1(bool, contains, IN, const osg::Vec3 &, v, + __bool__contains__C5_Vec3_R1, + "Returns true if v is within the sphere. ", + ""); + I_Method1(bool, intersects, IN, const osg::BoundingSphere &, bs, + __bool__intersects__C5_BoundingSphere_R1, + "Returns true if there is a non-empty intersection with the given bounding sphere. ", + ""); I_PublicMemberProperty(osg::Vec3, _center); I_PublicMemberProperty(float, _radius); END_REFLECTOR diff --git a/src/osgWrappers/osg/BufferObject.cpp b/src/osgWrappers/osg/BufferObject.cpp index b1375ae7e..edf1ee58c 100644 --- a/src/osgWrappers/osg/BufferObject.cpp +++ b/src/osgWrappers/osg/BufferObject.cpp @@ -26,28 +26,83 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::BufferObject) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::BufferObject &, bo, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, isBufferObjectSupported, IN, unsigned int, contextID); - I_Method1(bool, isPBOSupported, IN, unsigned int, contextID); - I_Method1(GLuint &, buffer, IN, unsigned int, contextID); - I_Method1(void, bindBuffer, IN, unsigned int, contextID); - I_Method1(void, unbindBuffer, IN, unsigned int, contextID); - I_Method1(bool, needsCompile, IN, unsigned int, contextID); - I_Method1(void, compileBuffer, IN, osg::State &, state); - I_Method1(void, releaseBuffer, IN, osg::State *, state); - I_Method3(void, flushDeletedBufferObjects, IN, unsigned int, contextID, IN, double, x, IN, double &, availableTime); - I_StaticMethod2(void, deleteBufferObject, IN, unsigned int, contextID, IN, GLuint, globj); - I_StaticMethod2(osg::BufferObject::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::BufferObject::Extensions *, extensions); + I_Constructor0(____BufferObject, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::BufferObject &, bo, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BufferObject__C5_BufferObject_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isBufferObjectSupported, IN, unsigned int, contextID, + __bool__isBufferObjectSupported__unsigned_int, + "", + ""); + I_Method1(bool, isPBOSupported, IN, unsigned int, contextID, + __bool__isPBOSupported__unsigned_int, + "", + ""); + I_Method1(GLuint &, buffer, IN, unsigned int, contextID, + __GLuint_R1__buffer__unsigned_int, + "", + ""); + I_Method1(void, bindBuffer, IN, unsigned int, contextID, + __void__bindBuffer__unsigned_int, + "", + ""); + I_Method1(void, unbindBuffer, IN, unsigned int, contextID, + __void__unbindBuffer__unsigned_int, + "", + ""); + I_Method1(bool, needsCompile, IN, unsigned int, contextID, + __bool__needsCompile__unsigned_int, + "", + ""); + I_Method1(void, compileBuffer, IN, osg::State &, state, + __void__compileBuffer__State_R1, + "", + ""); + I_Method1(void, releaseBuffer, IN, osg::State *, state, + __void__releaseBuffer__State_P1, + "", + ""); + I_Method3(void, flushDeletedBufferObjects, IN, unsigned int, contextID, IN, double, x, IN, double &, availableTime, + __void__flushDeletedBufferObjects__unsigned_int__double__double_R1, + "flush all the cached display list which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod2(void, deleteBufferObject, IN, unsigned int, contextID, IN, GLuint, globj, + __void__deleteBufferObject__unsigned_int__GLuint_S, + "Use deleteVertexBufferObject instead of glDeleteBuffers to allow OpenGL buffer objects to be cached until they can be deleted by the OpenGL context in which they were created, specified by contextID. ", + ""); + I_StaticMethod2(osg::BufferObject::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Exentsion object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object is only created with the graphics context associated with ContextID.. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::BufferObject::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions allows users to override the extensions across graphics contexts. ", + "typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. "); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::BufferObject::BufferEntry) - I_Constructor0(); - I_Constructor1(IN, const osg::BufferObject::BufferEntry &, be); + I_Constructor0(____BufferEntry, + "", + ""); + I_Constructor1(IN, const osg::BufferObject::BufferEntry &, be, + ____BufferEntry__C5_BufferEntry_R1, + "", + ""); I_PublicMemberProperty(osg::buffered_value< unsigned int >, modifiedCount); I_PublicMemberProperty(unsigned int, dataSize); I_PublicMemberProperty(unsigned int, offset); @@ -55,44 +110,135 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::BufferObject::Extensions) I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID); - I_Constructor1(IN, const osg::BufferObject::Extensions &, rhs); - I_Method1(void, lowestCommonDenominator, IN, const osg::BufferObject::Extensions &, rhs); - I_Method1(void, setupGLExtenions, IN, unsigned int, contextID); - I_Method0(bool, isBufferObjectSupported); - I_Method0(bool, isPBOSupported); - I_Method2(void, glGenBuffers, IN, GLsizei, n, IN, GLuint *, buffers); - I_Method2(void, glBindBuffer, IN, GLenum, target, IN, GLuint, buffer); - I_Method4(void, glBufferData, IN, GLenum, target, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, IN, GLenum, usage); - I_Method4(void, glBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, const GLvoid *, data); - I_Method2(void, glDeleteBuffers, IN, GLsizei, n, IN, const GLuint *, buffers); - I_Method1(GLboolean, glIsBuffer, IN, GLuint, buffer); - I_Method4(void, glGetBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, GLvoid *, data); - I_Method2(GLvoid *, glMapBuffer, IN, GLenum, target, IN, GLenum, access); - I_Method1(GLboolean, glUnmapBuffer, IN, GLenum, target); - I_Method3(void, glGetBufferParameteriv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params); - I_Method3(void, glGetBufferPointerv, IN, GLenum, target, IN, GLenum, pname, IN, GLvoid **, params); - I_WriteOnlyProperty(unsigned int, upGLExtenions); + I_Constructor1(IN, unsigned int, contextID, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::BufferObject::Extensions &, rhs, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::BufferObject::Extensions &, rhs, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method0(bool, isBufferObjectSupported, + __bool__isBufferObjectSupported, + "", + ""); + I_Method0(bool, isPBOSupported, + __bool__isPBOSupported, + "", + ""); + I_Method2(void, glGenBuffers, IN, GLsizei, n, IN, GLuint *, buffers, + __void__glGenBuffers__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glBindBuffer, IN, GLenum, target, IN, GLuint, buffer, + __void__glBindBuffer__GLenum__GLuint, + "", + ""); + I_Method4(void, glBufferData, IN, GLenum, target, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, IN, GLenum, usage, + __void__glBufferData__GLenum__GLsizeiptrARB__C5_GLvoid_P1__GLenum, + "", + ""); + I_Method4(void, glBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, + __void__glBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__C5_GLvoid_P1, + "", + ""); + I_Method2(void, glDeleteBuffers, IN, GLsizei, n, IN, const GLuint *, buffers, + __void__glDeleteBuffers__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(GLboolean, glIsBuffer, IN, GLuint, buffer, + __GLboolean__glIsBuffer__GLuint, + "", + ""); + I_Method4(void, glGetBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, GLvoid *, data, + __void__glGetBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__GLvoid_P1, + "", + ""); + I_Method2(GLvoid *, glMapBuffer, IN, GLenum, target, IN, GLenum, access, + __GLvoid_P1__glMapBuffer__GLenum__GLenum, + "", + ""); + I_Method1(GLboolean, glUnmapBuffer, IN, GLenum, target, + __GLboolean__glUnmapBuffer__GLenum, + "", + ""); + I_Method3(void, glGetBufferParameteriv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params, + __void__glGetBufferParameteriv__GLenum__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetBufferPointerv, IN, GLenum, target, IN, GLenum, pname, IN, GLvoid **, params, + __void__glGetBufferPointerv__GLenum__GLenum__GLvoid_P1P1, + "", + ""); END_REFLECTOR TYPE_NAME_ALIAS(std::pair< osg::BufferObject::BufferEntry COMMA osg::Image * >, osg::PixelBufferObject::BufferEntryImagePair); BEGIN_OBJECT_REFLECTOR(osg::PixelBufferObject) I_BaseType(osg::BufferObject); - I_ConstructorWithDefaults1(IN, osg::Image *, image, 0); - I_ConstructorWithDefaults2(IN, const osg::PixelBufferObject &, pbo, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, setImage, IN, osg::Image *, image); - I_Method0(osg::Image *, getImage); - I_Method0(const osg::Image *, getImage); - I_Method0(unsigned int, offset); - I_Method1(bool, needsCompile, IN, unsigned int, contextID); - I_Method1(void, compileBuffer, IN, osg::State &, state); - I_Property(osg::Image *, Image); + I_ConstructorWithDefaults1(IN, osg::Image *, image, 0, + ____PixelBufferObject__osg_Image_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PixelBufferObject &, pbo, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PixelBufferObject__C5_PixelBufferObject_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setImage, IN, osg::Image *, image, + __void__setImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getImage, + __Image_P1__getImage, + "", + ""); + I_Method0(const osg::Image *, getImage, + __C5_Image_P1__getImage, + "", + ""); + I_Method0(unsigned int, offset, + __unsigned_int__offset, + "", + ""); + I_Method1(bool, needsCompile, IN, unsigned int, contextID, + __bool__needsCompile__unsigned_int, + "", + ""); + I_Method1(void, compileBuffer, IN, osg::State &, state, + __void__compileBuffer__State_R1, + "", + ""); + I_SimpleProperty(osg::Image *, Image, + __Image_P1__getImage, + __void__setImage__osg_Image_P1); END_REFLECTOR STD_PAIR_REFLECTOR(std::pair< osg::BufferObject::BufferEntry COMMA osg::Image * >); diff --git a/src/osgWrappers/osg/CameraNode.cpp b/src/osgWrappers/osg/CameraNode.cpp index 2333328d0..da88ed8da 100644 --- a/src/osgWrappers/osg/CameraNode.cpp +++ b/src/osgWrappers/osg/CameraNode.cpp @@ -73,107 +73,380 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::CameraNode) I_BaseType(osg::Transform); I_BaseType(osg::CullSettings); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::CameraNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, setView, IN, osg::View *, view); - I_Method0(osg::View *, getView); - I_Method0(const osg::View *, getView); - I_Method1(void, setClearColor, IN, const osg::Vec4 &, color); - I_Method0(const osg::Vec4 &, getClearColor); - I_Method1(void, setClearMask, IN, GLbitfield, mask); - I_Method0(GLbitfield, getClearMask); - I_Method1(void, setColorMask, IN, osg::ColorMask *, colorMask); - I_Method4(void, setColorMask, IN, bool, red, IN, bool, green, IN, bool, blue, IN, bool, alpha); - I_Method0(const osg::ColorMask *, getColorMask); - I_Method0(osg::ColorMask *, getColorMask); - I_Method1(void, setViewport, IN, osg::Viewport *, viewport); - I_Method4(void, setViewport, IN, int, x, IN, int, y, IN, int, width, IN, int, height); - I_Method0(const osg::Viewport *, getViewport); - I_Method0(osg::Viewport *, getViewport); - I_Method1(void, setTransformOrder, IN, osg::CameraNode::TransformOrder, order); - I_Method0(osg::CameraNode::TransformOrder, getTransformOrder); - I_Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix); - I_Method1(void, setProjectionMatrix, IN, const osg::Matrixd &, matrix); - I_Method6(void, setProjectionMatrixAsOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); - I_Method4(void, setProjectionMatrixAsOrtho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top); - I_Method6(void, setProjectionMatrixAsFrustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); - I_Method4(void, setProjectionMatrixAsPerspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar); - I_Method0(osg::Matrixd &, getProjectionMatrix); - I_Method0(const osg::Matrixd &, getProjectionMatrix); - I_Method6(bool, getProjectionMatrixAsOrtho, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar); - I_Method6(bool, getProjectionMatrixAsFrustum, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar); - I_Method4(bool, getProjectionMatrixAsPerspective, IN, double &, fovy, IN, double &, aspectRatio, IN, double &, zNear, IN, double &, zFar); - I_Method1(void, setViewMatrix, IN, const osg::Matrixf &, matrix); - I_Method1(void, setViewMatrix, IN, const osg::Matrixd &, matrix); - I_Method3(void, setViewMatrixAsLookAt, IN, const osg::Vec3 &, eye, IN, const osg::Vec3 &, center, IN, const osg::Vec3 &, up); - I_Method0(osg::Matrixd &, getViewMatrix); - I_Method0(const osg::Matrixd &, getViewMatrix); - I_MethodWithDefaults4(void, getViewMatrixAsLookAt, IN, osg::Vec3 &, eye, , IN, osg::Vec3 &, center, , IN, osg::Vec3 &, up, , IN, float, lookDistance, 1.0f); - I_Method0(osg::Matrixd, getInverseViewMatrix); - I_MethodWithDefaults2(void, setRenderOrder, IN, osg::CameraNode::RenderOrder, order, , IN, int, orderNum, 0); - I_Method0(osg::CameraNode::RenderOrder, getRenderOrder); - I_Method0(int, getRenderOrderNum); - I_Method0(bool, isRenderToTextureCamera); - I_Method1(void, setRenderTargetImplementation, IN, osg::CameraNode::RenderTargetImplementation, impl); - I_Method2(void, setRenderTargetImplementation, IN, osg::CameraNode::RenderTargetImplementation, impl, IN, osg::CameraNode::RenderTargetImplementation, fallback); - I_Method0(osg::CameraNode::RenderTargetImplementation, getRenderTargetImplementation); - I_Method0(osg::CameraNode::RenderTargetImplementation, getRenderTargetFallback); - I_Method1(void, setDrawBuffer, IN, GLenum, buffer); - I_Method0(GLenum, getDrawBuffer); - I_Method1(void, setReadBuffer, IN, GLenum, buffer); - I_Method0(GLenum, getReadBuffer); - I_Method2(void, attach, IN, osg::CameraNode::BufferComponent, buffer, IN, GLenum, internalFormat); - I_MethodWithDefaults5(void, attach, IN, osg::CameraNode::BufferComponent, buffer, , IN, osg::Texture *, texture, , IN, unsigned int, level, 0, IN, unsigned int, face, 0, IN, bool, mipMapGeneration, false); - I_Method2(void, attach, IN, osg::CameraNode::BufferComponent, buffer, IN, osg::Image *, image); - I_Method1(void, detach, IN, osg::CameraNode::BufferComponent, buffer); - I_Method0(osg::CameraNode::BufferAttachmentMap &, getBufferAttachmentMap); - I_Method0(const osg::CameraNode::BufferAttachmentMap &, getBufferAttachmentMap); - I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context); - I_Method0(osg::GraphicsContext *, getGraphicsContext); - I_Method0(const osg::GraphicsContext *, getGraphicsContext); - I_Method2(void, setRenderingCache, IN, unsigned int, contextID, IN, osg::Object *, rc); - I_Method1(osg::Object *, getRenderingCache, IN, unsigned int, contextID); - I_Method1(const osg::Object *, getRenderingCache, IN, unsigned int, contextID); - I_Method1(void, setPostDrawCallback, IN, osg::CameraNode::DrawCallback *, cb); - I_Method0(osg::CameraNode::DrawCallback *, getPostDrawCallback); - I_Method0(const osg::CameraNode::DrawCallback *, getPostDrawCallback); - I_Method0(OpenThreads::Mutex *, getDataChangeMutex); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0); - I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x); - I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x); - I_ReadOnlyProperty(osg::CameraNode::BufferAttachmentMap &, BufferAttachmentMap); - I_Property(const osg::Vec4 &, ClearColor); - I_Property(GLbitfield, ClearMask); - I_Property(osg::ColorMask *, ColorMask); - I_ReadOnlyProperty(OpenThreads::Mutex *, DataChangeMutex); - I_Property(GLenum, DrawBuffer); - I_Property(osg::GraphicsContext *, GraphicsContext); - I_ReadOnlyProperty(osg::Matrixd, InverseViewMatrix); - I_Property(osg::CameraNode::DrawCallback *, PostDrawCallback); - I_Property(const osg::Matrixd &, ProjectionMatrix); - I_Property(GLenum, ReadBuffer); - I_ReadOnlyProperty(osg::CameraNode::RenderOrder, RenderOrder); - I_ReadOnlyProperty(int, RenderOrderNum); - I_ReadOnlyProperty(osg::CameraNode::RenderTargetImplementation, RenderTargetFallback); - I_Property(osg::CameraNode::RenderTargetImplementation, RenderTargetImplementation); - I_IndexedProperty1(osg::Object *, RenderingCache, unsigned int, contextID); - I_Property(osg::CameraNode::TransformOrder, TransformOrder); - I_Property(osg::View *, View); - I_Property(const osg::Matrixd &, ViewMatrix); - I_Property(osg::Viewport *, Viewport); + I_Constructor0(____CameraNode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::CameraNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CameraNode__C5_CameraNode_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, setView, IN, osg::View *, view, + __void__setView__View_P1, + "Set the View that this Camera is part of. ", + ""); + I_Method0(osg::View *, getView, + __View_P1__getView, + "Get the View that this Camera is part of. ", + ""); + I_Method0(const osg::View *, getView, + __C5_View_P1__getView, + "Get the const View that this Camera is part of. ", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + __void__setClearColor__C5_Vec4_R1, + "Sets the clear color. ", + ""); + I_Method0(const osg::Vec4 &, getClearColor, + __C5_Vec4_R1__getClearColor, + "Returns the clear color. ", + ""); + I_Method1(void, setClearMask, IN, GLbitfield, mask, + __void__setClearMask__GLbitfield, + "Set the clear mask used in glClear(. ", + ".). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT. "); + I_Method0(GLbitfield, getClearMask, + __GLbitfield__getClearMask, + "Get the clear mask. ", + ""); + I_Method1(void, setColorMask, IN, osg::ColorMask *, colorMask, + __void__setColorMask__osg_ColorMask_P1, + "Set the color mask of the camera to use specified osg::ColorMask. ", + ""); + I_Method4(void, setColorMask, IN, bool, red, IN, bool, green, IN, bool, blue, IN, bool, alpha, + __void__setColorMask__bool__bool__bool__bool, + "Set the color mask of the camera to specified values. ", + ""); + I_Method0(const osg::ColorMask *, getColorMask, + __C5_ColorMask_P1__getColorMask, + "Get the const ColorMask. ", + ""); + I_Method0(osg::ColorMask *, getColorMask, + __ColorMask_P1__getColorMask, + "Get the ColorMask. ", + ""); + I_Method1(void, setViewport, IN, osg::Viewport *, viewport, + __void__setViewport__osg_Viewport_P1, + "Set the viewport of the camera to use specified osg::Viewport. ", + ""); + I_Method4(void, setViewport, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + __void__setViewport__int__int__int__int, + "Set the viewport of the camera to specified dimensions. ", + ""); + I_Method0(const osg::Viewport *, getViewport, + __C5_Viewport_P1__getViewport, + "Get the const viewport. ", + ""); + I_Method0(osg::Viewport *, getViewport, + __Viewport_P1__getViewport, + "Get the viewport. ", + ""); + I_Method1(void, setTransformOrder, IN, osg::CameraNode::TransformOrder, order, + __void__setTransformOrder__TransformOrder, + "Set the transformation order for world-to-local and local-to-world transformation. ", + ""); + I_Method0(osg::CameraNode::TransformOrder, getTransformOrder, + __TransformOrder__getTransformOrder, + "Get the transformation order. ", + ""); + I_Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix, + __void__setProjectionMatrix__C5_osg_Matrixf_R1, + "Set the projection matrix. ", + "Can be thought of as setting the lens of a camera. "); + I_Method1(void, setProjectionMatrix, IN, const osg::Matrixd &, matrix, + __void__setProjectionMatrix__C5_osg_Matrixd_R1, + "Set the projection matrix. ", + "Can be thought of as setting the lens of a camera. "); + I_Method6(void, setProjectionMatrixAsOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __void__setProjectionMatrixAsOrtho__double__double__double__double__double__double, + "Set to an orthographic projection. ", + "See OpenGL glOrtho for documentation further details. "); + I_Method4(void, setProjectionMatrixAsOrtho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, + __void__setProjectionMatrixAsOrtho2D__double__double__double__double, + "Set to a 2D orthographic projection. ", + "See OpenGL glOrtho2D documentation for further details. "); + I_Method6(void, setProjectionMatrixAsFrustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __void__setProjectionMatrixAsFrustum__double__double__double__double__double__double, + "Set to a perspective projection. ", + "See OpenGL glFrustum documentation for further details. "); + I_Method4(void, setProjectionMatrixAsPerspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar, + __void__setProjectionMatrixAsPerspective__double__double__double__double, + "Create a symmetrical perspective projection, See OpenGL gluPerspective documentation for further details. ", + "Aspect ratio is defined as width/height. "); + I_Method0(osg::Matrixd &, getProjectionMatrix, + __osg_Matrixd_R1__getProjectionMatrix, + "Get the projection matrix. ", + ""); + I_Method0(const osg::Matrixd &, getProjectionMatrix, + __C5_osg_Matrixd_R1__getProjectionMatrix, + "Get the const projection matrix. ", + ""); + I_Method6(bool, getProjectionMatrixAsOrtho, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar, + __bool__getProjectionMatrixAsOrtho__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1, + "Get the othographic settings of the orthographic projection matrix. ", + "Returns false if matrix is not an orthographic matrix, where parameter values are undefined. "); + I_Method6(bool, getProjectionMatrixAsFrustum, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar, + __bool__getProjectionMatrixAsFrustum__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1, + "Get the frustum setting of a perspective projection matrix. ", + "Returns false if matrix is not a perspective matrix, where parameter values are undefined. "); + I_Method4(bool, getProjectionMatrixAsPerspective, IN, double &, fovy, IN, double &, aspectRatio, IN, double &, zNear, IN, double &, zFar, + __bool__getProjectionMatrixAsPerspective__double_R1__double_R1__double_R1__double_R1, + "Get the frustum setting of a symmetric perspective projection matrix. ", + "Returns false if matrix is not a perspective matrix, where parameter values are undefined. Note, if matrix is not a symmetric perspective matrix then the shear will be lost. Asymmetric matrices occur when stereo, power walls, caves and reality center display are used. In these configurations one should use the 'getProjectionMatrixAsFrustum' method instead. "); + I_Method1(void, setViewMatrix, IN, const osg::Matrixf &, matrix, + __void__setViewMatrix__C5_osg_Matrixf_R1, + "Set the view matrix. ", + "Can be thought of as setting the position of the world relative to the camera in camera coordinates. "); + I_Method1(void, setViewMatrix, IN, const osg::Matrixd &, matrix, + __void__setViewMatrix__C5_osg_Matrixd_R1, + "Set the view matrix. ", + "Can be thought of as setting the position of the world relative to the camera in camera coordinates. "); + I_Method3(void, setViewMatrixAsLookAt, IN, const osg::Vec3 &, eye, IN, const osg::Vec3 &, center, IN, const osg::Vec3 &, up, + __void__setViewMatrixAsLookAt__C5_osg_Vec3_R1__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "Set to the position and orientation of view matrix, using the same convention as gluLookAt. ", + ""); + I_Method0(osg::Matrixd &, getViewMatrix, + __osg_Matrixd_R1__getViewMatrix, + "Get the view matrix. ", + ""); + I_Method0(const osg::Matrixd &, getViewMatrix, + __C5_osg_Matrixd_R1__getViewMatrix, + "Get the const view matrix. ", + ""); + I_MethodWithDefaults4(void, getViewMatrixAsLookAt, IN, osg::Vec3 &, eye, , IN, osg::Vec3 &, center, , IN, osg::Vec3 &, up, , IN, float, lookDistance, 1.0f, + __void__getViewMatrixAsLookAt__osg_Vec3_R1__osg_Vec3_R1__osg_Vec3_R1__float, + "Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. ", + ""); + I_Method0(osg::Matrixd, getInverseViewMatrix, + __Matrixd__getInverseViewMatrix, + "Get the inverse view matrix. ", + ""); + I_MethodWithDefaults2(void, setRenderOrder, IN, osg::CameraNode::RenderOrder, order, , IN, int, orderNum, 0, + __void__setRenderOrder__RenderOrder__int, + "Set the rendering order of this camera's subgraph relative to any camera that this subgraph is nested within. ", + "For rendering to a texture, one typically uses PRE_RENDER. For Head Up Displays, one would typically use POST_RENDER. "); + I_Method0(osg::CameraNode::RenderOrder, getRenderOrder, + __RenderOrder__getRenderOrder, + "Get the rendering order of this camera's subgraph relative to any camera that this subgraph is nested within. ", + ""); + I_Method0(int, getRenderOrderNum, + __int__getRenderOrderNum, + "Get the rendering order number of this camera relative to any sibling cameras in this subgraph. ", + ""); + I_Method0(bool, isRenderToTextureCamera, + __bool__isRenderToTextureCamera, + "Return true if this Camera is set up as a render to texture camera, i.e. ", + "it has textures assigned to it. "); + I_Method1(void, setRenderTargetImplementation, IN, osg::CameraNode::RenderTargetImplementation, impl, + __void__setRenderTargetImplementation__RenderTargetImplementation, + "Set the render target. ", + ""); + I_Method2(void, setRenderTargetImplementation, IN, osg::CameraNode::RenderTargetImplementation, impl, IN, osg::CameraNode::RenderTargetImplementation, fallback, + __void__setRenderTargetImplementation__RenderTargetImplementation__RenderTargetImplementation, + "Set the render target and fall-back that's used if the former isn't available. ", + ""); + I_Method0(osg::CameraNode::RenderTargetImplementation, getRenderTargetImplementation, + __RenderTargetImplementation__getRenderTargetImplementation, + "Get the render target. ", + ""); + I_Method0(osg::CameraNode::RenderTargetImplementation, getRenderTargetFallback, + __RenderTargetImplementation__getRenderTargetFallback, + "Get the render target fallback. ", + ""); + I_Method1(void, setDrawBuffer, IN, GLenum, buffer, + __void__setDrawBuffer__GLenum, + "Set the draw buffer used at the start of each frame draw. ", + "Note, a buffer value of GL_NONE is used to sepecify that the rendering back-end should choose the most appropriate buffer. "); + I_Method0(GLenum, getDrawBuffer, + __GLenum__getDrawBuffer, + "Get the draw buffer used at the start of each frame draw. ", + ""); + I_Method1(void, setReadBuffer, IN, GLenum, buffer, + __void__setReadBuffer__GLenum, + "Set the read buffer for any required copy operations to use. ", + "Note, a buffer value of GL_NONE is used to sepecify that the rendering back-end should choose the most appropriate buffer. "); + I_Method0(GLenum, getReadBuffer, + __GLenum__getReadBuffer, + "Get the read buffer for any required copy operations to use. ", + ""); + I_Method2(void, attach, IN, osg::CameraNode::BufferComponent, buffer, IN, GLenum, internalFormat, + __void__attach__BufferComponent__GLenum, + "", + ""); + I_MethodWithDefaults5(void, attach, IN, osg::CameraNode::BufferComponent, buffer, , IN, osg::Texture *, texture, , IN, unsigned int, level, 0, IN, unsigned int, face, 0, IN, bool, mipMapGeneration, false, + __void__attach__BufferComponent__osg_Texture_P1__unsigned_int__unsigned_int__bool, + "", + ""); + I_Method2(void, attach, IN, osg::CameraNode::BufferComponent, buffer, IN, osg::Image *, image, + __void__attach__BufferComponent__osg_Image_P1, + "", + ""); + I_Method1(void, detach, IN, osg::CameraNode::BufferComponent, buffer, + __void__detach__BufferComponent, + "", + ""); + I_Method0(osg::CameraNode::BufferAttachmentMap &, getBufferAttachmentMap, + __BufferAttachmentMap_R1__getBufferAttachmentMap, + "Get the BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads. ", + ""); + I_Method0(const osg::CameraNode::BufferAttachmentMap &, getBufferAttachmentMap, + __C5_BufferAttachmentMap_R1__getBufferAttachmentMap, + "Get the const BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads. ", + ""); + I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + __void__setGraphicsContext__GraphicsContext_P1, + "Set the GraphicsContext that provides the mechansim for managing the OpenGL graphics context associated with this camera. ", + ""); + I_Method0(osg::GraphicsContext *, getGraphicsContext, + __GraphicsContext_P1__getGraphicsContext, + "Get the GraphicsContext. ", + ""); + I_Method0(const osg::GraphicsContext *, getGraphicsContext, + __C5_GraphicsContext_P1__getGraphicsContext, + "Get the const GraphicsContext. ", + ""); + I_Method2(void, setRenderingCache, IN, unsigned int, contextID, IN, osg::Object *, rc, + __void__setRenderingCache__unsigned_int__osg_Object_P1, + "Set the Rendering object that is used to implement rendering of the subgraph. ", + ""); + I_Method1(osg::Object *, getRenderingCache, IN, unsigned int, contextID, + __osg_Object_P1__getRenderingCache__unsigned_int, + "Get the Rendering object that is used to implement rendering of the subgraph. ", + ""); + I_Method1(const osg::Object *, getRenderingCache, IN, unsigned int, contextID, + __C5_osg_Object_P1__getRenderingCache__unsigned_int, + "Get the const Rendering object that is used to implement rendering of the subgraph. ", + ""); + I_Method1(void, setPostDrawCallback, IN, osg::CameraNode::DrawCallback *, cb, + __void__setPostDrawCallback__DrawCallback_P1, + "Set the post draw callback for custom operations to do done after the drawing of the camera's subgraph has been completed. ", + ""); + I_Method0(osg::CameraNode::DrawCallback *, getPostDrawCallback, + __DrawCallback_P1__getPostDrawCallback, + "Get the post draw callback. ", + ""); + I_Method0(const osg::CameraNode::DrawCallback *, getPostDrawCallback, + __C5_DrawCallback_P1__getPostDrawCallback, + "Get the const post draw callback. ", + ""); + I_Method0(OpenThreads::Mutex *, getDataChangeMutex, + __OpenThreads_Mutex_P1__getDataChangeMutex, + "", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + __void__releaseGLObjects__osg_State_P1, + "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objexts for all graphics contexts. "); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, + "Transform method that must be defined to provide generic interface for scene graph traversals. ", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, + "Transform method that must be defined to provide generic interface for scene graph traversals. ", + ""); + I_SimpleProperty(osg::CameraNode::BufferAttachmentMap &, BufferAttachmentMap, + __BufferAttachmentMap_R1__getBufferAttachmentMap, + 0); + I_SimpleProperty(const osg::Vec4 &, ClearColor, + __C5_Vec4_R1__getClearColor, + __void__setClearColor__C5_Vec4_R1); + I_SimpleProperty(GLbitfield, ClearMask, + __GLbitfield__getClearMask, + __void__setClearMask__GLbitfield); + I_SimpleProperty(osg::ColorMask *, ColorMask, + __ColorMask_P1__getColorMask, + __void__setColorMask__osg_ColorMask_P1); + I_SimpleProperty(OpenThreads::Mutex *, DataChangeMutex, + __OpenThreads_Mutex_P1__getDataChangeMutex, + 0); + I_SimpleProperty(GLenum, DrawBuffer, + __GLenum__getDrawBuffer, + __void__setDrawBuffer__GLenum); + I_SimpleProperty(osg::GraphicsContext *, GraphicsContext, + __GraphicsContext_P1__getGraphicsContext, + __void__setGraphicsContext__GraphicsContext_P1); + I_SimpleProperty(osg::Matrixd, InverseViewMatrix, + __Matrixd__getInverseViewMatrix, + 0); + I_SimpleProperty(osg::CameraNode::DrawCallback *, PostDrawCallback, + __DrawCallback_P1__getPostDrawCallback, + __void__setPostDrawCallback__DrawCallback_P1); + I_SimpleProperty(const osg::Matrixd &, ProjectionMatrix, + __C5_osg_Matrixd_R1__getProjectionMatrix, + __void__setProjectionMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(GLenum, ReadBuffer, + __GLenum__getReadBuffer, + __void__setReadBuffer__GLenum); + I_SimpleProperty(osg::CameraNode::RenderOrder, RenderOrder, + __RenderOrder__getRenderOrder, + 0); + I_SimpleProperty(int, RenderOrderNum, + __int__getRenderOrderNum, + 0); + I_SimpleProperty(osg::CameraNode::RenderTargetImplementation, RenderTargetFallback, + __RenderTargetImplementation__getRenderTargetFallback, + 0); + I_SimpleProperty(osg::CameraNode::RenderTargetImplementation, RenderTargetImplementation, + __RenderTargetImplementation__getRenderTargetImplementation, + __void__setRenderTargetImplementation__RenderTargetImplementation); + I_IndexedProperty(osg::Object *, RenderingCache, + __osg_Object_P1__getRenderingCache__unsigned_int, + __void__setRenderingCache__unsigned_int__osg_Object_P1, + 0); + I_SimpleProperty(osg::CameraNode::TransformOrder, TransformOrder, + __TransformOrder__getTransformOrder, + __void__setTransformOrder__TransformOrder); + I_SimpleProperty(osg::View *, View, + __View_P1__getView, + __void__setView__View_P1); + I_SimpleProperty(const osg::Matrixd &, ViewMatrix, + __C5_osg_Matrixd_R1__getViewMatrix, + __void__setViewMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osg::Viewport *, Viewport, + __Viewport_P1__getViewport, + __void__setViewport__osg_Viewport_P1); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::CameraNode::Attachment) - I_Constructor0(); - I_Method0(int, width); - I_Method0(int, height); - I_Method0(int, depth); + I_Constructor0(____Attachment, + "", + ""); + I_Method0(int, width, + __int__width, + "", + ""); + I_Method0(int, height, + __int__height, + "", + ""); + I_Method0(int, depth, + __int__depth, + "", + ""); I_PublicMemberProperty(GLenum, _internalFormat); I_PublicMemberProperty(osg::ref_ptr< osg::Image >, _image); I_PublicMemberProperty(osg::ref_ptr< osg::Texture >, _texture); @@ -184,13 +457,33 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::CameraNode::DrawCallback) I_VirtualBaseType(osg::Object); - I_Constructor0(); - I_Constructor2(IN, const osg::CameraNode::DrawCallback &, x, IN, const osg::CopyOp &, x); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); + I_Constructor0(____DrawCallback, + "", + ""); + I_Constructor2(IN, const osg::CameraNode::DrawCallback &, x, IN, const osg::CopyOp &, x, + ____DrawCallback__C5_DrawCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); END_REFLECTOR STD_MAP_REFLECTOR(std::map< osg::CameraNode::BufferComponent COMMA osg::CameraNode::Attachment >); diff --git a/src/osgWrappers/osg/CameraView.cpp b/src/osgWrappers/osg/CameraView.cpp index 870229216..1875e5664 100644 --- a/src/osgWrappers/osg/CameraView.cpp +++ b/src/osgWrappers/osg/CameraView.cpp @@ -34,30 +34,99 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::CameraView) I_BaseType(osg::Transform); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::CameraView &, pat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, setPosition, IN, const osg::Vec3d &, pos); - I_Method0(const osg::Vec3d &, getPosition); - I_Method1(void, setAttitude, IN, const osg::Quat &, quat); - I_Method0(const osg::Quat &, getAttitude); - I_Method1(void, setFieldOfView, IN, double, fieldOfView); - I_Method0(double, getFieldOfView); - I_Method1(void, setFieldOfViewMode, IN, osg::CameraView::FieldOfViewMode, mode); - I_Method0(osg::CameraView::FieldOfViewMode, getFieldOfViewMode); - I_Method1(void, setFocalLength, IN, double, focalLength); - I_Method0(double, getFocalLength); - I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv); - I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv); - I_Property(const osg::Quat &, Attitude); - I_Property(double, FieldOfView); - I_Property(osg::CameraView::FieldOfViewMode, FieldOfViewMode); - I_Property(double, FocalLength); - I_Property(const osg::Vec3d &, Position); + I_Constructor0(____CameraView, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::CameraView &, pat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CameraView__C5_CameraView_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3d &, pos, + __void__setPosition__C5_Vec3d_R1, + "Set the position of the camera view. ", + ""); + I_Method0(const osg::Vec3d &, getPosition, + __C5_Vec3d_R1__getPosition, + "Get the position of the camera view. ", + ""); + I_Method1(void, setAttitude, IN, const osg::Quat &, quat, + __void__setAttitude__C5_Quat_R1, + "Set the attitide of the camera view. ", + ""); + I_Method0(const osg::Quat &, getAttitude, + __C5_Quat_R1__getAttitude, + "Get the attitide of the camera view. ", + ""); + I_Method1(void, setFieldOfView, IN, double, fieldOfView, + __void__setFieldOfView__double, + "Set the field of view. ", + "The cameras field of view can be contrained to either the horizontal or vertex axis of the camera, or unconstrained in which case the camera/application are left to choose an appropriate field of view. The default value if 60 degrres. "); + I_Method0(double, getFieldOfView, + __double__getFieldOfView, + "Get the field of view. ", + ""); + I_Method1(void, setFieldOfViewMode, IN, osg::CameraView::FieldOfViewMode, mode, + __void__setFieldOfViewMode__FieldOfViewMode, + "Set the field of view mode - controlling how the field of view of the camera is contrained by the CameaView settings. ", + ""); + I_Method0(osg::CameraView::FieldOfViewMode, getFieldOfViewMode, + __FieldOfViewMode__getFieldOfViewMode, + "Get the field of view mode. ", + ""); + I_Method1(void, setFocalLength, IN, double, focalLength, + __void__setFocalLength__double, + "Set the focal length of the camera. ", + "A focal length of 0.0 indicates that the camera/application should determine the focal length. The default value is 0.0. "); + I_Method0(double, getFocalLength, + __double__getFocalLength, + "Get the focal length of the camera. ", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_SimpleProperty(const osg::Quat &, Attitude, + __C5_Quat_R1__getAttitude, + __void__setAttitude__C5_Quat_R1); + I_SimpleProperty(double, FieldOfView, + __double__getFieldOfView, + __void__setFieldOfView__double); + I_SimpleProperty(osg::CameraView::FieldOfViewMode, FieldOfViewMode, + __FieldOfViewMode__getFieldOfViewMode, + __void__setFieldOfViewMode__FieldOfViewMode); + I_SimpleProperty(double, FocalLength, + __double__getFocalLength, + __void__setFocalLength__double); + I_SimpleProperty(const osg::Vec3d &, Position, + __C5_Vec3d_R1__getPosition, + __void__setPosition__C5_Vec3d_R1); END_REFLECTOR diff --git a/src/osgWrappers/osg/ClampColor.cpp b/src/osgWrappers/osg/ClampColor.cpp index f327b627a..2fe825572 100644 --- a/src/osgWrappers/osg/ClampColor.cpp +++ b/src/osgWrappers/osg/ClampColor.cpp @@ -26,43 +26,134 @@ BEGIN_OBJECT_REFLECTOR(osg::ClampColor) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_Constructor3(IN, GLenum, vertexMode, IN, GLenum, fragmentMode, IN, GLenum, readMode); - I_ConstructorWithDefaults2(IN, const osg::ClampColor &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(void, setClampVertexColor, IN, GLenum, mode); - I_Method0(GLenum, getClampVertexColor); - I_Method1(void, setClampFragmentColor, IN, GLenum, mode); - I_Method0(GLenum, getClampFragmentColor); - I_Method1(void, setClampReadColor, IN, GLenum, mode); - I_Method0(GLenum, getClampReadColor); - I_Method1(void, apply, IN, osg::State &, state); - I_StaticMethod2(osg::ClampColor::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::ClampColor::Extensions *, extensions); - I_Property(GLenum, ClampFragmentColor); - I_Property(GLenum, ClampReadColor); - I_Property(GLenum, ClampVertexColor); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____ClampColor, + "", + ""); + I_Constructor3(IN, GLenum, vertexMode, IN, GLenum, fragmentMode, IN, GLenum, readMode, + ____ClampColor__GLenum__GLenum__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ClampColor &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ClampColor__C5_ClampColor_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setClampVertexColor, IN, GLenum, mode, + __void__setClampVertexColor__GLenum, + "", + ""); + I_Method0(GLenum, getClampVertexColor, + __GLenum__getClampVertexColor, + "", + ""); + I_Method1(void, setClampFragmentColor, IN, GLenum, mode, + __void__setClampFragmentColor__GLenum, + "", + ""); + I_Method0(GLenum, getClampFragmentColor, + __GLenum__getClampFragmentColor, + "", + ""); + I_Method1(void, setClampReadColor, IN, GLenum, mode, + __void__setClampReadColor__GLenum, + "", + ""); + I_Method0(GLenum, getClampReadColor, + __GLenum__getClampReadColor, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_StaticMethod2(osg::ClampColor::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Returns the Extensions object for the given context. ", + "If createIfNotInitalized is true and the Exentsions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::ClampColor::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions() allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(GLenum, ClampFragmentColor, + __GLenum__getClampFragmentColor, + __void__setClampFragmentColor__GLenum); + I_SimpleProperty(GLenum, ClampReadColor, + __GLenum__getClampReadColor, + __void__setClampReadColor__GLenum); + I_SimpleProperty(GLenum, ClampVertexColor, + __GLenum__getClampVertexColor, + __void__setClampVertexColor__GLenum); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::ClampColor::Extensions) I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID); - I_Constructor1(IN, const osg::ClampColor::Extensions &, rhs); - I_Method1(void, lowestCommonDenominator, IN, const osg::ClampColor::Extensions &, rhs); - I_Method1(void, setupGLExtenions, IN, unsigned int, contextID); - I_Method1(void, setClampColorSupported, IN, bool, flag); - I_Method0(bool, isClampColorSupported); - I_Method1(void, setClampColorProc, IN, void *, ptr); - I_Method2(void, glClampColor, IN, GLenum, target, IN, GLenum, mode); - I_WriteOnlyProperty(void *, ClampColorProc); - I_WriteOnlyProperty(bool, ClampColorSupported); - I_WriteOnlyProperty(unsigned int, upGLExtenions); + I_Constructor1(IN, unsigned int, contextID, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::ClampColor::Extensions &, rhs, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::ClampColor::Extensions &, rhs, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setClampColorSupported, IN, bool, flag, + __void__setClampColorSupported__bool, + "", + ""); + I_Method0(bool, isClampColorSupported, + __bool__isClampColorSupported, + "", + ""); + I_Method1(void, setClampColorProc, IN, void *, ptr, + __void__setClampColorProc__void_P1, + "", + ""); + I_Method2(void, glClampColor, IN, GLenum, target, IN, GLenum, mode, + __void__glClampColor__GLenum__GLenum, + "", + ""); + I_SimpleProperty(void *, ClampColorProc, + 0, + __void__setClampColorProc__void_P1); + I_SimpleProperty(bool, ClampColorSupported, + 0, + __void__setClampColorSupported__bool); END_REFLECTOR diff --git a/src/osgWrappers/osg/ClearNode.cpp b/src/osgWrappers/osg/ClearNode.cpp index 2f9735ee7..bb9611055 100644 --- a/src/osgWrappers/osg/ClearNode.cpp +++ b/src/osgWrappers/osg/ClearNode.cpp @@ -26,22 +26,69 @@ BEGIN_OBJECT_REFLECTOR(osg::ClearNode) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::ClearNode &, cs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, setRequiresClear, IN, bool, requiresClear); - I_Method0(bool, getRequiresClear); - I_Method1(void, setClearColor, IN, const osg::Vec4 &, color); - I_Method0(const osg::Vec4 &, getClearColor); - I_Method1(void, setClearMask, IN, GLbitfield, mask); - I_Method0(GLbitfield, getClearMask); - I_Property(const osg::Vec4 &, ClearColor); - I_Property(GLbitfield, ClearMask); - I_Property(bool, RequiresClear); + I_Constructor0(____ClearNode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ClearNode &, cs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ClearNode__C5_ClearNode_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, setRequiresClear, IN, bool, requiresClear, + __void__setRequiresClear__bool, + "Enable/disable clearing via glClear. ", + ""); + I_Method0(bool, getRequiresClear, + __bool__getRequiresClear, + "Gets whether clearing is enabled or disabled. ", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + __void__setClearColor__C5_Vec4_R1, + "Sets the clear color. ", + ""); + I_Method0(const osg::Vec4 &, getClearColor, + __C5_Vec4_R1__getClearColor, + "Returns the clear color. ", + ""); + I_Method1(void, setClearMask, IN, GLbitfield, mask, + __void__setClearMask__GLbitfield, + "Set the clear mask used in glClear(. ", + ".). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT. "); + I_Method0(GLbitfield, getClearMask, + __GLbitfield__getClearMask, + "Get the clear mask. ", + ""); + I_SimpleProperty(const osg::Vec4 &, ClearColor, + __C5_Vec4_R1__getClearColor, + __void__setClearColor__C5_Vec4_R1); + I_SimpleProperty(GLbitfield, ClearMask, + __GLbitfield__getClearMask, + __void__setClearMask__GLbitfield); + I_SimpleProperty(bool, RequiresClear, + __bool__getRequiresClear, + __void__setRequiresClear__bool); END_REFLECTOR diff --git a/src/osgWrappers/osg/ClipNode.cpp b/src/osgWrappers/osg/ClipNode.cpp index d2730c2d5..10269e2a4 100644 --- a/src/osgWrappers/osg/ClipNode.cpp +++ b/src/osgWrappers/osg/ClipNode.cpp @@ -32,41 +32,135 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::ClipPlane > >, osg::ClipNode::Cl BEGIN_OBJECT_REFLECTOR(osg::ClipNode) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::ClipNode &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_MethodWithDefaults2(void, createClipBox, IN, const osg::BoundingBox &, bb, , IN, unsigned int, clipPlaneNumberBase, 0); - I_Method1(bool, addClipPlane, IN, osg::ClipPlane *, clipplane); - I_Method1(bool, removeClipPlane, IN, osg::ClipPlane *, clipplane); - I_Method1(bool, removeClipPlane, IN, unsigned int, pos); - I_Method0(unsigned int, getNumClipPlanes); - I_Method1(osg::ClipPlane *, getClipPlane, IN, unsigned int, pos); - I_Method1(const osg::ClipPlane *, getClipPlane, IN, unsigned int, pos); - I_Method1(void, getClipPlaneList, IN, const osg::ClipNode::ClipPlaneList &, cpl); - I_Method0(osg::ClipNode::ClipPlaneList &, getClipPlaneList); - I_Method0(const osg::ClipNode::ClipPlaneList &, getClipPlaneList); - I_Method2(void, setStateSetModes, IN, osg::StateSet &, x, IN, osg::StateAttribute::GLModeValue, x); - I_MethodWithDefaults1(void, setLocalStateSetModes, IN, osg::StateAttribute::GLModeValue, x, osg::StateAttribute::ON); - I_Method0(osg::BoundingSphere, computeBound); - I_ArrayProperty_GA(osg::ClipPlane *, ClipPlane, ClipPlanes, unsigned int, bool); - I_ReadOnlyProperty(osg::ClipNode::ClipPlaneList &, ClipPlaneList); - I_WriteOnlyProperty(osg::StateAttribute::GLModeValue, LocalStateSetModes); + I_Constructor0(____ClipNode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ClipNode &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ClipNode__C5_ClipNode_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_MethodWithDefaults2(void, createClipBox, IN, const osg::BoundingBox &, bb, , IN, unsigned int, clipPlaneNumberBase, 0, + __void__createClipBox__C5_BoundingBox_R1__unsigned_int, + "Creates six clip planes corresponding to the given BoundingBox. ", + ""); + I_Method1(bool, addClipPlane, IN, osg::ClipPlane *, clipplane, + __bool__addClipPlane__ClipPlane_P1, + "Adds the clipplane. ", + "Returns true on success, and false if the plane has already been added, or if clipplane is NULL. "); + I_Method1(bool, removeClipPlane, IN, osg::ClipPlane *, clipplane, + __bool__removeClipPlane__ClipPlane_P1, + "Removes the clipplane. ", + "Returns true on success, false if clipplane isn't in this ClipNode. "); + I_Method1(bool, removeClipPlane, IN, unsigned int, pos, + __bool__removeClipPlane__unsigned_int, + "Remove the ClipPlane with the given index. ", + "Returns true on success, false if pos is not a valid plane index. "); + I_Method0(unsigned int, getNumClipPlanes, + __unsigned_int__getNumClipPlanes, + "Returns the number of ClipPlanes. ", + ""); + I_Method1(osg::ClipPlane *, getClipPlane, IN, unsigned int, pos, + __ClipPlane_P1__getClipPlane__unsigned_int, + "Get ClipPlane at the given index position. ", + ""); + I_Method1(const osg::ClipPlane *, getClipPlane, IN, unsigned int, pos, + __C5_ClipPlane_P1__getClipPlane__unsigned_int, + "Get const ClipPlane at the given index position. ", + ""); + I_Method1(void, getClipPlaneList, IN, const osg::ClipNode::ClipPlaneList &, cpl, + __void__getClipPlaneList__C5_ClipPlaneList_R1, + "Set the ClipPlaneList. ", + ""); + I_Method0(osg::ClipNode::ClipPlaneList &, getClipPlaneList, + __ClipPlaneList_R1__getClipPlaneList, + "Get the ClipPlaneList. ", + ""); + I_Method0(const osg::ClipNode::ClipPlaneList &, getClipPlaneList, + __C5_ClipPlaneList_R1__getClipPlaneList, + "Get the const ClipPlaneList. ", + ""); + I_Method2(void, setStateSetModes, IN, osg::StateSet &, x, IN, osg::StateAttribute::GLModeValue, x, + __void__setStateSetModes__StateSet_R1__StateAttribute_GLModeValue, + "Set the GLModes for all ClipPlanes, on the StateSet. ", + ""); + I_MethodWithDefaults1(void, setLocalStateSetModes, IN, osg::StateAttribute::GLModeValue, x, osg::StateAttribute::ON, + __void__setLocalStateSetModes__StateAttribute_GLModeValue, + "Set up the local StateSet. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + __BoundingSphere__computeBound, + "Compute the bounding sphere around Node's geometry or children. ", + "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); + I_ArrayProperty(osg::ClipPlane *, ClipPlane, + __ClipPlane_P1__getClipPlane__unsigned_int, + 0, + __unsigned_int__getNumClipPlanes, + __bool__addClipPlane__ClipPlane_P1, + 0, + __bool__removeClipPlane__unsigned_int); + I_SimpleProperty(osg::ClipNode::ClipPlaneList &, ClipPlaneList, + __ClipPlaneList_R1__getClipPlaneList, + 0); + I_SimpleProperty(osg::StateAttribute::GLModeValue, LocalStateSetModes, + 0, + __void__setLocalStateSetModes__StateAttribute_GLModeValue); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::ClipPlane >) - I_Constructor0(); - I_Constructor1(IN, osg::ClipPlane *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osg::ClipPlane > &, rp); - I_Method0(osg::ClipPlane *, get); - I_Method0(bool, valid); - I_Method0(osg::ClipPlane *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osg::ClipPlane > &, rp); - I_ReadOnlyProperty(osg::ClipPlane *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::ClipPlane *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::ClipPlane > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::ClipPlane *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osg::ClipPlane *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::ClipPlane > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::ClipPlane *, , + __T_P1__get, + 0); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::ClipPlane > >); diff --git a/src/osgWrappers/osg/ClipPlane.cpp b/src/osgWrappers/osg/ClipPlane.cpp index e4d8866b1..66ebacd8d 100644 --- a/src/osgWrappers/osg/ClipPlane.cpp +++ b/src/osgWrappers/osg/ClipPlane.cpp @@ -28,30 +28,100 @@ BEGIN_OBJECT_REFLECTOR(osg::ClipPlane) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_Constructor2(IN, unsigned int, no, IN, const osg::Vec4d &, plane); - I_Constructor2(IN, unsigned int, no, IN, const osg::Plane &, plane); - I_Constructor5(IN, unsigned int, no, IN, double, a, IN, double, b, IN, double, c, IN, double, d); - I_ConstructorWithDefaults2(IN, const osg::ClipPlane &, cp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method0(unsigned int, getMember); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(void, setClipPlane, IN, const osg::Plane &, plane); - I_Method4(void, setClipPlane, IN, double, a, IN, double, b, IN, double, c, IN, double, d); - I_Method1(void, setClipPlane, IN, const osg::Vec4d &, plane); - I_Method0(const osg::Vec4d &, getClipPlane); - I_Method1(void, setClipPlaneNum, IN, unsigned int, num); - I_Method0(unsigned int, getClipPlaneNum); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(const osg::Vec4d &, ClipPlane); - I_Property(unsigned int, ClipPlaneNum); - I_ReadOnlyProperty(unsigned int, Member); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____ClipPlane, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, const osg::Vec4d &, plane, + ____ClipPlane__unsigned_int__C5_Vec4d_R1, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, const osg::Plane &, plane, + ____ClipPlane__unsigned_int__C5_Plane_R1, + "", + ""); + I_Constructor5(IN, unsigned int, no, IN, double, a, IN, double, b, IN, double, c, IN, double, d, + ____ClipPlane__unsigned_int__double__double__double__double, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ClipPlane &, cp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ClipPlane__C5_ClipPlane_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(unsigned int, getMember, + __unsigned_int__getMember, + "Return the member identifier within the attribute's class type. ", + "Used for light number/clip plane number etc. "); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setClipPlane, IN, const osg::Plane &, plane, + __void__setClipPlane__C5_Plane_R1, + "Set the clip plane with the given Plane. ", + ""); + I_Method4(void, setClipPlane, IN, double, a, IN, double, b, IN, double, c, IN, double, d, + __void__setClipPlane__double__double__double__double, + "Defines the plane as [ a b c d ]. ", + ""); + I_Method1(void, setClipPlane, IN, const osg::Vec4d &, plane, + __void__setClipPlane__C5_Vec4d_R1, + "Set the clip plane with the given Vec4. ", + ""); + I_Method0(const osg::Vec4d &, getClipPlane, + __C5_Vec4d_R1__getClipPlane, + "Gets the clip plane as a Vec4d. ", + ""); + I_Method1(void, setClipPlaneNum, IN, unsigned int, num, + __void__setClipPlaneNum__unsigned_int, + "Sets the clip plane number. ", + ""); + I_Method0(unsigned int, getClipPlaneNum, + __unsigned_int__getClipPlaneNum, + "Gets the clip plane number. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "Applies the clip plane's state to the OpenGL state machine. ", + ""); + I_SimpleProperty(const osg::Vec4d &, ClipPlane, + __C5_Vec4d_R1__getClipPlane, + __void__setClipPlane__C5_Vec4d_R1); + I_SimpleProperty(unsigned int, ClipPlaneNum, + __unsigned_int__getClipPlaneNum, + __void__setClipPlaneNum__unsigned_int); + I_SimpleProperty(unsigned int, Member, + __unsigned_int__getMember, + 0); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/ClusterCullingCallback.cpp b/src/osgWrappers/osg/ClusterCullingCallback.cpp index e46023a20..ed87616a8 100644 --- a/src/osgWrappers/osg/ClusterCullingCallback.cpp +++ b/src/osgWrappers/osg/ClusterCullingCallback.cpp @@ -31,30 +31,100 @@ BEGIN_OBJECT_REFLECTOR(osg::ClusterCullingCallback) I_BaseType(osg::Drawable::CullCallback); I_BaseType(osg::NodeCallback); - I_Constructor0(); - I_Constructor2(IN, const osg::ClusterCullingCallback &, ccc, IN, const osg::CopyOp &, copyop); - I_Constructor3(IN, const osg::Vec3 &, controlPoint, IN, const osg::Vec3 &, normal, IN, float, deviation); - I_Constructor1(IN, const osg::Drawable *, drawable); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, computeFrom, IN, const osg::Drawable *, drawable); - I_Method1(void, transform, IN, const osg::Matrixd &, matrix); - I_Method4(void, set, IN, const osg::Vec3 &, controlPoint, IN, const osg::Vec3 &, normal, IN, float, deviation, IN, float, radius); - I_Method1(void, setControlPoint, IN, const osg::Vec3 &, controlPoint); - I_Method0(const osg::Vec3 &, getControlPoint); - I_Method1(void, setNormal, IN, const osg::Vec3 &, normal); - I_Method0(const osg::Vec3 &, getNormal); - I_Method1(void, setRadius, IN, float, radius); - I_Method0(float, getRadius); - I_Method1(void, setDeviation, IN, float, deviation); - I_Method0(float, getDeviation); - I_Method3(bool, cull, IN, osg::NodeVisitor *, x, IN, osg::Drawable *, x, IN, osg::State *, x); - I_Property(const osg::Vec3 &, ControlPoint); - I_Property(float, Deviation); - I_Property(const osg::Vec3 &, Normal); - I_Property(float, Radius); + I_Constructor0(____ClusterCullingCallback, + "", + ""); + I_Constructor2(IN, const osg::ClusterCullingCallback &, ccc, IN, const osg::CopyOp &, copyop, + ____ClusterCullingCallback__C5_ClusterCullingCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor3(IN, const osg::Vec3 &, controlPoint, IN, const osg::Vec3 &, normal, IN, float, deviation, + ____ClusterCullingCallback__C5_osg_Vec3_R1__C5_osg_Vec3_R1__float, + "", + ""); + I_Constructor1(IN, const osg::Drawable *, drawable, + ____ClusterCullingCallback__C5_osg_Drawable_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, computeFrom, IN, const osg::Drawable *, drawable, + __void__computeFrom__C5_osg_Drawable_P1, + "Computes the control point, normal, and deviation from the given drawable contents. ", + ""); + I_Method1(void, transform, IN, const osg::Matrixd &, matrix, + __void__transform__C5_osg_Matrixd_R1, + "Transform the ClusterCullingCallback's positional members to a new coordinate frame. ", + ""); + I_Method4(void, set, IN, const osg::Vec3 &, controlPoint, IN, const osg::Vec3 &, normal, IN, float, deviation, IN, float, radius, + __void__set__C5_osg_Vec3_R1__C5_osg_Vec3_R1__float__float, + "", + ""); + I_Method1(void, setControlPoint, IN, const osg::Vec3 &, controlPoint, + __void__setControlPoint__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getControlPoint, + __C5_osg_Vec3_R1__getControlPoint, + "", + ""); + I_Method1(void, setNormal, IN, const osg::Vec3 &, normal, + __void__setNormal__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getNormal, + __C5_osg_Vec3_R1__getNormal, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + __float__getRadius, + "", + ""); + I_Method1(void, setDeviation, IN, float, deviation, + __void__setDeviation__float, + "", + ""); + I_Method0(float, getDeviation, + __float__getDeviation, + "", + ""); + I_Method3(bool, cull, IN, osg::NodeVisitor *, x, IN, osg::Drawable *, x, IN, osg::State *, x, + __bool__cull__osg_NodeVisitor_P1__osg_Drawable_P1__osg_State_P1, + "deprecated. ", + ""); + I_SimpleProperty(const osg::Vec3 &, ControlPoint, + __C5_osg_Vec3_R1__getControlPoint, + __void__setControlPoint__C5_osg_Vec3_R1); + I_SimpleProperty(float, Deviation, + __float__getDeviation, + __void__setDeviation__float); + I_SimpleProperty(const osg::Vec3 &, Normal, + __C5_osg_Vec3_R1__getNormal, + __void__setNormal__C5_osg_Vec3_R1); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); END_REFLECTOR diff --git a/src/osgWrappers/osg/CollectOccludersVisitor.cpp b/src/osgWrappers/osg/CollectOccludersVisitor.cpp index 5ffd47e37..b769a29d6 100644 --- a/src/osgWrappers/osg/CollectOccludersVisitor.cpp +++ b/src/osgWrappers/osg/CollectOccludersVisitor.cpp @@ -32,32 +32,104 @@ TYPE_NAME_ALIAS(std::set< osg::ShadowVolumeOccluder >, osg::CollectOccludersVisi BEGIN_OBJECT_REFLECTOR(osg::CollectOccludersVisitor) I_BaseType(osg::NodeVisitor); I_BaseType(osg::CullStack); - I_Constructor0(); - I_Method0(osg::CollectOccludersVisitor *, cloneType); - I_Method0(void, reset); - I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale); - I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale); - I_Method1(void, apply, IN, osg::Node &, x); - I_Method1(void, apply, IN, osg::Transform &, node); - I_Method1(void, apply, IN, osg::Projection &, node); - I_Method1(void, apply, IN, osg::Switch &, node); - I_Method1(void, apply, IN, osg::LOD &, node); - I_Method1(void, apply, IN, osg::OccluderNode &, node); - I_Method1(void, setMinimumShadowOccluderVolume, IN, float, vol); - I_Method0(float, getMinimumShadowOccluderVolume); - I_Method1(void, setMaximumNumberOfActiveOccluders, IN, unsigned int, num); - I_Method0(unsigned int, getMaximumNumberOfActiveOccluders); - I_Method1(void, setCreateDrawablesOnOccludeNodes, IN, bool, flag); - I_Method0(bool, getCreateDrawablesOnOccludeNodes); - I_Method1(void, setCollectedOcculderSet, IN, const osg::CollectOccludersVisitor::ShadowVolumeOccluderSet &, svol); - I_Method0(osg::CollectOccludersVisitor::ShadowVolumeOccluderSet &, getCollectedOccluderSet); - I_Method0(const osg::CollectOccludersVisitor::ShadowVolumeOccluderSet &, getCollectedOccluderSet); - I_Method0(void, removeOccludedOccluders); - I_ReadOnlyProperty(osg::CollectOccludersVisitor::ShadowVolumeOccluderSet &, CollectedOccluderSet); - I_WriteOnlyProperty(const osg::CollectOccludersVisitor::ShadowVolumeOccluderSet &, CollectedOcculderSet); - I_Property(bool, CreateDrawablesOnOccludeNodes); - I_Property(unsigned int, MaximumNumberOfActiveOccluders); - I_Property(float, MinimumShadowOccluderVolume); + I_Constructor0(____CollectOccludersVisitor, + "", + ""); + I_Method0(osg::CollectOccludersVisitor *, cloneType, + __CollectOccludersVisitor_P1__cloneType, + "", + ""); + I_Method0(void, reset, + __void__reset, + "", + ""); + I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + __float__getDistanceToEyePoint__C5_Vec3_R1__bool, + "Get the distance from a point to the eye point, distance value in local coordinate system. ", + "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceFromEyePoint(pos) is not implemented then a default value of 0.0 is returned. "); + I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + __float__getDistanceFromEyePoint__C5_Vec3_R1__bool, + "Get the distance of a point from the eye point, distance value in the eye coordinate system. ", + "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceFromEyePoint(pos) is not implemented than a default value of 0.0 is returned. "); + I_Method1(void, apply, IN, osg::Node &, x, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, node, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::OccluderNode &, node, + __void__apply__osg_OccluderNode_R1, + "", + ""); + I_Method1(void, setMinimumShadowOccluderVolume, IN, float, vol, + __void__setMinimumShadowOccluderVolume__float, + "Sets the minimum shadow occluder volume that an active occluder must have. ", + "vol is units relative the clip space volume where 1.0 is the whole clip space. "); + I_Method0(float, getMinimumShadowOccluderVolume, + __float__getMinimumShadowOccluderVolume, + "", + ""); + I_Method1(void, setMaximumNumberOfActiveOccluders, IN, unsigned int, num, + __void__setMaximumNumberOfActiveOccluders__unsigned_int, + "Sets the maximum number of occluders to have active for culling purposes. ", + ""); + I_Method0(unsigned int, getMaximumNumberOfActiveOccluders, + __unsigned_int__getMaximumNumberOfActiveOccluders, + "", + ""); + I_Method1(void, setCreateDrawablesOnOccludeNodes, IN, bool, flag, + __void__setCreateDrawablesOnOccludeNodes__bool, + "", + ""); + I_Method0(bool, getCreateDrawablesOnOccludeNodes, + __bool__getCreateDrawablesOnOccludeNodes, + "", + ""); + I_Method1(void, setCollectedOcculderSet, IN, const osg::CollectOccludersVisitor::ShadowVolumeOccluderSet &, svol, + __void__setCollectedOcculderSet__C5_ShadowVolumeOccluderSet_R1, + "", + ""); + I_Method0(osg::CollectOccludersVisitor::ShadowVolumeOccluderSet &, getCollectedOccluderSet, + __ShadowVolumeOccluderSet_R1__getCollectedOccluderSet, + "", + ""); + I_Method0(const osg::CollectOccludersVisitor::ShadowVolumeOccluderSet &, getCollectedOccluderSet, + __C5_ShadowVolumeOccluderSet_R1__getCollectedOccluderSet, + "", + ""); + I_Method0(void, removeOccludedOccluders, + __void__removeOccludedOccluders, + "Removes occluded occluders for the collected occluders list, then discards all but MaximumNumberOfActiveOccluders of occluders, discarding the occluders with the lowests shadow occluder volume. ", + ""); + I_SimpleProperty(osg::CollectOccludersVisitor::ShadowVolumeOccluderSet &, CollectedOccluderSet, + __ShadowVolumeOccluderSet_R1__getCollectedOccluderSet, + 0); + I_SimpleProperty(const osg::CollectOccludersVisitor::ShadowVolumeOccluderSet &, CollectedOcculderSet, + 0, + __void__setCollectedOcculderSet__C5_ShadowVolumeOccluderSet_R1); + I_SimpleProperty(bool, CreateDrawablesOnOccludeNodes, + __bool__getCreateDrawablesOnOccludeNodes, + __void__setCreateDrawablesOnOccludeNodes__bool); + I_SimpleProperty(unsigned int, MaximumNumberOfActiveOccluders, + __unsigned_int__getMaximumNumberOfActiveOccluders, + __void__setMaximumNumberOfActiveOccluders__unsigned_int); + I_SimpleProperty(float, MinimumShadowOccluderVolume, + __float__getMinimumShadowOccluderVolume, + __void__setMinimumShadowOccluderVolume__float); END_REFLECTOR STD_SET_REFLECTOR(std::set< osg::ShadowVolumeOccluder >); diff --git a/src/osgWrappers/osg/ColorMask.cpp b/src/osgWrappers/osg/ColorMask.cpp index 8a07bed4b..b31f1b84d 100644 --- a/src/osgWrappers/osg/ColorMask.cpp +++ b/src/osgWrappers/osg/ColorMask.cpp @@ -26,30 +26,99 @@ BEGIN_OBJECT_REFLECTOR(osg::ColorMask) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_Constructor4(IN, bool, red, IN, bool, green, IN, bool, blue, IN, bool, alpha); - I_ConstructorWithDefaults2(IN, const osg::ColorMask &, cm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method4(void, setMask, IN, bool, red, IN, bool, green, IN, bool, blue, IN, bool, alpha); - I_Method1(void, setRedMask, IN, bool, mask); - I_Method0(bool, getRedMask); - I_Method1(void, setGreenMask, IN, bool, mask); - I_Method0(bool, getGreenMask); - I_Method1(void, setBlueMask, IN, bool, mask); - I_Method0(bool, getBlueMask); - I_Method1(void, setAlphaMask, IN, bool, mask); - I_Method0(bool, getAlphaMask); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(bool, AlphaMask); - I_Property(bool, BlueMask); - I_Property(bool, GreenMask); - I_Property(bool, RedMask); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____ColorMask, + "", + ""); + I_Constructor4(IN, bool, red, IN, bool, green, IN, bool, blue, IN, bool, alpha, + ____ColorMask__bool__bool__bool__bool, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ColorMask &, cm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ColorMask__C5_ColorMask_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method4(void, setMask, IN, bool, red, IN, bool, green, IN, bool, blue, IN, bool, alpha, + __void__setMask__bool__bool__bool__bool, + "", + ""); + I_Method1(void, setRedMask, IN, bool, mask, + __void__setRedMask__bool, + "", + ""); + I_Method0(bool, getRedMask, + __bool__getRedMask, + "", + ""); + I_Method1(void, setGreenMask, IN, bool, mask, + __void__setGreenMask__bool, + "", + ""); + I_Method0(bool, getGreenMask, + __bool__getGreenMask, + "", + ""); + I_Method1(void, setBlueMask, IN, bool, mask, + __void__setBlueMask__bool, + "", + ""); + I_Method0(bool, getBlueMask, + __bool__getBlueMask, + "", + ""); + I_Method1(void, setAlphaMask, IN, bool, mask, + __void__setAlphaMask__bool, + "", + ""); + I_Method0(bool, getAlphaMask, + __bool__getAlphaMask, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(bool, AlphaMask, + __bool__getAlphaMask, + __void__setAlphaMask__bool); + I_SimpleProperty(bool, BlueMask, + __bool__getBlueMask, + __void__setBlueMask__bool); + I_SimpleProperty(bool, GreenMask, + __bool__getGreenMask, + __void__setGreenMask__bool); + I_SimpleProperty(bool, RedMask, + __bool__getRedMask, + __void__setRedMask__bool); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/ColorMatrix.cpp b/src/osgWrappers/osg/ColorMatrix.cpp index 4d4c9cf92..d870551fe 100644 --- a/src/osgWrappers/osg/ColorMatrix.cpp +++ b/src/osgWrappers/osg/ColorMatrix.cpp @@ -27,20 +27,62 @@ BEGIN_OBJECT_REFLECTOR(osg::ColorMatrix) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::ColorMatrix &, cm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(void, setMatrix, IN, const osg::Matrix &, matrix); - I_Method0(osg::Matrix &, getMatrix); - I_Method0(const osg::Matrix &, getMatrix); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(const osg::Matrix &, Matrix); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____ColorMatrix, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ColorMatrix &, cm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ColorMatrix__C5_ColorMatrix_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setMatrix, IN, const osg::Matrix &, matrix, + __void__setMatrix__C5_Matrix_R1, + "Sets the color matrix. ", + ""); + I_Method0(osg::Matrix &, getMatrix, + __Matrix_R1__getMatrix, + "Gets the color matrix. ", + ""); + I_Method0(const osg::Matrix &, getMatrix, + __C5_Matrix_R1__getMatrix, + "Gets the const color matrix. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "Applies as OpenGL texture matrix. ", + ""); + I_SimpleProperty(const osg::Matrix &, Matrix, + __C5_Matrix_R1__getMatrix, + __void__setMatrix__C5_Matrix_R1); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/ConvexPlanarOccluder.cpp b/src/osgWrappers/osg/ConvexPlanarOccluder.cpp index 348b7ee82..36fae392a 100644 --- a/src/osgWrappers/osg/ConvexPlanarOccluder.cpp +++ b/src/osgWrappers/osg/ConvexPlanarOccluder.cpp @@ -27,22 +27,67 @@ TYPE_NAME_ALIAS(std::vector< osg::ConvexPlanarPolygon >, osg::ConvexPlanarOcclud BEGIN_OBJECT_REFLECTOR(osg::ConvexPlanarOccluder) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::ConvexPlanarOccluder &, cpo, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, setOccluder, IN, const osg::ConvexPlanarPolygon &, cpp); - I_Method0(osg::ConvexPlanarPolygon &, getOccluder); - I_Method0(const osg::ConvexPlanarPolygon &, getOccluder); - I_Method1(void, addHole, IN, const osg::ConvexPlanarPolygon &, cpp); - I_Method1(void, setHoleList, IN, const osg::ConvexPlanarOccluder::HoleList &, holeList); - I_Method0(osg::ConvexPlanarOccluder::HoleList &, getHoleList); - I_Method0(const osg::ConvexPlanarOccluder::HoleList &, getHoleList); - I_Property(const osg::ConvexPlanarOccluder::HoleList &, HoleList); - I_Property(const osg::ConvexPlanarPolygon &, Occluder); + I_Constructor0(____ConvexPlanarOccluder, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ConvexPlanarOccluder &, cpo, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ConvexPlanarOccluder__C5_ConvexPlanarOccluder_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setOccluder, IN, const osg::ConvexPlanarPolygon &, cpp, + __void__setOccluder__C5_ConvexPlanarPolygon_R1, + "", + ""); + I_Method0(osg::ConvexPlanarPolygon &, getOccluder, + __ConvexPlanarPolygon_R1__getOccluder, + "", + ""); + I_Method0(const osg::ConvexPlanarPolygon &, getOccluder, + __C5_ConvexPlanarPolygon_R1__getOccluder, + "", + ""); + I_Method1(void, addHole, IN, const osg::ConvexPlanarPolygon &, cpp, + __void__addHole__C5_ConvexPlanarPolygon_R1, + "", + ""); + I_Method1(void, setHoleList, IN, const osg::ConvexPlanarOccluder::HoleList &, holeList, + __void__setHoleList__C5_HoleList_R1, + "", + ""); + I_Method0(osg::ConvexPlanarOccluder::HoleList &, getHoleList, + __HoleList_R1__getHoleList, + "", + ""); + I_Method0(const osg::ConvexPlanarOccluder::HoleList &, getHoleList, + __C5_HoleList_R1__getHoleList, + "", + ""); + I_SimpleProperty(const osg::ConvexPlanarOccluder::HoleList &, HoleList, + __C5_HoleList_R1__getHoleList, + __void__setHoleList__C5_HoleList_R1); + I_SimpleProperty(const osg::ConvexPlanarPolygon &, Occluder, + __C5_ConvexPlanarPolygon_R1__getOccluder, + __void__setOccluder__C5_ConvexPlanarPolygon_R1); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< osg::ConvexPlanarPolygon >); diff --git a/src/osgWrappers/osg/ConvexPlanarPolygon.cpp b/src/osgWrappers/osg/ConvexPlanarPolygon.cpp index 98dd33c5e..05c3fc0d2 100644 --- a/src/osgWrappers/osg/ConvexPlanarPolygon.cpp +++ b/src/osgWrappers/osg/ConvexPlanarPolygon.cpp @@ -24,11 +24,27 @@ TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osg::ConvexPlanarPolygon::VertexList); BEGIN_VALUE_REFLECTOR(osg::ConvexPlanarPolygon) - I_Constructor0(); - I_Method1(void, add, IN, const osg::Vec3 &, v); - I_Method1(void, setVertexList, IN, const osg::ConvexPlanarPolygon::VertexList &, vertexList); - I_Method0(osg::ConvexPlanarPolygon::VertexList &, getVertexList); - I_Method0(const osg::ConvexPlanarPolygon::VertexList &, getVertexList); - I_Property(const osg::ConvexPlanarPolygon::VertexList &, VertexList); + I_Constructor0(____ConvexPlanarPolygon, + "", + ""); + I_Method1(void, add, IN, const osg::Vec3 &, v, + __void__add__C5_Vec3_R1, + "", + ""); + I_Method1(void, setVertexList, IN, const osg::ConvexPlanarPolygon::VertexList &, vertexList, + __void__setVertexList__C5_VertexList_R1, + "", + ""); + I_Method0(osg::ConvexPlanarPolygon::VertexList &, getVertexList, + __VertexList_R1__getVertexList, + "", + ""); + I_Method0(const osg::ConvexPlanarPolygon::VertexList &, getVertexList, + __C5_VertexList_R1__getVertexList, + "", + ""); + I_SimpleProperty(const osg::ConvexPlanarPolygon::VertexList &, VertexList, + __C5_VertexList_R1__getVertexList, + __void__setVertexList__C5_VertexList_R1); END_REFLECTOR diff --git a/src/osgWrappers/osg/CoordinateSystemNode.cpp b/src/osgWrappers/osg/CoordinateSystemNode.cpp index 2b830ae43..050a64fa0 100644 --- a/src/osgWrappers/osg/CoordinateSystemNode.cpp +++ b/src/osgWrappers/osg/CoordinateSystemNode.cpp @@ -27,51 +27,164 @@ BEGIN_OBJECT_REFLECTOR(osg::CoordinateSystemNode) I_BaseType(osg::Group); - I_Constructor0(); - I_Constructor2(IN, const std::string &, format, IN, const std::string &, cs); - I_ConstructorWithDefaults2(IN, const osg::CoordinateSystemNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, set, IN, const osg::CoordinateSystemNode &, csn); - I_Method1(void, setFormat, IN, const std::string &, format); - I_Method0(const std::string &, getFormat); - I_Method1(void, setCoordinateSystem, IN, const std::string &, cs); - I_Method0(const std::string &, getCoordinateSystem); - I_Method1(void, setEllipsoidModel, IN, osg::EllipsoidModel *, ellipsode); - I_Method0(osg::EllipsoidModel *, getEllipsoidModel); - I_Method0(const osg::EllipsoidModel *, getEllipsoidModel); - I_Method1(osg::CoordinateFrame, computeLocalCoordinateFrame, IN, const osg::Vec3d &, position); - I_Method1(osg::Vec3d, computeLocalUpVector, IN, const osg::Vec3d &, position); - I_WriteOnlyProperty(const osg::CoordinateSystemNode &, ); - I_Property(const std::string &, CoordinateSystem); - I_Property(osg::EllipsoidModel *, EllipsoidModel); - I_Property(const std::string &, Format); + I_Constructor0(____CoordinateSystemNode, + "", + ""); + I_Constructor2(IN, const std::string &, format, IN, const std::string &, cs, + ____CoordinateSystemNode__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::CoordinateSystemNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CoordinateSystemNode__C5_CoordinateSystemNode_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, set, IN, const osg::CoordinateSystemNode &, csn, + __void__set__C5_CoordinateSystemNode_R1, + "Set the coordinate system node up by copy the format, coordinate system string, and ellipsoid model of another coordinate system node. ", + ""); + I_Method1(void, setFormat, IN, const std::string &, format, + __void__setFormat__C5_std_string_R1, + "Set the coordinate system format string. ", + "Typical values would be WKT, PROJ4, USGS etc. "); + I_Method0(const std::string &, getFormat, + __C5_std_string_R1__getFormat, + "Get the coordinate system format string. ", + ""); + I_Method1(void, setCoordinateSystem, IN, const std::string &, cs, + __void__setCoordinateSystem__C5_std_string_R1, + "Set the CoordinateSystem reference string, should be stored in a form consistent with the Format. ", + ""); + I_Method0(const std::string &, getCoordinateSystem, + __C5_std_string_R1__getCoordinateSystem, + "Get the CoordinateSystem reference string. ", + ""); + I_Method1(void, setEllipsoidModel, IN, osg::EllipsoidModel *, ellipsode, + __void__setEllipsoidModel__EllipsoidModel_P1, + "Set EllipsoidModel to describe the model used to map lat, long and height into geocentric XYZ and back. ", + ""); + I_Method0(osg::EllipsoidModel *, getEllipsoidModel, + __EllipsoidModel_P1__getEllipsoidModel, + "Get the EllipsoidModel. ", + ""); + I_Method0(const osg::EllipsoidModel *, getEllipsoidModel, + __C5_EllipsoidModel_P1__getEllipsoidModel, + "Get the const EllipsoidModel. ", + ""); + I_Method1(osg::CoordinateFrame, computeLocalCoordinateFrame, IN, const osg::Vec3d &, position, + __CoordinateFrame__computeLocalCoordinateFrame__C5_Vec3d_R1, + "Compute the local coordinate frame for specified point. ", + ""); + I_Method1(osg::Vec3d, computeLocalUpVector, IN, const osg::Vec3d &, position, + __osg_Vec3d__computeLocalUpVector__C5_Vec3d_R1, + "Compute the local coordinate frame for specified point. ", + ""); + I_SimpleProperty(const std::string &, CoordinateSystem, + __C5_std_string_R1__getCoordinateSystem, + __void__setCoordinateSystem__C5_std_string_R1); + I_SimpleProperty(osg::EllipsoidModel *, EllipsoidModel, + __EllipsoidModel_P1__getEllipsoidModel, + __void__setEllipsoidModel__EllipsoidModel_P1); + I_SimpleProperty(const std::string &, Format, + __C5_std_string_R1__getFormat, + __void__setFormat__C5_std_string_R1); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::EllipsoidModel) I_BaseType(osg::Object); - I_ConstructorWithDefaults2(IN, double, radiusEquator, osg::WGS_84_RADIUS_EQUATOR, IN, double, radiusPolar, osg::WGS_84_RADIUS_POLAR); - I_ConstructorWithDefaults2(IN, const osg::EllipsoidModel &, et, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, setRadiusEquator, IN, double, radius); - I_Method0(double, getRadiusEquator); - I_Method1(void, setRadiusPolar, IN, double, radius); - I_Method0(double, getRadiusPolar); - I_Method6(void, convertLatLongHeightToXYZ, IN, double, latitude, IN, double, longitude, IN, double, height, IN, double &, X, IN, double &, Y, IN, double &, Z); - I_Method6(void, convertXYZToLatLongHeight, IN, double, X, IN, double, Y, IN, double, Z, IN, double &, latitude, IN, double &, longitude, IN, double &, height); - I_Method4(void, computeLocalToWorldTransformFromLatLongHeight, IN, double, latitude, IN, double, longitude, IN, double, height, IN, osg::Matrixd &, localToWorld); - I_Method4(void, computeLocalToWorldTransformFromXYZ, IN, double, X, IN, double, Y, IN, double, Z, IN, osg::Matrixd &, localToWorld); - I_Method3(osg::Vec3d, computeLocalUpVector, IN, double, X, IN, double, Y, IN, double, Z); - I_Property(double, RadiusEquator); - I_Property(double, RadiusPolar); + I_ConstructorWithDefaults2(IN, double, radiusEquator, osg::WGS_84_RADIUS_EQUATOR, IN, double, radiusPolar, osg::WGS_84_RADIUS_POLAR, + ____EllipsoidModel__double__double, + "WGS_84 is a common representation of the earth's spheroid. ", + ""); + I_ConstructorWithDefaults2(IN, const osg::EllipsoidModel &, et, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____EllipsoidModel__C5_EllipsoidModel_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setRadiusEquator, IN, double, radius, + __void__setRadiusEquator__double, + "", + ""); + I_Method0(double, getRadiusEquator, + __double__getRadiusEquator, + "", + ""); + I_Method1(void, setRadiusPolar, IN, double, radius, + __void__setRadiusPolar__double, + "", + ""); + I_Method0(double, getRadiusPolar, + __double__getRadiusPolar, + "", + ""); + I_Method6(void, convertLatLongHeightToXYZ, IN, double, latitude, IN, double, longitude, IN, double, height, IN, double &, X, IN, double &, Y, IN, double &, Z, + __void__convertLatLongHeightToXYZ__double__double__double__double_R1__double_R1__double_R1, + "", + ""); + I_Method6(void, convertXYZToLatLongHeight, IN, double, X, IN, double, Y, IN, double, Z, IN, double &, latitude, IN, double &, longitude, IN, double &, height, + __void__convertXYZToLatLongHeight__double__double__double__double_R1__double_R1__double_R1, + "", + ""); + I_Method4(void, computeLocalToWorldTransformFromLatLongHeight, IN, double, latitude, IN, double, longitude, IN, double, height, IN, osg::Matrixd &, localToWorld, + __void__computeLocalToWorldTransformFromLatLongHeight__double__double__double__osg_Matrixd_R1, + "", + ""); + I_Method4(void, computeLocalToWorldTransformFromXYZ, IN, double, X, IN, double, Y, IN, double, Z, IN, osg::Matrixd &, localToWorld, + __void__computeLocalToWorldTransformFromXYZ__double__double__double__osg_Matrixd_R1, + "", + ""); + I_Method3(osg::Vec3d, computeLocalUpVector, IN, double, X, IN, double, Y, IN, double, Z, + __osg_Vec3d__computeLocalUpVector__double__double__double, + "", + ""); + I_SimpleProperty(double, RadiusEquator, + __double__getRadiusEquator, + __void__setRadiusEquator__double); + I_SimpleProperty(double, RadiusPolar, + __double__getRadiusPolar, + __void__setRadiusPolar__double); END_REFLECTOR TYPE_NAME_ALIAS(osg::Matrixd, osg::CoordinateFrame); diff --git a/src/osgWrappers/osg/CopyOp.cpp b/src/osgWrappers/osg/CopyOp.cpp index 7870edb82..5e296c83c 100644 --- a/src/osgWrappers/osg/CopyOp.cpp +++ b/src/osgWrappers/osg/CopyOp.cpp @@ -51,6 +51,9 @@ BEGIN_ENUM_REFLECTOR(osg::CopyOp::Options) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::CopyOp) - I_ConstructorWithDefaults1(IN, osg::CopyOp::CopyFlags, flags, osg::CopyOp::SHALLOW_COPY); + I_ConstructorWithDefaults1(IN, osg::CopyOp::CopyFlags, flags, osg::CopyOp::SHALLOW_COPY, + ____CopyOp__CopyFlags, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/CullFace.cpp b/src/osgWrappers/osg/CullFace.cpp index 6835519f2..4d044053f 100644 --- a/src/osgWrappers/osg/CullFace.cpp +++ b/src/osgWrappers/osg/CullFace.cpp @@ -32,20 +32,63 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::CullFace) I_BaseType(osg::StateAttribute); - I_ConstructorWithDefaults1(IN, osg::CullFace::Mode, mode, osg::CullFace::BACK); - I_ConstructorWithDefaults2(IN, const osg::CullFace &, cf, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(void, setMode, IN, osg::CullFace::Mode, mode); - I_Method0(osg::CullFace::Mode, getMode); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(osg::CullFace::Mode, Mode); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_ConstructorWithDefaults1(IN, osg::CullFace::Mode, mode, osg::CullFace::BACK, + ____CullFace__Mode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::CullFace &, cf, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CullFace__C5_CullFace_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setMode, IN, osg::CullFace::Mode, mode, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::CullFace::Mode, getMode, + __Mode__getMode, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(osg::CullFace::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/CullSettings.cpp b/src/osgWrappers/osg/CullSettings.cpp index c9d0d434a..f54ba5605 100644 --- a/src/osgWrappers/osg/CullSettings.cpp +++ b/src/osgWrappers/osg/CullSettings.cpp @@ -65,65 +65,216 @@ BEGIN_ENUM_REFLECTOR(osg::CullSettings::CullingModeValues) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::CullSettings) - I_Constructor0(); - I_Constructor1(IN, osg::ArgumentParser &, arguments); - I_Constructor1(IN, const osg::CullSettings &, cs); - I_Method0(void, setDefaults); - I_Method1(void, setInheritanceMask, IN, unsigned int, mask); - I_Method0(unsigned int, getInheritanceMask); - I_Method1(void, setCullSettings, IN, const osg::CullSettings &, settings); - I_Method1(void, inheritCullSettings, IN, const osg::CullSettings &, settings); - I_Method2(void, inheritCullSettings, IN, const osg::CullSettings &, settings, IN, unsigned int, inheritanceMask); - I_Method0(void, readEnvironmentalVariables); - I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, arguments); - I_Method1(void, setImpostorsActive, IN, bool, active); - I_Method0(bool, getImpostorsActive); - I_Method1(void, setImpostorPixelErrorThreshold, IN, float, numPixels); - I_Method0(float, getImpostorPixelErrorThreshold); - I_Method1(void, setDepthSortImpostorSprites, IN, bool, doDepthSort); - I_Method0(bool, getDepthSortImpostorSprites); - I_Method1(void, setNumberOfFrameToKeepImpostorSprites, IN, int, numFrames); - I_Method0(int, getNumberOfFrameToKeepImpostorSprites); - I_Method1(void, setComputeNearFarMode, IN, osg::CullSettings::ComputeNearFarMode, cnfm); - I_Method0(osg::CullSettings::ComputeNearFarMode, getComputeNearFarMode); - I_Method1(void, setNearFarRatio, IN, double, ratio); - I_Method0(double, getNearFarRatio); - I_Method1(void, setCullingMode, IN, osg::CullSettings::CullingMode, mode); - I_Method0(osg::CullSettings::CullingMode, getCullingMode); - I_Method1(void, setCullMask, IN, osg::Node::NodeMask, nm); - I_Method0(osg::Node::NodeMask, getCullMask); - I_Method1(void, setCullMaskLeft, IN, osg::Node::NodeMask, nm); - I_Method0(osg::Node::NodeMask, getCullMaskLeft); - I_Method1(void, setCullMaskRight, IN, osg::Node::NodeMask, nm); - I_Method0(osg::Node::NodeMask, getCullMaskRight); - I_Method1(void, setLODScale, IN, float, bias); - I_Method0(float, getLODScale); - I_Method1(void, setSmallFeatureCullingPixelSize, IN, float, value); - I_Method0(float, getSmallFeatureCullingPixelSize); - I_Method1(void, setClampProjectionMatrixCallback, IN, osg::CullSettings::ClampProjectionMatrixCallback *, cpmc); - I_Method0(osg::CullSettings::ClampProjectionMatrixCallback *, getClampProjectionMatrixCallback); - I_Method0(const osg::CullSettings::ClampProjectionMatrixCallback *, getClampProjectionMatrixCallback); - I_Property(osg::CullSettings::ClampProjectionMatrixCallback *, ClampProjectionMatrixCallback); - I_Property(osg::CullSettings::ComputeNearFarMode, ComputeNearFarMode); - I_Property(osg::Node::NodeMask, CullMask); - I_Property(osg::Node::NodeMask, CullMaskLeft); - I_Property(osg::Node::NodeMask, CullMaskRight); - I_WriteOnlyProperty(const osg::CullSettings &, CullSettings); - I_Property(osg::CullSettings::CullingMode, CullingMode); - I_Property(bool, DepthSortImpostorSprites); - I_Property(float, ImpostorPixelErrorThreshold); - I_Property(bool, ImpostorsActive); - I_Property(unsigned int, InheritanceMask); - I_Property(float, LODScale); - I_Property(double, NearFarRatio); - I_Property(int, NumberOfFrameToKeepImpostorSprites); - I_Property(float, SmallFeatureCullingPixelSize); + I_Constructor0(____CullSettings, + "", + ""); + I_Constructor1(IN, osg::ArgumentParser &, arguments, + ____CullSettings__ArgumentParser_R1, + "", + ""); + I_Constructor1(IN, const osg::CullSettings &, cs, + ____CullSettings__C5_CullSettings_R1, + "", + ""); + I_Method0(void, setDefaults, + __void__setDefaults, + "", + ""); + I_Method1(void, setInheritanceMask, IN, unsigned int, mask, + __void__setInheritanceMask__unsigned_int, + "Set the inheritance mask used in inheritCullSettings to control which variables get overritten by the passed in CullSettings object. ", + ""); + I_Method0(unsigned int, getInheritanceMask, + __unsigned_int__getInheritanceMask, + "Get the inheritance mask used in inheritCullSettings to control which variables get overritten by the passed in CullSettings object. ", + ""); + I_Method1(void, setCullSettings, IN, const osg::CullSettings &, settings, + __void__setCullSettings__C5_CullSettings_R1, + "Set the local cull settings values from specified CullSettings object. ", + ""); + I_Method1(void, inheritCullSettings, IN, const osg::CullSettings &, settings, + __void__inheritCullSettings__C5_CullSettings_R1, + "Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask. ", + ""); + I_Method2(void, inheritCullSettings, IN, const osg::CullSettings &, settings, IN, unsigned int, inheritanceMask, + __void__inheritCullSettings__C5_CullSettings_R1__unsigned_int, + "Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask. ", + ""); + I_Method0(void, readEnvironmentalVariables, + __void__readEnvironmentalVariables, + "read the environmental variables. ", + ""); + I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, arguments, + __void__readCommandLine__ArgumentParser_R1, + "read the commandline arguments. ", + ""); + I_Method1(void, setImpostorsActive, IN, bool, active, + __void__setImpostorsActive__bool, + "Switch the creation of Impostors on or off. ", + "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. "); + I_Method0(bool, getImpostorsActive, + __bool__getImpostorsActive, + "Get whether impostors are active or not. ", + ""); + I_Method1(void, setImpostorPixelErrorThreshold, IN, float, numPixels, + __void__setImpostorPixelErrorThreshold__float, + "Set the impostor error threshold. ", + "Used in calculation of whether impostors remain valid. "); + I_Method0(float, getImpostorPixelErrorThreshold, + __float__getImpostorPixelErrorThreshold, + "Get the impostor error threshold. ", + ""); + I_Method1(void, setDepthSortImpostorSprites, IN, bool, doDepthSort, + __void__setDepthSortImpostorSprites__bool, + "Set whether ImpostorSprite's should be placed in a depth sorted bin for rendering. ", + ""); + I_Method0(bool, getDepthSortImpostorSprites, + __bool__getDepthSortImpostorSprites, + "Get whether ImpostorSprite's are depth sorted bin for rendering. ", + ""); + I_Method1(void, setNumberOfFrameToKeepImpostorSprites, IN, int, numFrames, + __void__setNumberOfFrameToKeepImpostorSprites__int, + "Set the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled. ", + ""); + I_Method0(int, getNumberOfFrameToKeepImpostorSprites, + __int__getNumberOfFrameToKeepImpostorSprites, + "Get the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled. ", + ""); + I_Method1(void, setComputeNearFarMode, IN, osg::CullSettings::ComputeNearFarMode, cnfm, + __void__setComputeNearFarMode__ComputeNearFarMode, + "", + ""); + I_Method0(osg::CullSettings::ComputeNearFarMode, getComputeNearFarMode, + __ComputeNearFarMode__getComputeNearFarMode, + "", + ""); + I_Method1(void, setNearFarRatio, IN, double, ratio, + __void__setNearFarRatio__double, + "", + ""); + I_Method0(double, getNearFarRatio, + __double__getNearFarRatio, + "", + ""); + I_Method1(void, setCullingMode, IN, osg::CullSettings::CullingMode, mode, + __void__setCullingMode__CullingMode, + "Set the culling mode for the CullVisitor to use. ", + ""); + I_Method0(osg::CullSettings::CullingMode, getCullingMode, + __CullingMode__getCullingMode, + "Returns the current CullingMode. ", + ""); + I_Method1(void, setCullMask, IN, osg::Node::NodeMask, nm, + __void__setCullMask__osg_Node_NodeMask, + "", + ""); + I_Method0(osg::Node::NodeMask, getCullMask, + __osg_Node_NodeMask__getCullMask, + "", + ""); + I_Method1(void, setCullMaskLeft, IN, osg::Node::NodeMask, nm, + __void__setCullMaskLeft__osg_Node_NodeMask, + "", + ""); + I_Method0(osg::Node::NodeMask, getCullMaskLeft, + __osg_Node_NodeMask__getCullMaskLeft, + "", + ""); + I_Method1(void, setCullMaskRight, IN, osg::Node::NodeMask, nm, + __void__setCullMaskRight__osg_Node_NodeMask, + "", + ""); + I_Method0(osg::Node::NodeMask, getCullMaskRight, + __osg_Node_NodeMask__getCullMaskRight, + "", + ""); + I_Method1(void, setLODScale, IN, float, bias, + __void__setLODScale__float, + "Set the LOD bias for the CullVisitor to use. ", + ""); + I_Method0(float, getLODScale, + __float__getLODScale, + "Get the LOD bias. ", + ""); + I_Method1(void, setSmallFeatureCullingPixelSize, IN, float, value, + __void__setSmallFeatureCullingPixelSize__float, + "Set the Small Feature Culling Pixel Size. ", + ""); + I_Method0(float, getSmallFeatureCullingPixelSize, + __float__getSmallFeatureCullingPixelSize, + "Get the Small Feature Culling Pixel Size. ", + ""); + I_Method1(void, setClampProjectionMatrixCallback, IN, osg::CullSettings::ClampProjectionMatrixCallback *, cpmc, + __void__setClampProjectionMatrixCallback__ClampProjectionMatrixCallback_P1, + "set the ClampProjectionMatrixCallback. ", + ""); + I_Method0(osg::CullSettings::ClampProjectionMatrixCallback *, getClampProjectionMatrixCallback, + __ClampProjectionMatrixCallback_P1__getClampProjectionMatrixCallback, + "get the non const ClampProjectionMatrixCallback. ", + ""); + I_Method0(const osg::CullSettings::ClampProjectionMatrixCallback *, getClampProjectionMatrixCallback, + __C5_ClampProjectionMatrixCallback_P1__getClampProjectionMatrixCallback, + "get the const ClampProjectionMatrixCallback. ", + ""); + I_SimpleProperty(osg::CullSettings::ClampProjectionMatrixCallback *, ClampProjectionMatrixCallback, + __ClampProjectionMatrixCallback_P1__getClampProjectionMatrixCallback, + __void__setClampProjectionMatrixCallback__ClampProjectionMatrixCallback_P1); + I_SimpleProperty(osg::CullSettings::ComputeNearFarMode, ComputeNearFarMode, + __ComputeNearFarMode__getComputeNearFarMode, + __void__setComputeNearFarMode__ComputeNearFarMode); + I_SimpleProperty(osg::Node::NodeMask, CullMask, + __osg_Node_NodeMask__getCullMask, + __void__setCullMask__osg_Node_NodeMask); + I_SimpleProperty(osg::Node::NodeMask, CullMaskLeft, + __osg_Node_NodeMask__getCullMaskLeft, + __void__setCullMaskLeft__osg_Node_NodeMask); + I_SimpleProperty(osg::Node::NodeMask, CullMaskRight, + __osg_Node_NodeMask__getCullMaskRight, + __void__setCullMaskRight__osg_Node_NodeMask); + I_SimpleProperty(const osg::CullSettings &, CullSettings, + 0, + __void__setCullSettings__C5_CullSettings_R1); + I_SimpleProperty(osg::CullSettings::CullingMode, CullingMode, + __CullingMode__getCullingMode, + __void__setCullingMode__CullingMode); + I_SimpleProperty(bool, DepthSortImpostorSprites, + __bool__getDepthSortImpostorSprites, + __void__setDepthSortImpostorSprites__bool); + I_SimpleProperty(float, ImpostorPixelErrorThreshold, + __float__getImpostorPixelErrorThreshold, + __void__setImpostorPixelErrorThreshold__float); + I_SimpleProperty(bool, ImpostorsActive, + __bool__getImpostorsActive, + __void__setImpostorsActive__bool); + I_SimpleProperty(unsigned int, InheritanceMask, + __unsigned_int__getInheritanceMask, + __void__setInheritanceMask__unsigned_int); + I_SimpleProperty(float, LODScale, + __float__getLODScale, + __void__setLODScale__float); + I_SimpleProperty(double, NearFarRatio, + __double__getNearFarRatio, + __void__setNearFarRatio__double); + I_SimpleProperty(int, NumberOfFrameToKeepImpostorSprites, + __int__getNumberOfFrameToKeepImpostorSprites, + __void__setNumberOfFrameToKeepImpostorSprites__int); + I_SimpleProperty(float, SmallFeatureCullingPixelSize, + __float__getSmallFeatureCullingPixelSize, + __void__setSmallFeatureCullingPixelSize__float); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::CullSettings::ClampProjectionMatrixCallback) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixf &, projection, IN, double &, znear, IN, double &, zfar); - I_Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixd &, projection, IN, double &, znear, IN, double &, zfar); + I_Constructor0(____ClampProjectionMatrixCallback, + "", + ""); + I_Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixf &, projection, IN, double &, znear, IN, double &, zfar, + __bool__clampProjectionMatrixImplementation__osg_Matrixf_R1__double_R1__double_R1, + "", + ""); + I_Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixd &, projection, IN, double &, znear, IN, double &, zfar, + __bool__clampProjectionMatrixImplementation__osg_Matrixd_R1__double_R1__double_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/CullingSet.cpp b/src/osgWrappers/osg/CullingSet.cpp index 9c78f6184..0e6e461df 100644 --- a/src/osgWrappers/osg/CullingSet.cpp +++ b/src/osgWrappers/osg/CullingSet.cpp @@ -52,55 +52,181 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::CullingSet) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Constructor1(IN, const osg::CullingSet &, cs); - I_Constructor3(IN, const osg::CullingSet &, cs, IN, const osg::Matrix &, matrix, IN, const osg::Vec4 &, pixelSizeVector); - I_Method1(void, set, IN, const osg::CullingSet &, cs); - I_Method3(void, set, IN, const osg::CullingSet &, cs, IN, const osg::Matrix &, matrix, IN, const osg::Vec4 &, pixelSizeVector); - I_Method1(void, setCullingMask, IN, osg::CullingSet::Mask, mask); - I_Method0(osg::CullingSet::Mask, getCullingMask); - I_Method1(void, setFrustum, IN, osg::Polytope &, cv); - I_Method0(osg::Polytope &, getFrustum); - I_Method0(const osg::Polytope &, getFrustum); - I_Method2(void, addStateFrustum, IN, osg::StateSet *, stateset, IN, osg::Polytope &, polytope); - I_Method1(void, getStateFrustumList, IN, osg::CullingSet::StateFrustumList &, sfl); - I_Method0(osg::CullingSet::StateFrustumList &, getStateFrustumList); - I_Method1(void, addOccluder, IN, osg::ShadowVolumeOccluder &, cv); - I_Method1(void, setPixelSizeVector, IN, const osg::Vec4 &, v); - I_Method0(osg::Vec4 &, getPixelSizeVector); - I_Method0(const osg::Vec4 &, getPixelSizeVector); - I_Method1(void, setSmallFeatureCullingPixelSize, IN, float, value); - I_Method0(float &, getSmallFeatureCullingPixelSize); - I_Method0(float, getSmallFeatureCullingPixelSize); - I_Method2(float, pixelSize, IN, const osg::Vec3 &, v, IN, float, radius); - I_Method1(float, pixelSize, IN, const osg::BoundingSphere &, bs); - I_Method2(float, clampedPixelSize, IN, const osg::Vec3 &, v, IN, float, radius); - I_Method1(float, clampedPixelSize, IN, const osg::BoundingSphere &, bs); - I_Method1(bool, isCulled, IN, const std::vector< osg::Vec3 > &, vertices); - I_Method1(bool, isCulled, IN, const osg::BoundingBox &, bb); - I_Method1(bool, isCulled, IN, const osg::BoundingSphere &, bs); - I_Method0(void, pushCurrentMask); - I_Method0(void, popCurrentMask); - I_Method1(void, disableAndPushOccludersCurrentMask, IN, osg::NodePath &, nodePath); - I_Method1(void, popOccludersCurrentMask, IN, osg::NodePath &, nodePath); - I_StaticMethod3(osg::Vec4, computePixelSizeVector, IN, const osg::Viewport &, W, IN, const osg::Matrix &, P, IN, const osg::Matrix &, M); - I_WriteOnlyProperty(const osg::CullingSet &, ); - I_Property(osg::CullingSet::Mask, CullingMask); - I_Property(osg::Polytope &, Frustum); - I_Property(const osg::Vec4 &, PixelSizeVector); - I_Property(float, SmallFeatureCullingPixelSize); - I_ReadOnlyProperty(osg::CullingSet::StateFrustumList &, StateFrustumList); + I_Constructor0(____CullingSet, + "", + ""); + I_Constructor1(IN, const osg::CullingSet &, cs, + ____CullingSet__C5_CullingSet_R1, + "", + ""); + I_Constructor3(IN, const osg::CullingSet &, cs, IN, const osg::Matrix &, matrix, IN, const osg::Vec4 &, pixelSizeVector, + ____CullingSet__C5_CullingSet_R1__C5_Matrix_R1__C5_Vec4_R1, + "", + ""); + I_Method1(void, set, IN, const osg::CullingSet &, cs, + __void__set__C5_CullingSet_R1, + "", + ""); + I_Method3(void, set, IN, const osg::CullingSet &, cs, IN, const osg::Matrix &, matrix, IN, const osg::Vec4 &, pixelSizeVector, + __void__set__C5_CullingSet_R1__C5_Matrix_R1__C5_Vec4_R1, + "", + ""); + I_Method1(void, setCullingMask, IN, osg::CullingSet::Mask, mask, + __void__setCullingMask__Mask, + "", + ""); + I_Method0(osg::CullingSet::Mask, getCullingMask, + __Mask__getCullingMask, + "", + ""); + I_Method1(void, setFrustum, IN, osg::Polytope &, cv, + __void__setFrustum__Polytope_R1, + "", + ""); + I_Method0(osg::Polytope &, getFrustum, + __Polytope_R1__getFrustum, + "", + ""); + I_Method0(const osg::Polytope &, getFrustum, + __C5_Polytope_R1__getFrustum, + "", + ""); + I_Method2(void, addStateFrustum, IN, osg::StateSet *, stateset, IN, osg::Polytope &, polytope, + __void__addStateFrustum__StateSet_P1__Polytope_R1, + "", + ""); + I_Method1(void, getStateFrustumList, IN, osg::CullingSet::StateFrustumList &, sfl, + __void__getStateFrustumList__StateFrustumList_R1, + "", + ""); + I_Method0(osg::CullingSet::StateFrustumList &, getStateFrustumList, + __StateFrustumList_R1__getStateFrustumList, + "", + ""); + I_Method1(void, addOccluder, IN, osg::ShadowVolumeOccluder &, cv, + __void__addOccluder__ShadowVolumeOccluder_R1, + "", + ""); + I_Method1(void, setPixelSizeVector, IN, const osg::Vec4 &, v, + __void__setPixelSizeVector__C5_Vec4_R1, + "", + ""); + I_Method0(osg::Vec4 &, getPixelSizeVector, + __Vec4_R1__getPixelSizeVector, + "", + ""); + I_Method0(const osg::Vec4 &, getPixelSizeVector, + __C5_Vec4_R1__getPixelSizeVector, + "", + ""); + I_Method1(void, setSmallFeatureCullingPixelSize, IN, float, value, + __void__setSmallFeatureCullingPixelSize__float, + "", + ""); + I_Method0(float &, getSmallFeatureCullingPixelSize, + __float_R1__getSmallFeatureCullingPixelSize, + "", + ""); + I_Method0(float, getSmallFeatureCullingPixelSize, + __float__getSmallFeatureCullingPixelSize, + "", + ""); + I_Method2(float, pixelSize, IN, const osg::Vec3 &, v, IN, float, radius, + __float__pixelSize__C5_Vec3_R1__float, + "Compute the pixel of an object at position v, with specified radius. ", + ""); + I_Method1(float, pixelSize, IN, const osg::BoundingSphere &, bs, + __float__pixelSize__C5_BoundingSphere_R1, + "Compute the pixel of a bounding sphere. ", + ""); + I_Method2(float, clampedPixelSize, IN, const osg::Vec3 &, v, IN, float, radius, + __float__clampedPixelSize__C5_Vec3_R1__float, + "Compute the pixel of an object at position v, with specified radius. ", + "fabs()ed to always be positive. "); + I_Method1(float, clampedPixelSize, IN, const osg::BoundingSphere &, bs, + __float__clampedPixelSize__C5_BoundingSphere_R1, + "Compute the pixel of a bounding sphere. ", + "fabs()ed to always be positive. "); + I_Method1(bool, isCulled, IN, const std::vector< osg::Vec3 > &, vertices, + __bool__isCulled__C5_std_vectorT1_Vec3__R1, + "", + ""); + I_Method1(bool, isCulled, IN, const osg::BoundingBox &, bb, + __bool__isCulled__C5_BoundingBox_R1, + "", + ""); + I_Method1(bool, isCulled, IN, const osg::BoundingSphere &, bs, + __bool__isCulled__C5_BoundingSphere_R1, + "", + ""); + I_Method0(void, pushCurrentMask, + __void__pushCurrentMask, + "", + ""); + I_Method0(void, popCurrentMask, + __void__popCurrentMask, + "", + ""); + I_Method1(void, disableAndPushOccludersCurrentMask, IN, osg::NodePath &, nodePath, + __void__disableAndPushOccludersCurrentMask__NodePath_R1, + "", + ""); + I_Method1(void, popOccludersCurrentMask, IN, osg::NodePath &, nodePath, + __void__popOccludersCurrentMask__NodePath_R1, + "", + ""); + I_StaticMethod3(osg::Vec4, computePixelSizeVector, IN, const osg::Viewport &, W, IN, const osg::Matrix &, P, IN, const osg::Matrix &, M, + __osg_Vec4__computePixelSizeVector__C5_Viewport_R1__C5_Matrix_R1__C5_Matrix_R1_S, + "", + ""); + I_SimpleProperty(osg::CullingSet::Mask, CullingMask, + __Mask__getCullingMask, + __void__setCullingMask__Mask); + I_SimpleProperty(osg::Polytope &, Frustum, + __Polytope_R1__getFrustum, + __void__setFrustum__Polytope_R1); + I_SimpleProperty(const osg::Vec4 &, PixelSizeVector, + __C5_Vec4_R1__getPixelSizeVector, + __void__setPixelSizeVector__C5_Vec4_R1); + I_SimpleProperty(float, SmallFeatureCullingPixelSize, + __float__getSmallFeatureCullingPixelSize, + __void__setSmallFeatureCullingPixelSize__float); + I_SimpleProperty(osg::CullingSet::StateFrustumList &, StateFrustumList, + __StateFrustumList_R1__getStateFrustumList, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::StateSet >) - I_Constructor0(); - I_Constructor1(IN, osg::StateSet *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osg::StateSet > &, rp); - I_Method0(osg::StateSet *, get); - I_Method0(bool, valid); - I_Method0(osg::StateSet *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osg::StateSet > &, rp); - I_ReadOnlyProperty(osg::StateSet *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::StateSet *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::StateSet > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::StateSet *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osg::StateSet *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::StateSet > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::StateSet *, , + __T_P1__get, + 0); END_REFLECTOR STD_PAIR_REFLECTOR(std::pair< osg::ref_ptr< osg::StateSet > COMMA osg::Polytope >); diff --git a/src/osgWrappers/osg/Depth.cpp b/src/osgWrappers/osg/Depth.cpp index 2db186b1d..c4af0ee00 100644 --- a/src/osgWrappers/osg/Depth.cpp +++ b/src/osgWrappers/osg/Depth.cpp @@ -37,30 +37,100 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Depth) I_BaseType(osg::StateAttribute); - I_ConstructorWithDefaults4(IN, osg::Depth::Function, func, osg::Depth::LESS, IN, double, zNear, 0.0, IN, double, zFar, 1.0, IN, bool, writeMask, true); - I_ConstructorWithDefaults2(IN, const osg::Depth &, dp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(void, setFunction, IN, osg::Depth::Function, func); - I_Method0(osg::Depth::Function, getFunction); - I_Method2(void, setRange, IN, double, zNear, IN, double, zFar); - I_Method1(void, setZNear, IN, double, zNear); - I_Method0(double, getZNear); - I_Method1(void, setZFar, IN, double, zFar); - I_Method0(double, getZFar); - I_Method1(void, setWriteMask, IN, bool, mask); - I_Method0(bool, getWriteMask); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(osg::Depth::Function, Function); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); - I_Property(bool, WriteMask); - I_Property(double, ZFar); - I_Property(double, ZNear); + I_ConstructorWithDefaults4(IN, osg::Depth::Function, func, osg::Depth::LESS, IN, double, zNear, 0.0, IN, double, zFar, 1.0, IN, bool, writeMask, true, + ____Depth__Function__double__double__bool, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Depth &, dp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Depth__C5_Depth_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setFunction, IN, osg::Depth::Function, func, + __void__setFunction__Function, + "", + ""); + I_Method0(osg::Depth::Function, getFunction, + __Function__getFunction, + "", + ""); + I_Method2(void, setRange, IN, double, zNear, IN, double, zFar, + __void__setRange__double__double, + "", + ""); + I_Method1(void, setZNear, IN, double, zNear, + __void__setZNear__double, + "", + ""); + I_Method0(double, getZNear, + __double__getZNear, + "", + ""); + I_Method1(void, setZFar, IN, double, zFar, + __void__setZFar__double, + "", + ""); + I_Method0(double, getZFar, + __double__getZFar, + "", + ""); + I_Method1(void, setWriteMask, IN, bool, mask, + __void__setWriteMask__bool, + "", + ""); + I_Method0(bool, getWriteMask, + __bool__getWriteMask, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(osg::Depth::Function, Function, + __Function__getFunction, + __void__setFunction__Function); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); + I_SimpleProperty(bool, WriteMask, + __bool__getWriteMask, + __void__setWriteMask__bool); + I_SimpleProperty(double, ZFar, + __double__getZFar, + __void__setZFar__double); + I_SimpleProperty(double, ZNear, + __double__getZNear, + __void__setZNear__double); END_REFLECTOR diff --git a/src/osgWrappers/osg/DisplaySettings.cpp b/src/osgWrappers/osg/DisplaySettings.cpp index ab247c493..52f3baaec 100644 --- a/src/osgWrappers/osg/DisplaySettings.cpp +++ b/src/osgWrappers/osg/DisplaySettings.cpp @@ -51,89 +51,312 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::DisplaySettings) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Constructor1(IN, osg::ArgumentParser &, arguments); - I_Constructor1(IN, const osg::DisplaySettings &, vs); - I_Method1(void, setDisplaySettings, IN, const osg::DisplaySettings &, vs); - I_Method1(void, merge, IN, const osg::DisplaySettings &, vs); - I_Method0(void, setDefaults); - I_Method0(void, readEnvironmentalVariables); - I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, arguments); - I_Method1(void, setDisplayType, IN, osg::DisplaySettings::DisplayType, type); - I_Method0(osg::DisplaySettings::DisplayType, getDisplayType); - I_Method1(void, setStereo, IN, bool, on); - I_Method0(bool, getStereo); - I_Method1(void, setStereoMode, IN, osg::DisplaySettings::StereoMode, mode); - I_Method0(osg::DisplaySettings::StereoMode, getStereoMode); - I_Method1(void, setEyeSeparation, IN, float, eyeSeparation); - I_Method0(float, getEyeSeparation); - I_Method1(void, setSplitStereoHorizontalEyeMapping, IN, osg::DisplaySettings::SplitStereoHorizontalEyeMapping, m); - I_Method0(osg::DisplaySettings::SplitStereoHorizontalEyeMapping, getSplitStereoHorizontalEyeMapping); - I_Method1(void, setSplitStereoHorizontalSeparation, IN, int, s); - I_Method0(int, getSplitStereoHorizontalSeparation); - I_Method1(void, setSplitStereoVerticalEyeMapping, IN, osg::DisplaySettings::SplitStereoVerticalEyeMapping, m); - I_Method0(osg::DisplaySettings::SplitStereoVerticalEyeMapping, getSplitStereoVerticalEyeMapping); - I_Method1(void, setSplitStereoVerticalSeparation, IN, int, s); - I_Method0(int, getSplitStereoVerticalSeparation); - I_Method1(void, setSplitStereoAutoAjustAspectRatio, IN, bool, flag); - I_Method0(bool, getSplitStereoAutoAjustAspectRatio); - I_Method1(void, setScreenWidth, IN, float, width); - I_Method0(float, getScreenWidth); - I_Method1(void, setScreenHeight, IN, float, height); - I_Method0(float, getScreenHeight); - I_Method1(void, setScreenDistance, IN, float, distance); - I_Method0(float, getScreenDistance); - I_Method1(void, setDoubleBuffer, IN, bool, flag); - I_Method0(bool, getDoubleBuffer); - I_Method1(void, setRGB, IN, bool, flag); - I_Method0(bool, getRGB); - I_Method1(void, setDepthBuffer, IN, bool, flag); - I_Method0(bool, getDepthBuffer); - I_Method1(void, setMinimumNumAlphaBits, IN, unsigned int, bits); - I_Method0(unsigned int, getMinimumNumAlphaBits); - I_Method0(bool, getAlphaBuffer); - I_Method1(void, setMinimumNumStencilBits, IN, unsigned int, bits); - I_Method0(unsigned int, getMinimumNumStencilBits); - I_Method0(bool, getStencilBuffer); - I_Method4(void, setMinimumNumAccumBits, IN, unsigned int, red, IN, unsigned int, green, IN, unsigned int, blue, IN, unsigned int, alpha); - I_Method0(unsigned int, getMinimumNumAccumRedBits); - I_Method0(unsigned int, getMinimumNumAccumGreenBits); - I_Method0(unsigned int, getMinimumNumAccumBlueBits); - I_Method0(unsigned int, getMinimumNumAccumAlphaBits); - I_Method0(bool, getAccumBuffer); - I_Method1(void, setMaxNumberOfGraphicsContexts, IN, unsigned int, num); - I_Method0(unsigned int, getMaxNumberOfGraphicsContexts); - I_Method1(void, setNumMultiSamples, IN, unsigned int, samples); - I_Method0(unsigned int, getNumMultiSamples); - I_Method0(bool, getMultiSamples); - I_StaticMethod0(osg::DisplaySettings *, instance); - I_ReadOnlyProperty(bool, AccumBuffer); - I_ReadOnlyProperty(bool, AlphaBuffer); - I_Property(bool, DepthBuffer); - I_WriteOnlyProperty(const osg::DisplaySettings &, DisplaySettings); - I_Property(osg::DisplaySettings::DisplayType, DisplayType); - I_Property(bool, DoubleBuffer); - I_Property(float, EyeSeparation); - I_Property(unsigned int, MaxNumberOfGraphicsContexts); - I_ReadOnlyProperty(unsigned int, MinimumNumAccumAlphaBits); - I_ReadOnlyProperty(unsigned int, MinimumNumAccumBlueBits); - I_ReadOnlyProperty(unsigned int, MinimumNumAccumGreenBits); - I_ReadOnlyProperty(unsigned int, MinimumNumAccumRedBits); - I_Property(unsigned int, MinimumNumAlphaBits); - I_Property(unsigned int, MinimumNumStencilBits); - I_ReadOnlyProperty(bool, MultiSamples); - I_WriteOnlyProperty(unsigned int, NumMultiSamples); - I_Property(bool, RGB); - I_Property(float, ScreenDistance); - I_Property(float, ScreenHeight); - I_Property(float, ScreenWidth); - I_Property(bool, SplitStereoAutoAjustAspectRatio); - I_Property(osg::DisplaySettings::SplitStereoHorizontalEyeMapping, SplitStereoHorizontalEyeMapping); - I_Property(int, SplitStereoHorizontalSeparation); - I_Property(osg::DisplaySettings::SplitStereoVerticalEyeMapping, SplitStereoVerticalEyeMapping); - I_Property(int, SplitStereoVerticalSeparation); - I_ReadOnlyProperty(bool, StencilBuffer); - I_Property(bool, Stereo); - I_Property(osg::DisplaySettings::StereoMode, StereoMode); + I_Constructor0(____DisplaySettings, + "", + ""); + I_Constructor1(IN, osg::ArgumentParser &, arguments, + ____DisplaySettings__ArgumentParser_R1, + "", + ""); + I_Constructor1(IN, const osg::DisplaySettings &, vs, + ____DisplaySettings__C5_DisplaySettings_R1, + "", + ""); + I_Method1(void, setDisplaySettings, IN, const osg::DisplaySettings &, vs, + __void__setDisplaySettings__C5_DisplaySettings_R1, + "", + ""); + I_Method1(void, merge, IN, const osg::DisplaySettings &, vs, + __void__merge__C5_DisplaySettings_R1, + "", + ""); + I_Method0(void, setDefaults, + __void__setDefaults, + "", + ""); + I_Method0(void, readEnvironmentalVariables, + __void__readEnvironmentalVariables, + "read the environmental variables. ", + ""); + I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, arguments, + __void__readCommandLine__ArgumentParser_R1, + "read the commandline arguments. ", + ""); + I_Method1(void, setDisplayType, IN, osg::DisplaySettings::DisplayType, type, + __void__setDisplayType__DisplayType, + "", + ""); + I_Method0(osg::DisplaySettings::DisplayType, getDisplayType, + __DisplayType__getDisplayType, + "", + ""); + I_Method1(void, setStereo, IN, bool, on, + __void__setStereo__bool, + "", + ""); + I_Method0(bool, getStereo, + __bool__getStereo, + "", + ""); + I_Method1(void, setStereoMode, IN, osg::DisplaySettings::StereoMode, mode, + __void__setStereoMode__StereoMode, + "", + ""); + I_Method0(osg::DisplaySettings::StereoMode, getStereoMode, + __StereoMode__getStereoMode, + "", + ""); + I_Method1(void, setEyeSeparation, IN, float, eyeSeparation, + __void__setEyeSeparation__float, + "", + ""); + I_Method0(float, getEyeSeparation, + __float__getEyeSeparation, + "", + ""); + I_Method1(void, setSplitStereoHorizontalEyeMapping, IN, osg::DisplaySettings::SplitStereoHorizontalEyeMapping, m, + __void__setSplitStereoHorizontalEyeMapping__SplitStereoHorizontalEyeMapping, + "", + ""); + I_Method0(osg::DisplaySettings::SplitStereoHorizontalEyeMapping, getSplitStereoHorizontalEyeMapping, + __SplitStereoHorizontalEyeMapping__getSplitStereoHorizontalEyeMapping, + "", + ""); + I_Method1(void, setSplitStereoHorizontalSeparation, IN, int, s, + __void__setSplitStereoHorizontalSeparation__int, + "", + ""); + I_Method0(int, getSplitStereoHorizontalSeparation, + __int__getSplitStereoHorizontalSeparation, + "", + ""); + I_Method1(void, setSplitStereoVerticalEyeMapping, IN, osg::DisplaySettings::SplitStereoVerticalEyeMapping, m, + __void__setSplitStereoVerticalEyeMapping__SplitStereoVerticalEyeMapping, + "", + ""); + I_Method0(osg::DisplaySettings::SplitStereoVerticalEyeMapping, getSplitStereoVerticalEyeMapping, + __SplitStereoVerticalEyeMapping__getSplitStereoVerticalEyeMapping, + "", + ""); + I_Method1(void, setSplitStereoVerticalSeparation, IN, int, s, + __void__setSplitStereoVerticalSeparation__int, + "", + ""); + I_Method0(int, getSplitStereoVerticalSeparation, + __int__getSplitStereoVerticalSeparation, + "", + ""); + I_Method1(void, setSplitStereoAutoAjustAspectRatio, IN, bool, flag, + __void__setSplitStereoAutoAjustAspectRatio__bool, + "", + ""); + I_Method0(bool, getSplitStereoAutoAjustAspectRatio, + __bool__getSplitStereoAutoAjustAspectRatio, + "", + ""); + I_Method1(void, setScreenWidth, IN, float, width, + __void__setScreenWidth__float, + "", + ""); + I_Method0(float, getScreenWidth, + __float__getScreenWidth, + "", + ""); + I_Method1(void, setScreenHeight, IN, float, height, + __void__setScreenHeight__float, + "", + ""); + I_Method0(float, getScreenHeight, + __float__getScreenHeight, + "", + ""); + I_Method1(void, setScreenDistance, IN, float, distance, + __void__setScreenDistance__float, + "", + ""); + I_Method0(float, getScreenDistance, + __float__getScreenDistance, + "", + ""); + I_Method1(void, setDoubleBuffer, IN, bool, flag, + __void__setDoubleBuffer__bool, + "", + ""); + I_Method0(bool, getDoubleBuffer, + __bool__getDoubleBuffer, + "", + ""); + I_Method1(void, setRGB, IN, bool, flag, + __void__setRGB__bool, + "", + ""); + I_Method0(bool, getRGB, + __bool__getRGB, + "", + ""); + I_Method1(void, setDepthBuffer, IN, bool, flag, + __void__setDepthBuffer__bool, + "", + ""); + I_Method0(bool, getDepthBuffer, + __bool__getDepthBuffer, + "", + ""); + I_Method1(void, setMinimumNumAlphaBits, IN, unsigned int, bits, + __void__setMinimumNumAlphaBits__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMinimumNumAlphaBits, + __unsigned_int__getMinimumNumAlphaBits, + "", + ""); + I_Method0(bool, getAlphaBuffer, + __bool__getAlphaBuffer, + "", + ""); + I_Method1(void, setMinimumNumStencilBits, IN, unsigned int, bits, + __void__setMinimumNumStencilBits__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMinimumNumStencilBits, + __unsigned_int__getMinimumNumStencilBits, + "", + ""); + I_Method0(bool, getStencilBuffer, + __bool__getStencilBuffer, + "", + ""); + I_Method4(void, setMinimumNumAccumBits, IN, unsigned int, red, IN, unsigned int, green, IN, unsigned int, blue, IN, unsigned int, alpha, + __void__setMinimumNumAccumBits__unsigned_int__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMinimumNumAccumRedBits, + __unsigned_int__getMinimumNumAccumRedBits, + "", + ""); + I_Method0(unsigned int, getMinimumNumAccumGreenBits, + __unsigned_int__getMinimumNumAccumGreenBits, + "", + ""); + I_Method0(unsigned int, getMinimumNumAccumBlueBits, + __unsigned_int__getMinimumNumAccumBlueBits, + "", + ""); + I_Method0(unsigned int, getMinimumNumAccumAlphaBits, + __unsigned_int__getMinimumNumAccumAlphaBits, + "", + ""); + I_Method0(bool, getAccumBuffer, + __bool__getAccumBuffer, + "", + ""); + I_Method1(void, setMaxNumberOfGraphicsContexts, IN, unsigned int, num, + __void__setMaxNumberOfGraphicsContexts__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaxNumberOfGraphicsContexts, + __unsigned_int__getMaxNumberOfGraphicsContexts, + "", + ""); + I_Method1(void, setNumMultiSamples, IN, unsigned int, samples, + __void__setNumMultiSamples__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumMultiSamples, + __unsigned_int__getNumMultiSamples, + "", + ""); + I_Method0(bool, getMultiSamples, + __bool__getMultiSamples, + "", + ""); + I_StaticMethod0(osg::DisplaySettings *, instance, + __DisplaySettings_P1__instance_S, + "Maintain a DisplaySettings singleton for objects to query at runtime. ", + ""); + I_SimpleProperty(bool, AccumBuffer, + __bool__getAccumBuffer, + 0); + I_SimpleProperty(bool, AlphaBuffer, + __bool__getAlphaBuffer, + 0); + I_SimpleProperty(bool, DepthBuffer, + __bool__getDepthBuffer, + __void__setDepthBuffer__bool); + I_SimpleProperty(const osg::DisplaySettings &, DisplaySettings, + 0, + __void__setDisplaySettings__C5_DisplaySettings_R1); + I_SimpleProperty(osg::DisplaySettings::DisplayType, DisplayType, + __DisplayType__getDisplayType, + __void__setDisplayType__DisplayType); + I_SimpleProperty(bool, DoubleBuffer, + __bool__getDoubleBuffer, + __void__setDoubleBuffer__bool); + I_SimpleProperty(float, EyeSeparation, + __float__getEyeSeparation, + __void__setEyeSeparation__float); + I_SimpleProperty(unsigned int, MaxNumberOfGraphicsContexts, + __unsigned_int__getMaxNumberOfGraphicsContexts, + __void__setMaxNumberOfGraphicsContexts__unsigned_int); + I_SimpleProperty(unsigned int, MinimumNumAccumAlphaBits, + __unsigned_int__getMinimumNumAccumAlphaBits, + 0); + I_SimpleProperty(unsigned int, MinimumNumAccumBlueBits, + __unsigned_int__getMinimumNumAccumBlueBits, + 0); + I_SimpleProperty(unsigned int, MinimumNumAccumGreenBits, + __unsigned_int__getMinimumNumAccumGreenBits, + 0); + I_SimpleProperty(unsigned int, MinimumNumAccumRedBits, + __unsigned_int__getMinimumNumAccumRedBits, + 0); + I_SimpleProperty(unsigned int, MinimumNumAlphaBits, + __unsigned_int__getMinimumNumAlphaBits, + __void__setMinimumNumAlphaBits__unsigned_int); + I_SimpleProperty(unsigned int, MinimumNumStencilBits, + __unsigned_int__getMinimumNumStencilBits, + __void__setMinimumNumStencilBits__unsigned_int); + I_SimpleProperty(bool, MultiSamples, + __bool__getMultiSamples, + 0); + I_SimpleProperty(unsigned int, NumMultiSamples, + 0, + __void__setNumMultiSamples__unsigned_int); + I_SimpleProperty(bool, RGB, + __bool__getRGB, + __void__setRGB__bool); + I_SimpleProperty(float, ScreenDistance, + __float__getScreenDistance, + __void__setScreenDistance__float); + I_SimpleProperty(float, ScreenHeight, + __float__getScreenHeight, + __void__setScreenHeight__float); + I_SimpleProperty(float, ScreenWidth, + __float__getScreenWidth, + __void__setScreenWidth__float); + I_SimpleProperty(bool, SplitStereoAutoAjustAspectRatio, + __bool__getSplitStereoAutoAjustAspectRatio, + __void__setSplitStereoAutoAjustAspectRatio__bool); + I_SimpleProperty(osg::DisplaySettings::SplitStereoHorizontalEyeMapping, SplitStereoHorizontalEyeMapping, + __SplitStereoHorizontalEyeMapping__getSplitStereoHorizontalEyeMapping, + __void__setSplitStereoHorizontalEyeMapping__SplitStereoHorizontalEyeMapping); + I_SimpleProperty(int, SplitStereoHorizontalSeparation, + __int__getSplitStereoHorizontalSeparation, + __void__setSplitStereoHorizontalSeparation__int); + I_SimpleProperty(osg::DisplaySettings::SplitStereoVerticalEyeMapping, SplitStereoVerticalEyeMapping, + __SplitStereoVerticalEyeMapping__getSplitStereoVerticalEyeMapping, + __void__setSplitStereoVerticalEyeMapping__SplitStereoVerticalEyeMapping); + I_SimpleProperty(int, SplitStereoVerticalSeparation, + __int__getSplitStereoVerticalSeparation, + __void__setSplitStereoVerticalSeparation__int); + I_SimpleProperty(bool, StencilBuffer, + __bool__getStencilBuffer, + 0); + I_SimpleProperty(bool, Stereo, + __bool__getStereo, + __void__setStereo__bool); + I_SimpleProperty(osg::DisplaySettings::StereoMode, StereoMode, + __StereoMode__getStereoMode, + __void__setStereoMode__StereoMode); END_REFLECTOR diff --git a/src/osgWrappers/osg/DrawPixels.cpp b/src/osgWrappers/osg/DrawPixels.cpp index cddec8b04..f6199918e 100644 --- a/src/osgWrappers/osg/DrawPixels.cpp +++ b/src/osgWrappers/osg/DrawPixels.cpp @@ -28,27 +28,89 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawPixels) I_BaseType(osg::Drawable); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::DrawPixels &, drawimage, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, setPosition, IN, const osg::Vec3 &, position); - I_Method0(osg::Vec3 &, getPosition); - I_Method0(const osg::Vec3 &, getPosition); - I_Method1(void, setImage, IN, osg::Image *, image); - I_Method0(osg::Image *, getImage); - I_Method0(const osg::Image *, getImage); - I_Method1(void, setUseSubImage, IN, bool, useSubImage); - I_Method0(bool, getUseSubImage); - I_Method4(void, setSubImageDimensions, IN, unsigned int, offsetX, IN, unsigned int, offsetY, IN, unsigned int, width, IN, unsigned int, height); - I_Method4(void, getSubImageDimensions, IN, unsigned int &, offsetX, IN, unsigned int &, offsetY, IN, unsigned int &, width, IN, unsigned int &, height); - I_Method1(void, drawImplementation, IN, osg::State &, state); - I_Method0(osg::BoundingBox, computeBound); - I_Property(osg::Image *, Image); - I_Property(const osg::Vec3 &, Position); - I_Property(bool, UseSubImage); + I_Constructor0(____DrawPixels, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::DrawPixels &, drawimage, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DrawPixels__C5_DrawPixels_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setPosition, IN, const osg::Vec3 &, position, + __void__setPosition__C5_osg_Vec3_R1, + "", + ""); + I_Method0(osg::Vec3 &, getPosition, + __osg_Vec3_R1__getPosition, + "", + ""); + I_Method0(const osg::Vec3 &, getPosition, + __C5_osg_Vec3_R1__getPosition, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + __void__setImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getImage, + __osg_Image_P1__getImage, + "", + ""); + I_Method0(const osg::Image *, getImage, + __C5_osg_Image_P1__getImage, + "", + ""); + I_Method1(void, setUseSubImage, IN, bool, useSubImage, + __void__setUseSubImage__bool, + "", + ""); + I_Method0(bool, getUseSubImage, + __bool__getUseSubImage, + "", + ""); + I_Method4(void, setSubImageDimensions, IN, unsigned int, offsetX, IN, unsigned int, offsetY, IN, unsigned int, width, IN, unsigned int, height, + __void__setSubImageDimensions__unsigned_int__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_Method4(void, getSubImageDimensions, IN, unsigned int &, offsetX, IN, unsigned int &, offsetY, IN, unsigned int &, width, IN, unsigned int &, height, + __void__getSubImageDimensions__unsigned_int_R1__unsigned_int_R1__unsigned_int_R1__unsigned_int_R1, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + __void__drawImplementation__State_R1, + "Deprecated. ", + ""); + I_Method0(osg::BoundingBox, computeBound, + __BoundingBox__computeBound, + "Compute the bounding box around Drawables's geometry. ", + ""); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + __void__setImage__osg_Image_P1); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); + I_SimpleProperty(bool, UseSubImage, + __bool__getUseSubImage, + __void__setUseSubImage__bool); END_REFLECTOR diff --git a/src/osgWrappers/osg/Drawable.cpp b/src/osgWrappers/osg/Drawable.cpp index 01b8987f7..0e2a247b9 100644 --- a/src/osgWrappers/osg/Drawable.cpp +++ b/src/osgWrappers/osg/Drawable.cpp @@ -61,253 +61,875 @@ END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Drawable) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Drawable &, drawable, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::Geometry *, asGeometry); - I_Method0(const osg::Geometry *, asGeometry); - I_Method0(const osg::Drawable::ParentList &, getParents); - I_Method0(osg::Drawable::ParentList, getParents); - I_Method1(osg::Node *, getParent, IN, unsigned int, i); - I_Method1(const osg::Node *, getParent, IN, unsigned int, i); - I_Method0(unsigned int, getNumParents); - I_Method1(void, setStateSet, IN, osg::StateSet *, stateset); - I_Method0(osg::StateSet *, getStateSet); - I_Method0(const osg::StateSet *, getStateSet); - I_Method0(osg::StateSet *, getOrCreateStateSet); - I_Method1(void, setInitialBound, IN, const osg::BoundingBox &, bbox); - I_Method0(const osg::BoundingBox &, getInitialBound); - I_Method0(void, dirtyBound); - I_Method0(const osg::BoundingBox &, getBound); - I_Method0(osg::BoundingBox, computeBound); - I_Method1(void, setComputeBoundingBoxCallback, IN, osg::Drawable::ComputeBoundingBoxCallback *, callback); - I_Method0(osg::Drawable::ComputeBoundingBoxCallback *, getComputeBoundingBoxCallback); - I_Method0(const osg::Drawable::ComputeBoundingBoxCallback *, getComputeBoundingBoxCallback); - I_Method1(void, setShape, IN, osg::Shape *, shape); - I_Method0(osg::Shape *, getShape); - I_Method0(const osg::Shape *, getShape); - I_Method1(void, setSupportsDisplayList, IN, bool, flag); - I_Method0(bool, getSupportsDisplayList); - I_Method1(void, setUseDisplayList, IN, bool, flag); - I_Method0(bool, getUseDisplayList); - I_Method1(GLuint &, getDisplayList, IN, unsigned int, contextID); - I_Method1(void, setUseVertexBufferObjects, IN, bool, flag); - I_Method0(bool, getUseVertexBufferObjects); - I_Method0(void, dirtyDisplayList); - I_Method0(unsigned int, getGLObjectSizeHint); - I_Method1(void, draw, IN, osg::RenderInfo &, renderInfo); - I_Method1(void, compileGLObjects, IN, osg::State &, state); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); - I_Method1(void, setUpdateCallback, IN, osg::Drawable::UpdateCallback *, ac); - I_Method0(osg::Drawable::UpdateCallback *, getUpdateCallback); - I_Method0(const osg::Drawable::UpdateCallback *, getUpdateCallback); - I_Method0(bool, requiresUpdateTraversal); - I_Method1(void, setEventCallback, IN, osg::Drawable::EventCallback *, ac); - I_Method0(osg::Drawable::EventCallback *, getEventCallback); - I_Method0(const osg::Drawable::EventCallback *, getEventCallback); - I_Method0(bool, requiresEventTraversal); - I_Method1(void, setCullCallback, IN, osg::Drawable::CullCallback *, cc); - I_Method0(osg::Drawable::CullCallback *, getCullCallback); - I_Method0(const osg::Drawable::CullCallback *, getCullCallback); - I_Method1(void, setDrawCallback, IN, osg::Drawable::DrawCallback *, dc); - I_Method0(osg::Drawable::DrawCallback *, getDrawCallback); - I_Method0(const osg::Drawable::DrawCallback *, getDrawCallback); - I_Method1(void, drawImplementation, IN, osg::State &, x); - I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo); - I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x); - I_Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, x); - I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x); - I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, x); - I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, x); - I_Method1(bool, supports, IN, const osg::PrimitiveIndexFunctor &, x); - I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, x); - I_StaticMethodWithDefaults2(GLuint, generateDisplayList, IN, unsigned int, contextID, , IN, unsigned int, sizeHint, 0); - I_StaticMethod1(void, setMinimumNumberOfDisplayListsToRetainInCache, IN, unsigned int, minimum); - I_StaticMethod0(unsigned int, getMinimumNumberOfDisplayListsToRetainInCache); - I_StaticMethodWithDefaults3(void, deleteDisplayList, IN, unsigned int, contextID, , IN, GLuint, globj, , IN, unsigned int, sizeHint, 0); - I_StaticMethod1(void, flushAllDeletedDisplayLists, IN, unsigned int, contextID); - I_StaticMethod2(void, flushDeletedDisplayLists, IN, unsigned int, contextID, IN, double &, availableTime); - I_StaticMethod2(void, deleteVertexBufferObject, IN, unsigned int, contextID, IN, GLuint, globj); - I_StaticMethod3(void, flushDeletedVertexBufferObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime); - I_StaticMethod2(osg::Drawable::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Drawable::Extensions *, extensions); - I_ReadOnlyProperty(const osg::BoundingBox &, Bound); - I_Property(osg::Drawable::ComputeBoundingBoxCallback *, ComputeBoundingBoxCallback); - I_Property(osg::Drawable::CullCallback *, CullCallback); - I_Property(osg::Drawable::DrawCallback *, DrawCallback); - I_Property(osg::Drawable::EventCallback *, EventCallback); - I_ReadOnlyProperty(unsigned int, GLObjectSizeHint); - I_Property(const osg::BoundingBox &, InitialBound); - I_ArrayProperty_G(osg::Node *, Parent, Parents, unsigned int, void); - I_ReadOnlyProperty(osg::Drawable::ParentList, Parents); - I_Property(osg::Shape *, Shape); - I_Property(osg::StateSet *, StateSet); - I_Property(bool, SupportsDisplayList); - I_Property(osg::Drawable::UpdateCallback *, UpdateCallback); - I_Property(bool, UseDisplayList); - I_Property(bool, UseVertexBufferObjects); + I_Constructor0(____Drawable, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Drawable &, drawable, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Drawable__C5_Drawable_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(osg::Geometry *, asGeometry, + __Geometry_P1__asGeometry, + "Convert 'this' into a Geometry pointer if Drawable is a Geometry, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method0(const osg::Geometry *, asGeometry, + __C5_Geometry_P1__asGeometry, + "Convert 'const this' into a const Geometry pointer if Drawable is a Geometry, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method0(const osg::Drawable::ParentList &, getParents, + __C5_ParentList_R1__getParents, + "Get the parent list of drawable. ", + ""); + I_Method0(osg::Drawable::ParentList, getParents, + __ParentList__getParents, + "Get the a copy of parent list of node. ", + "A copy is returned to prevent modification of the parent list. "); + I_Method1(osg::Node *, getParent, IN, unsigned int, i, + __Node_P1__getParent__unsigned_int, + "Get a single parent of Drawable. ", + " param i index of the parent to get. return the parent i."); + I_Method1(const osg::Node *, getParent, IN, unsigned int, i, + __C5_Node_P1__getParent__unsigned_int, + "Get a single const parent of Drawable. ", + " param i index of the parent to get. return the parent i."); + I_Method0(unsigned int, getNumParents, + __unsigned_int__getNumParents, + "Get the number of parents of node. ", + "the number of parents of this node. "); + I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, + __void__setStateSet__StateSet_P1, + "Set the StateSet attached to the Drawable. ", + "Previously attached StateSet are automatically unreferenced on assignment of a new drawstate. "); + I_Method0(osg::StateSet *, getStateSet, + __StateSet_P1__getStateSet, + "Get the attached StateSet. ", + ""); + I_Method0(const osg::StateSet *, getStateSet, + __C5_StateSet_P1__getStateSet, + "Get the attached const StateSet. ", + ""); + I_Method0(osg::StateSet *, getOrCreateStateSet, + __StateSet_P1__getOrCreateStateSet, + "Get the attached const StateSet, if one is not already attached create one, attach it to the drawable and return a pointer to it. ", + ""); + I_Method1(void, setInitialBound, IN, const osg::BoundingBox &, bbox, + __void__setInitialBound__C5_osg_BoundingBox_R1, + "Set the initial bounding volume to use when computing the overall bounding volume. ", + ""); + I_Method0(const osg::BoundingBox &, getInitialBound, + __C5_BoundingBox_R1__getInitialBound, + "Set the initial bounding volume to use when computing the overall bounding volume. ", + ""); + I_Method0(void, dirtyBound, + __void__dirtyBound, + "Dirty the bounding box, forcing a computeBound() on the next call to getBound(). ", + "Should be called in the internal geometry of the Drawable is modified. "); + I_Method0(const osg::BoundingBox &, getBound, + __C5_BoundingBox_R1__getBound, + "Get BoundingBox of Drawable. ", + "If the BoundingBox is not up to date then its updated via an internal call to computeBond()."); + I_Method0(osg::BoundingBox, computeBound, + __BoundingBox__computeBound, + "Compute the bounding box around Drawables's geometry. ", + ""); + I_Method1(void, setComputeBoundingBoxCallback, IN, osg::Drawable::ComputeBoundingBoxCallback *, callback, + __void__setComputeBoundingBoxCallback__ComputeBoundingBoxCallback_P1, + "Set the compute bound callback to override the default computeBound. ", + ""); + I_Method0(osg::Drawable::ComputeBoundingBoxCallback *, getComputeBoundingBoxCallback, + __ComputeBoundingBoxCallback_P1__getComputeBoundingBoxCallback, + "Get the compute bound callback. ", + ""); + I_Method0(const osg::Drawable::ComputeBoundingBoxCallback *, getComputeBoundingBoxCallback, + __C5_ComputeBoundingBoxCallback_P1__getComputeBoundingBoxCallback, + "Get the const compute bound callback. ", + ""); + I_Method1(void, setShape, IN, osg::Shape *, shape, + __void__setShape__Shape_P1, + "Set the Shape of the Drawable. ", + "The shape can be used to speed up collision detection or as a guide for procedural geometry generation. osg::Shape. "); + I_Method0(osg::Shape *, getShape, + __Shape_P1__getShape, + "Get the Shape of the Drawable. ", + ""); + I_Method0(const osg::Shape *, getShape, + __C5_Shape_P1__getShape, + "Get the const Shape of the const Drawable. ", + ""); + I_Method1(void, setSupportsDisplayList, IN, bool, flag, + __void__setSupportsDisplayList__bool, + "Set the drawable so that it can or cannot be used in conjunction with OpenGL display lists. ", + "When set to true, calls to Drawable::setUseDisplayList, whereas when set to false, no display lists can be created and calls to setUseDisplayList are ignored, and a warning is produced. The latter is typically used to guard against the switching on of display lists on objects with dynamic internal data such as continuous Level of Detail algorithms. "); + I_Method0(bool, getSupportsDisplayList, + __bool__getSupportsDisplayList, + "Get whether display lists are supported for this drawable instance. ", + ""); + I_Method1(void, setUseDisplayList, IN, bool, flag, + __void__setUseDisplayList__bool, + "When set to true, force the draw method to use OpenGL Display List for rendering. ", + "If false, rendering directly. If the display list has not been compiled already, the next call to draw will automatically create the display list. "); + I_Method0(bool, getUseDisplayList, + __bool__getUseDisplayList, + "Return whether OpenGL display lists are being used for rendering. ", + ""); + I_Method1(GLuint &, getDisplayList, IN, unsigned int, contextID, + __GLuint_R1__getDisplayList__unsigned_int, + "Return OpenGL display list for specified contextID. ", + ""); + I_Method1(void, setUseVertexBufferObjects, IN, bool, flag, + __void__setUseVertexBufferObjects__bool, + "When set to true, ignore the setUseDisplayList() settings, and hints to the drawImplementation method to use OpenGL vertex buffer objects for rendering. ", + ""); + I_Method0(bool, getUseVertexBufferObjects, + __bool__getUseVertexBufferObjects, + "Return whether OpenGL vertex buffer objects should be used when supported by OpenGL driver. ", + ""); + I_Method0(void, dirtyDisplayList, + __void__dirtyDisplayList, + "Force a recompile on next draw() of any OpenGL display list associated with this geoset. ", + ""); + I_Method0(unsigned int, getGLObjectSizeHint, + __unsigned_int__getGLObjectSizeHint, + "Return the estimated size of GLObjects (display lists/vertex buffer objects) that are associated with this drawable. ", + "This size is used a hint for reuse of deleted display lists/vertex buffer objects. "); + I_Method1(void, draw, IN, osg::RenderInfo &, renderInfo, + __void__draw__RenderInfo_R1, + "Draw OpenGL primitives. ", + "If the Drawable has _useDisplayList set to true, then use an OpenGL display list, automatically compiling one if required. Otherwise, call drawImplementation(). This method should not be overridden in subclasses, as it manages the optional display list (notice this is not even virtual). Subclasses should override drawImplementation() instead. "); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + __void__compileGLObjects__State_R1, + "Immediately compile this Drawable into an OpenGL Display List. ", + "Operation is ignored if _useDisplayList is false. "); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + __void__releaseGLObjects__State_P1, + "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objexts for all graphics contexts. "); + I_Method1(void, setUpdateCallback, IN, osg::Drawable::UpdateCallback *, ac, + __void__setUpdateCallback__UpdateCallback_P1, + "Set the UpdateCallback which allows users to attach customize the updating of an object during the update traversal. ", + ""); + I_Method0(osg::Drawable::UpdateCallback *, getUpdateCallback, + __UpdateCallback_P1__getUpdateCallback, + "Get the non const UpdateCallback. ", + ""); + I_Method0(const osg::Drawable::UpdateCallback *, getUpdateCallback, + __C5_UpdateCallback_P1__getUpdateCallback, + "Get the const UpdateCallback. ", + ""); + I_Method0(bool, requiresUpdateTraversal, + __bool__requiresUpdateTraversal, + "Return whether this Drawable has update callbacks associated with it, and therefore must be traversed. ", + ""); + I_Method1(void, setEventCallback, IN, osg::Drawable::EventCallback *, ac, + __void__setEventCallback__EventCallback_P1, + "Set the EventCallback which allows users to attach customize the updating of an object during the Event traversal. ", + ""); + I_Method0(osg::Drawable::EventCallback *, getEventCallback, + __EventCallback_P1__getEventCallback, + "Get the non const EventCallback. ", + ""); + I_Method0(const osg::Drawable::EventCallback *, getEventCallback, + __C5_EventCallback_P1__getEventCallback, + "Get the const EventCallback. ", + ""); + I_Method0(bool, requiresEventTraversal, + __bool__requiresEventTraversal, + "Return whether this Drawable has event callbacks associated with it, and therefore must be traversed. ", + ""); + I_Method1(void, setCullCallback, IN, osg::Drawable::CullCallback *, cc, + __void__setCullCallback__CullCallback_P1, + "Set the CullCallback which allows users to customize the culling of Drawable during the cull traversal. ", + ""); + I_Method0(osg::Drawable::CullCallback *, getCullCallback, + __CullCallback_P1__getCullCallback, + "Get the non const CullCallback. ", + ""); + I_Method0(const osg::Drawable::CullCallback *, getCullCallback, + __C5_CullCallback_P1__getCullCallback, + "Get the const CullCallback. ", + ""); + I_Method1(void, setDrawCallback, IN, osg::Drawable::DrawCallback *, dc, + __void__setDrawCallback__DrawCallback_P1, + "Set the DrawCallback which allows users to attach customize the drawing of existing Drawable object. ", + ""); + I_Method0(osg::Drawable::DrawCallback *, getDrawCallback, + __DrawCallback_P1__getDrawCallback, + "Get the non const DrawCallback. ", + ""); + I_Method0(const osg::Drawable::DrawCallback *, getDrawCallback, + __C5_DrawCallback_P1__getDrawCallback, + "Get the const DrawCallback. ", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, x, + __void__drawImplementation__State_R1, + "Deprecated. ", + ""); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + __void__drawImplementation__RenderInfo_R1, + "drawImplementation(State&) is a pure virtual method for the actual implementation of OpenGL drawing calls, such as vertex arrays and primitives, that must be implemented in concrete subclasses of the Drawable base class, examples include osg::Geometry and osg::ShapeDrawable. ", + " param state The osg::State object that encapulates the current OpenGL state for the current graphics context. "); + I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, + __bool__supports__C5_AttributeFunctor_R1, + "Return true if the Drawable subclass supports accept(AttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, x, + __void__accept__AttributeFunctor_R1, + "accept an AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. ", + "return true if functor handled by drawable, return false on failure of drawable to generate functor calls. "); + I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + __bool__supports__C5_ConstAttributeFunctor_R1, + "Return true if the Drawable subclass supports accept(ConstAttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, x, + __void__accept__ConstAttributeFunctor_R1, + "Accept an AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. ", + "return true if functor handled by drawable, return false on failure of drawable to generate functor calls. "); + I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, + __bool__supports__C5_PrimitiveFunctor_R1, + "Return true if the Drawable subclass supports accept(PrimitiveFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, x, + __void__accept__PrimitiveFunctor_R1, + "Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. ", + "return true if functor handled by drawable, return false on failure of drawable to generate functor calls. Note, PrimtiveFunctor only provides const access of the primitives, as primitives may be procedurally generated so one cannot modify it. "); + I_Method1(bool, supports, IN, const osg::PrimitiveIndexFunctor &, x, + __bool__supports__C5_PrimitiveIndexFunctor_R1, + "Return true if the Drawable subclass supports accept(PrimitiveIndexFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, x, + __void__accept__PrimitiveIndexFunctor_R1, + "Accept a PrimitiveIndexFunctor and call its methods to tell it about the internal primitives that this Drawable has. ", + "return true if functor handled by drawable, return false on failure of drawable to generate functor calls. Note, PrimtiveIndexFunctor only provide const access of the primitives, as primitives may be procedurally generated so one cannot modify it. "); + I_StaticMethodWithDefaults2(GLuint, generateDisplayList, IN, unsigned int, contextID, , IN, unsigned int, sizeHint, 0, + __GLuint__generateDisplayList__unsigned_int__unsigned_int_S, + "Return a OpenGL display list handle a newly generated or reused from display list cache. ", + ""); + I_StaticMethod1(void, setMinimumNumberOfDisplayListsToRetainInCache, IN, unsigned int, minimum, + __void__setMinimumNumberOfDisplayListsToRetainInCache__unsigned_int_S, + "Set the minimum number of display lists to retain in the deleted display list cache. ", + ""); + I_StaticMethod0(unsigned int, getMinimumNumberOfDisplayListsToRetainInCache, + __unsigned_int__getMinimumNumberOfDisplayListsToRetainInCache_S, + "Get the minimum number of display lists to retain in the deleted display list cache. ", + ""); + I_StaticMethodWithDefaults3(void, deleteDisplayList, IN, unsigned int, contextID, , IN, GLuint, globj, , IN, unsigned int, sizeHint, 0, + __void__deleteDisplayList__unsigned_int__GLuint__unsigned_int_S, + "Use deleteDisplayList instead of glDeleteList to allow OpenGL display list to be cached until they can be deleted by the OpenGL context in which they were created, specified by contextID. ", + ""); + I_StaticMethod1(void, flushAllDeletedDisplayLists, IN, unsigned int, contextID, + __void__flushAllDeletedDisplayLists__unsigned_int_S, + "Flush all the cached display list which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod2(void, flushDeletedDisplayLists, IN, unsigned int, contextID, IN, double &, availableTime, + __void__flushDeletedDisplayLists__unsigned_int__double_R1_S, + "Flush the cached display list which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod2(void, deleteVertexBufferObject, IN, unsigned int, contextID, IN, GLuint, globj, + __void__deleteVertexBufferObject__unsigned_int__GLuint_S, + "Use deleteVertexBufferObject instead of glDeleteBuffers to allow OpenGL buffer objects to be cached until they can be deleted by the OpenGL context in which they were created, specified by contextID. ", + ""); + I_StaticMethod3(void, flushDeletedVertexBufferObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedVertexBufferObjects__unsigned_int__double__double_R1_S, + "Flush all the cached vertex buffer objects which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod2(osg::Drawable::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Extension object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object is only created with the graphics context associated with ContextID.. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Drawable::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions allows users to override the extensions across graphics contexts. ", + "typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(const osg::BoundingBox &, Bound, + __C5_BoundingBox_R1__getBound, + 0); + I_SimpleProperty(osg::Drawable::ComputeBoundingBoxCallback *, ComputeBoundingBoxCallback, + __ComputeBoundingBoxCallback_P1__getComputeBoundingBoxCallback, + __void__setComputeBoundingBoxCallback__ComputeBoundingBoxCallback_P1); + I_SimpleProperty(osg::Drawable::CullCallback *, CullCallback, + __CullCallback_P1__getCullCallback, + __void__setCullCallback__CullCallback_P1); + I_SimpleProperty(osg::Drawable::DrawCallback *, DrawCallback, + __DrawCallback_P1__getDrawCallback, + __void__setDrawCallback__DrawCallback_P1); + I_SimpleProperty(osg::Drawable::EventCallback *, EventCallback, + __EventCallback_P1__getEventCallback, + __void__setEventCallback__EventCallback_P1); + I_SimpleProperty(unsigned int, GLObjectSizeHint, + __unsigned_int__getGLObjectSizeHint, + 0); + I_SimpleProperty(const osg::BoundingBox &, InitialBound, + __C5_BoundingBox_R1__getInitialBound, + __void__setInitialBound__C5_osg_BoundingBox_R1); + I_ArrayProperty(osg::Node *, Parent, + __Node_P1__getParent__unsigned_int, + 0, + __unsigned_int__getNumParents, + 0, + 0, + 0); + I_SimpleProperty(osg::Drawable::ParentList, Parents, + __ParentList__getParents, + 0); + I_SimpleProperty(osg::Shape *, Shape, + __Shape_P1__getShape, + __void__setShape__Shape_P1); + I_SimpleProperty(osg::StateSet *, StateSet, + __StateSet_P1__getStateSet, + __void__setStateSet__StateSet_P1); + I_SimpleProperty(bool, SupportsDisplayList, + __bool__getSupportsDisplayList, + __void__setSupportsDisplayList__bool); + I_SimpleProperty(osg::Drawable::UpdateCallback *, UpdateCallback, + __UpdateCallback_P1__getUpdateCallback, + __void__setUpdateCallback__UpdateCallback_P1); + I_SimpleProperty(bool, UseDisplayList, + __bool__getUseDisplayList, + __void__setUseDisplayList__bool); + I_SimpleProperty(bool, UseVertexBufferObjects, + __bool__getUseVertexBufferObjects, + __void__setUseVertexBufferObjects__bool); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::Drawable::AttributeFunctor) - I_Constructor0(); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLbyte *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLshort *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLint *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLubyte *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLushort *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLuint *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, float *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec2 *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec3 *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec4 *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec4ub *, x); + I_Constructor0(____AttributeFunctor, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLbyte *, x, + __void__apply__AttributeType__unsigned__GLbyte_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLshort *, x, + __void__apply__AttributeType__unsigned__GLshort_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLint *, x, + __void__apply__AttributeType__unsigned__GLint_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLubyte *, x, + __void__apply__AttributeType__unsigned__GLubyte_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLushort *, x, + __void__apply__AttributeType__unsigned__GLushort_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLuint *, x, + __void__apply__AttributeType__unsigned__GLuint_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, float *, x, + __void__apply__AttributeType__unsigned__float_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec2 *, x, + __void__apply__AttributeType__unsigned__Vec2_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec3 *, x, + __void__apply__AttributeType__unsigned__Vec3_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec4 *, x, + __void__apply__AttributeType__unsigned__Vec4_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec4ub *, x, + __void__apply__AttributeType__unsigned__Vec4ub_P1, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Drawable::ComputeBoundingBoxCallback) I_BaseType(osg::Object); - I_Constructor0(); - I_Constructor2(IN, const osg::Drawable::ComputeBoundingBoxCallback &, x, IN, const osg::CopyOp &, x); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(osg::BoundingBox, computeBound, IN, const osg::Drawable &, x); + I_Constructor0(____ComputeBoundingBoxCallback, + "", + ""); + I_Constructor2(IN, const osg::Drawable::ComputeBoundingBoxCallback &, x, IN, const osg::CopyOp &, x, + ____ComputeBoundingBoxCallback__C5_ComputeBoundingBoxCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(osg::BoundingBox, computeBound, IN, const osg::Drawable &, x, + __BoundingBox__computeBound__C5_osg_Drawable_R1, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::Drawable::ConstAttributeFunctor) - I_Constructor0(); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLbyte *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLshort *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLint *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLubyte *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLushort *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLuint *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const float *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const osg::Vec2 *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const osg::Vec3 *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const osg::Vec4 *, x); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const osg::Vec4ub *, x); + I_Constructor0(____ConstAttributeFunctor, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLbyte *, x, + __void__apply__AttributeType__C5_unsigned__C5_GLbyte_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLshort *, x, + __void__apply__AttributeType__C5_unsigned__C5_GLshort_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLint *, x, + __void__apply__AttributeType__C5_unsigned__C5_GLint_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLubyte *, x, + __void__apply__AttributeType__C5_unsigned__C5_GLubyte_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLushort *, x, + __void__apply__AttributeType__C5_unsigned__C5_GLushort_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLuint *, x, + __void__apply__AttributeType__C5_unsigned__C5_GLuint_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const float *, x, + __void__apply__AttributeType__C5_unsigned__C5_float_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const osg::Vec2 *, x, + __void__apply__AttributeType__C5_unsigned__C5_Vec2_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const osg::Vec3 *, x, + __void__apply__AttributeType__C5_unsigned__C5_Vec3_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const osg::Vec4 *, x, + __void__apply__AttributeType__C5_unsigned__C5_Vec4_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const osg::Vec4ub *, x, + __void__apply__AttributeType__C5_unsigned__C5_Vec4ub_P1, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Drawable::CullCallback) I_VirtualBaseType(osg::Object); - I_Constructor0(); - I_Constructor2(IN, const osg::Drawable::CullCallback &, x, IN, const osg::CopyOp &, x); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method3(bool, cull, IN, osg::NodeVisitor *, x, IN, osg::Drawable *, x, IN, osg::State *, x); - I_Method3(bool, cull, IN, osg::NodeVisitor *, nv, IN, osg::Drawable *, drawable, IN, osg::RenderInfo *, renderInfo); + I_Constructor0(____CullCallback, + "", + ""); + I_Constructor2(IN, const osg::Drawable::CullCallback &, x, IN, const osg::CopyOp &, x, + ____CullCallback__C5_CullCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method3(bool, cull, IN, osg::NodeVisitor *, x, IN, osg::Drawable *, x, IN, osg::State *, x, + __bool__cull__osg_NodeVisitor_P1__osg_Drawable_P1__osg_State_P1, + "deprecated. ", + ""); + I_Method3(bool, cull, IN, osg::NodeVisitor *, nv, IN, osg::Drawable *, drawable, IN, osg::RenderInfo *, renderInfo, + __bool__cull__osg_NodeVisitor_P1__osg_Drawable_P1__osg_RenderInfo_P1, + "do customized cull code, return true if drawable should be culled. ", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Drawable::DrawCallback) I_VirtualBaseType(osg::Object); - I_Constructor0(); - I_Constructor2(IN, const osg::Drawable::DrawCallback &, x, IN, const osg::CopyOp &, x); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method2(void, drawImplementation, IN, osg::State &, x, IN, const osg::Drawable *, x); - I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, const osg::Drawable *, drawable); + I_Constructor0(____DrawCallback, + "", + ""); + I_Constructor2(IN, const osg::Drawable::DrawCallback &, x, IN, const osg::CopyOp &, x, + ____DrawCallback__C5_DrawCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method2(void, drawImplementation, IN, osg::State &, x, IN, const osg::Drawable *, x, + __void__drawImplementation__osg_State_R1__C5_osg_Drawable_P1, + "Deprecated. ", + ""); + I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, const osg::Drawable *, drawable, + __void__drawImplementation__osg_RenderInfo_R1__C5_osg_Drawable_P1, + "do customized draw code. ", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Drawable::EventCallback) I_VirtualBaseType(osg::Object); - I_Constructor0(); - I_Constructor2(IN, const osg::Drawable::EventCallback &, x, IN, const osg::CopyOp &, x); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method2(void, event, IN, osg::NodeVisitor *, x, IN, osg::Drawable *, x); + I_Constructor0(____EventCallback, + "", + ""); + I_Constructor2(IN, const osg::Drawable::EventCallback &, x, IN, const osg::CopyOp &, x, + ____EventCallback__C5_EventCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method2(void, event, IN, osg::NodeVisitor *, x, IN, osg::Drawable *, x, + __void__event__osg_NodeVisitor_P1__osg_Drawable_P1, + "do customized Event code. ", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Drawable::Extensions) I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID); - I_Constructor1(IN, const osg::Drawable::Extensions &, rhs); - I_Method1(void, lowestCommonDenominator, IN, const osg::Drawable::Extensions &, rhs); - I_Method1(void, setupGLExtenions, IN, unsigned int, contextID); - I_Method1(void, setVertexProgramSupported, IN, bool, flag); - I_Method0(bool, isVertexProgramSupported); - I_Method1(void, setSecondaryColorSupported, IN, bool, flag); - I_Method0(bool, isSecondaryColorSupported); - I_Method1(void, setFogCoordSupported, IN, bool, flag); - I_Method0(bool, isFogCoordSupported); - I_Method1(void, setMultiTexSupported, IN, bool, flag); - I_Method0(bool, isMultiTexSupported); - I_Method1(void, setOcclusionQuerySupported, IN, bool, flag); - I_Method0(bool, isOcclusionQuerySupported); - I_Method1(void, setARBOcclusionQuerySupported, IN, bool, flag); - I_Method0(bool, isARBOcclusionQuerySupported); - I_Method1(void, glSecondaryColor3ubv, IN, const GLubyte *, coord); - I_Method1(void, glSecondaryColor3fv, IN, const GLfloat *, coord); - I_Method1(void, glFogCoordfv, IN, const GLfloat *, coord); - I_Method2(void, glMultiTexCoord1f, IN, GLenum, target, IN, GLfloat, coord); - I_Method2(void, glMultiTexCoord2fv, IN, GLenum, target, IN, const GLfloat *, coord); - I_Method2(void, glMultiTexCoord3fv, IN, GLenum, target, IN, const GLfloat *, coord); - I_Method2(void, glMultiTexCoord4fv, IN, GLenum, target, IN, const GLfloat *, coord); - I_Method2(void, glVertexAttrib1s, IN, unsigned int, index, IN, GLshort, s); - I_Method2(void, glVertexAttrib1f, IN, unsigned int, index, IN, GLfloat, f); - I_Method2(void, glVertexAttrib2fv, IN, unsigned int, index, IN, const GLfloat *, v); - I_Method2(void, glVertexAttrib3fv, IN, unsigned int, index, IN, const GLfloat *, v); - I_Method2(void, glVertexAttrib4fv, IN, unsigned int, index, IN, const GLfloat *, v); - I_Method2(void, glVertexAttrib4ubv, IN, unsigned int, index, IN, const GLubyte *, v); - I_Method2(void, glVertexAttrib4Nubv, IN, unsigned int, index, IN, const GLubyte *, v); - I_Method2(void, glGenBuffers, IN, GLsizei, n, IN, GLuint *, buffers); - I_Method2(void, glBindBuffer, IN, GLenum, target, IN, GLuint, buffer); - I_Method4(void, glBufferData, IN, GLenum, target, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, IN, GLenum, usage); - I_Method4(void, glBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, const GLvoid *, data); - I_Method2(void, glDeleteBuffers, IN, GLsizei, n, IN, const GLuint *, buffers); - I_Method1(GLboolean, glIsBuffer, IN, GLuint, buffer); - I_Method4(void, glGetBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, GLvoid *, data); - I_Method2(GLvoid *, glMapBuffer, IN, GLenum, target, IN, GLenum, access); - I_Method1(GLboolean, glUnmapBuffer, IN, GLenum, target); - I_Method3(void, glGetBufferParameteriv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params); - I_Method3(void, glGetBufferPointerv, IN, GLenum, target, IN, GLenum, pname, IN, GLvoid **, params); - I_Method2(void, glGenOcclusionQueries, IN, GLsizei, n, IN, GLuint *, ids); - I_Method2(void, glDeleteOcclusionQueries, IN, GLsizei, n, IN, const GLuint *, ids); - I_Method1(GLboolean, glIsOcclusionQuery, IN, GLuint, id); - I_Method1(void, glBeginOcclusionQuery, IN, GLuint, id); - I_Method0(void, glEndOcclusionQuery); - I_Method3(void, glGetOcclusionQueryiv, IN, GLuint, id, IN, GLenum, pname, IN, GLint *, params); - I_Method3(void, glGetOcclusionQueryuiv, IN, GLuint, id, IN, GLenum, pname, IN, GLuint *, params); - I_Method3(void, glGetQueryiv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params); - I_Method2(void, glGenQueries, IN, GLsizei, n, IN, GLuint *, ids); - I_Method2(void, glBeginQuery, IN, GLenum, target, IN, GLuint, id); - I_Method1(void, glEndQuery, IN, GLenum, target); - I_Method1(GLboolean, glIsQuery, IN, GLuint, id); - I_Method2(void, glDeleteQueries, IN, GLsizei, n, IN, const GLuint *, ids); - I_Method3(void, glGetQueryObjectiv, IN, GLuint, id, IN, GLenum, pname, IN, GLint *, params); - I_Method3(void, glGetQueryObjectuiv, IN, GLuint, id, IN, GLenum, pname, IN, GLuint *, params); - I_WriteOnlyProperty(bool, ARBOcclusionQuerySupported); - I_WriteOnlyProperty(bool, FogCoordSupported); - I_WriteOnlyProperty(bool, MultiTexSupported); - I_WriteOnlyProperty(bool, OcclusionQuerySupported); - I_WriteOnlyProperty(bool, SecondaryColorSupported); - I_WriteOnlyProperty(bool, VertexProgramSupported); - I_WriteOnlyProperty(unsigned int, upGLExtenions); + I_Constructor1(IN, unsigned int, contextID, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Drawable::Extensions &, rhs, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Drawable::Extensions &, rhs, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setVertexProgramSupported, IN, bool, flag, + __void__setVertexProgramSupported__bool, + "", + ""); + I_Method0(bool, isVertexProgramSupported, + __bool__isVertexProgramSupported, + "", + ""); + I_Method1(void, setSecondaryColorSupported, IN, bool, flag, + __void__setSecondaryColorSupported__bool, + "", + ""); + I_Method0(bool, isSecondaryColorSupported, + __bool__isSecondaryColorSupported, + "", + ""); + I_Method1(void, setFogCoordSupported, IN, bool, flag, + __void__setFogCoordSupported__bool, + "", + ""); + I_Method0(bool, isFogCoordSupported, + __bool__isFogCoordSupported, + "", + ""); + I_Method1(void, setMultiTexSupported, IN, bool, flag, + __void__setMultiTexSupported__bool, + "", + ""); + I_Method0(bool, isMultiTexSupported, + __bool__isMultiTexSupported, + "", + ""); + I_Method1(void, setOcclusionQuerySupported, IN, bool, flag, + __void__setOcclusionQuerySupported__bool, + "", + ""); + I_Method0(bool, isOcclusionQuerySupported, + __bool__isOcclusionQuerySupported, + "", + ""); + I_Method1(void, setARBOcclusionQuerySupported, IN, bool, flag, + __void__setARBOcclusionQuerySupported__bool, + "", + ""); + I_Method0(bool, isARBOcclusionQuerySupported, + __bool__isARBOcclusionQuerySupported, + "", + ""); + I_Method1(void, glSecondaryColor3ubv, IN, const GLubyte *, coord, + __void__glSecondaryColor3ubv__C5_GLubyte_P1, + "", + ""); + I_Method1(void, glSecondaryColor3fv, IN, const GLfloat *, coord, + __void__glSecondaryColor3fv__C5_GLfloat_P1, + "", + ""); + I_Method1(void, glFogCoordfv, IN, const GLfloat *, coord, + __void__glFogCoordfv__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glMultiTexCoord1f, IN, GLenum, target, IN, GLfloat, coord, + __void__glMultiTexCoord1f__GLenum__GLfloat, + "", + ""); + I_Method2(void, glMultiTexCoord2fv, IN, GLenum, target, IN, const GLfloat *, coord, + __void__glMultiTexCoord2fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glMultiTexCoord3fv, IN, GLenum, target, IN, const GLfloat *, coord, + __void__glMultiTexCoord3fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glMultiTexCoord4fv, IN, GLenum, target, IN, const GLfloat *, coord, + __void__glMultiTexCoord4fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib1s, IN, unsigned int, index, IN, GLshort, s, + __void__glVertexAttrib1s__unsigned_int__GLshort, + "", + ""); + I_Method2(void, glVertexAttrib1f, IN, unsigned int, index, IN, GLfloat, f, + __void__glVertexAttrib1f__unsigned_int__GLfloat, + "", + ""); + I_Method2(void, glVertexAttrib2fv, IN, unsigned int, index, IN, const GLfloat *, v, + __void__glVertexAttrib2fv__unsigned_int__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib3fv, IN, unsigned int, index, IN, const GLfloat *, v, + __void__glVertexAttrib3fv__unsigned_int__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib4fv, IN, unsigned int, index, IN, const GLfloat *, v, + __void__glVertexAttrib4fv__unsigned_int__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib4ubv, IN, unsigned int, index, IN, const GLubyte *, v, + __void__glVertexAttrib4ubv__unsigned_int__C5_GLubyte_P1, + "", + ""); + I_Method2(void, glVertexAttrib4Nubv, IN, unsigned int, index, IN, const GLubyte *, v, + __void__glVertexAttrib4Nubv__unsigned_int__C5_GLubyte_P1, + "", + ""); + I_Method2(void, glGenBuffers, IN, GLsizei, n, IN, GLuint *, buffers, + __void__glGenBuffers__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glBindBuffer, IN, GLenum, target, IN, GLuint, buffer, + __void__glBindBuffer__GLenum__GLuint, + "", + ""); + I_Method4(void, glBufferData, IN, GLenum, target, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, IN, GLenum, usage, + __void__glBufferData__GLenum__GLsizeiptrARB__C5_GLvoid_P1__GLenum, + "", + ""); + I_Method4(void, glBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, + __void__glBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__C5_GLvoid_P1, + "", + ""); + I_Method2(void, glDeleteBuffers, IN, GLsizei, n, IN, const GLuint *, buffers, + __void__glDeleteBuffers__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(GLboolean, glIsBuffer, IN, GLuint, buffer, + __GLboolean__glIsBuffer__GLuint, + "", + ""); + I_Method4(void, glGetBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, GLvoid *, data, + __void__glGetBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__GLvoid_P1, + "", + ""); + I_Method2(GLvoid *, glMapBuffer, IN, GLenum, target, IN, GLenum, access, + __GLvoid_P1__glMapBuffer__GLenum__GLenum, + "", + ""); + I_Method1(GLboolean, glUnmapBuffer, IN, GLenum, target, + __GLboolean__glUnmapBuffer__GLenum, + "", + ""); + I_Method3(void, glGetBufferParameteriv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params, + __void__glGetBufferParameteriv__GLenum__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetBufferPointerv, IN, GLenum, target, IN, GLenum, pname, IN, GLvoid **, params, + __void__glGetBufferPointerv__GLenum__GLenum__GLvoid_P1P1, + "", + ""); + I_Method2(void, glGenOcclusionQueries, IN, GLsizei, n, IN, GLuint *, ids, + __void__glGenOcclusionQueries__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glDeleteOcclusionQueries, IN, GLsizei, n, IN, const GLuint *, ids, + __void__glDeleteOcclusionQueries__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(GLboolean, glIsOcclusionQuery, IN, GLuint, id, + __GLboolean__glIsOcclusionQuery__GLuint, + "", + ""); + I_Method1(void, glBeginOcclusionQuery, IN, GLuint, id, + __void__glBeginOcclusionQuery__GLuint, + "", + ""); + I_Method0(void, glEndOcclusionQuery, + __void__glEndOcclusionQuery, + "", + ""); + I_Method3(void, glGetOcclusionQueryiv, IN, GLuint, id, IN, GLenum, pname, IN, GLint *, params, + __void__glGetOcclusionQueryiv__GLuint__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetOcclusionQueryuiv, IN, GLuint, id, IN, GLenum, pname, IN, GLuint *, params, + __void__glGetOcclusionQueryuiv__GLuint__GLenum__GLuint_P1, + "", + ""); + I_Method3(void, glGetQueryiv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params, + __void__glGetQueryiv__GLenum__GLenum__GLint_P1, + "", + ""); + I_Method2(void, glGenQueries, IN, GLsizei, n, IN, GLuint *, ids, + __void__glGenQueries__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glBeginQuery, IN, GLenum, target, IN, GLuint, id, + __void__glBeginQuery__GLenum__GLuint, + "", + ""); + I_Method1(void, glEndQuery, IN, GLenum, target, + __void__glEndQuery__GLenum, + "", + ""); + I_Method1(GLboolean, glIsQuery, IN, GLuint, id, + __GLboolean__glIsQuery__GLuint, + "", + ""); + I_Method2(void, glDeleteQueries, IN, GLsizei, n, IN, const GLuint *, ids, + __void__glDeleteQueries__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method3(void, glGetQueryObjectiv, IN, GLuint, id, IN, GLenum, pname, IN, GLint *, params, + __void__glGetQueryObjectiv__GLuint__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetQueryObjectuiv, IN, GLuint, id, IN, GLenum, pname, IN, GLuint *, params, + __void__glGetQueryObjectuiv__GLuint__GLenum__GLuint_P1, + "", + ""); + I_SimpleProperty(bool, ARBOcclusionQuerySupported, + 0, + __void__setARBOcclusionQuerySupported__bool); + I_SimpleProperty(bool, FogCoordSupported, + 0, + __void__setFogCoordSupported__bool); + I_SimpleProperty(bool, MultiTexSupported, + 0, + __void__setMultiTexSupported__bool); + I_SimpleProperty(bool, OcclusionQuerySupported, + 0, + __void__setOcclusionQuerySupported__bool); + I_SimpleProperty(bool, SecondaryColorSupported, + 0, + __void__setSecondaryColorSupported__bool); + I_SimpleProperty(bool, VertexProgramSupported, + 0, + __void__setVertexProgramSupported__bool); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Drawable::UpdateCallback) I_VirtualBaseType(osg::Object); - I_Constructor0(); - I_Constructor2(IN, const osg::Drawable::UpdateCallback &, x, IN, const osg::CopyOp &, x); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method2(void, update, IN, osg::NodeVisitor *, x, IN, osg::Drawable *, x); + I_Constructor0(____UpdateCallback, + "", + ""); + I_Constructor2(IN, const osg::Drawable::UpdateCallback &, x, IN, const osg::CopyOp &, x, + ____UpdateCallback__C5_UpdateCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method2(void, update, IN, osg::NodeVisitor *, x, IN, osg::Drawable *, x, + __void__update__osg_NodeVisitor_P1__osg_Drawable_P1, + "do customized update code. ", + ""); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< osg::Node * >); diff --git a/src/osgWrappers/osg/Fog.cpp b/src/osgWrappers/osg/Fog.cpp index 08059ff1a..744a613b4 100644 --- a/src/osgWrappers/osg/Fog.cpp +++ b/src/osgWrappers/osg/Fog.cpp @@ -38,35 +38,117 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Fog) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Fog &, fog, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(void, setMode, IN, osg::Fog::Mode, mode); - I_Method0(osg::Fog::Mode, getMode); - I_Method1(void, setDensity, IN, float, density); - I_Method0(float, getDensity); - I_Method1(void, setStart, IN, float, start); - I_Method0(float, getStart); - I_Method1(void, setEnd, IN, float, end); - I_Method0(float, getEnd); - I_Method1(void, setColor, IN, const osg::Vec4 &, color); - I_Method0(const osg::Vec4 &, getColor); - I_Method1(void, setFogCoordinateSource, IN, GLint, source); - I_Method0(GLint, getFogCoordinateSource); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(const osg::Vec4 &, Color); - I_Property(float, Density); - I_Property(float, End); - I_Property(GLint, FogCoordinateSource); - I_Property(osg::Fog::Mode, Mode); - I_Property(float, Start); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____Fog, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Fog &, fog, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Fog__C5_Fog_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setMode, IN, osg::Fog::Mode, mode, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::Fog::Mode, getMode, + __Mode__getMode, + "", + ""); + I_Method1(void, setDensity, IN, float, density, + __void__setDensity__float, + "", + ""); + I_Method0(float, getDensity, + __float__getDensity, + "", + ""); + I_Method1(void, setStart, IN, float, start, + __void__setStart__float, + "", + ""); + I_Method0(float, getStart, + __float__getStart, + "", + ""); + I_Method1(void, setEnd, IN, float, end, + __void__setEnd__float, + "", + ""); + I_Method0(float, getEnd, + __float__getEnd, + "", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + __void__setColor__C5_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getColor, + __C5_Vec4_R1__getColor, + "", + ""); + I_Method1(void, setFogCoordinateSource, IN, GLint, source, + __void__setFogCoordinateSource__GLint, + "", + ""); + I_Method0(GLint, getFogCoordinateSource, + __GLint__getFogCoordinateSource, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(const osg::Vec4 &, Color, + __C5_Vec4_R1__getColor, + __void__setColor__C5_Vec4_R1); + I_SimpleProperty(float, Density, + __float__getDensity, + __void__setDensity__float); + I_SimpleProperty(float, End, + __float__getEnd, + __void__setEnd__float); + I_SimpleProperty(GLint, FogCoordinateSource, + __GLint__getFogCoordinateSource, + __void__setFogCoordinateSource__GLint); + I_SimpleProperty(osg::Fog::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(float, Start, + __float__getStart, + __void__setStart__float); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/FragmentProgram.cpp b/src/osgWrappers/osg/FragmentProgram.cpp index bb3fe1ad6..b0eb38a31 100644 --- a/src/osgWrappers/osg/FragmentProgram.cpp +++ b/src/osgWrappers/osg/FragmentProgram.cpp @@ -32,57 +32,188 @@ TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::Matrix >, osg::FragmentProgram::Mat BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::FragmentProgram &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(GLuint &, getFragmentProgramID, IN, unsigned int, contextID); - I_Method1(void, setFragmentProgram, IN, const char *, program); - I_Method1(void, setFragmentProgram, IN, const std::string &, program); - I_Method0(const std::string &, getFragmentProgram); - I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p); - I_Method1(void, setLocalParameters, IN, const osg::FragmentProgram::LocalParamList &, lpl); - I_Method0(osg::FragmentProgram::LocalParamList &, getLocalParameters); - I_Method0(const osg::FragmentProgram::LocalParamList &, getLocalParameters); - I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix); - I_Method1(void, setMatrices, IN, const osg::FragmentProgram::MatrixList &, matrices); - I_Method0(osg::FragmentProgram::MatrixList &, getMatrices); - I_Method0(const osg::FragmentProgram::MatrixList &, getMatrices); - I_Method0(void, dirtyFragmentProgramObject); - I_Method1(void, apply, IN, osg::State &, state); - I_Method1(void, compileGLObjects, IN, osg::State &, state); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); - I_StaticMethod2(void, deleteFragmentProgramObject, IN, unsigned int, contextID, IN, GLuint, handle); - I_StaticMethod3(void, flushDeletedFragmentProgramObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime); - I_StaticMethod2(osg::FragmentProgram::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::FragmentProgram::Extensions *, extensions); - I_Property(const std::string &, FragmentProgram); - I_Property(const osg::FragmentProgram::LocalParamList &, LocalParameters); - I_Property(const osg::FragmentProgram::MatrixList &, Matrices); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____FragmentProgram, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::FragmentProgram &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____FragmentProgram__C5_FragmentProgram_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_osg_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(GLuint &, getFragmentProgramID, IN, unsigned int, contextID, + __GLuint_R1__getFragmentProgramID__unsigned_int, + "Get the handle to the fragment program id for the current context. ", + ""); + I_Method1(void, setFragmentProgram, IN, const char *, program, + __void__setFragmentProgram__C5_char_P1, + "Set the fragment program using a C style string. ", + ""); + I_Method1(void, setFragmentProgram, IN, const std::string &, program, + __void__setFragmentProgram__C5_std_string_R1, + "Set the fragment program using C++ style string. ", + ""); + I_Method0(const std::string &, getFragmentProgram, + __C5_std_string_R1__getFragmentProgram, + "Get the fragment program. ", + ""); + I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p, + __void__setProgramLocalParameter__C5_GLuint__C5_Vec4_R1, + "Set Program Parameters. ", + ""); + I_Method1(void, setLocalParameters, IN, const osg::FragmentProgram::LocalParamList &, lpl, + __void__setLocalParameters__C5_LocalParamList_R1, + "Set list of Program Parameters. ", + ""); + I_Method0(osg::FragmentProgram::LocalParamList &, getLocalParameters, + __LocalParamList_R1__getLocalParameters, + "Get list of Program Parameters. ", + ""); + I_Method0(const osg::FragmentProgram::LocalParamList &, getLocalParameters, + __C5_LocalParamList_R1__getLocalParameters, + "Get const list of Program Parameters. ", + ""); + I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix, + __void__setMatrix__C5_GLenum__C5_Matrix_R1, + "Matrix. ", + ""); + I_Method1(void, setMatrices, IN, const osg::FragmentProgram::MatrixList &, matrices, + __void__setMatrices__C5_MatrixList_R1, + "Set list of Matrices. ", + ""); + I_Method0(osg::FragmentProgram::MatrixList &, getMatrices, + __MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(const osg::FragmentProgram::MatrixList &, getMatrices, + __C5_MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(void, dirtyFragmentProgramObject, + __void__dirtyFragmentProgramObject, + "Force a recompile on next apply() of associated OpenGL vertex program objects. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + __void__compileGLObjects__State_R1, + "default to nothing to compile - all state is applied immediately. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + __void__releaseGLObjects__State_P1, + "release an OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics context if State object pointer == NULL. ", + ""); + I_StaticMethod2(void, deleteFragmentProgramObject, IN, unsigned int, contextID, IN, GLuint, handle, + __void__deleteFragmentProgramObject__unsigned_int__GLuint_S, + "use deleteFragmentProgramObject instead of glDeletePrograms to allow OpenGL Fragment Program objects to be cached until they can be deleted by the OpenGL context in which they were created, specified by contextID. ", + ""); + I_StaticMethod3(void, flushDeletedFragmentProgramObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedFragmentProgramObjects__unsigned_int__double__double_R1_S, + "flush all the cached fragment programs which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod2(osg::FragmentProgram::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Extension object for that context has not yet been created and the 'createIfNotInitalized' flag has been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID.. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::FragmentProgram::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions allows users to override the extensions across graphics contexts. ", + "typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(const std::string &, FragmentProgram, + __C5_std_string_R1__getFragmentProgram, + __void__setFragmentProgram__C5_std_string_R1); + I_SimpleProperty(const osg::FragmentProgram::LocalParamList &, LocalParameters, + __C5_LocalParamList_R1__getLocalParameters, + __void__setLocalParameters__C5_LocalParamList_R1); + I_SimpleProperty(const osg::FragmentProgram::MatrixList &, Matrices, + __C5_MatrixList_R1__getMatrices, + __void__setMatrices__C5_MatrixList_R1); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram::Extensions) I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID); - I_Constructor1(IN, const osg::FragmentProgram::Extensions &, rhs); - I_Method1(void, lowestCommonDenominator, IN, const osg::FragmentProgram::Extensions &, rhs); - I_Method1(void, setupGLExtenions, IN, unsigned int, contextID); - I_Method1(void, setFragmentProgramSupported, IN, bool, flag); - I_Method0(bool, isFragmentProgramSupported); - I_Method2(void, glBindProgram, IN, GLenum, target, IN, GLuint, id); - I_Method2(void, glGenPrograms, IN, GLsizei, n, IN, GLuint *, programs); - I_Method2(void, glDeletePrograms, IN, GLsizei, n, IN, GLuint *, programs); - I_Method4(void, glProgramString, IN, GLenum, target, IN, GLenum, format, IN, GLsizei, len, IN, const void *, string); - I_Method3(void, glProgramLocalParameter4fv, IN, GLenum, target, IN, GLuint, index, IN, const GLfloat *, params); - I_WriteOnlyProperty(bool, FragmentProgramSupported); - I_WriteOnlyProperty(unsigned int, upGLExtenions); + I_Constructor1(IN, unsigned int, contextID, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::FragmentProgram::Extensions &, rhs, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::FragmentProgram::Extensions &, rhs, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setFragmentProgramSupported, IN, bool, flag, + __void__setFragmentProgramSupported__bool, + "", + ""); + I_Method0(bool, isFragmentProgramSupported, + __bool__isFragmentProgramSupported, + "", + ""); + I_Method2(void, glBindProgram, IN, GLenum, target, IN, GLuint, id, + __void__glBindProgram__GLenum__GLuint, + "", + ""); + I_Method2(void, glGenPrograms, IN, GLsizei, n, IN, GLuint *, programs, + __void__glGenPrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glDeletePrograms, IN, GLsizei, n, IN, GLuint *, programs, + __void__glDeletePrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method4(void, glProgramString, IN, GLenum, target, IN, GLenum, format, IN, GLsizei, len, IN, const void *, string, + __void__glProgramString__GLenum__GLenum__GLsizei__C5_void_P1, + "", + ""); + I_Method3(void, glProgramLocalParameter4fv, IN, GLenum, target, IN, GLuint, index, IN, const GLfloat *, params, + __void__glProgramLocalParameter4fv__GLenum__GLuint__C5_GLfloat_P1, + "", + ""); + I_SimpleProperty(bool, FragmentProgramSupported, + 0, + __void__setFragmentProgramSupported__bool); END_REFLECTOR STD_MAP_REFLECTOR(std::map< GLenum COMMA osg::Matrix >); diff --git a/src/osgWrappers/osg/FrameBufferObject.cpp b/src/osgWrappers/osg/FrameBufferObject.cpp index 790dd0102..30c75c94f 100644 --- a/src/osgWrappers/osg/FrameBufferObject.cpp +++ b/src/osgWrappers/osg/FrameBufferObject.cpp @@ -58,8 +58,14 @@ TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglGenerateMipmapEXT); BEGIN_OBJECT_REFLECTOR(osg::FBOExtensions) I_BaseType(osg::Referenced); - I_Method0(bool, isSupported); - I_StaticMethod2(osg::FBOExtensions *, instance, IN, unsigned, contextID, IN, bool, createIfNotInitalized); + I_Method0(bool, isSupported, + __bool__isSupported, + "", + ""); + I_StaticMethod2(osg::FBOExtensions *, instance, IN, unsigned, contextID, IN, bool, createIfNotInitalized, + __FBOExtensions_P1__instance__unsigned__bool_S, + "", + ""); I_PublicMemberProperty(osg::FBOExtensions::TglBindRenderbufferEXT *, glBindRenderbufferEXT); I_PublicMemberProperty(osg::FBOExtensions::TglGenRenderbuffersEXT *, glGenRenderbuffersEXT); I_PublicMemberProperty(osg::FBOExtensions::TglDeleteRenderbuffersEXT *, glDeleteRenderbuffersEXT); @@ -76,69 +82,220 @@ BEGIN_OBJECT_REFLECTOR(osg::FBOExtensions) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::FrameBufferAttachment) - I_Constructor0(); - I_Constructor1(IN, const osg::FrameBufferAttachment &, copy); - I_Constructor1(IN, osg::RenderBuffer *, target); - I_ConstructorWithDefaults2(IN, osg::Texture1D *, target, , IN, int, level, 0); - I_ConstructorWithDefaults2(IN, osg::Texture2D *, target, , IN, int, level, 0); - I_ConstructorWithDefaults3(IN, osg::Texture3D *, target, , IN, int, zoffset, , IN, int, level, 0); - I_ConstructorWithDefaults3(IN, osg::TextureCubeMap *, target, , IN, int, face, , IN, int, level, 0); - I_Constructor1(IN, osg::TextureRectangle *, target); - I_Constructor1(IN, osg::CameraNode::Attachment &, attachment); - I_Method2(void, createRequiredTexturesAndApplyGenerateMipMap, IN, osg::State &, state, IN, const osg::FBOExtensions *, ext); - I_Method3(void, attach, IN, osg::State &, state, IN, GLenum, attachment_point, IN, const osg::FBOExtensions *, ext); - I_Method1(int, compare, IN, const osg::FrameBufferAttachment &, fa); + I_Constructor0(____FrameBufferAttachment, + "", + ""); + I_Constructor1(IN, const osg::FrameBufferAttachment &, copy, + ____FrameBufferAttachment__C5_FrameBufferAttachment_R1, + "", + ""); + I_Constructor1(IN, osg::RenderBuffer *, target, + ____FrameBufferAttachment__RenderBuffer_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, osg::Texture1D *, target, , IN, int, level, 0, + ____FrameBufferAttachment__Texture1D_P1__int, + "", + ""); + I_ConstructorWithDefaults2(IN, osg::Texture2D *, target, , IN, int, level, 0, + ____FrameBufferAttachment__Texture2D_P1__int, + "", + ""); + I_ConstructorWithDefaults3(IN, osg::Texture3D *, target, , IN, int, zoffset, , IN, int, level, 0, + ____FrameBufferAttachment__Texture3D_P1__int__int, + "", + ""); + I_ConstructorWithDefaults3(IN, osg::TextureCubeMap *, target, , IN, int, face, , IN, int, level, 0, + ____FrameBufferAttachment__TextureCubeMap_P1__int__int, + "", + ""); + I_Constructor1(IN, osg::TextureRectangle *, target, + ____FrameBufferAttachment__TextureRectangle_P1, + "", + ""); + I_Constructor1(IN, osg::CameraNode::Attachment &, attachment, + ____FrameBufferAttachment__CameraNode_Attachment_R1, + "", + ""); + I_Method2(void, createRequiredTexturesAndApplyGenerateMipMap, IN, osg::State &, state, IN, const osg::FBOExtensions *, ext, + __void__createRequiredTexturesAndApplyGenerateMipMap__State_R1__C5_FBOExtensions_P1, + "", + ""); + I_Method3(void, attach, IN, osg::State &, state, IN, GLenum, attachment_point, IN, const osg::FBOExtensions *, ext, + __void__attach__State_R1__GLenum__C5_FBOExtensions_P1, + "", + ""); + I_Method1(int, compare, IN, const osg::FrameBufferAttachment &, fa, + __int__compare__C5_FrameBufferAttachment_R1, + "", + ""); END_REFLECTOR TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::FrameBufferAttachment >, osg::FrameBufferObject::AttachmentMap); BEGIN_OBJECT_REFLECTOR(osg::FrameBufferObject) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::FrameBufferObject &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method0(const osg::FrameBufferObject::AttachmentMap &, getAttachmentMap); - I_Method1(bool, hasAttachment, IN, GLenum, attachment_point); - I_Method1(const osg::FrameBufferAttachment &, getAttachment, IN, GLenum, attachment_point); - I_Method2(void, setAttachment, IN, GLenum, attachment_point, IN, const osg::FrameBufferAttachment &, attachment); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(void, apply, IN, osg::State &, state); - I_StaticMethod2(void, deleteFrameBufferObject, IN, unsigned int, contextID, IN, GLuint, program); - I_StaticMethod3(void, flushDeletedFrameBufferObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime); - I_IndexedProperty1(const osg::FrameBufferAttachment &, Attachment, GLenum, attachment_point); - I_ReadOnlyProperty(const osg::FrameBufferObject::AttachmentMap &, AttachmentMap); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____FrameBufferObject, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::FrameBufferObject &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____FrameBufferObject__C5_FrameBufferObject_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method0(const osg::FrameBufferObject::AttachmentMap &, getAttachmentMap, + __C5_AttachmentMap_R1__getAttachmentMap, + "", + ""); + I_Method1(bool, hasAttachment, IN, GLenum, attachment_point, + __bool__hasAttachment__GLenum, + "", + ""); + I_Method1(const osg::FrameBufferAttachment &, getAttachment, IN, GLenum, attachment_point, + __C5_FrameBufferAttachment_R1__getAttachment__GLenum, + "", + ""); + I_Method2(void, setAttachment, IN, GLenum, attachment_point, IN, const osg::FrameBufferAttachment &, attachment, + __void__setAttachment__GLenum__C5_FrameBufferAttachment_R1, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_StaticMethod2(void, deleteFrameBufferObject, IN, unsigned int, contextID, IN, GLuint, program, + __void__deleteFrameBufferObject__unsigned_int__GLuint_S, + "Mark internal FBO for deletion. ", + "Deletion requests are queued until they can be executed in the proper GL context. "); + I_StaticMethod3(void, flushDeletedFrameBufferObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedFrameBufferObjects__unsigned_int__double__double_R1_S, + "flush all the cached FBOs which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_IndexedProperty(const osg::FrameBufferAttachment &, Attachment, + __C5_FrameBufferAttachment_R1__getAttachment__GLenum, + __void__setAttachment__GLenum__C5_FrameBufferAttachment_R1, + 0); + I_SimpleProperty(const osg::FrameBufferObject::AttachmentMap &, AttachmentMap, + __C5_AttachmentMap_R1__getAttachmentMap, + 0); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::RenderBuffer) I_BaseType(osg::Object); - I_Constructor0(); - I_Constructor3(IN, int, width, IN, int, height, IN, GLenum, internalFormat); - I_ConstructorWithDefaults2(IN, const osg::RenderBuffer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(int, getWidth); - I_Method0(int, getHeight); - I_Method1(void, setWidth, IN, int, w); - I_Method1(void, setHeight, IN, int, h); - I_Method2(void, setSize, IN, int, w, IN, int, h); - I_Method0(GLenum, getInternalFormat); - I_Method1(void, setInternalFormat, IN, GLenum, format); - I_Method2(GLuint, getObjectID, IN, unsigned int, contextID, IN, const osg::FBOExtensions *, ext); - I_Method1(int, compare, IN, const osg::RenderBuffer &, rb); - I_StaticMethod2(void, deleteRenderBuffer, IN, unsigned int, contextID, IN, GLuint, rb); - I_StaticMethod3(void, flushDeletedRenderBuffers, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime); - I_Property(int, Height); - I_Property(GLenum, InternalFormat); - I_Property(int, Width); + I_Constructor0(____RenderBuffer, + "", + ""); + I_Constructor3(IN, int, width, IN, int, height, IN, GLenum, internalFormat, + ____RenderBuffer__int__int__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::RenderBuffer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RenderBuffer__C5_RenderBuffer_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(int, getWidth, + __int__getWidth, + "", + ""); + I_Method0(int, getHeight, + __int__getHeight, + "", + ""); + I_Method1(void, setWidth, IN, int, w, + __void__setWidth__int, + "", + ""); + I_Method1(void, setHeight, IN, int, h, + __void__setHeight__int, + "", + ""); + I_Method2(void, setSize, IN, int, w, IN, int, h, + __void__setSize__int__int, + "", + ""); + I_Method0(GLenum, getInternalFormat, + __GLenum__getInternalFormat, + "", + ""); + I_Method1(void, setInternalFormat, IN, GLenum, format, + __void__setInternalFormat__GLenum, + "", + ""); + I_Method2(GLuint, getObjectID, IN, unsigned int, contextID, IN, const osg::FBOExtensions *, ext, + __GLuint__getObjectID__unsigned_int__C5_FBOExtensions_P1, + "", + ""); + I_Method1(int, compare, IN, const osg::RenderBuffer &, rb, + __int__compare__C5_RenderBuffer_R1, + "", + ""); + I_StaticMethod2(void, deleteRenderBuffer, IN, unsigned int, contextID, IN, GLuint, rb, + __void__deleteRenderBuffer__unsigned_int__GLuint_S, + "Mark internal RenderBuffer for deletion. ", + "Deletion requests are queued until they can be executed in the proper GL context. "); + I_StaticMethod3(void, flushDeletedRenderBuffers, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedRenderBuffers__unsigned_int__double__double_R1_S, + "flush all the cached RenderBuffers which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_SimpleProperty(int, Height, + __int__getHeight, + __void__setHeight__int); + I_SimpleProperty(GLenum, InternalFormat, + __GLenum__getInternalFormat, + __void__setInternalFormat__GLenum); + I_SimpleProperty(int, Width, + __int__getWidth, + __void__setWidth__int); END_REFLECTOR STD_MAP_REFLECTOR(std::map< GLenum COMMA osg::FrameBufferAttachment >); diff --git a/src/osgWrappers/osg/FrameStamp.cpp b/src/osgWrappers/osg/FrameStamp.cpp index ff9bf741d..2c2d8046f 100644 --- a/src/osgWrappers/osg/FrameStamp.cpp +++ b/src/osgWrappers/osg/FrameStamp.cpp @@ -22,16 +22,45 @@ BEGIN_OBJECT_REFLECTOR(osg::FrameStamp) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Constructor1(IN, const osg::FrameStamp &, fs); - I_Method1(void, setFrameNumber, IN, int, fnum); - I_Method0(int, getFrameNumber); - I_Method1(void, setReferenceTime, IN, double, refTime); - I_Method0(double, getReferenceTime); - I_Method1(void, setCalendarTime, IN, const tm &, calendarTime); - I_Method1(void, getCalendarTime, IN, tm &, calendarTime); - I_WriteOnlyProperty(const tm &, CalendarTime); - I_Property(int, FrameNumber); - I_Property(double, ReferenceTime); + I_Constructor0(____FrameStamp, + "", + ""); + I_Constructor1(IN, const osg::FrameStamp &, fs, + ____FrameStamp__C5_FrameStamp_R1, + "", + ""); + I_Method1(void, setFrameNumber, IN, int, fnum, + __void__setFrameNumber__int, + "", + ""); + I_Method0(int, getFrameNumber, + __int__getFrameNumber, + "", + ""); + I_Method1(void, setReferenceTime, IN, double, refTime, + __void__setReferenceTime__double, + "", + ""); + I_Method0(double, getReferenceTime, + __double__getReferenceTime, + "", + ""); + I_Method1(void, setCalendarTime, IN, const tm &, calendarTime, + __void__setCalendarTime__C5_tm_R1, + "", + ""); + I_Method1(void, getCalendarTime, IN, tm &, calendarTime, + __void__getCalendarTime__tm_R1, + "", + ""); + I_SimpleProperty(const tm &, CalendarTime, + 0, + __void__setCalendarTime__C5_tm_R1); + I_SimpleProperty(int, FrameNumber, + __int__getFrameNumber, + __void__setFrameNumber__int); + I_SimpleProperty(double, ReferenceTime, + __double__getReferenceTime, + __void__setReferenceTime__double); END_REFLECTOR diff --git a/src/osgWrappers/osg/FrontFace.cpp b/src/osgWrappers/osg/FrontFace.cpp index cf0326b56..7e153924c 100644 --- a/src/osgWrappers/osg/FrontFace.cpp +++ b/src/osgWrappers/osg/FrontFace.cpp @@ -31,19 +31,59 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::FrontFace) I_BaseType(osg::StateAttribute); - I_ConstructorWithDefaults1(IN, osg::FrontFace::Mode, face, osg::FrontFace::COUNTER_CLOCKWISE); - I_ConstructorWithDefaults2(IN, const osg::FrontFace &, ff, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(void, setMode, IN, osg::FrontFace::Mode, mode); - I_Method0(osg::FrontFace::Mode, getMode); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(osg::FrontFace::Mode, Mode); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_ConstructorWithDefaults1(IN, osg::FrontFace::Mode, face, osg::FrontFace::COUNTER_CLOCKWISE, + ____FrontFace__Mode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::FrontFace &, ff, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____FrontFace__C5_FrontFace_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setMode, IN, osg::FrontFace::Mode, mode, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::FrontFace::Mode, getMode, + __Mode__getMode, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(osg::FrontFace::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/GL2Extensions.cpp b/src/osgWrappers/osg/GL2Extensions.cpp index 5d2349acf..4f450188a 100644 --- a/src/osgWrappers/osg/GL2Extensions.cpp +++ b/src/osgWrappers/osg/GL2Extensions.cpp @@ -22,127 +22,482 @@ BEGIN_OBJECT_REFLECTOR(osg::GL2Extensions) I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID); - I_Constructor1(IN, const osg::GL2Extensions &, rhs); - I_Method1(void, lowestCommonDenominator, IN, const osg::GL2Extensions &, rhs); - I_Method1(void, setupGL2Extensions, IN, unsigned int, contextID); - I_Method0(bool, isGlslSupported); - I_Method0(float, getGlVersion); - I_Method0(float, getLanguageVersion); - I_Method1(void, setShaderObjectsSupported, IN, bool, flag); - I_Method0(bool, isShaderObjectsSupported); - I_Method1(void, setVertexShaderSupported, IN, bool, flag); - I_Method0(bool, isVertexShaderSupported); - I_Method1(void, setFragmentShaderSupported, IN, bool, flag); - I_Method0(bool, isFragmentShaderSupported); - I_Method1(void, setLanguage100Supported, IN, bool, flag); - I_Method0(bool, isLanguage100Supported); - I_Method2(void, glBlendEquationSeparate, IN, GLenum, modeRGB, IN, GLenum, modeAlpha); - I_Method2(void, glDrawBuffers, IN, GLsizei, n, IN, const GLenum *, bufs); - I_Method4(void, glStencilOpSeparate, IN, GLenum, face, IN, GLenum, sfail, IN, GLenum, dpfail, IN, GLenum, dppass); - I_Method4(void, glStencilFuncSeparate, IN, GLenum, frontfunc, IN, GLenum, backfunc, IN, GLint, ref, IN, GLuint, mask); - I_Method2(void, glStencilMaskSeparate, IN, GLenum, face, IN, GLuint, mask); - I_Method2(void, glAttachShader, IN, GLuint, program, IN, GLuint, shader); - I_Method3(void, glBindAttribLocation, IN, GLuint, program, IN, GLuint, index, IN, const GLchar *, name); - I_Method1(void, glCompileShader, IN, GLuint, shader); - I_Method0(GLuint, glCreateProgram); - I_Method1(GLuint, glCreateShader, IN, GLenum, type); - I_Method1(void, glDeleteProgram, IN, GLuint, program); - I_Method1(void, glDeleteShader, IN, GLuint, shader); - I_Method2(void, glDetachShader, IN, GLuint, program, IN, GLuint, shader); - I_Method1(void, glDisableVertexAttribArray, IN, GLuint, index); - I_Method1(void, glEnableVertexAttribArray, IN, GLuint, index); - I_Method7(void, glGetActiveAttrib, IN, GLuint, program, IN, GLuint, index, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLint *, size, IN, GLenum *, type, IN, GLchar *, name); - I_Method7(void, glGetActiveUniform, IN, GLuint, program, IN, GLuint, index, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLint *, size, IN, GLenum *, type, IN, GLchar *, name); - I_Method4(void, glGetAttachedShaders, IN, GLuint, program, IN, GLsizei, maxCount, IN, GLsizei *, count, IN, GLuint *, obj); - I_Method2(GLint, glGetAttribLocation, IN, GLuint, program, IN, const GLchar *, name); - I_Method3(void, glGetProgramiv, IN, GLuint, program, IN, GLenum, pname, IN, GLint *, params); - I_Method4(void, glGetProgramInfoLog, IN, GLuint, program, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLchar *, infoLog); - I_Method3(void, glGetShaderiv, IN, GLuint, shader, IN, GLenum, pname, IN, GLint *, params); - I_Method4(void, glGetShaderInfoLog, IN, GLuint, shader, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLchar *, infoLog); - I_Method4(void, glGetShaderSource, IN, GLuint, shader, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLchar *, source); - I_Method2(GLint, glGetUniformLocation, IN, GLuint, program, IN, const GLchar *, name); - I_Method3(void, glGetUniformfv, IN, GLuint, program, IN, GLint, location, IN, GLfloat *, params); - I_Method3(void, glGetUniformiv, IN, GLuint, program, IN, GLint, location, IN, GLint *, params); - I_Method3(void, glGetVertexAttribdv, IN, GLuint, index, IN, GLenum, pname, IN, GLdouble *, params); - I_Method3(void, glGetVertexAttribfv, IN, GLuint, index, IN, GLenum, pname, IN, GLfloat *, params); - I_Method3(void, glGetVertexAttribiv, IN, GLuint, index, IN, GLenum, pname, IN, GLint *, params); - I_Method3(void, glGetVertexAttribPointerv, IN, GLuint, index, IN, GLenum, pname, IN, GLvoid **, pointer); - I_Method1(GLboolean, glIsProgram, IN, GLuint, program); - I_Method1(GLboolean, glIsShader, IN, GLuint, shader); - I_Method1(void, glLinkProgram, IN, GLuint, program); - I_Method4(void, glShaderSource, IN, GLuint, shader, IN, GLsizei, count, IN, const GLchar **, string, IN, const GLint *, length); - I_Method1(void, glUseProgram, IN, GLuint, program); - I_Method2(void, glUniform1f, IN, GLint, location, IN, GLfloat, v0); - I_Method3(void, glUniform2f, IN, GLint, location, IN, GLfloat, v0, IN, GLfloat, v1); - I_Method4(void, glUniform3f, IN, GLint, location, IN, GLfloat, v0, IN, GLfloat, v1, IN, GLfloat, v2); - I_Method5(void, glUniform4f, IN, GLint, location, IN, GLfloat, v0, IN, GLfloat, v1, IN, GLfloat, v2, IN, GLfloat, v3); - I_Method2(void, glUniform1i, IN, GLint, location, IN, GLint, v0); - I_Method3(void, glUniform2i, IN, GLint, location, IN, GLint, v0, IN, GLint, v1); - I_Method4(void, glUniform3i, IN, GLint, location, IN, GLint, v0, IN, GLint, v1, IN, GLint, v2); - I_Method5(void, glUniform4i, IN, GLint, location, IN, GLint, v0, IN, GLint, v1, IN, GLint, v2, IN, GLint, v3); - I_Method3(void, glUniform1fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value); - I_Method3(void, glUniform2fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value); - I_Method3(void, glUniform3fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value); - I_Method3(void, glUniform4fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value); - I_Method3(void, glUniform1iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value); - I_Method3(void, glUniform2iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value); - I_Method3(void, glUniform3iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value); - I_Method3(void, glUniform4iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value); - I_Method4(void, glUniformMatrix2fv, IN, GLint, location, IN, GLsizei, count, IN, GLboolean, transpose, IN, const GLfloat *, value); - I_Method4(void, glUniformMatrix3fv, IN, GLint, location, IN, GLsizei, count, IN, GLboolean, transpose, IN, const GLfloat *, value); - I_Method4(void, glUniformMatrix4fv, IN, GLint, location, IN, GLsizei, count, IN, GLboolean, transpose, IN, const GLfloat *, value); - I_Method1(void, glValidateProgram, IN, GLuint, program); - I_Method2(void, glVertexAttrib1d, IN, GLuint, index, IN, GLdouble, x); - I_Method2(void, glVertexAttrib1dv, IN, GLuint, index, IN, const GLdouble *, v); - I_Method2(void, glVertexAttrib1f, IN, GLuint, index, IN, GLfloat, x); - I_Method2(void, glVertexAttrib1fv, IN, GLuint, index, IN, const GLfloat *, v); - I_Method2(void, glVertexAttrib1s, IN, GLuint, index, IN, GLshort, x); - I_Method2(void, glVertexAttrib1sv, IN, GLuint, index, IN, const GLshort *, v); - I_Method3(void, glVertexAttrib2d, IN, GLuint, index, IN, GLdouble, x, IN, GLdouble, y); - I_Method2(void, glVertexAttrib2dv, IN, GLuint, index, IN, const GLdouble *, v); - I_Method3(void, glVertexAttrib2f, IN, GLuint, index, IN, GLfloat, x, IN, GLfloat, y); - I_Method2(void, glVertexAttrib2fv, IN, GLuint, index, IN, const GLfloat *, v); - I_Method3(void, glVertexAttrib2s, IN, GLuint, index, IN, GLshort, x, IN, GLshort, y); - I_Method2(void, glVertexAttrib2sv, IN, GLuint, index, IN, const GLshort *, v); - I_Method4(void, glVertexAttrib3d, IN, GLuint, index, IN, GLdouble, x, IN, GLdouble, y, IN, GLdouble, z); - I_Method2(void, glVertexAttrib3dv, IN, GLuint, index, IN, const GLdouble *, v); - I_Method4(void, glVertexAttrib3f, IN, GLuint, index, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z); - I_Method2(void, glVertexAttrib3fv, IN, GLuint, index, IN, const GLfloat *, v); - I_Method4(void, glVertexAttrib3s, IN, GLuint, index, IN, GLshort, x, IN, GLshort, y, IN, GLshort, z); - I_Method2(void, glVertexAttrib3sv, IN, GLuint, index, IN, const GLshort *, v); - I_Method2(void, glVertexAttrib4Nbv, IN, GLuint, index, IN, const GLbyte *, v); - I_Method2(void, glVertexAttrib4Niv, IN, GLuint, index, IN, const GLint *, v); - I_Method2(void, glVertexAttrib4Nsv, IN, GLuint, index, IN, const GLshort *, v); - I_Method5(void, glVertexAttrib4Nub, IN, GLuint, index, IN, GLubyte, x, IN, GLubyte, y, IN, GLubyte, z, IN, GLubyte, w); - I_Method2(void, glVertexAttrib4Nubv, IN, GLuint, index, IN, const GLubyte *, v); - I_Method2(void, glVertexAttrib4Nuiv, IN, GLuint, index, IN, const GLuint *, v); - I_Method2(void, glVertexAttrib4Nusv, IN, GLuint, index, IN, const GLushort *, v); - I_Method2(void, glVertexAttrib4bv, IN, GLuint, index, IN, const GLbyte *, v); - I_Method5(void, glVertexAttrib4d, IN, GLuint, index, IN, GLdouble, x, IN, GLdouble, y, IN, GLdouble, z, IN, GLdouble, w); - I_Method2(void, glVertexAttrib4dv, IN, GLuint, index, IN, const GLdouble *, v); - I_Method5(void, glVertexAttrib4f, IN, GLuint, index, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, IN, GLfloat, w); - I_Method2(void, glVertexAttrib4fv, IN, GLuint, index, IN, const GLfloat *, v); - I_Method2(void, glVertexAttrib4iv, IN, GLuint, index, IN, const GLint *, v); - I_Method5(void, glVertexAttrib4s, IN, GLuint, index, IN, GLshort, x, IN, GLshort, y, IN, GLshort, z, IN, GLshort, w); - I_Method2(void, glVertexAttrib4sv, IN, GLuint, index, IN, const GLshort *, v); - I_Method2(void, glVertexAttrib4ubv, IN, GLuint, index, IN, const GLubyte *, v); - I_Method2(void, glVertexAttrib4uiv, IN, GLuint, index, IN, const GLuint *, v); - I_Method2(void, glVertexAttrib4usv, IN, GLuint, index, IN, const GLushort *, v); - I_Method6(void, glVertexAttribPointer, IN, GLuint, index, IN, GLint, size, IN, GLenum, type, IN, GLboolean, normalized, IN, GLsizei, stride, IN, const GLvoid *, pointer); - I_Method0(GLuint, getCurrentProgram); - I_Method2(bool, getProgramInfoLog, IN, GLuint, program, IN, std::string &, result); - I_Method2(bool, getShaderInfoLog, IN, GLuint, shader, IN, std::string &, result); - I_Method2(bool, getAttribLocation, IN, const char *, attribName, IN, GLuint &, slot); - I_StaticMethod2(osg::GL2Extensions *, Get, IN, unsigned int, contextID, IN, bool, createIfNotInitalized); - I_StaticMethod2(void, Set, IN, unsigned int, contextID, IN, osg::GL2Extensions *, extensions); - I_ReadOnlyProperty(GLuint, CurrentProgram); - I_WriteOnlyProperty(bool, FragmentShaderSupported); - I_ReadOnlyProperty(float, GlVersion); - I_WriteOnlyProperty(bool, Language100Supported); - I_ReadOnlyProperty(float, LanguageVersion); - I_WriteOnlyProperty(bool, ShaderObjectsSupported); - I_WriteOnlyProperty(bool, VertexShaderSupported); - I_WriteOnlyProperty(unsigned int, upGL2Extensions); + I_Constructor1(IN, unsigned int, contextID, + ____GL2Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::GL2Extensions &, rhs, + ____GL2Extensions__C5_GL2Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::GL2Extensions &, rhs, + __void__lowestCommonDenominator__C5_GL2Extensions_R1, + "", + ""); + I_Method1(void, setupGL2Extensions, IN, unsigned int, contextID, + __void__setupGL2Extensions__unsigned_int, + "", + ""); + I_Method0(bool, isGlslSupported, + __bool__isGlslSupported, + "Does the GL driver support OpenGL Shading Language? ", + ""); + I_Method0(float, getGlVersion, + __float__getGlVersion, + "", + ""); + I_Method0(float, getLanguageVersion, + __float__getLanguageVersion, + "", + ""); + I_Method1(void, setShaderObjectsSupported, IN, bool, flag, + __void__setShaderObjectsSupported__bool, + "", + ""); + I_Method0(bool, isShaderObjectsSupported, + __bool__isShaderObjectsSupported, + "", + ""); + I_Method1(void, setVertexShaderSupported, IN, bool, flag, + __void__setVertexShaderSupported__bool, + "", + ""); + I_Method0(bool, isVertexShaderSupported, + __bool__isVertexShaderSupported, + "", + ""); + I_Method1(void, setFragmentShaderSupported, IN, bool, flag, + __void__setFragmentShaderSupported__bool, + "", + ""); + I_Method0(bool, isFragmentShaderSupported, + __bool__isFragmentShaderSupported, + "", + ""); + I_Method1(void, setLanguage100Supported, IN, bool, flag, + __void__setLanguage100Supported__bool, + "", + ""); + I_Method0(bool, isLanguage100Supported, + __bool__isLanguage100Supported, + "", + ""); + I_Method2(void, glBlendEquationSeparate, IN, GLenum, modeRGB, IN, GLenum, modeAlpha, + __void__glBlendEquationSeparate__GLenum__GLenum, + "", + ""); + I_Method2(void, glDrawBuffers, IN, GLsizei, n, IN, const GLenum *, bufs, + __void__glDrawBuffers__GLsizei__C5_GLenum_P1, + "", + ""); + I_Method4(void, glStencilOpSeparate, IN, GLenum, face, IN, GLenum, sfail, IN, GLenum, dpfail, IN, GLenum, dppass, + __void__glStencilOpSeparate__GLenum__GLenum__GLenum__GLenum, + "", + ""); + I_Method4(void, glStencilFuncSeparate, IN, GLenum, frontfunc, IN, GLenum, backfunc, IN, GLint, ref, IN, GLuint, mask, + __void__glStencilFuncSeparate__GLenum__GLenum__GLint__GLuint, + "", + ""); + I_Method2(void, glStencilMaskSeparate, IN, GLenum, face, IN, GLuint, mask, + __void__glStencilMaskSeparate__GLenum__GLuint, + "", + ""); + I_Method2(void, glAttachShader, IN, GLuint, program, IN, GLuint, shader, + __void__glAttachShader__GLuint__GLuint, + "", + ""); + I_Method3(void, glBindAttribLocation, IN, GLuint, program, IN, GLuint, index, IN, const GLchar *, name, + __void__glBindAttribLocation__GLuint__GLuint__C5_GLchar_P1, + "", + ""); + I_Method1(void, glCompileShader, IN, GLuint, shader, + __void__glCompileShader__GLuint, + "", + ""); + I_Method0(GLuint, glCreateProgram, + __GLuint__glCreateProgram, + "", + ""); + I_Method1(GLuint, glCreateShader, IN, GLenum, type, + __GLuint__glCreateShader__GLenum, + "", + ""); + I_Method1(void, glDeleteProgram, IN, GLuint, program, + __void__glDeleteProgram__GLuint, + "", + ""); + I_Method1(void, glDeleteShader, IN, GLuint, shader, + __void__glDeleteShader__GLuint, + "", + ""); + I_Method2(void, glDetachShader, IN, GLuint, program, IN, GLuint, shader, + __void__glDetachShader__GLuint__GLuint, + "", + ""); + I_Method1(void, glDisableVertexAttribArray, IN, GLuint, index, + __void__glDisableVertexAttribArray__GLuint, + "", + ""); + I_Method1(void, glEnableVertexAttribArray, IN, GLuint, index, + __void__glEnableVertexAttribArray__GLuint, + "", + ""); + I_Method7(void, glGetActiveAttrib, IN, GLuint, program, IN, GLuint, index, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLint *, size, IN, GLenum *, type, IN, GLchar *, name, + __void__glGetActiveAttrib__GLuint__GLuint__GLsizei__GLsizei_P1__GLint_P1__GLenum_P1__GLchar_P1, + "", + ""); + I_Method7(void, glGetActiveUniform, IN, GLuint, program, IN, GLuint, index, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLint *, size, IN, GLenum *, type, IN, GLchar *, name, + __void__glGetActiveUniform__GLuint__GLuint__GLsizei__GLsizei_P1__GLint_P1__GLenum_P1__GLchar_P1, + "", + ""); + I_Method4(void, glGetAttachedShaders, IN, GLuint, program, IN, GLsizei, maxCount, IN, GLsizei *, count, IN, GLuint *, obj, + __void__glGetAttachedShaders__GLuint__GLsizei__GLsizei_P1__GLuint_P1, + "", + ""); + I_Method2(GLint, glGetAttribLocation, IN, GLuint, program, IN, const GLchar *, name, + __GLint__glGetAttribLocation__GLuint__C5_GLchar_P1, + "", + ""); + I_Method3(void, glGetProgramiv, IN, GLuint, program, IN, GLenum, pname, IN, GLint *, params, + __void__glGetProgramiv__GLuint__GLenum__GLint_P1, + "", + ""); + I_Method4(void, glGetProgramInfoLog, IN, GLuint, program, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLchar *, infoLog, + __void__glGetProgramInfoLog__GLuint__GLsizei__GLsizei_P1__GLchar_P1, + "", + ""); + I_Method3(void, glGetShaderiv, IN, GLuint, shader, IN, GLenum, pname, IN, GLint *, params, + __void__glGetShaderiv__GLuint__GLenum__GLint_P1, + "", + ""); + I_Method4(void, glGetShaderInfoLog, IN, GLuint, shader, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLchar *, infoLog, + __void__glGetShaderInfoLog__GLuint__GLsizei__GLsizei_P1__GLchar_P1, + "", + ""); + I_Method4(void, glGetShaderSource, IN, GLuint, shader, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLchar *, source, + __void__glGetShaderSource__GLuint__GLsizei__GLsizei_P1__GLchar_P1, + "", + ""); + I_Method2(GLint, glGetUniformLocation, IN, GLuint, program, IN, const GLchar *, name, + __GLint__glGetUniformLocation__GLuint__C5_GLchar_P1, + "", + ""); + I_Method3(void, glGetUniformfv, IN, GLuint, program, IN, GLint, location, IN, GLfloat *, params, + __void__glGetUniformfv__GLuint__GLint__GLfloat_P1, + "", + ""); + I_Method3(void, glGetUniformiv, IN, GLuint, program, IN, GLint, location, IN, GLint *, params, + __void__glGetUniformiv__GLuint__GLint__GLint_P1, + "", + ""); + I_Method3(void, glGetVertexAttribdv, IN, GLuint, index, IN, GLenum, pname, IN, GLdouble *, params, + __void__glGetVertexAttribdv__GLuint__GLenum__GLdouble_P1, + "", + ""); + I_Method3(void, glGetVertexAttribfv, IN, GLuint, index, IN, GLenum, pname, IN, GLfloat *, params, + __void__glGetVertexAttribfv__GLuint__GLenum__GLfloat_P1, + "", + ""); + I_Method3(void, glGetVertexAttribiv, IN, GLuint, index, IN, GLenum, pname, IN, GLint *, params, + __void__glGetVertexAttribiv__GLuint__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetVertexAttribPointerv, IN, GLuint, index, IN, GLenum, pname, IN, GLvoid **, pointer, + __void__glGetVertexAttribPointerv__GLuint__GLenum__GLvoid_P1P1, + "", + ""); + I_Method1(GLboolean, glIsProgram, IN, GLuint, program, + __GLboolean__glIsProgram__GLuint, + "", + ""); + I_Method1(GLboolean, glIsShader, IN, GLuint, shader, + __GLboolean__glIsShader__GLuint, + "", + ""); + I_Method1(void, glLinkProgram, IN, GLuint, program, + __void__glLinkProgram__GLuint, + "", + ""); + I_Method4(void, glShaderSource, IN, GLuint, shader, IN, GLsizei, count, IN, const GLchar **, string, IN, const GLint *, length, + __void__glShaderSource__GLuint__GLsizei__C5_GLchar_P1P1__C5_GLint_P1, + "", + ""); + I_Method1(void, glUseProgram, IN, GLuint, program, + __void__glUseProgram__GLuint, + "", + ""); + I_Method2(void, glUniform1f, IN, GLint, location, IN, GLfloat, v0, + __void__glUniform1f__GLint__GLfloat, + "", + ""); + I_Method3(void, glUniform2f, IN, GLint, location, IN, GLfloat, v0, IN, GLfloat, v1, + __void__glUniform2f__GLint__GLfloat__GLfloat, + "", + ""); + I_Method4(void, glUniform3f, IN, GLint, location, IN, GLfloat, v0, IN, GLfloat, v1, IN, GLfloat, v2, + __void__glUniform3f__GLint__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method5(void, glUniform4f, IN, GLint, location, IN, GLfloat, v0, IN, GLfloat, v1, IN, GLfloat, v2, IN, GLfloat, v3, + __void__glUniform4f__GLint__GLfloat__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method2(void, glUniform1i, IN, GLint, location, IN, GLint, v0, + __void__glUniform1i__GLint__GLint, + "", + ""); + I_Method3(void, glUniform2i, IN, GLint, location, IN, GLint, v0, IN, GLint, v1, + __void__glUniform2i__GLint__GLint__GLint, + "", + ""); + I_Method4(void, glUniform3i, IN, GLint, location, IN, GLint, v0, IN, GLint, v1, IN, GLint, v2, + __void__glUniform3i__GLint__GLint__GLint__GLint, + "", + ""); + I_Method5(void, glUniform4i, IN, GLint, location, IN, GLint, v0, IN, GLint, v1, IN, GLint, v2, IN, GLint, v3, + __void__glUniform4i__GLint__GLint__GLint__GLint__GLint, + "", + ""); + I_Method3(void, glUniform1fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value, + __void__glUniform1fv__GLint__GLsizei__C5_GLfloat_P1, + "", + ""); + I_Method3(void, glUniform2fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value, + __void__glUniform2fv__GLint__GLsizei__C5_GLfloat_P1, + "", + ""); + I_Method3(void, glUniform3fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value, + __void__glUniform3fv__GLint__GLsizei__C5_GLfloat_P1, + "", + ""); + I_Method3(void, glUniform4fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value, + __void__glUniform4fv__GLint__GLsizei__C5_GLfloat_P1, + "", + ""); + I_Method3(void, glUniform1iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value, + __void__glUniform1iv__GLint__GLsizei__C5_GLint_P1, + "", + ""); + I_Method3(void, glUniform2iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value, + __void__glUniform2iv__GLint__GLsizei__C5_GLint_P1, + "", + ""); + I_Method3(void, glUniform3iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value, + __void__glUniform3iv__GLint__GLsizei__C5_GLint_P1, + "", + ""); + I_Method3(void, glUniform4iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value, + __void__glUniform4iv__GLint__GLsizei__C5_GLint_P1, + "", + ""); + I_Method4(void, glUniformMatrix2fv, IN, GLint, location, IN, GLsizei, count, IN, GLboolean, transpose, IN, const GLfloat *, value, + __void__glUniformMatrix2fv__GLint__GLsizei__GLboolean__C5_GLfloat_P1, + "", + ""); + I_Method4(void, glUniformMatrix3fv, IN, GLint, location, IN, GLsizei, count, IN, GLboolean, transpose, IN, const GLfloat *, value, + __void__glUniformMatrix3fv__GLint__GLsizei__GLboolean__C5_GLfloat_P1, + "", + ""); + I_Method4(void, glUniformMatrix4fv, IN, GLint, location, IN, GLsizei, count, IN, GLboolean, transpose, IN, const GLfloat *, value, + __void__glUniformMatrix4fv__GLint__GLsizei__GLboolean__C5_GLfloat_P1, + "", + ""); + I_Method1(void, glValidateProgram, IN, GLuint, program, + __void__glValidateProgram__GLuint, + "", + ""); + I_Method2(void, glVertexAttrib1d, IN, GLuint, index, IN, GLdouble, x, + __void__glVertexAttrib1d__GLuint__GLdouble, + "", + ""); + I_Method2(void, glVertexAttrib1dv, IN, GLuint, index, IN, const GLdouble *, v, + __void__glVertexAttrib1dv__GLuint__C5_GLdouble_P1, + "", + ""); + I_Method2(void, glVertexAttrib1f, IN, GLuint, index, IN, GLfloat, x, + __void__glVertexAttrib1f__GLuint__GLfloat, + "", + ""); + I_Method2(void, glVertexAttrib1fv, IN, GLuint, index, IN, const GLfloat *, v, + __void__glVertexAttrib1fv__GLuint__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib1s, IN, GLuint, index, IN, GLshort, x, + __void__glVertexAttrib1s__GLuint__GLshort, + "", + ""); + I_Method2(void, glVertexAttrib1sv, IN, GLuint, index, IN, const GLshort *, v, + __void__glVertexAttrib1sv__GLuint__C5_GLshort_P1, + "", + ""); + I_Method3(void, glVertexAttrib2d, IN, GLuint, index, IN, GLdouble, x, IN, GLdouble, y, + __void__glVertexAttrib2d__GLuint__GLdouble__GLdouble, + "", + ""); + I_Method2(void, glVertexAttrib2dv, IN, GLuint, index, IN, const GLdouble *, v, + __void__glVertexAttrib2dv__GLuint__C5_GLdouble_P1, + "", + ""); + I_Method3(void, glVertexAttrib2f, IN, GLuint, index, IN, GLfloat, x, IN, GLfloat, y, + __void__glVertexAttrib2f__GLuint__GLfloat__GLfloat, + "", + ""); + I_Method2(void, glVertexAttrib2fv, IN, GLuint, index, IN, const GLfloat *, v, + __void__glVertexAttrib2fv__GLuint__C5_GLfloat_P1, + "", + ""); + I_Method3(void, glVertexAttrib2s, IN, GLuint, index, IN, GLshort, x, IN, GLshort, y, + __void__glVertexAttrib2s__GLuint__GLshort__GLshort, + "", + ""); + I_Method2(void, glVertexAttrib2sv, IN, GLuint, index, IN, const GLshort *, v, + __void__glVertexAttrib2sv__GLuint__C5_GLshort_P1, + "", + ""); + I_Method4(void, glVertexAttrib3d, IN, GLuint, index, IN, GLdouble, x, IN, GLdouble, y, IN, GLdouble, z, + __void__glVertexAttrib3d__GLuint__GLdouble__GLdouble__GLdouble, + "", + ""); + I_Method2(void, glVertexAttrib3dv, IN, GLuint, index, IN, const GLdouble *, v, + __void__glVertexAttrib3dv__GLuint__C5_GLdouble_P1, + "", + ""); + I_Method4(void, glVertexAttrib3f, IN, GLuint, index, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, + __void__glVertexAttrib3f__GLuint__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method2(void, glVertexAttrib3fv, IN, GLuint, index, IN, const GLfloat *, v, + __void__glVertexAttrib3fv__GLuint__C5_GLfloat_P1, + "", + ""); + I_Method4(void, glVertexAttrib3s, IN, GLuint, index, IN, GLshort, x, IN, GLshort, y, IN, GLshort, z, + __void__glVertexAttrib3s__GLuint__GLshort__GLshort__GLshort, + "", + ""); + I_Method2(void, glVertexAttrib3sv, IN, GLuint, index, IN, const GLshort *, v, + __void__glVertexAttrib3sv__GLuint__C5_GLshort_P1, + "", + ""); + I_Method2(void, glVertexAttrib4Nbv, IN, GLuint, index, IN, const GLbyte *, v, + __void__glVertexAttrib4Nbv__GLuint__C5_GLbyte_P1, + "", + ""); + I_Method2(void, glVertexAttrib4Niv, IN, GLuint, index, IN, const GLint *, v, + __void__glVertexAttrib4Niv__GLuint__C5_GLint_P1, + "", + ""); + I_Method2(void, glVertexAttrib4Nsv, IN, GLuint, index, IN, const GLshort *, v, + __void__glVertexAttrib4Nsv__GLuint__C5_GLshort_P1, + "", + ""); + I_Method5(void, glVertexAttrib4Nub, IN, GLuint, index, IN, GLubyte, x, IN, GLubyte, y, IN, GLubyte, z, IN, GLubyte, w, + __void__glVertexAttrib4Nub__GLuint__GLubyte__GLubyte__GLubyte__GLubyte, + "", + ""); + I_Method2(void, glVertexAttrib4Nubv, IN, GLuint, index, IN, const GLubyte *, v, + __void__glVertexAttrib4Nubv__GLuint__C5_GLubyte_P1, + "", + ""); + I_Method2(void, glVertexAttrib4Nuiv, IN, GLuint, index, IN, const GLuint *, v, + __void__glVertexAttrib4Nuiv__GLuint__C5_GLuint_P1, + "", + ""); + I_Method2(void, glVertexAttrib4Nusv, IN, GLuint, index, IN, const GLushort *, v, + __void__glVertexAttrib4Nusv__GLuint__C5_GLushort_P1, + "", + ""); + I_Method2(void, glVertexAttrib4bv, IN, GLuint, index, IN, const GLbyte *, v, + __void__glVertexAttrib4bv__GLuint__C5_GLbyte_P1, + "", + ""); + I_Method5(void, glVertexAttrib4d, IN, GLuint, index, IN, GLdouble, x, IN, GLdouble, y, IN, GLdouble, z, IN, GLdouble, w, + __void__glVertexAttrib4d__GLuint__GLdouble__GLdouble__GLdouble__GLdouble, + "", + ""); + I_Method2(void, glVertexAttrib4dv, IN, GLuint, index, IN, const GLdouble *, v, + __void__glVertexAttrib4dv__GLuint__C5_GLdouble_P1, + "", + ""); + I_Method5(void, glVertexAttrib4f, IN, GLuint, index, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, IN, GLfloat, w, + __void__glVertexAttrib4f__GLuint__GLfloat__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method2(void, glVertexAttrib4fv, IN, GLuint, index, IN, const GLfloat *, v, + __void__glVertexAttrib4fv__GLuint__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib4iv, IN, GLuint, index, IN, const GLint *, v, + __void__glVertexAttrib4iv__GLuint__C5_GLint_P1, + "", + ""); + I_Method5(void, glVertexAttrib4s, IN, GLuint, index, IN, GLshort, x, IN, GLshort, y, IN, GLshort, z, IN, GLshort, w, + __void__glVertexAttrib4s__GLuint__GLshort__GLshort__GLshort__GLshort, + "", + ""); + I_Method2(void, glVertexAttrib4sv, IN, GLuint, index, IN, const GLshort *, v, + __void__glVertexAttrib4sv__GLuint__C5_GLshort_P1, + "", + ""); + I_Method2(void, glVertexAttrib4ubv, IN, GLuint, index, IN, const GLubyte *, v, + __void__glVertexAttrib4ubv__GLuint__C5_GLubyte_P1, + "", + ""); + I_Method2(void, glVertexAttrib4uiv, IN, GLuint, index, IN, const GLuint *, v, + __void__glVertexAttrib4uiv__GLuint__C5_GLuint_P1, + "", + ""); + I_Method2(void, glVertexAttrib4usv, IN, GLuint, index, IN, const GLushort *, v, + __void__glVertexAttrib4usv__GLuint__C5_GLushort_P1, + "", + ""); + I_Method6(void, glVertexAttribPointer, IN, GLuint, index, IN, GLint, size, IN, GLenum, type, IN, GLboolean, normalized, IN, GLsizei, stride, IN, const GLvoid *, pointer, + __void__glVertexAttribPointer__GLuint__GLint__GLenum__GLboolean__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method0(GLuint, getCurrentProgram, + __GLuint__getCurrentProgram, + "", + ""); + I_Method2(bool, getProgramInfoLog, IN, GLuint, program, IN, std::string &, result, + __bool__getProgramInfoLog__GLuint__std_string_R1, + "", + ""); + I_Method2(bool, getShaderInfoLog, IN, GLuint, shader, IN, std::string &, result, + __bool__getShaderInfoLog__GLuint__std_string_R1, + "", + ""); + I_Method2(bool, getAttribLocation, IN, const char *, attribName, IN, GLuint &, slot, + __bool__getAttribLocation__C5_char_P1__GLuint_R1, + "", + ""); + I_StaticMethod2(osg::GL2Extensions *, Get, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __GL2Extensions_P1__Get__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Exentsion object for that context has not yet been created then and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object only be created with the graphics context associated with ContextID.. "); + I_StaticMethod2(void, Set, IN, unsigned int, contextID, IN, osg::GL2Extensions *, extensions, + __void__Set__unsigned_int__GL2Extensions_P1_S, + "allows users to override the extensions across graphics contexts. ", + "typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(GLuint, CurrentProgram, + __GLuint__getCurrentProgram, + 0); + I_SimpleProperty(bool, FragmentShaderSupported, + 0, + __void__setFragmentShaderSupported__bool); + I_SimpleProperty(float, GlVersion, + __float__getGlVersion, + 0); + I_SimpleProperty(bool, Language100Supported, + 0, + __void__setLanguage100Supported__bool); + I_SimpleProperty(float, LanguageVersion, + __float__getLanguageVersion, + 0); + I_SimpleProperty(bool, ShaderObjectsSupported, + 0, + __void__setShaderObjectsSupported__bool); + I_SimpleProperty(bool, VertexShaderSupported, + 0, + __void__setVertexShaderSupported__bool); END_REFLECTOR diff --git a/src/osgWrappers/osg/Geode.cpp b/src/osgWrappers/osg/Geode.cpp index 1d90809c8..5c1a5f99f 100644 --- a/src/osgWrappers/osg/Geode.cpp +++ b/src/osgWrappers/osg/Geode.cpp @@ -31,43 +31,143 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Drawable > >, osg::Geode::Drawab BEGIN_OBJECT_REFLECTOR(osg::Geode) I_BaseType(osg::Node); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Geode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(bool, addDrawable, IN, osg::Drawable *, drawable); - I_Method1(bool, removeDrawable, IN, osg::Drawable *, drawable); - I_MethodWithDefaults2(bool, removeDrawables, IN, unsigned int, i, , IN, unsigned int, numDrawablesToRemove, 1); - I_Method2(bool, replaceDrawable, IN, osg::Drawable *, origDraw, IN, osg::Drawable *, newDraw); - I_Method2(bool, setDrawable, IN, unsigned int, i, IN, osg::Drawable *, drawable); - I_Method0(unsigned int, getNumDrawables); - I_Method1(osg::Drawable *, getDrawable, IN, unsigned int, i); - I_Method1(const osg::Drawable *, getDrawable, IN, unsigned int, i); - I_Method1(bool, containsDrawable, IN, const osg::Drawable *, gset); - I_Method1(unsigned int, getDrawableIndex, IN, const osg::Drawable *, drawable); - I_Method0(const osg::Geode::DrawableList &, getDrawableList); - I_Method1(void, compileDrawables, IN, osg::State &, state); - I_Method0(const osg::BoundingBox &, getBoundingBox); - I_Method0(osg::BoundingSphere, computeBound); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0); - I_ReadOnlyProperty(const osg::BoundingBox &, BoundingBox); - I_ArrayProperty_GSA(osg::Drawable *, Drawable, Drawables, unsigned int, bool); - I_ReadOnlyProperty(const osg::Geode::DrawableList &, DrawableList); + I_Constructor0(____Geode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Geode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Geode__C5_Geode_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(bool, addDrawable, IN, osg::Drawable *, drawable, + __bool__addDrawable__Drawable_P1, + "Add a Drawable to the Geode. ", + " param drawable The Drawable to be added to the Geode. return true for success; false otherwise."); + I_Method1(bool, removeDrawable, IN, osg::Drawable *, drawable, + __bool__removeDrawable__Drawable_P1, + "Remove a Drawable from the Geode. ", + " param drawable The drawable to be removed. return true if at least one Drawable was removed. false otherwise."); + I_MethodWithDefaults2(bool, removeDrawables, IN, unsigned int, i, , IN, unsigned int, numDrawablesToRemove, 1, + __bool__removeDrawables__unsigned_int__unsigned_int, + "Remove Drawable(s) from the specified position in Geode's drawable list. ", + " param i The index of the first Drawable to remove. numDrawablesToRemove The number of Drawable to remove. return true if at least one Drawable was removed. false otherwise."); + I_Method2(bool, replaceDrawable, IN, osg::Drawable *, origDraw, IN, osg::Drawable *, newDraw, + __bool__replaceDrawable__Drawable_P1__Drawable_P1, + "Replace specified Drawable with another Drawable. ", + "Equivalent to setDrawable(getDrawableIndex(origDraw),newDraw), see docs for setDrawable() for further details on implementation."); + I_Method2(bool, setDrawable, IN, unsigned int, i, IN, osg::Drawable *, drawable, + __bool__setDrawable__unsigned_int__Drawable_P1, + "Set Drawable at position i. ", + "Decrement the reference count origGSet and increments the reference count of newGset, and dirty the bounding sphere to force it to recompute on next getBound() and returns true. If origDrawable is not found then return false and do not add newGset. If newGset is NULL then return false and do not remove origGset. true if set correctly, false on failure (if node==NULL || i is out of range). "); + I_Method0(unsigned int, getNumDrawables, + __unsigned_int__getNumDrawables, + "Return the number of Drawables currently attached to the Geode. ", + ""); + I_Method1(osg::Drawable *, getDrawable, IN, unsigned int, i, + __Drawable_P1__getDrawable__unsigned_int, + "Return the Drawable at position i. ", + ""); + I_Method1(const osg::Drawable *, getDrawable, IN, unsigned int, i, + __C5_Drawable_P1__getDrawable__unsigned_int, + "Return the Drawable at position i. ", + ""); + I_Method1(bool, containsDrawable, IN, const osg::Drawable *, gset, + __bool__containsDrawable__C5_Drawable_P1, + "Return true if a given Drawable is contained within Geode. ", + ""); + I_Method1(unsigned int, getDrawableIndex, IN, const osg::Drawable *, drawable, + __unsigned_int__getDrawableIndex__C5_Drawable_P1, + "Get the index number of drawable. ", + "A value between 0 and getNumDrawables()-1 if drawable is found; if not found, then getNumDrawables() is returned. "); + I_Method0(const osg::Geode::DrawableList &, getDrawableList, + __C5_DrawableList_R1__getDrawableList, + "Get the list of drawables. ", + ""); + I_Method1(void, compileDrawables, IN, osg::State &, state, + __void__compileDrawables__State_R1, + "Compile OpenGL Display List for each drawable. ", + ""); + I_Method0(const osg::BoundingBox &, getBoundingBox, + __C5_BoundingBox_R1__getBoundingBox, + "Return the Geode's bounding box, which is the union of all the bounding boxes of the geode's drawables. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + __BoundingSphere__computeBound, + "Compute the bounding sphere around Node's geometry or children. ", + "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + __void__releaseGLObjects__osg_State_P1, + "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objexts for all graphics contexts. "); + I_SimpleProperty(const osg::BoundingBox &, BoundingBox, + __C5_BoundingBox_R1__getBoundingBox, + 0); + I_ArrayProperty(osg::Drawable *, Drawable, + __Drawable_P1__getDrawable__unsigned_int, + __bool__setDrawable__unsigned_int__Drawable_P1, + __unsigned_int__getNumDrawables, + __bool__addDrawable__Drawable_P1, + 0, + __bool__removeDrawables__unsigned_int__unsigned_int); + I_SimpleProperty(const osg::Geode::DrawableList &, DrawableList, + __C5_DrawableList_R1__getDrawableList, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Drawable >) - I_Constructor0(); - I_Constructor1(IN, osg::Drawable *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osg::Drawable > &, rp); - I_Method0(osg::Drawable *, get); - I_Method0(bool, valid); - I_Method0(osg::Drawable *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osg::Drawable > &, rp); - I_ReadOnlyProperty(osg::Drawable *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Drawable *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Drawable > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Drawable *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osg::Drawable *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Drawable > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Drawable *, , + __T_P1__get, + 0); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Drawable > >); diff --git a/src/osgWrappers/osg/Geometry.cpp b/src/osgWrappers/osg/Geometry.cpp index aa7f8ace0..5e25e1a3d 100644 --- a/src/osgWrappers/osg/Geometry.cpp +++ b/src/osgWrappers/osg/Geometry.cpp @@ -40,173 +40,665 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Geometry) I_BaseType(osg::Drawable); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Geometry &, geometry, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::Geometry *, asGeometry); - I_Method0(const osg::Geometry *, asGeometry); - I_Method0(bool, empty); - I_Method1(void, setVertexArray, IN, osg::Array *, array); - I_Method0(osg::Array *, getVertexArray); - I_Method0(const osg::Array *, getVertexArray); - I_Method1(void, setVertexIndices, IN, osg::IndexArray *, array); - I_Method0(osg::IndexArray *, getVertexIndices); - I_Method0(const osg::IndexArray *, getVertexIndices); - I_Method1(void, setVertexData, IN, const osg::Geometry::ArrayData &, arrayData); - I_Method0(osg::Geometry::ArrayData &, getVertexData); - I_Method0(const osg::Geometry::ArrayData &, getVertexData); - I_Method1(void, setNormalBinding, IN, osg::Geometry::AttributeBinding, ab); - I_Method0(osg::Geometry::AttributeBinding, getNormalBinding); - I_Method1(void, setNormalArray, IN, osg::Array *, array); - I_Method0(osg::Array *, getNormalArray); - I_Method0(const osg::Array *, getNormalArray); - I_Method1(void, setNormalIndices, IN, osg::IndexArray *, array); - I_Method0(osg::IndexArray *, getNormalIndices); - I_Method0(const osg::IndexArray *, getNormalIndices); - I_Method1(void, setNormalData, IN, const osg::Geometry::ArrayData &, arrayData); - I_Method0(osg::Geometry::ArrayData &, getNormalData); - I_Method0(const osg::Geometry::ArrayData &, getNormalData); - I_Method1(void, setColorBinding, IN, osg::Geometry::AttributeBinding, ab); - I_Method0(osg::Geometry::AttributeBinding, getColorBinding); - I_Method1(void, setColorArray, IN, osg::Array *, array); - I_Method0(osg::Array *, getColorArray); - I_Method0(const osg::Array *, getColorArray); - I_Method1(void, setColorIndices, IN, osg::IndexArray *, array); - I_Method0(osg::IndexArray *, getColorIndices); - I_Method0(const osg::IndexArray *, getColorIndices); - I_Method1(void, setColorData, IN, const osg::Geometry::ArrayData &, arrayData); - I_Method0(osg::Geometry::ArrayData &, getColorData); - I_Method0(const osg::Geometry::ArrayData &, getColorData); - I_Method1(void, setSecondaryColorBinding, IN, osg::Geometry::AttributeBinding, ab); - I_Method0(osg::Geometry::AttributeBinding, getSecondaryColorBinding); - I_Method1(void, setSecondaryColorArray, IN, osg::Array *, array); - I_Method0(osg::Array *, getSecondaryColorArray); - I_Method0(const osg::Array *, getSecondaryColorArray); - I_Method1(void, setSecondaryColorIndices, IN, osg::IndexArray *, array); - I_Method0(osg::IndexArray *, getSecondaryColorIndices); - I_Method0(const osg::IndexArray *, getSecondaryColorIndices); - I_Method1(void, setSecondaryColorData, IN, const osg::Geometry::ArrayData &, arrayData); - I_Method0(osg::Geometry::ArrayData &, getSecondaryColorData); - I_Method0(const osg::Geometry::ArrayData &, getSecondaryColorData); - I_Method1(void, setFogCoordBinding, IN, osg::Geometry::AttributeBinding, ab); - I_Method0(osg::Geometry::AttributeBinding, getFogCoordBinding); - I_Method1(void, setFogCoordArray, IN, osg::Array *, array); - I_Method0(osg::Array *, getFogCoordArray); - I_Method0(const osg::Array *, getFogCoordArray); - I_Method1(void, setFogCoordIndices, IN, osg::IndexArray *, array); - I_Method0(osg::IndexArray *, getFogCoordIndices); - I_Method0(const osg::IndexArray *, getFogCoordIndices); - I_Method1(void, setFogCoordData, IN, const osg::Geometry::ArrayData &, arrayData); - I_Method0(osg::Geometry::ArrayData &, getFogCoordData); - I_Method0(const osg::Geometry::ArrayData &, getFogCoordData); - I_Method2(void, setTexCoordArray, IN, unsigned int, unit, IN, osg::Array *, x); - I_Method1(osg::Array *, getTexCoordArray, IN, unsigned int, unit); - I_Method1(const osg::Array *, getTexCoordArray, IN, unsigned int, unit); - I_Method2(void, setTexCoordIndices, IN, unsigned int, unit, IN, osg::IndexArray *, x); - I_Method1(osg::IndexArray *, getTexCoordIndices, IN, unsigned int, unit); - I_Method1(const osg::IndexArray *, getTexCoordIndices, IN, unsigned int, unit); - I_Method2(void, setTexCoordData, IN, unsigned int, index, IN, const osg::Geometry::ArrayData &, arrayData); - I_Method1(osg::Geometry::ArrayData &, getTexCoordData, IN, unsigned int, index); - I_Method1(const osg::Geometry::ArrayData &, getTexCoordData, IN, unsigned int, index); - I_Method0(unsigned int, getNumTexCoordArrays); - I_Method0(osg::Geometry::ArrayList &, getTexCoordArrayList); - I_Method0(const osg::Geometry::ArrayList &, getTexCoordArrayList); - I_Method2(void, setVertexAttribArray, IN, unsigned int, index, IN, osg::Array *, array); - I_Method1(osg::Array *, getVertexAttribArray, IN, unsigned int, index); - I_Method1(const osg::Array *, getVertexAttribArray, IN, unsigned int, index); - I_Method2(void, setVertexAttribIndices, IN, unsigned int, index, IN, osg::IndexArray *, array); - I_Method1(osg::IndexArray *, getVertexAttribIndices, IN, unsigned int, index); - I_Method1(const osg::IndexArray *, getVertexAttribIndices, IN, unsigned int, index); - I_Method2(void, setVertexAttribBinding, IN, unsigned int, index, IN, osg::Geometry::AttributeBinding, ab); - I_Method1(osg::Geometry::AttributeBinding, getVertexAttribBinding, IN, unsigned int, index); - I_Method2(void, setVertexAttribNormalize, IN, unsigned int, index, IN, GLboolean, norm); - I_Method1(GLboolean, getVertexAttribNormalize, IN, unsigned int, index); - I_Method2(void, setVertexAttribData, IN, unsigned int, index, IN, const osg::Geometry::ArrayData &, arrayData); - I_Method1(osg::Geometry::ArrayData &, getVertexAttribData, IN, unsigned int, index); - I_Method1(const osg::Geometry::ArrayData &, getVertexAttribData, IN, unsigned int, index); - I_Method0(unsigned int, getNumVertexAttribArrays); - I_Method0(osg::Geometry::ArrayList &, getVertexAttribArrayList); - I_Method0(const osg::Geometry::ArrayList &, getVertexAttribArrayList); - I_Method1(void, setPrimitiveSetList, IN, const osg::Geometry::PrimitiveSetList &, primitives); - I_Method0(osg::Geometry::PrimitiveSetList &, getPrimitiveSetList); - I_Method0(const osg::Geometry::PrimitiveSetList &, getPrimitiveSetList); - I_Method0(unsigned int, getNumPrimitiveSets); - I_Method1(osg::PrimitiveSet *, getPrimitiveSet, IN, unsigned int, pos); - I_Method1(const osg::PrimitiveSet *, getPrimitiveSet, IN, unsigned int, pos); - I_Method1(bool, addPrimitiveSet, IN, osg::PrimitiveSet *, primitiveset); - I_Method2(bool, setPrimitiveSet, IN, unsigned int, i, IN, osg::PrimitiveSet *, primitiveset); - I_Method2(bool, insertPrimitiveSet, IN, unsigned int, i, IN, osg::PrimitiveSet *, primitiveset); - I_MethodWithDefaults2(bool, removePrimitiveSet, IN, unsigned int, i, , IN, unsigned int, numElementsToRemove, 1); - I_Method1(unsigned int, getPrimitiveSetIndex, IN, const osg::PrimitiveSet *, primitiveset); - I_Method1(void, setFastPathHint, IN, bool, on); - I_Method0(bool, getFastPathHint); - I_Method0(bool, areFastPathsUsed); - I_Method0(bool, computeFastPathsUsed); - I_Method0(bool, verifyBindings); - I_Method0(void, computeCorrectBindingsAndArraySizes); - I_Method0(bool, suitableForOptimization); - I_Method1(void, copyToAndOptimize, IN, osg::Geometry &, target); - I_Method0(void, computeInternalOptimizedGeometry); - I_Method0(void, removeInternalOptimizedGeometry); - I_Method1(void, setInternalOptimizedGeometry, IN, osg::Geometry *, geometry); - I_Method0(osg::Geometry *, getInternalOptimizedGeometry); - I_Method0(const osg::Geometry *, getInternalOptimizedGeometry); - I_Method0(unsigned int, getGLObjectSizeHint); - I_Method1(void, drawImplementation, IN, osg::State &, state); - I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x); - I_Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, af); - I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x); - I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af); - I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf); - I_Method1(bool, supports, IN, const osg::PrimitiveIndexFunctor &, x); - I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, pf); - I_Property(osg::Array *, ColorArray); - I_Property(osg::Geometry::AttributeBinding, ColorBinding); - I_Property(const osg::Geometry::ArrayData &, ColorData); - I_Property(osg::IndexArray *, ColorIndices); - I_Property(bool, FastPathHint); - I_Property(osg::Array *, FogCoordArray); - I_Property(osg::Geometry::AttributeBinding, FogCoordBinding); - I_Property(const osg::Geometry::ArrayData &, FogCoordData); - I_Property(osg::IndexArray *, FogCoordIndices); - I_ReadOnlyProperty(unsigned int, GLObjectSizeHint); - I_Property(osg::Geometry *, InternalOptimizedGeometry); - I_Property(osg::Array *, NormalArray); - I_Property(osg::Geometry::AttributeBinding, NormalBinding); - I_Property(const osg::Geometry::ArrayData &, NormalData); - I_Property(osg::IndexArray *, NormalIndices); - I_ArrayProperty_GSA(osg::PrimitiveSet *, PrimitiveSet, PrimitiveSets, unsigned int, bool); - I_Property(const osg::Geometry::PrimitiveSetList &, PrimitiveSetList); - I_Property(osg::Array *, SecondaryColorArray); - I_Property(osg::Geometry::AttributeBinding, SecondaryColorBinding); - I_Property(const osg::Geometry::ArrayData &, SecondaryColorData); - I_Property(osg::IndexArray *, SecondaryColorIndices); - I_ArrayProperty_G(osg::Array *, TexCoordArray, TexCoordArrays, unsigned int, void); - I_ReadOnlyProperty(osg::Geometry::ArrayList &, TexCoordArrayList); - I_IndexedProperty1(const osg::Geometry::ArrayData &, TexCoordData, unsigned int, index); - I_IndexedProperty1(osg::IndexArray *, TexCoordIndices, unsigned int, unit); - I_Property(osg::Array *, VertexArray); - I_ArrayProperty_G(osg::Array *, VertexAttribArray, VertexAttribArrays, unsigned int, void); - I_ReadOnlyProperty(osg::Geometry::ArrayList &, VertexAttribArrayList); - I_IndexedProperty1(osg::Geometry::AttributeBinding, VertexAttribBinding, unsigned int, index); - I_IndexedProperty1(const osg::Geometry::ArrayData &, VertexAttribData, unsigned int, index); - I_IndexedProperty1(osg::IndexArray *, VertexAttribIndices, unsigned int, index); - I_IndexedProperty1(GLboolean, VertexAttribNormalize, unsigned int, index); - I_Property(const osg::Geometry::ArrayData &, VertexData); - I_Property(osg::IndexArray *, VertexIndices); + I_Constructor0(____Geometry, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Geometry &, geometry, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Geometry__C5_Geometry_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(osg::Geometry *, asGeometry, + __Geometry_P1__asGeometry, + "Convert 'this' into a Geometry pointer if Drawable is a Geometry, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method0(const osg::Geometry *, asGeometry, + __C5_Geometry_P1__asGeometry, + "Convert 'const this' into a const Geometry pointer if Drawable is a Geometry, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method0(bool, empty, + __bool__empty, + "", + ""); + I_Method1(void, setVertexArray, IN, osg::Array *, array, + __void__setVertexArray__Array_P1, + "", + ""); + I_Method0(osg::Array *, getVertexArray, + __Array_P1__getVertexArray, + "", + ""); + I_Method0(const osg::Array *, getVertexArray, + __C5_Array_P1__getVertexArray, + "", + ""); + I_Method1(void, setVertexIndices, IN, osg::IndexArray *, array, + __void__setVertexIndices__IndexArray_P1, + "", + ""); + I_Method0(osg::IndexArray *, getVertexIndices, + __IndexArray_P1__getVertexIndices, + "", + ""); + I_Method0(const osg::IndexArray *, getVertexIndices, + __C5_IndexArray_P1__getVertexIndices, + "", + ""); + I_Method1(void, setVertexData, IN, const osg::Geometry::ArrayData &, arrayData, + __void__setVertexData__C5_ArrayData_R1, + "", + ""); + I_Method0(osg::Geometry::ArrayData &, getVertexData, + __ArrayData_R1__getVertexData, + "", + ""); + I_Method0(const osg::Geometry::ArrayData &, getVertexData, + __C5_ArrayData_R1__getVertexData, + "", + ""); + I_Method1(void, setNormalBinding, IN, osg::Geometry::AttributeBinding, ab, + __void__setNormalBinding__AttributeBinding, + "", + ""); + I_Method0(osg::Geometry::AttributeBinding, getNormalBinding, + __AttributeBinding__getNormalBinding, + "", + ""); + I_Method1(void, setNormalArray, IN, osg::Array *, array, + __void__setNormalArray__Array_P1, + "", + ""); + I_Method0(osg::Array *, getNormalArray, + __Array_P1__getNormalArray, + "", + ""); + I_Method0(const osg::Array *, getNormalArray, + __C5_Array_P1__getNormalArray, + "", + ""); + I_Method1(void, setNormalIndices, IN, osg::IndexArray *, array, + __void__setNormalIndices__IndexArray_P1, + "", + ""); + I_Method0(osg::IndexArray *, getNormalIndices, + __IndexArray_P1__getNormalIndices, + "", + ""); + I_Method0(const osg::IndexArray *, getNormalIndices, + __C5_IndexArray_P1__getNormalIndices, + "", + ""); + I_Method1(void, setNormalData, IN, const osg::Geometry::ArrayData &, arrayData, + __void__setNormalData__C5_ArrayData_R1, + "", + ""); + I_Method0(osg::Geometry::ArrayData &, getNormalData, + __ArrayData_R1__getNormalData, + "", + ""); + I_Method0(const osg::Geometry::ArrayData &, getNormalData, + __C5_ArrayData_R1__getNormalData, + "", + ""); + I_Method1(void, setColorBinding, IN, osg::Geometry::AttributeBinding, ab, + __void__setColorBinding__AttributeBinding, + "", + ""); + I_Method0(osg::Geometry::AttributeBinding, getColorBinding, + __AttributeBinding__getColorBinding, + "", + ""); + I_Method1(void, setColorArray, IN, osg::Array *, array, + __void__setColorArray__Array_P1, + "", + ""); + I_Method0(osg::Array *, getColorArray, + __Array_P1__getColorArray, + "", + ""); + I_Method0(const osg::Array *, getColorArray, + __C5_Array_P1__getColorArray, + "", + ""); + I_Method1(void, setColorIndices, IN, osg::IndexArray *, array, + __void__setColorIndices__IndexArray_P1, + "", + ""); + I_Method0(osg::IndexArray *, getColorIndices, + __IndexArray_P1__getColorIndices, + "", + ""); + I_Method0(const osg::IndexArray *, getColorIndices, + __C5_IndexArray_P1__getColorIndices, + "", + ""); + I_Method1(void, setColorData, IN, const osg::Geometry::ArrayData &, arrayData, + __void__setColorData__C5_ArrayData_R1, + "", + ""); + I_Method0(osg::Geometry::ArrayData &, getColorData, + __ArrayData_R1__getColorData, + "", + ""); + I_Method0(const osg::Geometry::ArrayData &, getColorData, + __C5_ArrayData_R1__getColorData, + "", + ""); + I_Method1(void, setSecondaryColorBinding, IN, osg::Geometry::AttributeBinding, ab, + __void__setSecondaryColorBinding__AttributeBinding, + "", + ""); + I_Method0(osg::Geometry::AttributeBinding, getSecondaryColorBinding, + __AttributeBinding__getSecondaryColorBinding, + "", + ""); + I_Method1(void, setSecondaryColorArray, IN, osg::Array *, array, + __void__setSecondaryColorArray__Array_P1, + "", + ""); + I_Method0(osg::Array *, getSecondaryColorArray, + __Array_P1__getSecondaryColorArray, + "", + ""); + I_Method0(const osg::Array *, getSecondaryColorArray, + __C5_Array_P1__getSecondaryColorArray, + "", + ""); + I_Method1(void, setSecondaryColorIndices, IN, osg::IndexArray *, array, + __void__setSecondaryColorIndices__IndexArray_P1, + "", + ""); + I_Method0(osg::IndexArray *, getSecondaryColorIndices, + __IndexArray_P1__getSecondaryColorIndices, + "", + ""); + I_Method0(const osg::IndexArray *, getSecondaryColorIndices, + __C5_IndexArray_P1__getSecondaryColorIndices, + "", + ""); + I_Method1(void, setSecondaryColorData, IN, const osg::Geometry::ArrayData &, arrayData, + __void__setSecondaryColorData__C5_ArrayData_R1, + "", + ""); + I_Method0(osg::Geometry::ArrayData &, getSecondaryColorData, + __ArrayData_R1__getSecondaryColorData, + "", + ""); + I_Method0(const osg::Geometry::ArrayData &, getSecondaryColorData, + __C5_ArrayData_R1__getSecondaryColorData, + "", + ""); + I_Method1(void, setFogCoordBinding, IN, osg::Geometry::AttributeBinding, ab, + __void__setFogCoordBinding__AttributeBinding, + "", + ""); + I_Method0(osg::Geometry::AttributeBinding, getFogCoordBinding, + __AttributeBinding__getFogCoordBinding, + "", + ""); + I_Method1(void, setFogCoordArray, IN, osg::Array *, array, + __void__setFogCoordArray__Array_P1, + "", + ""); + I_Method0(osg::Array *, getFogCoordArray, + __Array_P1__getFogCoordArray, + "", + ""); + I_Method0(const osg::Array *, getFogCoordArray, + __C5_Array_P1__getFogCoordArray, + "", + ""); + I_Method1(void, setFogCoordIndices, IN, osg::IndexArray *, array, + __void__setFogCoordIndices__IndexArray_P1, + "", + ""); + I_Method0(osg::IndexArray *, getFogCoordIndices, + __IndexArray_P1__getFogCoordIndices, + "", + ""); + I_Method0(const osg::IndexArray *, getFogCoordIndices, + __C5_IndexArray_P1__getFogCoordIndices, + "", + ""); + I_Method1(void, setFogCoordData, IN, const osg::Geometry::ArrayData &, arrayData, + __void__setFogCoordData__C5_ArrayData_R1, + "", + ""); + I_Method0(osg::Geometry::ArrayData &, getFogCoordData, + __ArrayData_R1__getFogCoordData, + "", + ""); + I_Method0(const osg::Geometry::ArrayData &, getFogCoordData, + __C5_ArrayData_R1__getFogCoordData, + "", + ""); + I_Method2(void, setTexCoordArray, IN, unsigned int, unit, IN, osg::Array *, x, + __void__setTexCoordArray__unsigned_int__Array_P1, + "", + ""); + I_Method1(osg::Array *, getTexCoordArray, IN, unsigned int, unit, + __Array_P1__getTexCoordArray__unsigned_int, + "", + ""); + I_Method1(const osg::Array *, getTexCoordArray, IN, unsigned int, unit, + __C5_Array_P1__getTexCoordArray__unsigned_int, + "", + ""); + I_Method2(void, setTexCoordIndices, IN, unsigned int, unit, IN, osg::IndexArray *, x, + __void__setTexCoordIndices__unsigned_int__IndexArray_P1, + "", + ""); + I_Method1(osg::IndexArray *, getTexCoordIndices, IN, unsigned int, unit, + __IndexArray_P1__getTexCoordIndices__unsigned_int, + "", + ""); + I_Method1(const osg::IndexArray *, getTexCoordIndices, IN, unsigned int, unit, + __C5_IndexArray_P1__getTexCoordIndices__unsigned_int, + "", + ""); + I_Method2(void, setTexCoordData, IN, unsigned int, index, IN, const osg::Geometry::ArrayData &, arrayData, + __void__setTexCoordData__unsigned_int__C5_ArrayData_R1, + "", + ""); + I_Method1(osg::Geometry::ArrayData &, getTexCoordData, IN, unsigned int, index, + __ArrayData_R1__getTexCoordData__unsigned_int, + "", + ""); + I_Method1(const osg::Geometry::ArrayData &, getTexCoordData, IN, unsigned int, index, + __C5_ArrayData_R1__getTexCoordData__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumTexCoordArrays, + __unsigned_int__getNumTexCoordArrays, + "", + ""); + I_Method0(osg::Geometry::ArrayList &, getTexCoordArrayList, + __ArrayList_R1__getTexCoordArrayList, + "", + ""); + I_Method0(const osg::Geometry::ArrayList &, getTexCoordArrayList, + __C5_ArrayList_R1__getTexCoordArrayList, + "", + ""); + I_Method2(void, setVertexAttribArray, IN, unsigned int, index, IN, osg::Array *, array, + __void__setVertexAttribArray__unsigned_int__Array_P1, + "", + ""); + I_Method1(osg::Array *, getVertexAttribArray, IN, unsigned int, index, + __Array_P1__getVertexAttribArray__unsigned_int, + "", + ""); + I_Method1(const osg::Array *, getVertexAttribArray, IN, unsigned int, index, + __C5_Array_P1__getVertexAttribArray__unsigned_int, + "", + ""); + I_Method2(void, setVertexAttribIndices, IN, unsigned int, index, IN, osg::IndexArray *, array, + __void__setVertexAttribIndices__unsigned_int__IndexArray_P1, + "", + ""); + I_Method1(osg::IndexArray *, getVertexAttribIndices, IN, unsigned int, index, + __IndexArray_P1__getVertexAttribIndices__unsigned_int, + "", + ""); + I_Method1(const osg::IndexArray *, getVertexAttribIndices, IN, unsigned int, index, + __C5_IndexArray_P1__getVertexAttribIndices__unsigned_int, + "", + ""); + I_Method2(void, setVertexAttribBinding, IN, unsigned int, index, IN, osg::Geometry::AttributeBinding, ab, + __void__setVertexAttribBinding__unsigned_int__AttributeBinding, + "", + ""); + I_Method1(osg::Geometry::AttributeBinding, getVertexAttribBinding, IN, unsigned int, index, + __AttributeBinding__getVertexAttribBinding__unsigned_int, + "", + ""); + I_Method2(void, setVertexAttribNormalize, IN, unsigned int, index, IN, GLboolean, norm, + __void__setVertexAttribNormalize__unsigned_int__GLboolean, + "", + ""); + I_Method1(GLboolean, getVertexAttribNormalize, IN, unsigned int, index, + __GLboolean__getVertexAttribNormalize__unsigned_int, + "", + ""); + I_Method2(void, setVertexAttribData, IN, unsigned int, index, IN, const osg::Geometry::ArrayData &, arrayData, + __void__setVertexAttribData__unsigned_int__C5_ArrayData_R1, + "", + ""); + I_Method1(osg::Geometry::ArrayData &, getVertexAttribData, IN, unsigned int, index, + __ArrayData_R1__getVertexAttribData__unsigned_int, + "", + ""); + I_Method1(const osg::Geometry::ArrayData &, getVertexAttribData, IN, unsigned int, index, + __C5_ArrayData_R1__getVertexAttribData__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumVertexAttribArrays, + __unsigned_int__getNumVertexAttribArrays, + "", + ""); + I_Method0(osg::Geometry::ArrayList &, getVertexAttribArrayList, + __ArrayList_R1__getVertexAttribArrayList, + "", + ""); + I_Method0(const osg::Geometry::ArrayList &, getVertexAttribArrayList, + __C5_ArrayList_R1__getVertexAttribArrayList, + "", + ""); + I_Method1(void, setPrimitiveSetList, IN, const osg::Geometry::PrimitiveSetList &, primitives, + __void__setPrimitiveSetList__C5_PrimitiveSetList_R1, + "", + ""); + I_Method0(osg::Geometry::PrimitiveSetList &, getPrimitiveSetList, + __PrimitiveSetList_R1__getPrimitiveSetList, + "", + ""); + I_Method0(const osg::Geometry::PrimitiveSetList &, getPrimitiveSetList, + __C5_PrimitiveSetList_R1__getPrimitiveSetList, + "", + ""); + I_Method0(unsigned int, getNumPrimitiveSets, + __unsigned_int__getNumPrimitiveSets, + "", + ""); + I_Method1(osg::PrimitiveSet *, getPrimitiveSet, IN, unsigned int, pos, + __PrimitiveSet_P1__getPrimitiveSet__unsigned_int, + "", + ""); + I_Method1(const osg::PrimitiveSet *, getPrimitiveSet, IN, unsigned int, pos, + __C5_PrimitiveSet_P1__getPrimitiveSet__unsigned_int, + "", + ""); + I_Method1(bool, addPrimitiveSet, IN, osg::PrimitiveSet *, primitiveset, + __bool__addPrimitiveSet__PrimitiveSet_P1, + "Add a primitive set to the geometry. ", + ""); + I_Method2(bool, setPrimitiveSet, IN, unsigned int, i, IN, osg::PrimitiveSet *, primitiveset, + __bool__setPrimitiveSet__unsigned_int__PrimitiveSet_P1, + "Set a primitive set to the specified position in geometry's primitive set list. ", + ""); + I_Method2(bool, insertPrimitiveSet, IN, unsigned int, i, IN, osg::PrimitiveSet *, primitiveset, + __bool__insertPrimitiveSet__unsigned_int__PrimitiveSet_P1, + "Insert a primitive set to the specified position in geometry's primitive set list. ", + ""); + I_MethodWithDefaults2(bool, removePrimitiveSet, IN, unsigned int, i, , IN, unsigned int, numElementsToRemove, 1, + __bool__removePrimitiveSet__unsigned_int__unsigned_int, + "Remove primitive set(s) from the specified position in geometry's primitive set list. ", + ""); + I_Method1(unsigned int, getPrimitiveSetIndex, IN, const osg::PrimitiveSet *, primitiveset, + __unsigned_int__getPrimitiveSetIndex__C5_PrimitiveSet_P1, + "Get the index number of a primitive set, return a value between 0 and getNumPrimitiveSet()-1 if found, if not found then return getNumPrimitiveSet(). ", + "When checking for a valid find value use if ((value=geometry->getPrimitiveSetIndex(primitive))!=geometry.getNumPrimitiveSet())"); + I_Method1(void, setFastPathHint, IN, bool, on, + __void__setFastPathHint__bool, + "Set whether fast paths should be used when supported. ", + ""); + I_Method0(bool, getFastPathHint, + __bool__getFastPathHint, + "Get whether fast paths should be used when supported. ", + ""); + I_Method0(bool, areFastPathsUsed, + __bool__areFastPathsUsed, + "Return true if OpenGL fast paths will be used with drawing this Geometry. ", + "Fast paths use vertex arrays, and glDrawArrays/glDrawElements. Slow paths use glBegin()/glVertex.../glEnd(). Use of per primitive bindings or per vertex indexed arrays will drop the rendering path off the fast path."); + I_Method0(bool, computeFastPathsUsed, + __bool__computeFastPathsUsed, + "", + ""); + I_Method0(bool, verifyBindings, + __bool__verifyBindings, + "", + ""); + I_Method0(void, computeCorrectBindingsAndArraySizes, + __void__computeCorrectBindingsAndArraySizes, + "", + ""); + I_Method0(bool, suitableForOptimization, + __bool__suitableForOptimization, + "", + ""); + I_Method1(void, copyToAndOptimize, IN, osg::Geometry &, target, + __void__copyToAndOptimize__Geometry_R1, + "", + ""); + I_Method0(void, computeInternalOptimizedGeometry, + __void__computeInternalOptimizedGeometry, + "", + ""); + I_Method0(void, removeInternalOptimizedGeometry, + __void__removeInternalOptimizedGeometry, + "", + ""); + I_Method1(void, setInternalOptimizedGeometry, IN, osg::Geometry *, geometry, + __void__setInternalOptimizedGeometry__osg_Geometry_P1, + "", + ""); + I_Method0(osg::Geometry *, getInternalOptimizedGeometry, + __osg_Geometry_P1__getInternalOptimizedGeometry, + "", + ""); + I_Method0(const osg::Geometry *, getInternalOptimizedGeometry, + __C5_osg_Geometry_P1__getInternalOptimizedGeometry, + "", + ""); + I_Method0(unsigned int, getGLObjectSizeHint, + __unsigned_int__getGLObjectSizeHint, + "Return the estimated size of GLObjects (display lists/vertex buffer objects) that are associated with this drawable. ", + "This size is used a hint for reuse of deleteed display lists/vertex buffer objects. "); + I_Method1(void, drawImplementation, IN, osg::State &, state, + __void__drawImplementation__State_R1, + "Draw Geometry directly ignoring an OpenGL display list which could be attached. ", + "This is the internal draw method which does the drawing itself, and is the method to override when deriving from Geometry for user-drawn objects."); + I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, + __bool__supports__C5_AttributeFunctor_R1, + "Return true, osg::Geometry does support accept(AttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, af, + __void__accept__AttributeFunctor_R1, + "Accept an AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + __bool__supports__C5_ConstAttributeFunctor_R1, + "Return true, osg::Geometry does support accept(ConstAttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + __void__accept__ConstAttributeFunctor_R1, + "Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", + ""); + I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, + __bool__supports__C5_PrimitiveFunctor_R1, + "Return true, osg::Geometry does support accept(PrimitiveFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, + __void__accept__PrimitiveFunctor_R1, + "Accept a PrimitiveFunctor and call its methods to tell it about the interal primitives that this Drawable has. ", + ""); + I_Method1(bool, supports, IN, const osg::PrimitiveIndexFunctor &, x, + __bool__supports__C5_PrimitiveIndexFunctor_R1, + "Return true, osg::Geometry does support accept(PrimitiveIndexFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, pf, + __void__accept__PrimitiveIndexFunctor_R1, + "Accept a PrimitiveFunctor and call its methods to tell it about the interal primitives that this Drawable has. ", + ""); + I_SimpleProperty(osg::Array *, ColorArray, + __Array_P1__getColorArray, + __void__setColorArray__Array_P1); + I_SimpleProperty(osg::Geometry::AttributeBinding, ColorBinding, + __AttributeBinding__getColorBinding, + __void__setColorBinding__AttributeBinding); + I_SimpleProperty(const osg::Geometry::ArrayData &, ColorData, + __C5_ArrayData_R1__getColorData, + __void__setColorData__C5_ArrayData_R1); + I_SimpleProperty(osg::IndexArray *, ColorIndices, + __IndexArray_P1__getColorIndices, + __void__setColorIndices__IndexArray_P1); + I_SimpleProperty(bool, FastPathHint, + __bool__getFastPathHint, + __void__setFastPathHint__bool); + I_SimpleProperty(osg::Array *, FogCoordArray, + __Array_P1__getFogCoordArray, + __void__setFogCoordArray__Array_P1); + I_SimpleProperty(osg::Geometry::AttributeBinding, FogCoordBinding, + __AttributeBinding__getFogCoordBinding, + __void__setFogCoordBinding__AttributeBinding); + I_SimpleProperty(const osg::Geometry::ArrayData &, FogCoordData, + __C5_ArrayData_R1__getFogCoordData, + __void__setFogCoordData__C5_ArrayData_R1); + I_SimpleProperty(osg::IndexArray *, FogCoordIndices, + __IndexArray_P1__getFogCoordIndices, + __void__setFogCoordIndices__IndexArray_P1); + I_SimpleProperty(unsigned int, GLObjectSizeHint, + __unsigned_int__getGLObjectSizeHint, + 0); + I_SimpleProperty(osg::Geometry *, InternalOptimizedGeometry, + __osg_Geometry_P1__getInternalOptimizedGeometry, + __void__setInternalOptimizedGeometry__osg_Geometry_P1); + I_SimpleProperty(osg::Array *, NormalArray, + __Array_P1__getNormalArray, + __void__setNormalArray__Array_P1); + I_SimpleProperty(osg::Geometry::AttributeBinding, NormalBinding, + __AttributeBinding__getNormalBinding, + __void__setNormalBinding__AttributeBinding); + I_SimpleProperty(const osg::Geometry::ArrayData &, NormalData, + __C5_ArrayData_R1__getNormalData, + __void__setNormalData__C5_ArrayData_R1); + I_SimpleProperty(osg::IndexArray *, NormalIndices, + __IndexArray_P1__getNormalIndices, + __void__setNormalIndices__IndexArray_P1); + I_ArrayProperty(osg::PrimitiveSet *, PrimitiveSet, + __PrimitiveSet_P1__getPrimitiveSet__unsigned_int, + __bool__setPrimitiveSet__unsigned_int__PrimitiveSet_P1, + __unsigned_int__getNumPrimitiveSets, + __bool__addPrimitiveSet__PrimitiveSet_P1, + __bool__insertPrimitiveSet__unsigned_int__PrimitiveSet_P1, + __bool__removePrimitiveSet__unsigned_int__unsigned_int); + I_SimpleProperty(const osg::Geometry::PrimitiveSetList &, PrimitiveSetList, + __C5_PrimitiveSetList_R1__getPrimitiveSetList, + __void__setPrimitiveSetList__C5_PrimitiveSetList_R1); + I_SimpleProperty(osg::Array *, SecondaryColorArray, + __Array_P1__getSecondaryColorArray, + __void__setSecondaryColorArray__Array_P1); + I_SimpleProperty(osg::Geometry::AttributeBinding, SecondaryColorBinding, + __AttributeBinding__getSecondaryColorBinding, + __void__setSecondaryColorBinding__AttributeBinding); + I_SimpleProperty(const osg::Geometry::ArrayData &, SecondaryColorData, + __C5_ArrayData_R1__getSecondaryColorData, + __void__setSecondaryColorData__C5_ArrayData_R1); + I_SimpleProperty(osg::IndexArray *, SecondaryColorIndices, + __IndexArray_P1__getSecondaryColorIndices, + __void__setSecondaryColorIndices__IndexArray_P1); + I_ArrayProperty(osg::Array *, TexCoordArray, + __Array_P1__getTexCoordArray__unsigned_int, + __void__setTexCoordArray__unsigned_int__Array_P1, + __unsigned_int__getNumTexCoordArrays, + 0, + 0, + 0); + I_SimpleProperty(osg::Geometry::ArrayList &, TexCoordArrayList, + __ArrayList_R1__getTexCoordArrayList, + 0); + I_ArrayProperty(const osg::Geometry::ArrayData &, TexCoordData, + __C5_ArrayData_R1__getTexCoordData__unsigned_int, + __void__setTexCoordData__unsigned_int__C5_ArrayData_R1, + __unsigned_int__getNumTexCoordArrays, + 0, + 0, + 0); + I_ArrayProperty(osg::IndexArray *, TexCoordIndices, + __IndexArray_P1__getTexCoordIndices__unsigned_int, + __void__setTexCoordIndices__unsigned_int__IndexArray_P1, + __unsigned_int__getNumTexCoordArrays, + 0, + 0, + 0); + I_SimpleProperty(osg::Array *, VertexArray, + __Array_P1__getVertexArray, + __void__setVertexArray__Array_P1); + I_ArrayProperty(osg::Array *, VertexAttribArray, + __Array_P1__getVertexAttribArray__unsigned_int, + __void__setVertexAttribArray__unsigned_int__Array_P1, + __unsigned_int__getNumVertexAttribArrays, + 0, + 0, + 0); + I_SimpleProperty(osg::Geometry::ArrayList &, VertexAttribArrayList, + __ArrayList_R1__getVertexAttribArrayList, + 0); + I_ArrayProperty(osg::Geometry::AttributeBinding, VertexAttribBinding, + __AttributeBinding__getVertexAttribBinding__unsigned_int, + __void__setVertexAttribBinding__unsigned_int__AttributeBinding, + __unsigned_int__getNumVertexAttribArrays, + 0, + 0, + 0); + I_ArrayProperty(const osg::Geometry::ArrayData &, VertexAttribData, + __C5_ArrayData_R1__getVertexAttribData__unsigned_int, + __void__setVertexAttribData__unsigned_int__C5_ArrayData_R1, + __unsigned_int__getNumVertexAttribArrays, + 0, + 0, + 0); + I_ArrayProperty(osg::IndexArray *, VertexAttribIndices, + __IndexArray_P1__getVertexAttribIndices__unsigned_int, + __void__setVertexAttribIndices__unsigned_int__IndexArray_P1, + __unsigned_int__getNumVertexAttribArrays, + 0, + 0, + 0); + I_ArrayProperty(GLboolean, VertexAttribNormalize, + __GLboolean__getVertexAttribNormalize__unsigned_int, + __void__setVertexAttribNormalize__unsigned_int__GLboolean, + __unsigned_int__getNumVertexAttribArrays, + 0, + 0, + 0); + I_SimpleProperty(const osg::Geometry::ArrayData &, VertexData, + __C5_ArrayData_R1__getVertexData, + __void__setVertexData__C5_ArrayData_R1); + I_SimpleProperty(osg::IndexArray *, VertexIndices, + __IndexArray_P1__getVertexIndices, + __void__setVertexIndices__IndexArray_P1); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::Geometry::ArrayData) - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Geometry::ArrayData &, data, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_ConstructorWithDefaults3(IN, osg::Array *, a, , IN, osg::Geometry::AttributeBinding, b, , IN, GLboolean, n, GL_FALSE); - I_ConstructorWithDefaults4(IN, osg::Array *, a, , IN, osg::IndexArray *, i, , IN, osg::Geometry::AttributeBinding, b, , IN, GLboolean, n, GL_FALSE); - I_Method0(bool, empty); + I_Constructor0(____ArrayData, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Geometry::ArrayData &, data, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ArrayData__C5_ArrayData_R1__C5_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults3(IN, osg::Array *, a, , IN, osg::Geometry::AttributeBinding, b, , IN, GLboolean, n, GL_FALSE, + ____ArrayData__Array_P1__AttributeBinding__GLboolean, + "", + ""); + I_ConstructorWithDefaults4(IN, osg::Array *, a, , IN, osg::IndexArray *, i, , IN, osg::Geometry::AttributeBinding, b, , IN, GLboolean, n, GL_FALSE, + ____ArrayData__Array_P1__IndexArray_P1__AttributeBinding__GLboolean, + "", + ""); + I_Method0(bool, empty, + __bool__empty, + "", + ""); I_PublicMemberProperty(osg::ref_ptr< osg::Array >, array); I_PublicMemberProperty(osg::ref_ptr< osg::IndexArray >, indices); I_PublicMemberProperty(osg::Geometry::AttributeBinding, binding); @@ -215,11 +707,25 @@ BEGIN_VALUE_REFLECTOR(osg::Geometry::ArrayData) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::Geometry::Vec3ArrayData) - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Geometry::Vec3ArrayData &, data, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_ConstructorWithDefaults3(IN, osg::Vec3Array *, a, , IN, osg::Geometry::AttributeBinding, b, , IN, GLboolean, n, GL_FALSE); - I_ConstructorWithDefaults4(IN, osg::Vec3Array *, a, , IN, osg::IndexArray *, i, , IN, osg::Geometry::AttributeBinding, b, , IN, GLboolean, n, GL_FALSE); - I_Method0(bool, empty); + I_Constructor0(____Vec3ArrayData, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Geometry::Vec3ArrayData &, data, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Vec3ArrayData__C5_Vec3ArrayData_R1__C5_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults3(IN, osg::Vec3Array *, a, , IN, osg::Geometry::AttributeBinding, b, , IN, GLboolean, n, GL_FALSE, + ____Vec3ArrayData__Vec3Array_P1__AttributeBinding__GLboolean, + "", + ""); + I_ConstructorWithDefaults4(IN, osg::Vec3Array *, a, , IN, osg::IndexArray *, i, , IN, osg::Geometry::AttributeBinding, b, , IN, GLboolean, n, GL_FALSE, + ____Vec3ArrayData__Vec3Array_P1__IndexArray_P1__AttributeBinding__GLboolean, + "", + ""); + I_Method0(bool, empty, + __bool__empty, + "", + ""); I_PublicMemberProperty(osg::ref_ptr< osg::Vec3Array >, array); I_PublicMemberProperty(osg::ref_ptr< osg::IndexArray >, indices); I_PublicMemberProperty(osg::Geometry::AttributeBinding, binding); @@ -228,14 +734,36 @@ BEGIN_VALUE_REFLECTOR(osg::Geometry::Vec3ArrayData) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::PrimitiveSet >) - I_Constructor0(); - I_Constructor1(IN, osg::PrimitiveSet *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osg::PrimitiveSet > &, rp); - I_Method0(osg::PrimitiveSet *, get); - I_Method0(bool, valid); - I_Method0(osg::PrimitiveSet *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osg::PrimitiveSet > &, rp); - I_ReadOnlyProperty(osg::PrimitiveSet *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::PrimitiveSet *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::PrimitiveSet > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::PrimitiveSet *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osg::PrimitiveSet *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::PrimitiveSet > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::PrimitiveSet *, , + __T_P1__get, + 0); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< osg::Geometry::ArrayData >); diff --git a/src/osgWrappers/osg/GraphicsContext.cpp b/src/osgWrappers/osg/GraphicsContext.cpp index aa5508699..6caf2f6b4 100644 --- a/src/osgWrappers/osg/GraphicsContext.cpp +++ b/src/osgWrappers/osg/GraphicsContext.cpp @@ -24,50 +24,153 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext) I_BaseType(osg::Referenced); - I_Method0(const osg::GraphicsContext::Traits *, getTraits); - I_Method1(void, setState, IN, osg::State *, state); - I_Method0(osg::State *, getState); - I_Method0(const osg::State *, getState); - I_Method0(bool, realize); - I_MethodWithDefaults1(void, close, IN, bool, callCloseImplementation, true); - I_Method0(void, swapBuffers); - I_Method0(bool, isRealized); - I_Method0(void, makeCurrent); - I_Method1(void, makeContextCurrent, IN, osg::GraphicsContext *, readContext); - I_Method0(void, releaseContext); - I_Method0(bool, isCurrent); - I_Method1(void, bindPBufferToTexture, IN, GLenum, buffer); - I_Method0(void, createGraphicsThread); - I_Method1(void, setGraphicsThread, IN, osg::GraphicsThread *, gt); - I_Method0(osg::GraphicsThread *, getGraphicsThread); - I_Method0(const osg::GraphicsThread *, getGraphicsThread); - I_Method0(bool, realizeImplementation); - I_Method0(bool, isRealizedImplementation); - I_Method0(void, closeImplementation); - I_Method0(void, makeCurrentImplementation); - I_Method1(void, makeContextCurrentImplementation, IN, osg::GraphicsContext *, readContext); - I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, buffer); - I_Method0(void, swapBuffersImplementation); - I_StaticMethod1(void, setCreateGraphicsContextCallback, IN, osg::GraphicsContext::CreateGraphicContextCallback *, callback); - I_StaticMethod0(osg::GraphicsContext::CreateGraphicContextCallback *, getCreateGraphicsContextCallback); - I_StaticMethod1(osg::GraphicsContext *, createGraphicsContext, IN, osg::GraphicsContext::Traits *, traits); - I_StaticMethod0(unsigned int, createNewContextID); - I_StaticMethod1(void, incrementContextIDUsageCount, IN, unsigned int, contextID); - I_StaticMethod1(void, decrementContextIDUsageCount, IN, unsigned int, contextID); - I_Property(osg::GraphicsThread *, GraphicsThread); - I_Property(osg::State *, State); - I_ReadOnlyProperty(const osg::GraphicsContext::Traits *, Traits); + I_Method0(const osg::GraphicsContext::Traits *, getTraits, + __C5_Traits_P1__getTraits, + "Get the traits of the GraphicsContext. ", + ""); + I_Method1(void, setState, IN, osg::State *, state, + __void__setState__State_P1, + "Set the State object which tracks the current OpenGL state for this graphics context. ", + ""); + I_Method0(osg::State *, getState, + __State_P1__getState, + "Get the State object which tracks the current OpenGL state for this graphics context. ", + ""); + I_Method0(const osg::State *, getState, + __C5_State_P1__getState, + "Get the const State object which tracks the current OpenGL state for this graphics context. ", + ""); + I_Method0(bool, realize, + __bool__realize, + "Realise the GraphicsContext. ", + ""); + I_MethodWithDefaults1(void, close, IN, bool, callCloseImplementation, true, + __void__close__bool, + "close the graphics context. ", + "close(bool) stops any associated graphics threads, releases the contextID for the GraphicsContext then optional calls closeImplementation() to do the actual deletion of the graphics. This call is made optional as there are times when the graphics context has already been deleted externally and only the OSG side of the its data need to be closed down. "); + I_Method0(void, swapBuffers, + __void__swapBuffers, + "swap the front and back buffers. ", + ""); + I_Method0(bool, isRealized, + __bool__isRealized, + "Return true if the graphics context has been realised and is ready to use. ", + ""); + I_Method0(void, makeCurrent, + __void__makeCurrent, + "Make this graphics context current. ", + "Implementated by first aquiring a lock of the GraphicsContext mutex, and then doing a call to makeCurrentImplementation(). "); + I_Method1(void, makeContextCurrent, IN, osg::GraphicsContext *, readContext, + __void__makeContextCurrent__GraphicsContext_P1, + "Make this graphics context current with specified read context. ", + "Implementated by first aquiring a lock of the GraphicsContext mutex, and then doing a call to makeContextCurrentImplementation(). "); + I_Method0(void, releaseContext, + __void__releaseContext, + "Release the graphics context by unlocking the GraphicsContext mutex. ", + ""); + I_Method0(bool, isCurrent, + __bool__isCurrent, + "Return true if the current thread has this OpenGL graphics context. ", + ""); + I_Method1(void, bindPBufferToTexture, IN, GLenum, buffer, + __void__bindPBufferToTexture__GLenum, + "Bind the graphics context to associated texture. ", + ""); + I_Method0(void, createGraphicsThread, + __void__createGraphicsThread, + "Create a graphics thread to the graphics context, so that the thread handles all OpenGL operations. ", + ""); + I_Method1(void, setGraphicsThread, IN, osg::GraphicsThread *, gt, + __void__setGraphicsThread__GraphicsThread_P1, + "Assign a graphics thread to the graphics context, so that the thread handles all OpenGL operations. ", + ""); + I_Method0(osg::GraphicsThread *, getGraphicsThread, + __GraphicsThread_P1__getGraphicsThread, + "Get the graphics thread assigned the graphics context. ", + ""); + I_Method0(const osg::GraphicsThread *, getGraphicsThread, + __C5_GraphicsThread_P1__getGraphicsThread, + "Get the const graphics thread assigned the graphics context. ", + ""); + I_Method0(bool, realizeImplementation, + __bool__realizeImplementation, + "Realise the GraphicsContext implementation, Pure virtual - must be implemented by concrate implementations of GraphicsContext. ", + ""); + I_Method0(bool, isRealizedImplementation, + __bool__isRealizedImplementation, + "Return true if the graphics context has been realised, and is ready to use, implementation. ", + "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); + I_Method0(void, closeImplementation, + __void__closeImplementation, + "Close the graphics context implementation. ", + "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); + I_Method0(void, makeCurrentImplementation, + __void__makeCurrentImplementation, + "Make this graphics context current implementation. ", + "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); + I_Method1(void, makeContextCurrentImplementation, IN, osg::GraphicsContext *, readContext, + __void__makeContextCurrentImplementation__GraphicsContext_P1, + "Make this graphics context current with specified read context implementation. ", + "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); + I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, buffer, + __void__bindPBufferToTextureImplementation__GLenum, + "Pure virtual, Bind the graphics context to associated texture implementation. ", + "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); + I_Method0(void, swapBuffersImplementation, + __void__swapBuffersImplementation, + "Swap the front and back buffers implementation. ", + "Pure virtual - must be implemented by Concrate implementations of GraphicsContext. "); + I_StaticMethod1(void, setCreateGraphicsContextCallback, IN, osg::GraphicsContext::CreateGraphicContextCallback *, callback, + __void__setCreateGraphicsContextCallback__CreateGraphicContextCallback_P1_S, + "Set the create graphics context callback - this callback should be supplied by the windows toolkit. ", + ""); + I_StaticMethod0(osg::GraphicsContext::CreateGraphicContextCallback *, getCreateGraphicsContextCallback, + __CreateGraphicContextCallback_P1__getCreateGraphicsContextCallback_S, + "Get the create graphics context callback. ", + ""); + I_StaticMethod1(osg::GraphicsContext *, createGraphicsContext, IN, osg::GraphicsContext::Traits *, traits, + __GraphicsContext_P1__createGraphicsContext__Traits_P1_S, + "Create a graphics context for a specified set of traits. ", + ""); + I_StaticMethod0(unsigned int, createNewContextID, + __unsigned_int__createNewContextID_S, + "Create a contextID for a new graphics context, this contextID is used to set up the osg::State associate with context. ", + "Automatically increments the usage count of the contextID to 1. "); + I_StaticMethod1(void, incrementContextIDUsageCount, IN, unsigned int, contextID, + __void__incrementContextIDUsageCount__unsigned_int_S, + "Increment the usage count associate with a contextID. ", + "The usage count speficies how many graphics contexts a specific contextID is shared between. "); + I_StaticMethod1(void, decrementContextIDUsageCount, IN, unsigned int, contextID, + __void__decrementContextIDUsageCount__unsigned_int_S, + "Decrement the usage count associate with a contextID. ", + "Once the contextID goes to 0 the contextID is then free to be reused. "); + I_SimpleProperty(osg::GraphicsThread *, GraphicsThread, + __GraphicsThread_P1__getGraphicsThread, + __void__setGraphicsThread__GraphicsThread_P1); + I_SimpleProperty(osg::State *, State, + __State_P1__getState, + __void__setState__State_P1); + I_SimpleProperty(const osg::GraphicsContext::Traits *, Traits, + __C5_Traits_P1__getTraits, + 0); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext::CreateGraphicContextCallback) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method1(osg::GraphicsContext *, createGraphicsContext, IN, osg::GraphicsContext::Traits *, traits); + I_Constructor0(____CreateGraphicContextCallback, + "", + ""); + I_Method1(osg::GraphicsContext *, createGraphicsContext, IN, osg::GraphicsContext::Traits *, traits, + __GraphicsContext_P1__createGraphicsContext__Traits_P1, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::GraphicsContext::Traits) I_BaseType(osg::Referenced); - I_Constructor0(); + I_Constructor0(____Traits, + "", + ""); I_PublicMemberProperty(std::string, _hostName); I_PublicMemberProperty(unsigned int, _displayNum); I_PublicMemberProperty(unsigned int, _screenNum); diff --git a/src/osgWrappers/osg/GraphicsThread.cpp b/src/osgWrappers/osg/GraphicsThread.cpp index 4b6db1837..897a0a785 100644 --- a/src/osgWrappers/osg/GraphicsThread.cpp +++ b/src/osgWrappers/osg/GraphicsThread.cpp @@ -29,47 +29,121 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::BarrierOperation) I_BaseType(osg::GraphicsThread::Operation); - I_ConstructorWithDefaults2(IN, int, numThreads, , IN, osg::BarrierOperation::PreBlockOp, op, osg::BarrierOperation::NO_OPERATION); - I_Method0(void, release); + I_ConstructorWithDefaults2(IN, int, numThreads, , IN, osg::BarrierOperation::PreBlockOp, op, osg::BarrierOperation::NO_OPERATION, + ____BarrierOperation__int__PreBlockOp, + "", + ""); + I_Method0(void, release, + __void__release, + "if this operation is a barrier then release it. ", + ""); I_PublicMemberProperty(osg::BarrierOperation::PreBlockOp, _preBlockOp); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Block) I_VirtualBaseType(osg::Referenced); - I_Constructor0(); - I_Method0(void, block); - I_Method0(void, release); - I_Method0(void, reset); - I_Method1(void, set, IN, bool, doRelease); - I_WriteOnlyProperty(bool, ); + I_Constructor0(____Block, + "", + ""); + I_Method0(void, block, + __void__block, + "", + ""); + I_Method0(void, release, + __void__release, + "", + ""); + I_Method0(void, reset, + __void__reset, + "", + ""); + I_Method1(void, set, IN, bool, doRelease, + __void__set__bool, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::GraphicsThread) I_BaseType(osg::Referenced); - I_Constructor0(); - I_MethodWithDefaults2(void, add, IN, osg::GraphicsThread::Operation *, operation, , IN, bool, waitForCompletion, false); - I_Method1(void, remove, IN, osg::GraphicsThread::Operation *, operation); - I_Method1(void, remove, IN, const std::string &, name); - I_Method0(void, removeAllOperations); - I_Method0(osg::ref_ptr< osg::GraphicsThread::Operation >, getCurrentOperation); - I_Method0(void, run); - I_Method1(void, setDone, IN, bool, done); - I_Method0(bool, getDone); - I_Method0(int, cancel); - I_ReadOnlyProperty(osg::ref_ptr< osg::GraphicsThread::Operation >, CurrentOperation); - I_Property(bool, Done); + I_Constructor0(____GraphicsThread, + "", + ""); + I_MethodWithDefaults2(void, add, IN, osg::GraphicsThread::Operation *, operation, , IN, bool, waitForCompletion, false, + __void__add__Operation_P1__bool, + "Add operation to end of OperationQueue, this will be executed by the graphics thread once this operation gets to the head of the queue. ", + ""); + I_Method1(void, remove, IN, osg::GraphicsThread::Operation *, operation, + __void__remove__Operation_P1, + "Remove operation from OperationQueue. ", + ""); + I_Method1(void, remove, IN, const std::string &, name, + __void__remove__C5_std_string_R1, + "Remove named operation from OperationQueue. ", + ""); + I_Method0(void, removeAllOperations, + __void__removeAllOperations, + "Remove all operations from OperationQueue. ", + ""); + I_Method0(osg::ref_ptr< osg::GraphicsThread::Operation >, getCurrentOperation, + __osg_ref_ptrT1_Operation___getCurrentOperation, + "Get the operation currently being run. ", + ""); + I_Method0(void, run, + __void__run, + "Run does the graphics thread run loop. ", + ""); + I_Method1(void, setDone, IN, bool, done, + __void__setDone__bool, + "", + ""); + I_Method0(bool, getDone, + __bool__getDone, + "", + ""); + I_Method0(int, cancel, + __int__cancel, + "Cancel this graphics thread. ", + ""); + I_SimpleProperty(osg::ref_ptr< osg::GraphicsThread::Operation >, CurrentOperation, + __osg_ref_ptrT1_Operation___getCurrentOperation, + 0); + I_SimpleProperty(bool, Done, + __bool__getDone, + __void__setDone__bool); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::GraphicsThread::Operation) I_VirtualBaseType(osg::Referenced); - I_Constructor2(IN, const std::string &, name, IN, bool, keep); - I_Method1(void, setName, IN, const std::string &, name); - I_Method0(const std::string &, getName); - I_Method1(void, setKeep, IN, bool, keep); - I_Method0(bool, getKeep); - I_Method0(void, release); - I_Property(bool, Keep); - I_Property(const std::string &, Name); + I_Constructor2(IN, const std::string &, name, IN, bool, keep, + ____Operation__C5_std_string_R1__bool, + "", + ""); + I_Method1(void, setName, IN, const std::string &, name, + __void__setName__C5_std_string_R1, + "Set the human readable name of the operation. ", + ""); + I_Method0(const std::string &, getName, + __C5_std_string_R1__getName, + "Get the human readable name of the operation. ", + ""); + I_Method1(void, setKeep, IN, bool, keep, + __void__setKeep__bool, + "Set whether the operation should be kept once its been applied. ", + ""); + I_Method0(bool, getKeep, + __bool__getKeep, + "Get whether the operation should be kept once its been applied. ", + ""); + I_Method0(void, release, + __void__release, + "if this operation is a barrier then release it. ", + ""); + I_SimpleProperty(bool, Keep, + __bool__getKeep, + __void__setKeep__bool); + I_SimpleProperty(const std::string &, Name, + __C5_std_string_R1__getName, + __void__setName__C5_std_string_R1); I_PublicMemberProperty(std::string, _name); I_PublicMemberProperty(bool, _keep); END_REFLECTOR @@ -77,23 +151,52 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::ReleaseContext_Block_MakeCurrentOperation) I_BaseType(osg::GraphicsThread::Operation); I_BaseType(osg::Block); - I_Constructor0(); - I_Method0(void, release); + I_Constructor0(____ReleaseContext_Block_MakeCurrentOperation, + "", + ""); + I_Method0(void, release, + __void__release, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::SwapBuffersOperation) I_BaseType(osg::GraphicsThread::Operation); - I_Constructor0(); + I_Constructor0(____SwapBuffersOperation, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::GraphicsThread::Operation >) - I_Constructor0(); - I_Constructor1(IN, osg::GraphicsThread::Operation *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osg::GraphicsThread::Operation > &, rp); - I_Method0(osg::GraphicsThread::Operation *, get); - I_Method0(bool, valid); - I_Method0(osg::GraphicsThread::Operation *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osg::GraphicsThread::Operation > &, rp); - I_ReadOnlyProperty(osg::GraphicsThread::Operation *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::GraphicsThread::Operation *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::GraphicsThread::Operation > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::GraphicsThread::Operation *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osg::GraphicsThread::Operation *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::GraphicsThread::Operation > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::GraphicsThread::Operation *, , + __T_P1__get, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/Group.cpp b/src/osgWrappers/osg/Group.cpp index 0ab20c4c6..78af38ef7 100644 --- a/src/osgWrappers/osg/Group.cpp +++ b/src/osgWrappers/osg/Group.cpp @@ -28,45 +28,147 @@ BEGIN_OBJECT_REFLECTOR(osg::Group) I_BaseType(osg::Node); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Group &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(osg::Group *, asGroup); - I_Method0(const osg::Group *, asGroup); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method1(bool, addChild, IN, osg::Node *, child); - I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child); - I_Method1(bool, removeChild, IN, osg::Node *, child); - I_MethodWithDefaults2(bool, removeChild, IN, unsigned int, pos, , IN, unsigned int, numChildrenToRemove, 1); - I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove); - I_Method2(bool, replaceChild, IN, osg::Node *, origChild, IN, osg::Node *, newChild); - I_Method0(unsigned int, getNumChildren); - I_Method2(bool, setChild, IN, unsigned int, i, IN, osg::Node *, node); - I_Method1(osg::Node *, getChild, IN, unsigned int, i); - I_Method1(const osg::Node *, getChild, IN, unsigned int, i); - I_Method1(bool, containsNode, IN, const osg::Node *, node); - I_Method1(unsigned int, getChildIndex, IN, const osg::Node *, node); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0); - I_Method0(osg::BoundingSphere, computeBound); - I_ArrayProperty_GSA(osg::Node *, Child, Children, unsigned int, bool); + I_Constructor0(____Group, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Group &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Group__C5_Group_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(osg::Group *, asGroup, + __Group_P1__asGroup, + "convert 'this' into a Group pointer if Node is a Group, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method0(const osg::Group *, asGroup, + __C5_Group_P1__asGroup, + "convert 'const this' into a const Group pointer if Node is a Group, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + __bool__addChild__Node_P1, + "Add Node to Group. ", + "If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes."); + I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, + __bool__insertChild__unsigned_int__Node_P1, + "Insert Node to Group at specific location. ", + "The new child node is inserted into the child list before the node at the specified index. No nodes are removed from the group with this operation."); + I_Method1(bool, removeChild, IN, osg::Node *, child, + __bool__removeChild__Node_P1, + "Remove Node from Group. ", + "If Node is contained in Group then remove it from the child list, decrement its reference count, and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. If Node is not found then return false and do not change the reference count of the Node. Note, do not override, only override removeChildren(,) is required."); + I_MethodWithDefaults2(bool, removeChild, IN, unsigned int, pos, , IN, unsigned int, numChildrenToRemove, 1, + __bool__removeChild__unsigned_int__unsigned_int, + "Remove Node from Group. ", + "If Node is contained in Group then remove it from the child list, decrement its reference count, and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. If Node is not found then return false and do not change the reference count of the Node. Note, do not override, only override removeChildren(,) is required."); + I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove, + __bool__removeChildren__unsigned_int__unsigned_int, + "Remove children from Group. ", + "Note, must be override by subclasses of Group which add per child attributes. "); + I_Method2(bool, replaceChild, IN, osg::Node *, origChild, IN, osg::Node *, newChild, + __bool__replaceChild__Node_P1__Node_P1, + "Replace specified Node with another Node. ", + "Equivalent to setChild(getChildIndex(orignChild),node) See docs for setChild for futher details on implementation."); + I_Method0(unsigned int, getNumChildren, + __unsigned_int__getNumChildren, + "Return the number of chilren nodes. ", + ""); + I_Method2(bool, setChild, IN, unsigned int, i, IN, osg::Node *, node, + __bool__setChild__unsigned_int__Node_P1, + "Set child node at position i. ", + "Return true if set correctly, false on failure (if node==NULL || i is out of range). When Set can be successful applied, the algorithm is : decrement the reference count origNode and increment the reference count of newNode, and dirty the bounding sphere to force it to recompute on next getBound() and return true. If origNode is not found then return false and do not add newNode. If newNode is NULL then return false and do not remove origNode. Also returns false if newChild is a Scene node."); + I_Method1(osg::Node *, getChild, IN, unsigned int, i, + __Node_P1__getChild__unsigned_int, + "Return child node at position i. ", + ""); + I_Method1(const osg::Node *, getChild, IN, unsigned int, i, + __C5_Node_P1__getChild__unsigned_int, + "Return child node at position i. ", + ""); + I_Method1(bool, containsNode, IN, const osg::Node *, node, + __bool__containsNode__C5_Node_P1, + "Return true if node is contained within Group. ", + ""); + I_Method1(unsigned int, getChildIndex, IN, const osg::Node *, node, + __unsigned_int__getChildIndex__C5_Node_P1, + "Get the index number of child, return a value between 0 and _children.size()-1 if found, if not found then return _children.size(). ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + __void__releaseGLObjects__osg_State_P1, + "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objexts for all graphics contexts. "); + I_Method0(osg::BoundingSphere, computeBound, + __BoundingSphere__computeBound, + "Compute the bounding sphere around Node's geometry or children. ", + "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); + I_ArrayProperty(osg::Node *, Child, + __Node_P1__getChild__unsigned_int, + __bool__setChild__unsigned_int__Node_P1, + __unsigned_int__getNumChildren, + __bool__addChild__Node_P1, + __bool__insertChild__unsigned_int__Node_P1, + __bool__removeChild__unsigned_int__unsigned_int); END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Node > >, osg::NodeList); BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Node >) - I_Constructor0(); - I_Constructor1(IN, osg::Node *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osg::Node > &, rp); - I_Method0(osg::Node *, get); - I_Method0(bool, valid); - I_Method0(osg::Node *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osg::Node > &, rp); - I_ReadOnlyProperty(osg::Node *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Node *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Node > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Node *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osg::Node *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Node > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Node *, , + __T_P1__get, + 0); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Node > >); diff --git a/src/osgWrappers/osg/Image.cpp b/src/osgWrappers/osg/Image.cpp index a0e9524a5..ebf2c5fce 100644 --- a/src/osgWrappers/osg/Image.cpp +++ b/src/osgWrappers/osg/Image.cpp @@ -33,82 +33,299 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Image) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Image &, image, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(int, compare, IN, const osg::Image &, rhs); - I_Method1(void, setFileName, IN, const std::string &, fileName); - I_Method0(const std::string &, getFileName); - I_Method1(void, setAllocationMode, IN, osg::Image::AllocationMode, mode); - I_Method0(osg::Image::AllocationMode, getAllocationMode); - I_MethodWithDefaults6(void, allocateImage, IN, int, s, , IN, int, t, , IN, int, r, , IN, GLenum, pixelFormat, , IN, GLenum, type, , IN, int, packing, 1); - I_MethodWithDefaults9(void, setImage, IN, int, s, , IN, int, t, , IN, int, r, , IN, GLint, internalTextureformat, , IN, GLenum, pixelFormat, , IN, GLenum, type, , IN, unsigned char *, data, , IN, osg::Image::AllocationMode, mode, , IN, int, packing, 1); - I_Method6(void, readPixels, IN, int, x, IN, int, y, IN, int, width, IN, int, height, IN, GLenum, pixelFormat, IN, GLenum, type); - I_MethodWithDefaults3(void, readImageFromCurrentTexture, IN, unsigned int, contextID, , IN, bool, copyMipMapsIfAvailable, , IN, GLenum, type, GL_UNSIGNED_BYTE); - I_Method3(void, scaleImage, IN, int, s, IN, int, t, IN, int, r); - I_Method4(void, scaleImage, IN, int, s, IN, int, t, IN, int, r, IN, GLenum, newDataType); - I_Method4(void, copySubImage, IN, int, s_offset, IN, int, t_offset, IN, int, r_offset, IN, osg::Image *, source); - I_Method0(int, s); - I_Method0(int, t); - I_Method0(int, r); - I_Method1(void, setInternalTextureFormat, IN, GLint, internalFormat); - I_Method0(GLint, getInternalTextureFormat); - I_Method1(void, setPixelFormat, IN, GLenum, pixelFormat); - I_Method0(GLenum, getPixelFormat); - I_Method1(void, setDataType, IN, GLenum, dataType); - I_Method0(GLenum, getDataType); - I_Method1(void, setPacking, IN, unsigned int, packing); - I_Method0(unsigned int, getPacking); - I_Method0(unsigned int, getPixelSizeInBits); - I_Method0(unsigned int, getRowSizeInBytes); - I_Method0(unsigned int, getImageSizeInBytes); - I_Method0(unsigned int, getTotalSizeInBytes); - I_Method0(unsigned int, getTotalSizeInBytesIncludingMipmaps); - I_Method0(bool, valid); - I_Method0(unsigned char *, data); - I_Method0(const unsigned char *, data); - I_MethodWithDefaults3(unsigned char *, data, IN, int, column, , IN, int, row, 0, IN, int, image, 0); - I_MethodWithDefaults3(const unsigned char *, data, IN, int, column, , IN, int, row, 0, IN, int, image, 0); - I_Method0(void, flipHorizontal); - I_Method0(void, flipVertical); - I_Method1(void, ensureValidSizeForTexturing, IN, GLint, maxTextureSize); - I_Method0(void, dirty); - I_Method1(void, setModifiedCount, IN, unsigned int, value); - I_Method0(unsigned int, getModifiedCount); - I_Method0(bool, isMipmap); - I_Method0(unsigned int, getNumMipmapLevels); - I_Method1(void, setMipmapLevels, IN, const osg::Image::MipmapDataType &, mipmapDataVector); - I_Method0(const osg::Image::MipmapDataType &, getMipmapLevels); - I_Method1(unsigned int, getMipmapOffset, IN, unsigned int, mipmapLevel); - I_Method1(unsigned char *, getMipmapData, IN, unsigned int, mipmapLevel); - I_Method1(const unsigned char *, getMipmapData, IN, unsigned int, mipmapLevel); - I_Method0(bool, isImageTranslucent); - I_Method1(void, setPixelBufferObject, IN, osg::PixelBufferObject *, buffer); - I_Method0(osg::PixelBufferObject *, getPixelBufferObject); - I_Method0(const osg::PixelBufferObject *, getPixelBufferObject); - I_StaticMethod1(bool, isPackedType, IN, GLenum, type); - I_StaticMethod1(unsigned int, computeNumComponents, IN, GLenum, pixelFormat); - I_StaticMethod2(unsigned int, computePixelSizeInBits, IN, GLenum, pixelFormat, IN, GLenum, type); - I_StaticMethod4(unsigned int, computeRowWidthInBytes, IN, int, width, IN, GLenum, pixelFormat, IN, GLenum, type, IN, int, packing); - I_StaticMethodWithDefaults2(int, computeNearestPowerOfTwo, IN, int, s, , IN, float, bias, 0.5f); - I_Property(osg::Image::AllocationMode, AllocationMode); - I_Property(GLenum, DataType); - I_Property(const std::string &, FileName); - I_ReadOnlyProperty(unsigned int, ImageSizeInBytes); - I_Property(GLint, InternalTextureFormat); - I_Property(const osg::Image::MipmapDataType &, MipmapLevels); - I_Property(unsigned int, ModifiedCount); - I_Property(unsigned int, Packing); - I_Property(osg::PixelBufferObject *, PixelBufferObject); - I_Property(GLenum, PixelFormat); - I_ReadOnlyProperty(unsigned int, PixelSizeInBits); - I_ReadOnlyProperty(unsigned int, RowSizeInBytes); - I_ReadOnlyProperty(unsigned int, TotalSizeInBytes); - I_ReadOnlyProperty(unsigned int, TotalSizeInBytesIncludingMipmaps); + I_Constructor0(____Image, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Image &, image, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Image__C5_Image_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(int, compare, IN, const osg::Image &, rhs, + __int__compare__C5_Image_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setFileName, IN, const std::string &, fileName, + __void__setFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getFileName, + __C5_std_string_R1__getFileName, + "", + ""); + I_Method1(void, setAllocationMode, IN, osg::Image::AllocationMode, mode, + __void__setAllocationMode__AllocationMode, + "Set the method used for deleting data once it goes out of scope. ", + ""); + I_Method0(osg::Image::AllocationMode, getAllocationMode, + __AllocationMode__getAllocationMode, + "Get the method used for deleting data once it goes out of scope. ", + ""); + I_MethodWithDefaults6(void, allocateImage, IN, int, s, , IN, int, t, , IN, int, r, , IN, GLenum, pixelFormat, , IN, GLenum, type, , IN, int, packing, 1, + __void__allocateImage__int__int__int__GLenum__GLenum__int, + "Allocate a pixel block of specified size and type. ", + ""); + I_MethodWithDefaults9(void, setImage, IN, int, s, , IN, int, t, , IN, int, r, , IN, GLint, internalTextureformat, , IN, GLenum, pixelFormat, , IN, GLenum, type, , IN, unsigned char *, data, , IN, osg::Image::AllocationMode, mode, , IN, int, packing, 1, + __void__setImage__int__int__int__GLint__GLenum__GLenum__unsigned_char_P1__AllocationMode__int, + "Set the image dimensions, format and data. ", + ""); + I_Method6(void, readPixels, IN, int, x, IN, int, y, IN, int, width, IN, int, height, IN, GLenum, pixelFormat, IN, GLenum, type, + __void__readPixels__int__int__int__int__GLenum__GLenum, + "Read pixels from current frame buffer at specified position and size, using glReadPixels. ", + "Create memory for storage if required, reuse existing pixel coords if possible."); + I_MethodWithDefaults3(void, readImageFromCurrentTexture, IN, unsigned int, contextID, , IN, bool, copyMipMapsIfAvailable, , IN, GLenum, type, GL_UNSIGNED_BYTE, + __void__readImageFromCurrentTexture__unsigned_int__bool__GLenum, + "Read the contents of the current bound texture, handling compressed pixelFormats if present. ", + "Create memory for storage if required, reuse existing pixel coords if possible."); + I_Method3(void, scaleImage, IN, int, s, IN, int, t, IN, int, r, + __void__scaleImage__int__int__int, + "Scale image to specified size. ", + ""); + I_Method4(void, scaleImage, IN, int, s, IN, int, t, IN, int, r, IN, GLenum, newDataType, + __void__scaleImage__int__int__int__GLenum, + "Scale image to specified size and with specified data type. ", + ""); + I_Method4(void, copySubImage, IN, int, s_offset, IN, int, t_offset, IN, int, r_offset, IN, osg::Image *, source, + __void__copySubImage__int__int__int__osg_Image_P1, + "Copy a source Image into a subpart of this Image at specified position. ", + "Typically used to copy to an already allocated image, such as creating a 3D image from a stack 2D images. If this Image is empty then image data is created to accomodate the source image in its offset position. If source is NULL then no operation happens, this Image is left unchanged."); + I_Method0(int, s, + __int__s, + "Width of image. ", + ""); + I_Method0(int, t, + __int__t, + "Height of image. ", + ""); + I_Method0(int, r, + __int__r, + "Depth of image. ", + ""); + I_Method1(void, setInternalTextureFormat, IN, GLint, internalFormat, + __void__setInternalTextureFormat__GLint, + "", + ""); + I_Method0(GLint, getInternalTextureFormat, + __GLint__getInternalTextureFormat, + "", + ""); + I_Method1(void, setPixelFormat, IN, GLenum, pixelFormat, + __void__setPixelFormat__GLenum, + "", + ""); + I_Method0(GLenum, getPixelFormat, + __GLenum__getPixelFormat, + "", + ""); + I_Method1(void, setDataType, IN, GLenum, dataType, + __void__setDataType__GLenum, + "", + ""); + I_Method0(GLenum, getDataType, + __GLenum__getDataType, + "", + ""); + I_Method1(void, setPacking, IN, unsigned int, packing, + __void__setPacking__unsigned_int, + "", + ""); + I_Method0(unsigned int, getPacking, + __unsigned_int__getPacking, + "", + ""); + I_Method0(unsigned int, getPixelSizeInBits, + __unsigned_int__getPixelSizeInBits, + "Return the number of bits required for each pixel. ", + ""); + I_Method0(unsigned int, getRowSizeInBytes, + __unsigned_int__getRowSizeInBytes, + "Return the number of bytes each row of pixels occupies once it has been packed. ", + ""); + I_Method0(unsigned int, getImageSizeInBytes, + __unsigned_int__getImageSizeInBytes, + "Return the number of bytes each image (_s*_t) of pixels occupies. ", + ""); + I_Method0(unsigned int, getTotalSizeInBytes, + __unsigned_int__getTotalSizeInBytes, + "Return the number of bytes the whole row/image/volume of pixels occupies. ", + ""); + I_Method0(unsigned int, getTotalSizeInBytesIncludingMipmaps, + __unsigned_int__getTotalSizeInBytesIncludingMipmaps, + "Return the number of bytes the whole row/image/volume of pixels occupies, including all mip maps if included. ", + ""); + I_Method0(bool, valid, + __bool__valid, + "Return true if the Image represent a valid and usable imagery. ", + ""); + I_Method0(unsigned char *, data, + __unsigned_char_P1__data, + "Raw image data. ", + ""); + I_Method0(const unsigned char *, data, + __C5_unsigned_char_P1__data, + "Raw const image data. ", + ""); + I_MethodWithDefaults3(unsigned char *, data, IN, int, column, , IN, int, row, 0, IN, int, image, 0, + __unsigned_char_P1__data__int__int__int, + "", + ""); + I_MethodWithDefaults3(const unsigned char *, data, IN, int, column, , IN, int, row, 0, IN, int, image, 0, + __C5_unsigned_char_P1__data__int__int__int, + "", + ""); + I_Method0(void, flipHorizontal, + __void__flipHorizontal, + "Flip the image horizontally. ", + ""); + I_Method0(void, flipVertical, + __void__flipVertical, + "Flip the image vertically. ", + ""); + I_Method1(void, ensureValidSizeForTexturing, IN, GLint, maxTextureSize, + __void__ensureValidSizeForTexturing__GLint, + "Ensure image dimensions are a power of two. ", + "Mipmapped textures require the image dimensions to be power of two and are within the maxiumum texture size for the host machine."); + I_Method0(void, dirty, + __void__dirty, + "Dirty the image, which increments the modified count, to force osg::Texture to reload the image. ", + ""); + I_Method1(void, setModifiedCount, IN, unsigned int, value, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + "Used by osg::Texture when using texture subloading. "); + I_Method0(unsigned int, getModifiedCount, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + "Used by osg::Texture when using texture subloading. "); + I_Method0(bool, isMipmap, + __bool__isMipmap, + "", + ""); + I_Method0(unsigned int, getNumMipmapLevels, + __unsigned_int__getNumMipmapLevels, + "", + ""); + I_Method1(void, setMipmapLevels, IN, const osg::Image::MipmapDataType &, mipmapDataVector, + __void__setMipmapLevels__C5_MipmapDataType_R1, + "Send offsets into data. ", + "It is assumed that first mipmap offset (index 0) is 0. "); + I_Method0(const osg::Image::MipmapDataType &, getMipmapLevels, + __C5_MipmapDataType_R1__getMipmapLevels, + "", + ""); + I_Method1(unsigned int, getMipmapOffset, IN, unsigned int, mipmapLevel, + __unsigned_int__getMipmapOffset__unsigned_int, + "", + ""); + I_Method1(unsigned char *, getMipmapData, IN, unsigned int, mipmapLevel, + __unsigned_char_P1__getMipmapData__unsigned_int, + "", + ""); + I_Method1(const unsigned char *, getMipmapData, IN, unsigned int, mipmapLevel, + __C5_unsigned_char_P1__getMipmapData__unsigned_int, + "", + ""); + I_Method0(bool, isImageTranslucent, + __bool__isImageTranslucent, + "Return true if this image is translucent - i.e. ", + "it has alpha values that are less 1.0 (when normalized). "); + I_Method1(void, setPixelBufferObject, IN, osg::PixelBufferObject *, buffer, + __void__setPixelBufferObject__PixelBufferObject_P1, + "Set the optional PixelBufferObject used to map the image memory efficiently to graphics memory. ", + ""); + I_Method0(osg::PixelBufferObject *, getPixelBufferObject, + __PixelBufferObject_P1__getPixelBufferObject, + "Get the PixelBufferObject. ", + ""); + I_Method0(const osg::PixelBufferObject *, getPixelBufferObject, + __C5_PixelBufferObject_P1__getPixelBufferObject, + "Get the const PixelBufferObject. ", + ""); + I_StaticMethod1(bool, isPackedType, IN, GLenum, type, + __bool__isPackedType__GLenum_S, + "", + ""); + I_StaticMethod1(GLenum, computePixelFormat, IN, GLenum, pixelFormat, + __GLenum__computePixelFormat__GLenum_S, + "", + ""); + I_StaticMethod1(unsigned int, computeNumComponents, IN, GLenum, pixelFormat, + __unsigned_int__computeNumComponents__GLenum_S, + "", + ""); + I_StaticMethod2(unsigned int, computePixelSizeInBits, IN, GLenum, pixelFormat, IN, GLenum, type, + __unsigned_int__computePixelSizeInBits__GLenum__GLenum_S, + "", + ""); + I_StaticMethod4(unsigned int, computeRowWidthInBytes, IN, int, width, IN, GLenum, pixelFormat, IN, GLenum, type, IN, int, packing, + __unsigned_int__computeRowWidthInBytes__int__GLenum__GLenum__int_S, + "", + ""); + I_StaticMethodWithDefaults2(int, computeNearestPowerOfTwo, IN, int, s, , IN, float, bias, 0.5f, + __int__computeNearestPowerOfTwo__int__float_S, + "", + ""); + I_SimpleProperty(osg::Image::AllocationMode, AllocationMode, + __AllocationMode__getAllocationMode, + __void__setAllocationMode__AllocationMode); + I_SimpleProperty(GLenum, DataType, + __GLenum__getDataType, + __void__setDataType__GLenum); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(unsigned int, ImageSizeInBytes, + __unsigned_int__getImageSizeInBytes, + 0); + I_SimpleProperty(GLint, InternalTextureFormat, + __GLint__getInternalTextureFormat, + __void__setInternalTextureFormat__GLint); + I_SimpleProperty(const osg::Image::MipmapDataType &, MipmapLevels, + __C5_MipmapDataType_R1__getMipmapLevels, + __void__setMipmapLevels__C5_MipmapDataType_R1); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); + I_SimpleProperty(unsigned int, Packing, + __unsigned_int__getPacking, + __void__setPacking__unsigned_int); + I_SimpleProperty(osg::PixelBufferObject *, PixelBufferObject, + __PixelBufferObject_P1__getPixelBufferObject, + __void__setPixelBufferObject__PixelBufferObject_P1); + I_SimpleProperty(GLenum, PixelFormat, + __GLenum__getPixelFormat, + __void__setPixelFormat__GLenum); + I_SimpleProperty(unsigned int, PixelSizeInBits, + __unsigned_int__getPixelSizeInBits, + 0); + I_SimpleProperty(unsigned int, RowSizeInBytes, + __unsigned_int__getRowSizeInBytes, + 0); + I_SimpleProperty(unsigned int, TotalSizeInBytes, + __unsigned_int__getTotalSizeInBytes, + 0); + I_SimpleProperty(unsigned int, TotalSizeInBytesIncludingMipmaps, + __unsigned_int__getTotalSizeInBytesIncludingMipmaps, + 0); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< unsigned int >); diff --git a/src/osgWrappers/osg/ImageStream.cpp b/src/osgWrappers/osg/ImageStream.cpp index a390d3549..877c3ee50 100644 --- a/src/osgWrappers/osg/ImageStream.cpp +++ b/src/osgWrappers/osg/ImageStream.cpp @@ -37,29 +37,96 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::ImageStream) I_BaseType(osg::Image); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::ImageStream &, image, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(int, compare, IN, const osg::Image &, rhs); - I_Method0(void, play); - I_Method0(void, pause); - I_Method0(void, rewind); - I_MethodWithDefaults1(void, quit, IN, bool, x, true); - I_Method0(osg::ImageStream::StreamStatus, getStatus); - I_Method1(void, setLoopingMode, IN, osg::ImageStream::LoopingMode, mode); - I_Method0(osg::ImageStream::LoopingMode, getLoopingMode); - I_Method1(void, setReferenceTime, IN, double, x); - I_Method0(double, getReferenceTime); - I_Method1(void, setTimeMultiplier, IN, double, x); - I_Method0(double, getTimeMultiplier); - I_Method0(void, update); - I_Property(osg::ImageStream::LoopingMode, LoopingMode); - I_Property(double, ReferenceTime); - I_ReadOnlyProperty(osg::ImageStream::StreamStatus, Status); - I_Property(double, TimeMultiplier); + I_Constructor0(____ImageStream, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ImageStream &, image, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ImageStream__C5_ImageStream_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(int, compare, IN, const osg::Image &, rhs, + __int__compare__C5_Image_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(void, play, + __void__play, + "", + ""); + I_Method0(void, pause, + __void__pause, + "", + ""); + I_Method0(void, rewind, + __void__rewind, + "", + ""); + I_MethodWithDefaults1(void, quit, IN, bool, x, true, + __void__quit__bool, + "", + ""); + I_Method0(osg::ImageStream::StreamStatus, getStatus, + __StreamStatus__getStatus, + "", + ""); + I_Method1(void, setLoopingMode, IN, osg::ImageStream::LoopingMode, mode, + __void__setLoopingMode__LoopingMode, + "", + ""); + I_Method0(osg::ImageStream::LoopingMode, getLoopingMode, + __LoopingMode__getLoopingMode, + "", + ""); + I_Method1(void, setReferenceTime, IN, double, x, + __void__setReferenceTime__double, + "", + ""); + I_Method0(double, getReferenceTime, + __double__getReferenceTime, + "", + ""); + I_Method1(void, setTimeMultiplier, IN, double, x, + __void__setTimeMultiplier__double, + "", + ""); + I_Method0(double, getTimeMultiplier, + __double__getTimeMultiplier, + "", + ""); + I_Method0(void, update, + __void__update, + "", + ""); + I_SimpleProperty(osg::ImageStream::LoopingMode, LoopingMode, + __LoopingMode__getLoopingMode, + __void__setLoopingMode__LoopingMode); + I_SimpleProperty(double, ReferenceTime, + __double__getReferenceTime, + __void__setReferenceTime__double); + I_SimpleProperty(osg::ImageStream::StreamStatus, Status, + __StreamStatus__getStatus, + 0); + I_SimpleProperty(double, TimeMultiplier, + __double__getTimeMultiplier, + __void__setTimeMultiplier__double); END_REFLECTOR diff --git a/src/osgWrappers/osg/LOD.cpp b/src/osgWrappers/osg/LOD.cpp index 74f9d8b8c..a4872c027 100644 --- a/src/osgWrappers/osg/LOD.cpp +++ b/src/osgWrappers/osg/LOD.cpp @@ -42,38 +42,128 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::LOD) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::LOD &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method1(bool, addChild, IN, osg::Node *, child); - I_Method3(bool, addChild, IN, osg::Node *, child, IN, float, min, IN, float, max); - I_MethodWithDefaults2(bool, removeChildren, IN, unsigned int, pos, , IN, unsigned int, numChildrenToRemove, 1); - I_Method1(void, setCenterMode, IN, osg::LOD::CenterMode, mode); - I_Method0(osg::LOD::CenterMode, getCenterMode); - I_Method1(void, setCenter, IN, const osg::Vec3 &, center); - I_Method0(const osg::Vec3 &, getCenter); - I_Method1(void, setRadius, IN, float, radius); - I_Method0(float, getRadius); - I_Method1(void, setRangeMode, IN, osg::LOD::RangeMode, mode); - I_Method0(osg::LOD::RangeMode, getRangeMode); - I_Method3(void, setRange, IN, unsigned int, childNo, IN, float, min, IN, float, max); - I_Method1(float, getMinRange, IN, unsigned int, childNo); - I_Method1(float, getMaxRange, IN, unsigned int, childNo); - I_Method0(unsigned int, getNumRanges); - I_Method1(void, setRangeList, IN, const osg::LOD::RangeList &, rangeList); - I_Method0(const osg::LOD::RangeList &, getRangeList); - I_Method0(osg::BoundingSphere, computeBound); - I_Property(const osg::Vec3 &, Center); - I_Property(osg::LOD::CenterMode, CenterMode); - I_Property(float, Radius); - I_Property(const osg::LOD::RangeList &, RangeList); - I_Property(osg::LOD::RangeMode, RangeMode); + I_Constructor0(____LOD, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::LOD &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LOD__C5_LOD_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + __bool__addChild__Node_P1, + "Add Node to Group. ", + "If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes."); + I_Method3(bool, addChild, IN, osg::Node *, child, IN, float, min, IN, float, max, + __bool__addChild__Node_P1__float__float, + "", + ""); + I_MethodWithDefaults2(bool, removeChildren, IN, unsigned int, pos, , IN, unsigned int, numChildrenToRemove, 1, + __bool__removeChildren__unsigned_int__unsigned_int, + "Remove children from Group. ", + "Note, must be override by subclasses of Group which add per child attributes. "); + I_Method1(void, setCenterMode, IN, osg::LOD::CenterMode, mode, + __void__setCenterMode__CenterMode, + "Set how the center of object should be determined when computing which child is active. ", + ""); + I_Method0(osg::LOD::CenterMode, getCenterMode, + __CenterMode__getCenterMode, + "Get how the center of object should be determined when computing which child is active. ", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + __void__setCenter__C5_Vec3_R1, + "Sets the object-space point which defines the center of the osg::LOD. ", + "center is affected by any transforms in the hierarchy above the osg::LOD. "); + I_Method0(const osg::Vec3 &, getCenter, + __C5_Vec3_R1__getCenter, + "return the LOD center point. ", + ""); + I_Method1(void, setRadius, IN, float, radius, + __void__setRadius__float, + "Set the object-space reference radius of the volume enclosed by the LOD. ", + "Used to detmine the bounding sphere of the LOD in the absense of any children. "); + I_Method0(float, getRadius, + __float__getRadius, + "Get the object-space radius of the volume enclosed by the LOD. ", + ""); + I_Method1(void, setRangeMode, IN, osg::LOD::RangeMode, mode, + __void__setRangeMode__RangeMode, + "Set how the range values should be intepreted when computing which child is active. ", + ""); + I_Method0(osg::LOD::RangeMode, getRangeMode, + __RangeMode__getRangeMode, + "Get how the range values should be intepreted when computing which child is active. ", + ""); + I_Method3(void, setRange, IN, unsigned int, childNo, IN, float, min, IN, float, max, + __void__setRange__unsigned_int__float__float, + "Sets the min and max visible ranges of range of specifiec child. ", + "Values are floating point distance specified in local objects coordinates. "); + I_Method1(float, getMinRange, IN, unsigned int, childNo, + __float__getMinRange__unsigned_int, + "returns the min visible range for specified child. ", + ""); + I_Method1(float, getMaxRange, IN, unsigned int, childNo, + __float__getMaxRange__unsigned_int, + "returns the max visible range for specified child. ", + ""); + I_Method0(unsigned int, getNumRanges, + __unsigned_int__getNumRanges, + "returns the number of ranges currently set. ", + "An LOD which has been fully set up will have getNumChildren()==getNumRanges(). "); + I_Method1(void, setRangeList, IN, const osg::LOD::RangeList &, rangeList, + __void__setRangeList__C5_RangeList_R1, + "set the list of MinMax ranges for each child. ", + ""); + I_Method0(const osg::LOD::RangeList &, getRangeList, + __C5_RangeList_R1__getRangeList, + "return the list of MinMax ranges for each child. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + __BoundingSphere__computeBound, + "Compute the bounding sphere around Node's geometry or children. ", + "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); + I_SimpleProperty(const osg::Vec3 &, Center, + __C5_Vec3_R1__getCenter, + __void__setCenter__C5_Vec3_R1); + I_SimpleProperty(osg::LOD::CenterMode, CenterMode, + __CenterMode__getCenterMode, + __void__setCenterMode__CenterMode); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); + I_SimpleProperty(const osg::LOD::RangeList &, RangeList, + __C5_RangeList_R1__getRangeList, + __void__setRangeList__C5_RangeList_R1); + I_SimpleProperty(osg::LOD::RangeMode, RangeMode, + __RangeMode__getRangeMode, + __void__setRangeMode__RangeMode); END_REFLECTOR STD_PAIR_REFLECTOR(std::pair< float COMMA float >); diff --git a/src/osgWrappers/osg/Light.cpp b/src/osgWrappers/osg/Light.cpp index c1192a27b..2133f56a7 100644 --- a/src/osgWrappers/osg/Light.cpp +++ b/src/osgWrappers/osg/Light.cpp @@ -28,53 +28,183 @@ BEGIN_OBJECT_REFLECTOR(osg::Light) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Light &, light, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method0(unsigned int, getMember); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(void, setLightNum, IN, int, num); - I_Method0(int, getLightNum); - I_Method1(void, setAmbient, IN, const osg::Vec4 &, ambient); - I_Method0(const osg::Vec4 &, getAmbient); - I_Method1(void, setDiffuse, IN, const osg::Vec4 &, diffuse); - I_Method0(const osg::Vec4 &, getDiffuse); - I_Method1(void, setSpecular, IN, const osg::Vec4 &, specular); - I_Method0(const osg::Vec4 &, getSpecular); - I_Method1(void, setPosition, IN, const osg::Vec4 &, position); - I_Method0(const osg::Vec4 &, getPosition); - I_Method1(void, setDirection, IN, const osg::Vec3 &, direction); - I_Method0(const osg::Vec3 &, getDirection); - I_Method1(void, setConstantAttenuation, IN, float, constant_attenuation); - I_Method0(float, getConstantAttenuation); - I_Method1(void, setLinearAttenuation, IN, float, linear_attenuation); - I_Method0(float, getLinearAttenuation); - I_Method1(void, setQuadraticAttenuation, IN, float, quadratic_attenuation); - I_Method0(float, getQuadraticAttenuation); - I_Method1(void, setSpotExponent, IN, float, spot_exponent); - I_Method0(float, getSpotExponent); - I_Method1(void, setSpotCutoff, IN, float, spot_cutoff); - I_Method0(float, getSpotCutoff); - I_Method0(void, captureLightState); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(const osg::Vec4 &, Ambient); - I_Property(float, ConstantAttenuation); - I_Property(const osg::Vec4 &, Diffuse); - I_Property(const osg::Vec3 &, Direction); - I_Property(int, LightNum); - I_Property(float, LinearAttenuation); - I_ReadOnlyProperty(unsigned int, Member); - I_Property(const osg::Vec4 &, Position); - I_Property(float, QuadraticAttenuation); - I_Property(const osg::Vec4 &, Specular); - I_Property(float, SpotCutoff); - I_Property(float, SpotExponent); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____Light, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Light &, light, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Light__C5_Light_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(unsigned int, getMember, + __unsigned_int__getMember, + "Return the member identifier within the attribute's class type. ", + "Used for light number/clip plane number etc. "); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setLightNum, IN, int, num, + __void__setLightNum__int, + "Set which OpenGL light to operate on. ", + ""); + I_Method0(int, getLightNum, + __int__getLightNum, + "Get which OpenGL light this osg::Light operates on. ", + ""); + I_Method1(void, setAmbient, IN, const osg::Vec4 &, ambient, + __void__setAmbient__C5_Vec4_R1, + "Set the ambient component of the light. ", + ""); + I_Method0(const osg::Vec4 &, getAmbient, + __C5_Vec4_R1__getAmbient, + "Get the ambient component of the light. ", + ""); + I_Method1(void, setDiffuse, IN, const osg::Vec4 &, diffuse, + __void__setDiffuse__C5_Vec4_R1, + "Set the diffuse component of the light. ", + ""); + I_Method0(const osg::Vec4 &, getDiffuse, + __C5_Vec4_R1__getDiffuse, + "Get the diffuse component of the light. ", + ""); + I_Method1(void, setSpecular, IN, const osg::Vec4 &, specular, + __void__setSpecular__C5_Vec4_R1, + "Set the specular component of the light. ", + ""); + I_Method0(const osg::Vec4 &, getSpecular, + __C5_Vec4_R1__getSpecular, + "Get the specular component of the light. ", + ""); + I_Method1(void, setPosition, IN, const osg::Vec4 &, position, + __void__setPosition__C5_Vec4_R1, + "Set the position of the light. ", + ""); + I_Method0(const osg::Vec4 &, getPosition, + __C5_Vec4_R1__getPosition, + "Get the position of the light. ", + ""); + I_Method1(void, setDirection, IN, const osg::Vec3 &, direction, + __void__setDirection__C5_Vec3_R1, + "Set the direction of the light. ", + ""); + I_Method0(const osg::Vec3 &, getDirection, + __C5_Vec3_R1__getDirection, + "Get the direction of the light. ", + ""); + I_Method1(void, setConstantAttenuation, IN, float, constant_attenuation, + __void__setConstantAttenuation__float, + "Set the constant attenuation of the light. ", + ""); + I_Method0(float, getConstantAttenuation, + __float__getConstantAttenuation, + "Get the constant attenuation of the light. ", + ""); + I_Method1(void, setLinearAttenuation, IN, float, linear_attenuation, + __void__setLinearAttenuation__float, + "Set the linear attenuation of the light. ", + ""); + I_Method0(float, getLinearAttenuation, + __float__getLinearAttenuation, + "Get the linear attenuation of the light. ", + ""); + I_Method1(void, setQuadraticAttenuation, IN, float, quadratic_attenuation, + __void__setQuadraticAttenuation__float, + "Set the quadratic attenuation of the light. ", + ""); + I_Method0(float, getQuadraticAttenuation, + __float__getQuadraticAttenuation, + "Get the quadratic attenuation of the light. ", + ""); + I_Method1(void, setSpotExponent, IN, float, spot_exponent, + __void__setSpotExponent__float, + "Set the spot exponent of the light. ", + ""); + I_Method0(float, getSpotExponent, + __float__getSpotExponent, + "Get the spot exponent of the light. ", + ""); + I_Method1(void, setSpotCutoff, IN, float, spot_cutoff, + __void__setSpotCutoff__float, + "Set the spot cutoff of the light. ", + ""); + I_Method0(float, getSpotCutoff, + __float__getSpotCutoff, + "Get the spot cutoff of the light. ", + ""); + I_Method0(void, captureLightState, + __void__captureLightState, + "Capture the lighting settings of the current OpenGL state and store them in this object. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "Apply the light's state to the OpenGL state machine. ", + ""); + I_SimpleProperty(const osg::Vec4 &, Ambient, + __C5_Vec4_R1__getAmbient, + __void__setAmbient__C5_Vec4_R1); + I_SimpleProperty(float, ConstantAttenuation, + __float__getConstantAttenuation, + __void__setConstantAttenuation__float); + I_SimpleProperty(const osg::Vec4 &, Diffuse, + __C5_Vec4_R1__getDiffuse, + __void__setDiffuse__C5_Vec4_R1); + I_SimpleProperty(const osg::Vec3 &, Direction, + __C5_Vec3_R1__getDirection, + __void__setDirection__C5_Vec3_R1); + I_SimpleProperty(int, LightNum, + __int__getLightNum, + __void__setLightNum__int); + I_SimpleProperty(float, LinearAttenuation, + __float__getLinearAttenuation, + __void__setLinearAttenuation__float); + I_SimpleProperty(unsigned int, Member, + __unsigned_int__getMember, + 0); + I_SimpleProperty(const osg::Vec4 &, Position, + __C5_Vec4_R1__getPosition, + __void__setPosition__C5_Vec4_R1); + I_SimpleProperty(float, QuadraticAttenuation, + __float__getQuadraticAttenuation, + __void__setQuadraticAttenuation__float); + I_SimpleProperty(const osg::Vec4 &, Specular, + __C5_Vec4_R1__getSpecular, + __void__setSpecular__C5_Vec4_R1); + I_SimpleProperty(float, SpotCutoff, + __float__getSpotCutoff, + __void__setSpotCutoff__float); + I_SimpleProperty(float, SpotExponent, + __float__getSpotExponent, + __void__setSpotExponent__float); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/LightModel.cpp b/src/osgWrappers/osg/LightModel.cpp index b63488bda..11505cef8 100644 --- a/src/osgWrappers/osg/LightModel.cpp +++ b/src/osgWrappers/osg/LightModel.cpp @@ -32,28 +32,91 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::LightModel) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::LightModel &, lw, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(void, setAmbientIntensity, IN, const osg::Vec4 &, ambient); - I_Method0(const osg::Vec4 &, getAmbientIntensity); - I_Method1(void, setColorControl, IN, osg::LightModel::ColorControl, cc); - I_Method0(osg::LightModel::ColorControl, getColorControl); - I_Method1(void, setLocalViewer, IN, bool, localViewer); - I_Method0(bool, getLocalViewer); - I_Method1(void, setTwoSided, IN, bool, twoSided); - I_Method0(bool, getTwoSided); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(const osg::Vec4 &, AmbientIntensity); - I_Property(osg::LightModel::ColorControl, ColorControl); - I_Property(bool, LocalViewer); - I_Property(bool, TwoSided); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____LightModel, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::LightModel &, lw, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LightModel__C5_LightModel_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setAmbientIntensity, IN, const osg::Vec4 &, ambient, + __void__setAmbientIntensity__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getAmbientIntensity, + __C5_osg_Vec4_R1__getAmbientIntensity, + "", + ""); + I_Method1(void, setColorControl, IN, osg::LightModel::ColorControl, cc, + __void__setColorControl__ColorControl, + "", + ""); + I_Method0(osg::LightModel::ColorControl, getColorControl, + __ColorControl__getColorControl, + "", + ""); + I_Method1(void, setLocalViewer, IN, bool, localViewer, + __void__setLocalViewer__bool, + "", + ""); + I_Method0(bool, getLocalViewer, + __bool__getLocalViewer, + "", + ""); + I_Method1(void, setTwoSided, IN, bool, twoSided, + __void__setTwoSided__bool, + "", + ""); + I_Method0(bool, getTwoSided, + __bool__getTwoSided, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(const osg::Vec4 &, AmbientIntensity, + __C5_osg_Vec4_R1__getAmbientIntensity, + __void__setAmbientIntensity__C5_osg_Vec4_R1); + I_SimpleProperty(osg::LightModel::ColorControl, ColorControl, + __ColorControl__getColorControl, + __void__setColorControl__ColorControl); + I_SimpleProperty(bool, LocalViewer, + __bool__getLocalViewer, + __void__setLocalViewer__bool); + I_SimpleProperty(bool, TwoSided, + __bool__getTwoSided, + __void__setTwoSided__bool); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/LightSource.cpp b/src/osgWrappers/osg/LightSource.cpp index bf7024268..77ebd5cad 100644 --- a/src/osgWrappers/osg/LightSource.cpp +++ b/src/osgWrappers/osg/LightSource.cpp @@ -34,24 +34,77 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::LightSource) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::LightSource &, ls, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, setReferenceFrame, IN, osg::LightSource::ReferenceFrame, rf); - I_Method0(osg::LightSource::ReferenceFrame, getReferenceFrame); - I_Method1(void, setLight, IN, osg::Light *, light); - I_Method0(osg::Light *, getLight); - I_Method0(const osg::Light *, getLight); - I_Method2(void, setStateSetModes, IN, osg::StateSet &, x, IN, osg::StateAttribute::GLModeValue, x); - I_MethodWithDefaults1(void, setLocalStateSetModes, IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON); - I_Method0(osg::BoundingSphere, computeBound); - I_Property(osg::Light *, Light); - I_WriteOnlyProperty(osg::StateAttribute::GLModeValue, LocalStateSetModes); - I_Property(osg::LightSource::ReferenceFrame, ReferenceFrame); + I_Constructor0(____LightSource, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::LightSource &, ls, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LightSource__C5_LightSource_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, setReferenceFrame, IN, osg::LightSource::ReferenceFrame, rf, + __void__setReferenceFrame__ReferenceFrame, + "Set the light sources's ReferenceFrame, either to be relative to its parent reference frame, or relative to an absolute coordinate frame. ", + "RELATIVE_RF is the default. Note: setting the ReferenceFrame to be ABSOLUTE_RF will also set the CullingActive flag on the light source, and hence all of its parents, to false, thereby disabling culling of it and all its parents. This is necessary to prevent inappropriate culling, but may impact cull times if the absolute light source is deep in the scene graph. It is therefore recommended to only use absolute light source at the top of the scene."); + I_Method0(osg::LightSource::ReferenceFrame, getReferenceFrame, + __ReferenceFrame__getReferenceFrame, + "", + ""); + I_Method1(void, setLight, IN, osg::Light *, light, + __void__setLight__Light_P1, + "Set the attached light. ", + ""); + I_Method0(osg::Light *, getLight, + __Light_P1__getLight, + "Get the attached light. ", + ""); + I_Method0(const osg::Light *, getLight, + __C5_Light_P1__getLight, + "Get the const attached light. ", + ""); + I_Method2(void, setStateSetModes, IN, osg::StateSet &, x, IN, osg::StateAttribute::GLModeValue, x, + __void__setStateSetModes__StateSet_R1__StateAttribute_GLModeValue, + "Set the GLModes on StateSet associated with the LightSource. ", + ""); + I_MethodWithDefaults1(void, setLocalStateSetModes, IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, + __void__setLocalStateSetModes__StateAttribute_GLModeValue, + "Set up the local StateSet. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + __BoundingSphere__computeBound, + "Compute the bounding sphere around Node's geometry or children. ", + "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); + I_SimpleProperty(osg::Light *, Light, + __Light_P1__getLight, + __void__setLight__Light_P1); + I_SimpleProperty(osg::StateAttribute::GLModeValue, LocalStateSetModes, + 0, + __void__setLocalStateSetModes__StateAttribute_GLModeValue); + I_SimpleProperty(osg::LightSource::ReferenceFrame, ReferenceFrame, + __ReferenceFrame__getReferenceFrame, + __void__setReferenceFrame__ReferenceFrame); END_REFLECTOR diff --git a/src/osgWrappers/osg/LineSegment.cpp b/src/osgWrappers/osg/LineSegment.cpp index 15bd511b4..868313ca7 100644 --- a/src/osgWrappers/osg/LineSegment.cpp +++ b/src/osgWrappers/osg/LineSegment.cpp @@ -26,21 +26,68 @@ BEGIN_OBJECT_REFLECTOR(osg::LineSegment) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Constructor1(IN, const osg::LineSegment &, seg); - I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e); - I_Method2(void, set, IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e); - I_Method0(osg::Vec3 &, start); - I_Method0(const osg::Vec3 &, start); - I_Method0(osg::Vec3 &, end); - I_Method0(const osg::Vec3 &, end); - I_Method0(bool, valid); - I_Method1(bool, intersect, IN, const osg::BoundingBox &, bb); - I_Method3(bool, intersect, IN, const osg::BoundingBox &, bb, IN, float &, r1, IN, float &, r2); - I_Method1(bool, intersect, IN, const osg::BoundingSphere &, bs); - I_Method3(bool, intersect, IN, const osg::BoundingSphere &, bs, IN, float &, r1, IN, float &, r2); - I_Method4(bool, intersect, IN, const osg::Vec3 &, v1, IN, const osg::Vec3 &, v2, IN, const osg::Vec3 &, v3, IN, float &, r); - I_Method2(void, mult, IN, const osg::LineSegment &, seg, IN, const osg::Matrix &, m); - I_Method2(void, mult, IN, const osg::Matrix &, m, IN, const osg::LineSegment &, seg); + I_Constructor0(____LineSegment, + "", + ""); + I_Constructor1(IN, const osg::LineSegment &, seg, + ____LineSegment__C5_LineSegment_R1, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + ____LineSegment__C5_Vec3_R1__C5_Vec3_R1, + "", + ""); + I_Method2(void, set, IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + __void__set__C5_Vec3_R1__C5_Vec3_R1, + "", + ""); + I_Method0(osg::Vec3 &, start, + __Vec3_R1__start, + "", + ""); + I_Method0(const osg::Vec3 &, start, + __C5_Vec3_R1__start, + "", + ""); + I_Method0(osg::Vec3 &, end, + __Vec3_R1__end, + "", + ""); + I_Method0(const osg::Vec3 &, end, + __C5_Vec3_R1__end, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method1(bool, intersect, IN, const osg::BoundingBox &, bb, + __bool__intersect__C5_BoundingBox_R1, + "return true if segment intersects BoundingBox. ", + ""); + I_Method3(bool, intersect, IN, const osg::BoundingBox &, bb, IN, float &, r1, IN, float &, r2, + __bool__intersect__C5_BoundingBox_R1__float_R1__float_R1, + "return true if segment intersects BoundingBox and return the intersection ratios. ", + ""); + I_Method1(bool, intersect, IN, const osg::BoundingSphere &, bs, + __bool__intersect__C5_BoundingSphere_R1, + "return true if segment intersects BoundingSphere. ", + ""); + I_Method3(bool, intersect, IN, const osg::BoundingSphere &, bs, IN, float &, r1, IN, float &, r2, + __bool__intersect__C5_BoundingSphere_R1__float_R1__float_R1, + "return true if segment intersects BoundingSphere and return the intersection ratio. ", + ""); + I_Method4(bool, intersect, IN, const osg::Vec3 &, v1, IN, const osg::Vec3 &, v2, IN, const osg::Vec3 &, v3, IN, float &, r, + __bool__intersect__C5_Vec3_R1__C5_Vec3_R1__C5_Vec3_R1__float_R1, + "return true if segment intersects triangle and set ratio long segment. ", + ""); + I_Method2(void, mult, IN, const osg::LineSegment &, seg, IN, const osg::Matrix &, m, + __void__mult__C5_LineSegment_R1__C5_Matrix_R1, + "post multiply a segment by matrix. ", + ""); + I_Method2(void, mult, IN, const osg::Matrix &, m, IN, const osg::LineSegment &, seg, + __void__mult__C5_Matrix_R1__C5_LineSegment_R1, + "pre multiply a segment by matrix. ", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/LineStipple.cpp b/src/osgWrappers/osg/LineStipple.cpp index 02317d8a7..d876cf6c9 100644 --- a/src/osgWrappers/osg/LineStipple.cpp +++ b/src/osgWrappers/osg/LineStipple.cpp @@ -26,23 +26,73 @@ BEGIN_OBJECT_REFLECTOR(osg::LineStipple) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::LineStipple &, lw, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(void, setFactor, IN, GLint, factor); - I_Method0(GLint, getFactor); - I_Method1(void, setPattern, IN, GLushort, pattern); - I_Method0(GLushort, getPattern); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(GLint, Factor); - I_Property(GLushort, Pattern); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____LineStipple, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::LineStipple &, lw, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LineStipple__C5_LineStipple_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setFactor, IN, GLint, factor, + __void__setFactor__GLint, + "", + ""); + I_Method0(GLint, getFactor, + __GLint__getFactor, + "", + ""); + I_Method1(void, setPattern, IN, GLushort, pattern, + __void__setPattern__GLushort, + "", + ""); + I_Method0(GLushort, getPattern, + __GLushort__getPattern, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(GLint, Factor, + __GLint__getFactor, + __void__setFactor__GLint); + I_SimpleProperty(GLushort, Pattern, + __GLushort__getPattern, + __void__setPattern__GLushort); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/LineWidth.cpp b/src/osgWrappers/osg/LineWidth.cpp index ea713da9e..ceece15f3 100644 --- a/src/osgWrappers/osg/LineWidth.cpp +++ b/src/osgWrappers/osg/LineWidth.cpp @@ -26,19 +26,59 @@ BEGIN_OBJECT_REFLECTOR(osg::LineWidth) I_BaseType(osg::StateAttribute); - I_ConstructorWithDefaults1(IN, float, width, 1.0f); - I_ConstructorWithDefaults2(IN, const osg::LineWidth &, lw, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(void, setWidth, IN, float, width); - I_Method0(float, getWidth); - I_Method1(void, apply, IN, osg::State &, state); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); - I_Property(float, Width); + I_ConstructorWithDefaults1(IN, float, width, 1.0f, + ____LineWidth__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::LineWidth &, lw, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LineWidth__C5_LineWidth_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setWidth, IN, float, width, + __void__setWidth__float, + "", + ""); + I_Method0(float, getWidth, + __float__getWidth, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); + I_SimpleProperty(float, Width, + __float__getWidth, + __void__setWidth__float); END_REFLECTOR diff --git a/src/osgWrappers/osg/LogicOp.cpp b/src/osgWrappers/osg/LogicOp.cpp index 38b4d2771..658fd0392 100644 --- a/src/osgWrappers/osg/LogicOp.cpp +++ b/src/osgWrappers/osg/LogicOp.cpp @@ -45,21 +45,66 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::LogicOp) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_Constructor1(IN, osg::LogicOp::Opcode, opcode); - I_ConstructorWithDefaults2(IN, const osg::LogicOp &, trans, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(void, setOpcode, IN, osg::LogicOp::Opcode, opcode); - I_Method0(osg::LogicOp::Opcode, getOpcode); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(osg::LogicOp::Opcode, Opcode); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____LogicOp, + "", + ""); + I_Constructor1(IN, osg::LogicOp::Opcode, opcode, + ____LogicOp__Opcode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::LogicOp &, trans, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LogicOp__C5_LogicOp_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setOpcode, IN, osg::LogicOp::Opcode, opcode, + __void__setOpcode__Opcode, + "", + ""); + I_Method0(osg::LogicOp::Opcode, getOpcode, + __Opcode__getOpcode, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(osg::LogicOp::Opcode, Opcode, + __Opcode__getOpcode, + __void__setOpcode__Opcode); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/Material.cpp b/src/osgWrappers/osg/Material.cpp index f37a562f4..a2c2dcf77 100644 --- a/src/osgWrappers/osg/Material.cpp +++ b/src/osgWrappers/osg/Material.cpp @@ -42,47 +42,165 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Material) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Material &, mat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(void, apply, IN, osg::State &, state); - I_Method1(void, setColorMode, IN, osg::Material::ColorMode, mode); - I_Method0(osg::Material::ColorMode, getColorMode); - I_Method2(void, setAmbient, IN, osg::Material::Face, face, IN, const osg::Vec4 &, ambient); - I_Method1(const osg::Vec4 &, getAmbient, IN, osg::Material::Face, face); - I_Method0(bool, getAmbientFrontAndBack); - I_Method2(void, setDiffuse, IN, osg::Material::Face, face, IN, const osg::Vec4 &, diffuse); - I_Method1(const osg::Vec4 &, getDiffuse, IN, osg::Material::Face, face); - I_Method0(bool, getDiffuseFrontAndBack); - I_Method2(void, setSpecular, IN, osg::Material::Face, face, IN, const osg::Vec4 &, specular); - I_Method1(const osg::Vec4 &, getSpecular, IN, osg::Material::Face, face); - I_Method0(bool, getSpecularFrontAndBack); - I_Method2(void, setEmission, IN, osg::Material::Face, face, IN, const osg::Vec4 &, emission); - I_Method1(const osg::Vec4 &, getEmission, IN, osg::Material::Face, face); - I_Method0(bool, getEmissionFrontAndBack); - I_Method2(void, setShininess, IN, osg::Material::Face, face, IN, float, shininess); - I_Method1(float, getShininess, IN, osg::Material::Face, face); - I_Method0(bool, getShininessFrontAndBack); - I_Method2(void, setTransparency, IN, osg::Material::Face, face, IN, float, trans); - I_Method2(void, setAlpha, IN, osg::Material::Face, face, IN, float, alpha); - I_IndexedProperty1(const osg::Vec4 &, Ambient, osg::Material::Face, face); - I_ReadOnlyProperty(bool, AmbientFrontAndBack); - I_Property(osg::Material::ColorMode, ColorMode); - I_IndexedProperty1(const osg::Vec4 &, Diffuse, osg::Material::Face, face); - I_ReadOnlyProperty(bool, DiffuseFrontAndBack); - I_IndexedProperty1(const osg::Vec4 &, Emission, osg::Material::Face, face); - I_ReadOnlyProperty(bool, EmissionFrontAndBack); - I_IndexedProperty1(float, Shininess, osg::Material::Face, face); - I_ReadOnlyProperty(bool, ShininessFrontAndBack); - I_IndexedProperty1(const osg::Vec4 &, Specular, osg::Material::Face, face); - I_ReadOnlyProperty(bool, SpecularFrontAndBack); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____Material, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Material &, mat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Material__C5_Material_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_Method1(void, setColorMode, IN, osg::Material::ColorMode, mode, + __void__setColorMode__ColorMode, + "", + ""); + I_Method0(osg::Material::ColorMode, getColorMode, + __ColorMode__getColorMode, + "", + ""); + I_Method2(void, setAmbient, IN, osg::Material::Face, face, IN, const osg::Vec4 &, ambient, + __void__setAmbient__Face__C5_Vec4_R1, + "", + ""); + I_Method1(const osg::Vec4 &, getAmbient, IN, osg::Material::Face, face, + __C5_Vec4_R1__getAmbient__Face, + "", + ""); + I_Method0(bool, getAmbientFrontAndBack, + __bool__getAmbientFrontAndBack, + "", + ""); + I_Method2(void, setDiffuse, IN, osg::Material::Face, face, IN, const osg::Vec4 &, diffuse, + __void__setDiffuse__Face__C5_Vec4_R1, + "", + ""); + I_Method1(const osg::Vec4 &, getDiffuse, IN, osg::Material::Face, face, + __C5_Vec4_R1__getDiffuse__Face, + "", + ""); + I_Method0(bool, getDiffuseFrontAndBack, + __bool__getDiffuseFrontAndBack, + "", + ""); + I_Method2(void, setSpecular, IN, osg::Material::Face, face, IN, const osg::Vec4 &, specular, + __void__setSpecular__Face__C5_Vec4_R1, + "Set specular value of specified face(s) of the material, valid specular[0. ", + ".3] range is 0.0 to 1.0."); + I_Method1(const osg::Vec4 &, getSpecular, IN, osg::Material::Face, face, + __C5_Vec4_R1__getSpecular__Face, + "Get the specular value for specified face. ", + ""); + I_Method0(bool, getSpecularFrontAndBack, + __bool__getSpecularFrontAndBack, + "Return whether specular values are equal for front and back faces or not. ", + ""); + I_Method2(void, setEmission, IN, osg::Material::Face, face, IN, const osg::Vec4 &, emission, + __void__setEmission__Face__C5_Vec4_R1, + "Set emission value of specified face(s) of the material, valid emission[0. ", + ".3] range is 0.0 to 1.0."); + I_Method1(const osg::Vec4 &, getEmission, IN, osg::Material::Face, face, + __C5_Vec4_R1__getEmission__Face, + "Get the emission value for specified face. ", + ""); + I_Method0(bool, getEmissionFrontAndBack, + __bool__getEmissionFrontAndBack, + "Return whether emission values are equal for front and back faces or not. ", + ""); + I_Method2(void, setShininess, IN, osg::Material::Face, face, IN, float, shininess, + __void__setShininess__Face__float, + "Set shininess of specified face(s) of the material. ", + "valid shininess range is 0.0 to 128.0."); + I_Method1(float, getShininess, IN, osg::Material::Face, face, + __float__getShininess__Face, + "Get the shininess value for specified face. ", + ""); + I_Method0(bool, getShininessFrontAndBack, + __bool__getShininessFrontAndBack, + "Return whether shininess values are equal for front and back faces or not. ", + ""); + I_Method2(void, setTransparency, IN, osg::Material::Face, face, IN, float, trans, + __void__setTransparency__Face__float, + "Set the alpha value of ambient, diffuse, specular and emission colors of specified face, to 1-transparency. ", + "Valid transparency range is 0.0 to 1.0."); + I_Method2(void, setAlpha, IN, osg::Material::Face, face, IN, float, alpha, + __void__setAlpha__Face__float, + "Set the alpha value of ambient, diffuse, specular and emission colors. ", + "Valid transparency range is 0.0 to 1.0."); + I_IndexedProperty(const osg::Vec4 &, Ambient, + __C5_Vec4_R1__getAmbient__Face, + __void__setAmbient__Face__C5_Vec4_R1, + 0); + I_SimpleProperty(bool, AmbientFrontAndBack, + __bool__getAmbientFrontAndBack, + 0); + I_SimpleProperty(osg::Material::ColorMode, ColorMode, + __ColorMode__getColorMode, + __void__setColorMode__ColorMode); + I_IndexedProperty(const osg::Vec4 &, Diffuse, + __C5_Vec4_R1__getDiffuse__Face, + __void__setDiffuse__Face__C5_Vec4_R1, + 0); + I_SimpleProperty(bool, DiffuseFrontAndBack, + __bool__getDiffuseFrontAndBack, + 0); + I_IndexedProperty(const osg::Vec4 &, Emission, + __C5_Vec4_R1__getEmission__Face, + __void__setEmission__Face__C5_Vec4_R1, + 0); + I_SimpleProperty(bool, EmissionFrontAndBack, + __bool__getEmissionFrontAndBack, + 0); + I_IndexedProperty(float, Shininess, + __float__getShininess__Face, + __void__setShininess__Face__float, + 0); + I_SimpleProperty(bool, ShininessFrontAndBack, + __bool__getShininessFrontAndBack, + 0); + I_IndexedProperty(const osg::Vec4 &, Specular, + __C5_Vec4_R1__getSpecular__Face, + __void__setSpecular__Face__C5_Vec4_R1, + 0); + I_SimpleProperty(bool, SpecularFrontAndBack, + __bool__getSpecularFrontAndBack, + 0); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/MatrixTransform.cpp b/src/osgWrappers/osg/MatrixTransform.cpp index c05c2a1ad..e875048af 100644 --- a/src/osgWrappers/osg/MatrixTransform.cpp +++ b/src/osgWrappers/osg/MatrixTransform.cpp @@ -26,25 +26,82 @@ BEGIN_OBJECT_REFLECTOR(osg::MatrixTransform) I_BaseType(osg::Transform); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::MatrixTransform &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, const osg::Matrix &, matix); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(osg::MatrixTransform *, asMatrixTransform); - I_Method0(const osg::MatrixTransform *, asMatrixTransform); - I_Method1(void, setMatrix, IN, const osg::Matrix &, mat); - I_Method0(const osg::Matrix &, getMatrix); - I_Method1(void, preMult, IN, const osg::Matrix &, mat); - I_Method1(void, postMult, IN, const osg::Matrix &, mat); - I_Method0(const osg::Matrix &, getInverseMatrix); - I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x); - I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x); - I_ReadOnlyProperty(const osg::Matrix &, InverseMatrix); - I_Property(const osg::Matrix &, Matrix); + I_Constructor0(____MatrixTransform, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::MatrixTransform &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____MatrixTransform__C5_MatrixTransform_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Constructor1(IN, const osg::Matrix &, matix, + ____MatrixTransform__C5_Matrix_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(osg::MatrixTransform *, asMatrixTransform, + __MatrixTransform_P1__asMatrixTransform, + "", + ""); + I_Method0(const osg::MatrixTransform *, asMatrixTransform, + __C5_MatrixTransform_P1__asMatrixTransform, + "", + ""); + I_Method1(void, setMatrix, IN, const osg::Matrix &, mat, + __void__setMatrix__C5_Matrix_R1, + "Set the transform's matrix. ", + ""); + I_Method0(const osg::Matrix &, getMatrix, + __C5_Matrix_R1__getMatrix, + "Get the matrix. ", + ""); + I_Method1(void, preMult, IN, const osg::Matrix &, mat, + __void__preMult__C5_Matrix_R1, + "pre multiply the transform's matrix. ", + ""); + I_Method1(void, postMult, IN, const osg::Matrix &, mat, + __void__postMult__C5_Matrix_R1, + "post multiply the transform's matrix. ", + ""); + I_Method0(const osg::Matrix &, getInverseMatrix, + __C5_Matrix_R1__getInverseMatrix, + "Get the inverse matrix. ", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_SimpleProperty(const osg::Matrix &, InverseMatrix, + __C5_Matrix_R1__getInverseMatrix, + 0); + I_SimpleProperty(const osg::Matrix &, Matrix, + __C5_Matrix_R1__getMatrix, + __void__setMatrix__C5_Matrix_R1); END_REFLECTOR diff --git a/src/osgWrappers/osg/Matrixd.cpp b/src/osgWrappers/osg/Matrixd.cpp index 9103c1378..f9511326d 100644 --- a/src/osgWrappers/osg/Matrixd.cpp +++ b/src/osgWrappers/osg/Matrixd.cpp @@ -31,118 +31,433 @@ TYPE_NAME_ALIAS(double, osg::Matrixd::value_type); BEGIN_VALUE_REFLECTOR(osg::Matrixd) - I_Constructor0(); - I_Constructor1(IN, const osg::Matrixd &, mat); - I_Constructor1(IN, const osg::Matrixf &, mat); - I_Constructor1(IN, float const *const, ptr); - I_Constructor1(IN, double const *const, ptr); - I_Constructor1(IN, const osg::Quat &, quat); - I_Constructor16(IN, osg::Matrixd::value_type, a00, IN, osg::Matrixd::value_type, a01, IN, osg::Matrixd::value_type, a02, IN, osg::Matrixd::value_type, a03, IN, osg::Matrixd::value_type, a10, IN, osg::Matrixd::value_type, a11, IN, osg::Matrixd::value_type, a12, IN, osg::Matrixd::value_type, a13, IN, osg::Matrixd::value_type, a20, IN, osg::Matrixd::value_type, a21, IN, osg::Matrixd::value_type, a22, IN, osg::Matrixd::value_type, a23, IN, osg::Matrixd::value_type, a30, IN, osg::Matrixd::value_type, a31, IN, osg::Matrixd::value_type, a32, IN, osg::Matrixd::value_type, a33); - I_Method1(int, compare, IN, const osg::Matrixd &, m); - I_Method0(bool, valid); - I_Method0(bool, isNaN); - I_Method1(void, set, IN, const osg::Matrixd &, rhs); - I_Method1(void, set, IN, const osg::Matrixf &, rhs); - I_Method1(void, set, IN, float const *const, ptr); - I_Method1(void, set, IN, double const *const, ptr); - I_Method16(void, set, IN, osg::Matrixd::value_type, a00, IN, osg::Matrixd::value_type, a01, IN, osg::Matrixd::value_type, a02, IN, osg::Matrixd::value_type, a03, IN, osg::Matrixd::value_type, a10, IN, osg::Matrixd::value_type, a11, IN, osg::Matrixd::value_type, a12, IN, osg::Matrixd::value_type, a13, IN, osg::Matrixd::value_type, a20, IN, osg::Matrixd::value_type, a21, IN, osg::Matrixd::value_type, a22, IN, osg::Matrixd::value_type, a23, IN, osg::Matrixd::value_type, a30, IN, osg::Matrixd::value_type, a31, IN, osg::Matrixd::value_type, a32, IN, osg::Matrixd::value_type, a33); - I_Method0(osg::Matrixd::value_type *, ptr); - I_Method0(const osg::Matrixd::value_type *, ptr); - I_Method0(void, makeIdentity); - I_Method1(void, makeScale, IN, const osg::Vec3f &, x); - I_Method1(void, makeScale, IN, const osg::Vec3d &, x); - I_Method3(void, makeScale, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, x); - I_Method1(void, makeTranslate, IN, const osg::Vec3f &, x); - I_Method1(void, makeTranslate, IN, const osg::Vec3d &, x); - I_Method3(void, makeTranslate, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, x); - I_Method2(void, makeRotate, IN, const osg::Vec3f &, from, IN, const osg::Vec3f &, to); - I_Method2(void, makeRotate, IN, const osg::Vec3d &, from, IN, const osg::Vec3d &, to); - I_Method2(void, makeRotate, IN, osg::Matrixd::value_type, angle, IN, const osg::Vec3f &, axis); - I_Method2(void, makeRotate, IN, osg::Matrixd::value_type, angle, IN, const osg::Vec3d &, axis); - I_Method4(void, makeRotate, IN, osg::Matrixd::value_type, angle, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, y, IN, osg::Matrixd::value_type, z); - I_Method1(void, makeRotate, IN, const osg::Quat &, x); - I_Method6(void, makeRotate, IN, osg::Matrixd::value_type, angle1, IN, const osg::Vec3f &, axis1, IN, osg::Matrixd::value_type, angle2, IN, const osg::Vec3f &, axis2, IN, osg::Matrixd::value_type, angle3, IN, const osg::Vec3f &, axis3); - I_Method6(void, makeRotate, IN, osg::Matrixd::value_type, angle1, IN, const osg::Vec3d &, axis1, IN, osg::Matrixd::value_type, angle2, IN, const osg::Vec3d &, axis2, IN, osg::Matrixd::value_type, angle3, IN, const osg::Vec3d &, axis3); - I_Method6(void, makeOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); - I_Method6(bool, getOrtho, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar); - I_Method4(void, makeOrtho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top); - I_Method6(void, makeFrustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); - I_Method6(bool, getFrustum, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar); - I_Method4(void, makePerspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar); - I_Method4(bool, getPerspective, IN, double &, fovy, IN, double &, aspectRatio, IN, double &, zNear, IN, double &, zFar); - I_Method3(void, makeLookAt, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, center, IN, const osg::Vec3d &, up); - I_MethodWithDefaults4(void, getLookAt, IN, osg::Vec3f &, eye, , IN, osg::Vec3f &, center, , IN, osg::Vec3f &, up, , IN, osg::Matrixd::value_type, lookDistance, 1.0f); - I_MethodWithDefaults4(void, getLookAt, IN, osg::Vec3d &, eye, , IN, osg::Vec3d &, center, , IN, osg::Vec3d &, up, , IN, osg::Matrixd::value_type, lookDistance, 1.0f); - I_Method1(bool, invert, IN, const osg::Matrixd &, rhs); - I_Method1(bool, invert_4x3, IN, const osg::Matrixd &, rhs); - I_Method1(bool, invert_4x4, IN, const osg::Matrixd &, rhs); - I_Method1(void, orthoNormalize, IN, const osg::Matrixd &, rhs); - I_Method1(osg::Vec3f, preMult, IN, const osg::Vec3f &, v); - I_Method1(osg::Vec3d, preMult, IN, const osg::Vec3d &, v); - I_Method1(osg::Vec3f, postMult, IN, const osg::Vec3f &, v); - I_Method1(osg::Vec3d, postMult, IN, const osg::Vec3d &, v); - I_Method1(osg::Vec4f, preMult, IN, const osg::Vec4f &, v); - I_Method1(osg::Vec4d, preMult, IN, const osg::Vec4d &, v); - I_Method1(osg::Vec4f, postMult, IN, const osg::Vec4f &, v); - I_Method1(osg::Vec4d, postMult, IN, const osg::Vec4d &, v); - I_Method1(void, set, IN, const osg::Quat &, q); - I_Method1(void, get, IN, osg::Quat &, q); - I_Method1(void, setRotate, IN, const osg::Quat &, q); - I_Method0(osg::Quat, getRotate); - I_Method3(void, setTrans, IN, osg::Matrixd::value_type, tx, IN, osg::Matrixd::value_type, ty, IN, osg::Matrixd::value_type, tz); - I_Method1(void, setTrans, IN, const osg::Vec3f &, v); - I_Method1(void, setTrans, IN, const osg::Vec3d &, v); - I_Method0(osg::Vec3d, getTrans); - I_Method0(osg::Vec3d, getScale); - I_Method2(void, mult, IN, const osg::Matrixd &, x, IN, const osg::Matrixd &, x); - I_Method1(void, preMult, IN, const osg::Matrixd &, x); - I_Method1(void, postMult, IN, const osg::Matrixd &, x); - I_StaticMethod0(osg::Matrixd, identity); - I_StaticMethod1(osg::Matrixd, scale, IN, const osg::Vec3f &, sv); - I_StaticMethod1(osg::Matrixd, scale, IN, const osg::Vec3d &, sv); - I_StaticMethod3(osg::Matrixd, scale, IN, osg::Matrixd::value_type, sx, IN, osg::Matrixd::value_type, sy, IN, osg::Matrixd::value_type, sz); - I_StaticMethod1(osg::Matrixd, translate, IN, const osg::Vec3f &, dv); - I_StaticMethod1(osg::Matrixd, translate, IN, const osg::Vec3d &, dv); - I_StaticMethod3(osg::Matrixd, translate, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, y, IN, osg::Matrixd::value_type, z); - I_StaticMethod2(osg::Matrixd, rotate, IN, const osg::Vec3f &, from, IN, const osg::Vec3f &, to); - I_StaticMethod2(osg::Matrixd, rotate, IN, const osg::Vec3d &, from, IN, const osg::Vec3d &, to); - I_StaticMethod4(osg::Matrixd, rotate, IN, osg::Matrixd::value_type, angle, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, y, IN, osg::Matrixd::value_type, z); - I_StaticMethod2(osg::Matrixd, rotate, IN, osg::Matrixd::value_type, angle, IN, const osg::Vec3f &, axis); - I_StaticMethod2(osg::Matrixd, rotate, IN, osg::Matrixd::value_type, angle, IN, const osg::Vec3d &, axis); - I_StaticMethod6(osg::Matrixd, rotate, IN, osg::Matrixd::value_type, angle1, IN, const osg::Vec3f &, axis1, IN, osg::Matrixd::value_type, angle2, IN, const osg::Vec3f &, axis2, IN, osg::Matrixd::value_type, angle3, IN, const osg::Vec3f &, axis3); - I_StaticMethod6(osg::Matrixd, rotate, IN, osg::Matrixd::value_type, angle1, IN, const osg::Vec3d &, axis1, IN, osg::Matrixd::value_type, angle2, IN, const osg::Vec3d &, axis2, IN, osg::Matrixd::value_type, angle3, IN, const osg::Vec3d &, axis3); - I_StaticMethod1(osg::Matrixd, rotate, IN, const osg::Quat &, quat); - I_StaticMethod1(osg::Matrixd, inverse, IN, const osg::Matrixd &, matrix); - I_StaticMethod1(osg::Matrixd, orthoNormal, IN, const osg::Matrixd &, matrix); - I_StaticMethod6(osg::Matrixd, ortho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); - I_StaticMethod4(osg::Matrixd, ortho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top); - I_StaticMethod6(osg::Matrixd, frustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); - I_StaticMethod4(osg::Matrixd, perspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar); - I_StaticMethod3(osg::Matrixd, lookAt, IN, const osg::Vec3f &, eye, IN, const osg::Vec3f &, center, IN, const osg::Vec3f &, up); - I_StaticMethod3(osg::Matrixd, lookAt, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, center, IN, const osg::Vec3d &, up); - I_StaticMethod2(osg::Vec3f, transform3x3, IN, const osg::Vec3f &, v, IN, const osg::Matrixd &, m); - I_StaticMethod2(osg::Vec3d, transform3x3, IN, const osg::Vec3d &, v, IN, const osg::Matrixd &, m); - I_StaticMethod2(osg::Vec3f, transform3x3, IN, const osg::Matrixd &, m, IN, const osg::Vec3f &, v); - I_StaticMethod2(osg::Vec3d, transform3x3, IN, const osg::Matrixd &, m, IN, const osg::Vec3d &, v); - I_WriteOnlyProperty(float const *const, ); - I_ReadOnlyProperty(osg::Quat, Rotate); - I_ReadOnlyProperty(osg::Vec3d, Scale); - I_ReadOnlyProperty(osg::Vec3d, Trans); + I_Constructor0(____Matrixd, + "", + ""); + I_Constructor1(IN, const osg::Matrixd &, mat, + ____Matrixd__C5_Matrixd_R1, + "", + ""); + I_Constructor1(IN, const osg::Matrixf &, mat, + ____Matrixd__C5_Matrixf_R1, + "", + ""); + I_Constructor1(IN, float const *const, ptr, + ____Matrixd__float_C5_P1C5, + "", + ""); + I_Constructor1(IN, double const *const, ptr, + ____Matrixd__double_C5_P1C5, + "", + ""); + I_Constructor1(IN, const osg::Quat &, quat, + ____Matrixd__C5_Quat_R1, + "", + ""); + I_Constructor16(IN, osg::Matrixd::value_type, a00, IN, osg::Matrixd::value_type, a01, IN, osg::Matrixd::value_type, a02, IN, osg::Matrixd::value_type, a03, IN, osg::Matrixd::value_type, a10, IN, osg::Matrixd::value_type, a11, IN, osg::Matrixd::value_type, a12, IN, osg::Matrixd::value_type, a13, IN, osg::Matrixd::value_type, a20, IN, osg::Matrixd::value_type, a21, IN, osg::Matrixd::value_type, a22, IN, osg::Matrixd::value_type, a23, IN, osg::Matrixd::value_type, a30, IN, osg::Matrixd::value_type, a31, IN, osg::Matrixd::value_type, a32, IN, osg::Matrixd::value_type, a33, + ____Matrixd__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type, + "", + ""); + I_Method1(int, compare, IN, const osg::Matrixd &, m, + __int__compare__C5_Matrixd_R1, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + __bool__isNaN, + "", + ""); + I_Method1(void, set, IN, const osg::Matrixd &, rhs, + __void__set__C5_Matrixd_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Matrixf &, rhs, + __void__set__C5_Matrixf_R1, + "", + ""); + I_Method1(void, set, IN, float const *const, ptr, + __void__set__float_C5_P1C5, + "", + ""); + I_Method1(void, set, IN, double const *const, ptr, + __void__set__double_C5_P1C5, + "", + ""); + I_Method16(void, set, IN, osg::Matrixd::value_type, a00, IN, osg::Matrixd::value_type, a01, IN, osg::Matrixd::value_type, a02, IN, osg::Matrixd::value_type, a03, IN, osg::Matrixd::value_type, a10, IN, osg::Matrixd::value_type, a11, IN, osg::Matrixd::value_type, a12, IN, osg::Matrixd::value_type, a13, IN, osg::Matrixd::value_type, a20, IN, osg::Matrixd::value_type, a21, IN, osg::Matrixd::value_type, a22, IN, osg::Matrixd::value_type, a23, IN, osg::Matrixd::value_type, a30, IN, osg::Matrixd::value_type, a31, IN, osg::Matrixd::value_type, a32, IN, osg::Matrixd::value_type, a33, + __void__set__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Matrixd::value_type *, ptr, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Matrixd::value_type *, ptr, + __C5_value_type_P1__ptr, + "", + ""); + I_Method0(void, makeIdentity, + __void__makeIdentity, + "", + ""); + I_Method1(void, makeScale, IN, const osg::Vec3f &, x, + __void__makeScale__C5_Vec3f_R1, + "", + ""); + I_Method1(void, makeScale, IN, const osg::Vec3d &, x, + __void__makeScale__C5_Vec3d_R1, + "", + ""); + I_Method3(void, makeScale, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, x, + __void__makeScale__value_type__value_type__value_type, + "", + ""); + I_Method1(void, makeTranslate, IN, const osg::Vec3f &, x, + __void__makeTranslate__C5_Vec3f_R1, + "", + ""); + I_Method1(void, makeTranslate, IN, const osg::Vec3d &, x, + __void__makeTranslate__C5_Vec3d_R1, + "", + ""); + I_Method3(void, makeTranslate, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, x, + __void__makeTranslate__value_type__value_type__value_type, + "", + ""); + I_Method2(void, makeRotate, IN, const osg::Vec3f &, from, IN, const osg::Vec3f &, to, + __void__makeRotate__C5_Vec3f_R1__C5_Vec3f_R1, + "", + ""); + I_Method2(void, makeRotate, IN, const osg::Vec3d &, from, IN, const osg::Vec3d &, to, + __void__makeRotate__C5_Vec3d_R1__C5_Vec3d_R1, + "", + ""); + I_Method2(void, makeRotate, IN, osg::Matrixd::value_type, angle, IN, const osg::Vec3f &, axis, + __void__makeRotate__value_type__C5_Vec3f_R1, + "", + ""); + I_Method2(void, makeRotate, IN, osg::Matrixd::value_type, angle, IN, const osg::Vec3d &, axis, + __void__makeRotate__value_type__C5_Vec3d_R1, + "", + ""); + I_Method4(void, makeRotate, IN, osg::Matrixd::value_type, angle, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, y, IN, osg::Matrixd::value_type, z, + __void__makeRotate__value_type__value_type__value_type__value_type, + "", + ""); + I_Method1(void, makeRotate, IN, const osg::Quat &, x, + __void__makeRotate__C5_Quat_R1, + "", + ""); + I_Method6(void, makeRotate, IN, osg::Matrixd::value_type, angle1, IN, const osg::Vec3f &, axis1, IN, osg::Matrixd::value_type, angle2, IN, const osg::Vec3f &, axis2, IN, osg::Matrixd::value_type, angle3, IN, const osg::Vec3f &, axis3, + __void__makeRotate__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1, + "", + ""); + I_Method6(void, makeRotate, IN, osg::Matrixd::value_type, angle1, IN, const osg::Vec3d &, axis1, IN, osg::Matrixd::value_type, angle2, IN, const osg::Vec3d &, axis2, IN, osg::Matrixd::value_type, angle3, IN, const osg::Vec3d &, axis3, + __void__makeRotate__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1, + "", + ""); + I_Method6(void, makeOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __void__makeOrtho__double__double__double__double__double__double, + "Set to an orthographic projection. ", + "See glOrtho for further details."); + I_Method6(bool, getOrtho, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar, + __bool__getOrtho__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1, + "Get the othogrraphic settings of the orthographic projection matrix. ", + "Note, if matrix is not an orthographic matrix then invalid values will be returned."); + I_Method4(void, makeOrtho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, + __void__makeOrtho2D__double__double__double__double, + "Set to a 2D orthographic projection. ", + "See glOrtho2D for further details."); + I_Method6(void, makeFrustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __void__makeFrustum__double__double__double__double__double__double, + "Set to a perspective projection. ", + "See glFrustum for further details."); + I_Method6(bool, getFrustum, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar, + __bool__getFrustum__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1, + "Get the frustum settings of a perspective projection matrix. ", + "Note, if matrix is not a perspective matrix then invalid values will be returned."); + I_Method4(void, makePerspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar, + __void__makePerspective__double__double__double__double, + "Set to a symmetrical perspective projection. ", + "See gluPerspective for further details. Aspect ratio is defined as width/height."); + I_Method4(bool, getPerspective, IN, double &, fovy, IN, double &, aspectRatio, IN, double &, zNear, IN, double &, zFar, + __bool__getPerspective__double_R1__double_R1__double_R1__double_R1, + "Get the frustum settings of a symmetric perspective projection matrix. ", + "Return false if matrix is not a perspective matrix, where parameter values are undefined. Note, if matrix is not a symmetric perspective matrix then the shear will be lost. Asymmetric matrices occur when stereo, power walls, caves and reality center display are used. In these configuration one should use the AsFrustum method instead."); + I_Method3(void, makeLookAt, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, center, IN, const osg::Vec3d &, up, + __void__makeLookAt__C5_Vec3d_R1__C5_Vec3d_R1__C5_Vec3d_R1, + "Set the position and orientation to be a view matrix, using the same convention as gluLookAt. ", + ""); + I_MethodWithDefaults4(void, getLookAt, IN, osg::Vec3f &, eye, , IN, osg::Vec3f &, center, , IN, osg::Vec3f &, up, , IN, osg::Matrixd::value_type, lookDistance, 1.0f, + __void__getLookAt__Vec3f_R1__Vec3f_R1__Vec3f_R1__value_type, + "Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. ", + ""); + I_MethodWithDefaults4(void, getLookAt, IN, osg::Vec3d &, eye, , IN, osg::Vec3d &, center, , IN, osg::Vec3d &, up, , IN, osg::Matrixd::value_type, lookDistance, 1.0f, + __void__getLookAt__Vec3d_R1__Vec3d_R1__Vec3d_R1__value_type, + "Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. ", + ""); + I_Method1(bool, invert, IN, const osg::Matrixd &, rhs, + __bool__invert__C5_Matrixd_R1, + "invert the matrix rhs, automatically select invert_4x3 or invert_4x4. ", + ""); + I_Method1(bool, invert_4x3, IN, const osg::Matrixd &, rhs, + __bool__invert_4x3__C5_Matrixd_R1, + "4x3 matrix invert, not right hand column is assumed to be 0,0,0,1. ", + ""); + I_Method1(bool, invert_4x4, IN, const osg::Matrixd &, rhs, + __bool__invert_4x4__C5_Matrixd_R1, + "full 4x4 matrix invert. ", + ""); + I_Method1(void, orthoNormalize, IN, const osg::Matrixd &, rhs, + __void__orthoNormalize__C5_Matrixd_R1, + "ortho-normalize the 3x3 rotation & scale matrix ", + ""); + I_Method1(osg::Vec3f, preMult, IN, const osg::Vec3f &, v, + __Vec3f__preMult__C5_Vec3f_R1, + "", + ""); + I_Method1(osg::Vec3d, preMult, IN, const osg::Vec3d &, v, + __Vec3d__preMult__C5_Vec3d_R1, + "", + ""); + I_Method1(osg::Vec3f, postMult, IN, const osg::Vec3f &, v, + __Vec3f__postMult__C5_Vec3f_R1, + "", + ""); + I_Method1(osg::Vec3d, postMult, IN, const osg::Vec3d &, v, + __Vec3d__postMult__C5_Vec3d_R1, + "", + ""); + I_Method1(osg::Vec4f, preMult, IN, const osg::Vec4f &, v, + __Vec4f__preMult__C5_Vec4f_R1, + "", + ""); + I_Method1(osg::Vec4d, preMult, IN, const osg::Vec4d &, v, + __Vec4d__preMult__C5_Vec4d_R1, + "", + ""); + I_Method1(osg::Vec4f, postMult, IN, const osg::Vec4f &, v, + __Vec4f__postMult__C5_Vec4f_R1, + "", + ""); + I_Method1(osg::Vec4d, postMult, IN, const osg::Vec4d &, v, + __Vec4d__postMult__C5_Vec4d_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Quat &, q, + __void__set__C5_Quat_R1, + "", + ""); + I_Method1(void, get, IN, osg::Quat &, q, + __void__get__Quat_R1, + "", + ""); + I_Method1(void, setRotate, IN, const osg::Quat &, q, + __void__setRotate__C5_Quat_R1, + "", + ""); + I_Method0(osg::Quat, getRotate, + __Quat__getRotate, + "", + ""); + I_Method3(void, setTrans, IN, osg::Matrixd::value_type, tx, IN, osg::Matrixd::value_type, ty, IN, osg::Matrixd::value_type, tz, + __void__setTrans__value_type__value_type__value_type, + "", + ""); + I_Method1(void, setTrans, IN, const osg::Vec3f &, v, + __void__setTrans__C5_Vec3f_R1, + "", + ""); + I_Method1(void, setTrans, IN, const osg::Vec3d &, v, + __void__setTrans__C5_Vec3d_R1, + "", + ""); + I_Method0(osg::Vec3d, getTrans, + __Vec3d__getTrans, + "", + ""); + I_Method0(osg::Vec3d, getScale, + __Vec3d__getScale, + "", + ""); + I_Method2(void, mult, IN, const osg::Matrixd &, x, IN, const osg::Matrixd &, x, + __void__mult__C5_Matrixd_R1__C5_Matrixd_R1, + "", + ""); + I_Method1(void, preMult, IN, const osg::Matrixd &, x, + __void__preMult__C5_Matrixd_R1, + "", + ""); + I_Method1(void, postMult, IN, const osg::Matrixd &, x, + __void__postMult__C5_Matrixd_R1, + "", + ""); + I_StaticMethod0(osg::Matrixd, identity, + __Matrixd__identity_S, + "", + ""); + I_StaticMethod1(osg::Matrixd, scale, IN, const osg::Vec3f &, sv, + __Matrixd__scale__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixd, scale, IN, const osg::Vec3d &, sv, + __Matrixd__scale__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod3(osg::Matrixd, scale, IN, osg::Matrixd::value_type, sx, IN, osg::Matrixd::value_type, sy, IN, osg::Matrixd::value_type, sz, + __Matrixd__scale__value_type__value_type__value_type_S, + "", + ""); + I_StaticMethod1(osg::Matrixd, translate, IN, const osg::Vec3f &, dv, + __Matrixd__translate__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixd, translate, IN, const osg::Vec3d &, dv, + __Matrixd__translate__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod3(osg::Matrixd, translate, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, y, IN, osg::Matrixd::value_type, z, + __Matrixd__translate__value_type__value_type__value_type_S, + "", + ""); + I_StaticMethod2(osg::Matrixd, rotate, IN, const osg::Vec3f &, from, IN, const osg::Vec3f &, to, + __Matrixd__rotate__C5_Vec3f_R1__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod2(osg::Matrixd, rotate, IN, const osg::Vec3d &, from, IN, const osg::Vec3d &, to, + __Matrixd__rotate__C5_Vec3d_R1__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod4(osg::Matrixd, rotate, IN, osg::Matrixd::value_type, angle, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, y, IN, osg::Matrixd::value_type, z, + __Matrixd__rotate__value_type__value_type__value_type__value_type_S, + "", + ""); + I_StaticMethod2(osg::Matrixd, rotate, IN, osg::Matrixd::value_type, angle, IN, const osg::Vec3f &, axis, + __Matrixd__rotate__value_type__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod2(osg::Matrixd, rotate, IN, osg::Matrixd::value_type, angle, IN, const osg::Vec3d &, axis, + __Matrixd__rotate__value_type__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod6(osg::Matrixd, rotate, IN, osg::Matrixd::value_type, angle1, IN, const osg::Vec3f &, axis1, IN, osg::Matrixd::value_type, angle2, IN, const osg::Vec3f &, axis2, IN, osg::Matrixd::value_type, angle3, IN, const osg::Vec3f &, axis3, + __Matrixd__rotate__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod6(osg::Matrixd, rotate, IN, osg::Matrixd::value_type, angle1, IN, const osg::Vec3d &, axis1, IN, osg::Matrixd::value_type, angle2, IN, const osg::Vec3d &, axis2, IN, osg::Matrixd::value_type, angle3, IN, const osg::Vec3d &, axis3, + __Matrixd__rotate__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixd, rotate, IN, const osg::Quat &, quat, + __Matrixd__rotate__C5_Quat_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixd, inverse, IN, const osg::Matrixd &, matrix, + __Matrixd__inverse__C5_Matrixd_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixd, orthoNormal, IN, const osg::Matrixd &, matrix, + __Matrixd__orthoNormal__C5_Matrixd_R1_S, + "", + ""); + I_StaticMethod6(osg::Matrixd, ortho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __Matrixd__ortho__double__double__double__double__double__double_S, + "Create an orthographic projection matrix. ", + "See glOrtho for further details."); + I_StaticMethod4(osg::Matrixd, ortho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, + __Matrixd__ortho2D__double__double__double__double_S, + "Create a 2D orthographic projection. ", + "See glOrtho for further details."); + I_StaticMethod6(osg::Matrixd, frustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __Matrixd__frustum__double__double__double__double__double__double_S, + "Create a perspective projection. ", + "See glFrustum for further details."); + I_StaticMethod4(osg::Matrixd, perspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar, + __Matrixd__perspective__double__double__double__double_S, + "Create a symmetrical perspective projection. ", + "See gluPerspective for further details. Aspect ratio is defined as width/height."); + I_StaticMethod3(osg::Matrixd, lookAt, IN, const osg::Vec3f &, eye, IN, const osg::Vec3f &, center, IN, const osg::Vec3f &, up, + __Matrixd__lookAt__C5_Vec3f_R1__C5_Vec3f_R1__C5_Vec3f_R1_S, + "Create the position and orientation as per a camera, using the same convention as gluLookAt. ", + ""); + I_StaticMethod3(osg::Matrixd, lookAt, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, center, IN, const osg::Vec3d &, up, + __Matrixd__lookAt__C5_Vec3d_R1__C5_Vec3d_R1__C5_Vec3d_R1_S, + "Create the position and orientation as per a camera, using the same convention as gluLookAt. ", + ""); + I_StaticMethod2(osg::Vec3f, transform3x3, IN, const osg::Vec3f &, v, IN, const osg::Matrixd &, m, + __Vec3f__transform3x3__C5_Vec3f_R1__C5_Matrixd_R1_S, + "apply a 3x3 transform of v*M[0. ", + ".2,0..2]. "); + I_StaticMethod2(osg::Vec3d, transform3x3, IN, const osg::Vec3d &, v, IN, const osg::Matrixd &, m, + __Vec3d__transform3x3__C5_Vec3d_R1__C5_Matrixd_R1_S, + "apply a 3x3 transform of v*M[0. ", + ".2,0..2]. "); + I_StaticMethod2(osg::Vec3f, transform3x3, IN, const osg::Matrixd &, m, IN, const osg::Vec3f &, v, + __Vec3f__transform3x3__C5_Matrixd_R1__C5_Vec3f_R1_S, + "apply a 3x3 transform of M[0. ", + ".2,0..2]*v. "); + I_StaticMethod2(osg::Vec3d, transform3x3, IN, const osg::Matrixd &, m, IN, const osg::Vec3d &, v, + __Vec3d__transform3x3__C5_Matrixd_R1__C5_Vec3d_R1_S, + "apply a 3x3 transform of M[0. ", + ".2,0..2]*v. "); + I_SimpleProperty(osg::Quat, Rotate, + __Quat__getRotate, + __void__setRotate__C5_Quat_R1); + I_SimpleProperty(osg::Vec3d, Scale, + __Vec3d__getScale, + 0); + I_SimpleProperty(osg::Vec3d, Trans, + __Vec3d__getTrans, + __void__setTrans__C5_Vec3d_R1); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::RefMatrixd) I_BaseType(osg::Object); I_BaseType(osg::Matrixd); - I_Constructor0(); - I_Constructor1(IN, const osg::Matrixd &, other); - I_Constructor1(IN, const osg::Matrixf &, other); - I_Constructor1(IN, const osg::RefMatrixd &, other); - I_Constructor1(IN, osg::Matrixd::value_type const *const, def); - I_Constructor16(IN, osg::Matrixd::value_type, a00, IN, osg::Matrixd::value_type, a01, IN, osg::Matrixd::value_type, a02, IN, osg::Matrixd::value_type, a03, IN, osg::Matrixd::value_type, a10, IN, osg::Matrixd::value_type, a11, IN, osg::Matrixd::value_type, a12, IN, osg::Matrixd::value_type, a13, IN, osg::Matrixd::value_type, a20, IN, osg::Matrixd::value_type, a21, IN, osg::Matrixd::value_type, a22, IN, osg::Matrixd::value_type, a23, IN, osg::Matrixd::value_type, a30, IN, osg::Matrixd::value_type, a31, IN, osg::Matrixd::value_type, a32, IN, osg::Matrixd::value_type, a33); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); + I_Constructor0(____RefMatrixd, + "", + ""); + I_Constructor1(IN, const osg::Matrixd &, other, + ____RefMatrixd__C5_Matrixd_R1, + "", + ""); + I_Constructor1(IN, const osg::Matrixf &, other, + ____RefMatrixd__C5_Matrixf_R1, + "", + ""); + I_Constructor1(IN, const osg::RefMatrixd &, other, + ____RefMatrixd__C5_RefMatrixd_R1, + "", + ""); + I_Constructor1(IN, osg::Matrixd::value_type const *const, def, + ____RefMatrixd__Matrixd_value_type_C5_P1C5, + "", + ""); + I_Constructor16(IN, osg::Matrixd::value_type, a00, IN, osg::Matrixd::value_type, a01, IN, osg::Matrixd::value_type, a02, IN, osg::Matrixd::value_type, a03, IN, osg::Matrixd::value_type, a10, IN, osg::Matrixd::value_type, a11, IN, osg::Matrixd::value_type, a12, IN, osg::Matrixd::value_type, a13, IN, osg::Matrixd::value_type, a20, IN, osg::Matrixd::value_type, a21, IN, osg::Matrixd::value_type, a22, IN, osg::Matrixd::value_type, a23, IN, osg::Matrixd::value_type, a30, IN, osg::Matrixd::value_type, a31, IN, osg::Matrixd::value_type, a32, IN, osg::Matrixd::value_type, a33, + ____RefMatrixd__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); END_REFLECTOR diff --git a/src/osgWrappers/osg/Matrixf.cpp b/src/osgWrappers/osg/Matrixf.cpp index 9f864e892..986bee939 100644 --- a/src/osgWrappers/osg/Matrixf.cpp +++ b/src/osgWrappers/osg/Matrixf.cpp @@ -31,118 +31,433 @@ TYPE_NAME_ALIAS(float, osg::Matrixf::value_type); BEGIN_VALUE_REFLECTOR(osg::Matrixf) - I_Constructor0(); - I_Constructor1(IN, const osg::Matrixf &, mat); - I_Constructor1(IN, const osg::Matrixd &, mat); - I_Constructor1(IN, float const *const, ptr); - I_Constructor1(IN, double const *const, ptr); - I_Constructor1(IN, const osg::Quat &, quat); - I_Constructor16(IN, osg::Matrixf::value_type, a00, IN, osg::Matrixf::value_type, a01, IN, osg::Matrixf::value_type, a02, IN, osg::Matrixf::value_type, a03, IN, osg::Matrixf::value_type, a10, IN, osg::Matrixf::value_type, a11, IN, osg::Matrixf::value_type, a12, IN, osg::Matrixf::value_type, a13, IN, osg::Matrixf::value_type, a20, IN, osg::Matrixf::value_type, a21, IN, osg::Matrixf::value_type, a22, IN, osg::Matrixf::value_type, a23, IN, osg::Matrixf::value_type, a30, IN, osg::Matrixf::value_type, a31, IN, osg::Matrixf::value_type, a32, IN, osg::Matrixf::value_type, a33); - I_Method1(int, compare, IN, const osg::Matrixf &, m); - I_Method0(bool, valid); - I_Method0(bool, isNaN); - I_Method1(void, set, IN, const osg::Matrixf &, rhs); - I_Method1(void, set, IN, const osg::Matrixd &, rhs); - I_Method1(void, set, IN, float const *const, ptr); - I_Method1(void, set, IN, double const *const, ptr); - I_Method16(void, set, IN, osg::Matrixf::value_type, a00, IN, osg::Matrixf::value_type, a01, IN, osg::Matrixf::value_type, a02, IN, osg::Matrixf::value_type, a03, IN, osg::Matrixf::value_type, a10, IN, osg::Matrixf::value_type, a11, IN, osg::Matrixf::value_type, a12, IN, osg::Matrixf::value_type, a13, IN, osg::Matrixf::value_type, a20, IN, osg::Matrixf::value_type, a21, IN, osg::Matrixf::value_type, a22, IN, osg::Matrixf::value_type, a23, IN, osg::Matrixf::value_type, a30, IN, osg::Matrixf::value_type, a31, IN, osg::Matrixf::value_type, a32, IN, osg::Matrixf::value_type, a33); - I_Method0(osg::Matrixf::value_type *, ptr); - I_Method0(const osg::Matrixf::value_type *, ptr); - I_Method0(void, makeIdentity); - I_Method1(void, makeScale, IN, const osg::Vec3f &, x); - I_Method1(void, makeScale, IN, const osg::Vec3d &, x); - I_Method3(void, makeScale, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, x); - I_Method1(void, makeTranslate, IN, const osg::Vec3f &, x); - I_Method1(void, makeTranslate, IN, const osg::Vec3d &, x); - I_Method3(void, makeTranslate, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, x); - I_Method2(void, makeRotate, IN, const osg::Vec3f &, from, IN, const osg::Vec3f &, to); - I_Method2(void, makeRotate, IN, const osg::Vec3d &, from, IN, const osg::Vec3d &, to); - I_Method2(void, makeRotate, IN, osg::Matrixf::value_type, angle, IN, const osg::Vec3f &, axis); - I_Method2(void, makeRotate, IN, osg::Matrixf::value_type, angle, IN, const osg::Vec3d &, axis); - I_Method4(void, makeRotate, IN, osg::Matrixf::value_type, angle, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, y, IN, osg::Matrixf::value_type, z); - I_Method1(void, makeRotate, IN, const osg::Quat &, x); - I_Method6(void, makeRotate, IN, osg::Matrixf::value_type, angle1, IN, const osg::Vec3f &, axis1, IN, osg::Matrixf::value_type, angle2, IN, const osg::Vec3f &, axis2, IN, osg::Matrixf::value_type, angle3, IN, const osg::Vec3f &, axis3); - I_Method6(void, makeRotate, IN, osg::Matrixf::value_type, angle1, IN, const osg::Vec3d &, axis1, IN, osg::Matrixf::value_type, angle2, IN, const osg::Vec3d &, axis2, IN, osg::Matrixf::value_type, angle3, IN, const osg::Vec3d &, axis3); - I_Method6(void, makeOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); - I_Method6(bool, getOrtho, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar); - I_Method4(void, makeOrtho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top); - I_Method6(void, makeFrustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); - I_Method6(bool, getFrustum, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar); - I_Method4(void, makePerspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar); - I_Method4(bool, getPerspective, IN, double &, fovy, IN, double &, aspectRatio, IN, double &, zNear, IN, double &, zFar); - I_Method3(void, makeLookAt, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, center, IN, const osg::Vec3d &, up); - I_MethodWithDefaults4(void, getLookAt, IN, osg::Vec3f &, eye, , IN, osg::Vec3f &, center, , IN, osg::Vec3f &, up, , IN, osg::Matrixf::value_type, lookDistance, 1.0f); - I_MethodWithDefaults4(void, getLookAt, IN, osg::Vec3d &, eye, , IN, osg::Vec3d &, center, , IN, osg::Vec3d &, up, , IN, osg::Matrixf::value_type, lookDistance, 1.0f); - I_Method1(bool, invert, IN, const osg::Matrixf &, rhs); - I_Method1(bool, invert_4x3, IN, const osg::Matrixf &, rhs); - I_Method1(bool, invert_4x4, IN, const osg::Matrixf &, rhs); - I_Method1(void, orthoNormalize, IN, const osg::Matrixf &, rhs); - I_Method1(osg::Vec3f, preMult, IN, const osg::Vec3f &, v); - I_Method1(osg::Vec3d, preMult, IN, const osg::Vec3d &, v); - I_Method1(osg::Vec3f, postMult, IN, const osg::Vec3f &, v); - I_Method1(osg::Vec3d, postMult, IN, const osg::Vec3d &, v); - I_Method1(osg::Vec4f, preMult, IN, const osg::Vec4f &, v); - I_Method1(osg::Vec4d, preMult, IN, const osg::Vec4d &, v); - I_Method1(osg::Vec4f, postMult, IN, const osg::Vec4f &, v); - I_Method1(osg::Vec4d, postMult, IN, const osg::Vec4d &, v); - I_Method1(void, set, IN, const osg::Quat &, q); - I_Method1(void, get, IN, osg::Quat &, q); - I_Method1(void, setRotate, IN, const osg::Quat &, q); - I_Method0(osg::Quat, getRotate); - I_Method3(void, setTrans, IN, osg::Matrixf::value_type, tx, IN, osg::Matrixf::value_type, ty, IN, osg::Matrixf::value_type, tz); - I_Method1(void, setTrans, IN, const osg::Vec3f &, v); - I_Method1(void, setTrans, IN, const osg::Vec3d &, v); - I_Method0(osg::Vec3d, getTrans); - I_Method0(osg::Vec3d, getScale); - I_Method2(void, mult, IN, const osg::Matrixf &, x, IN, const osg::Matrixf &, x); - I_Method1(void, preMult, IN, const osg::Matrixf &, x); - I_Method1(void, postMult, IN, const osg::Matrixf &, x); - I_StaticMethod0(osg::Matrixf, identity); - I_StaticMethod1(osg::Matrixf, scale, IN, const osg::Vec3f &, sv); - I_StaticMethod1(osg::Matrixf, scale, IN, const osg::Vec3d &, sv); - I_StaticMethod3(osg::Matrixf, scale, IN, osg::Matrixf::value_type, sx, IN, osg::Matrixf::value_type, sy, IN, osg::Matrixf::value_type, sz); - I_StaticMethod1(osg::Matrixf, translate, IN, const osg::Vec3f &, dv); - I_StaticMethod1(osg::Matrixf, translate, IN, const osg::Vec3d &, dv); - I_StaticMethod3(osg::Matrixf, translate, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, y, IN, osg::Matrixf::value_type, z); - I_StaticMethod2(osg::Matrixf, rotate, IN, const osg::Vec3f &, from, IN, const osg::Vec3f &, to); - I_StaticMethod2(osg::Matrixf, rotate, IN, const osg::Vec3d &, from, IN, const osg::Vec3d &, to); - I_StaticMethod4(osg::Matrixf, rotate, IN, osg::Matrixf::value_type, angle, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, y, IN, osg::Matrixf::value_type, z); - I_StaticMethod2(osg::Matrixf, rotate, IN, osg::Matrixf::value_type, angle, IN, const osg::Vec3f &, axis); - I_StaticMethod2(osg::Matrixf, rotate, IN, osg::Matrixf::value_type, angle, IN, const osg::Vec3d &, axis); - I_StaticMethod6(osg::Matrixf, rotate, IN, osg::Matrixf::value_type, angle1, IN, const osg::Vec3f &, axis1, IN, osg::Matrixf::value_type, angle2, IN, const osg::Vec3f &, axis2, IN, osg::Matrixf::value_type, angle3, IN, const osg::Vec3f &, axis3); - I_StaticMethod6(osg::Matrixf, rotate, IN, osg::Matrixf::value_type, angle1, IN, const osg::Vec3d &, axis1, IN, osg::Matrixf::value_type, angle2, IN, const osg::Vec3d &, axis2, IN, osg::Matrixf::value_type, angle3, IN, const osg::Vec3d &, axis3); - I_StaticMethod1(osg::Matrixf, rotate, IN, const osg::Quat &, quat); - I_StaticMethod1(osg::Matrixf, inverse, IN, const osg::Matrixf &, matrix); - I_StaticMethod1(osg::Matrixf, orthoNormal, IN, const osg::Matrixf &, matrix); - I_StaticMethod6(osg::Matrixf, ortho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); - I_StaticMethod4(osg::Matrixf, ortho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top); - I_StaticMethod6(osg::Matrixf, frustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); - I_StaticMethod4(osg::Matrixf, perspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar); - I_StaticMethod3(osg::Matrixf, lookAt, IN, const osg::Vec3f &, eye, IN, const osg::Vec3f &, center, IN, const osg::Vec3f &, up); - I_StaticMethod3(osg::Matrixf, lookAt, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, center, IN, const osg::Vec3d &, up); - I_StaticMethod2(osg::Vec3f, transform3x3, IN, const osg::Vec3f &, v, IN, const osg::Matrixf &, m); - I_StaticMethod2(osg::Vec3d, transform3x3, IN, const osg::Vec3d &, v, IN, const osg::Matrixf &, m); - I_StaticMethod2(osg::Vec3f, transform3x3, IN, const osg::Matrixf &, m, IN, const osg::Vec3f &, v); - I_StaticMethod2(osg::Vec3d, transform3x3, IN, const osg::Matrixf &, m, IN, const osg::Vec3d &, v); - I_WriteOnlyProperty(float const *const, ); - I_ReadOnlyProperty(osg::Quat, Rotate); - I_ReadOnlyProperty(osg::Vec3d, Scale); - I_ReadOnlyProperty(osg::Vec3d, Trans); + I_Constructor0(____Matrixf, + "", + ""); + I_Constructor1(IN, const osg::Matrixf &, mat, + ____Matrixf__C5_Matrixf_R1, + "", + ""); + I_Constructor1(IN, const osg::Matrixd &, mat, + ____Matrixf__C5_Matrixd_R1, + "", + ""); + I_Constructor1(IN, float const *const, ptr, + ____Matrixf__float_C5_P1C5, + "", + ""); + I_Constructor1(IN, double const *const, ptr, + ____Matrixf__double_C5_P1C5, + "", + ""); + I_Constructor1(IN, const osg::Quat &, quat, + ____Matrixf__C5_Quat_R1, + "", + ""); + I_Constructor16(IN, osg::Matrixf::value_type, a00, IN, osg::Matrixf::value_type, a01, IN, osg::Matrixf::value_type, a02, IN, osg::Matrixf::value_type, a03, IN, osg::Matrixf::value_type, a10, IN, osg::Matrixf::value_type, a11, IN, osg::Matrixf::value_type, a12, IN, osg::Matrixf::value_type, a13, IN, osg::Matrixf::value_type, a20, IN, osg::Matrixf::value_type, a21, IN, osg::Matrixf::value_type, a22, IN, osg::Matrixf::value_type, a23, IN, osg::Matrixf::value_type, a30, IN, osg::Matrixf::value_type, a31, IN, osg::Matrixf::value_type, a32, IN, osg::Matrixf::value_type, a33, + ____Matrixf__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type, + "", + ""); + I_Method1(int, compare, IN, const osg::Matrixf &, m, + __int__compare__C5_Matrixf_R1, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + __bool__isNaN, + "", + ""); + I_Method1(void, set, IN, const osg::Matrixf &, rhs, + __void__set__C5_Matrixf_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Matrixd &, rhs, + __void__set__C5_Matrixd_R1, + "", + ""); + I_Method1(void, set, IN, float const *const, ptr, + __void__set__float_C5_P1C5, + "", + ""); + I_Method1(void, set, IN, double const *const, ptr, + __void__set__double_C5_P1C5, + "", + ""); + I_Method16(void, set, IN, osg::Matrixf::value_type, a00, IN, osg::Matrixf::value_type, a01, IN, osg::Matrixf::value_type, a02, IN, osg::Matrixf::value_type, a03, IN, osg::Matrixf::value_type, a10, IN, osg::Matrixf::value_type, a11, IN, osg::Matrixf::value_type, a12, IN, osg::Matrixf::value_type, a13, IN, osg::Matrixf::value_type, a20, IN, osg::Matrixf::value_type, a21, IN, osg::Matrixf::value_type, a22, IN, osg::Matrixf::value_type, a23, IN, osg::Matrixf::value_type, a30, IN, osg::Matrixf::value_type, a31, IN, osg::Matrixf::value_type, a32, IN, osg::Matrixf::value_type, a33, + __void__set__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Matrixf::value_type *, ptr, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Matrixf::value_type *, ptr, + __C5_value_type_P1__ptr, + "", + ""); + I_Method0(void, makeIdentity, + __void__makeIdentity, + "", + ""); + I_Method1(void, makeScale, IN, const osg::Vec3f &, x, + __void__makeScale__C5_Vec3f_R1, + "", + ""); + I_Method1(void, makeScale, IN, const osg::Vec3d &, x, + __void__makeScale__C5_Vec3d_R1, + "", + ""); + I_Method3(void, makeScale, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, x, + __void__makeScale__value_type__value_type__value_type, + "", + ""); + I_Method1(void, makeTranslate, IN, const osg::Vec3f &, x, + __void__makeTranslate__C5_Vec3f_R1, + "", + ""); + I_Method1(void, makeTranslate, IN, const osg::Vec3d &, x, + __void__makeTranslate__C5_Vec3d_R1, + "", + ""); + I_Method3(void, makeTranslate, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, x, + __void__makeTranslate__value_type__value_type__value_type, + "", + ""); + I_Method2(void, makeRotate, IN, const osg::Vec3f &, from, IN, const osg::Vec3f &, to, + __void__makeRotate__C5_Vec3f_R1__C5_Vec3f_R1, + "", + ""); + I_Method2(void, makeRotate, IN, const osg::Vec3d &, from, IN, const osg::Vec3d &, to, + __void__makeRotate__C5_Vec3d_R1__C5_Vec3d_R1, + "", + ""); + I_Method2(void, makeRotate, IN, osg::Matrixf::value_type, angle, IN, const osg::Vec3f &, axis, + __void__makeRotate__value_type__C5_Vec3f_R1, + "", + ""); + I_Method2(void, makeRotate, IN, osg::Matrixf::value_type, angle, IN, const osg::Vec3d &, axis, + __void__makeRotate__value_type__C5_Vec3d_R1, + "", + ""); + I_Method4(void, makeRotate, IN, osg::Matrixf::value_type, angle, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, y, IN, osg::Matrixf::value_type, z, + __void__makeRotate__value_type__value_type__value_type__value_type, + "", + ""); + I_Method1(void, makeRotate, IN, const osg::Quat &, x, + __void__makeRotate__C5_Quat_R1, + "", + ""); + I_Method6(void, makeRotate, IN, osg::Matrixf::value_type, angle1, IN, const osg::Vec3f &, axis1, IN, osg::Matrixf::value_type, angle2, IN, const osg::Vec3f &, axis2, IN, osg::Matrixf::value_type, angle3, IN, const osg::Vec3f &, axis3, + __void__makeRotate__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1, + "", + ""); + I_Method6(void, makeRotate, IN, osg::Matrixf::value_type, angle1, IN, const osg::Vec3d &, axis1, IN, osg::Matrixf::value_type, angle2, IN, const osg::Vec3d &, axis2, IN, osg::Matrixf::value_type, angle3, IN, const osg::Vec3d &, axis3, + __void__makeRotate__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1, + "", + ""); + I_Method6(void, makeOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __void__makeOrtho__double__double__double__double__double__double, + "Set to an orthographic projection. ", + "See glOrtho for further details."); + I_Method6(bool, getOrtho, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar, + __bool__getOrtho__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1, + "Get the othogrraphic settings of the orthographic projection matrix. ", + "Note, if matrix is not an orthographic matrix then invalid values will be returned."); + I_Method4(void, makeOrtho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, + __void__makeOrtho2D__double__double__double__double, + "Set to a 2D orthographic projection. ", + "See glOrtho2D for further details."); + I_Method6(void, makeFrustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __void__makeFrustum__double__double__double__double__double__double, + "Set to a perspective projection. ", + "See glFrustum for further details."); + I_Method6(bool, getFrustum, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar, + __bool__getFrustum__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1, + "Get the frustum settings of a perspective projection matrix. ", + "Note, if matrix is not a perspective matrix then invalid values will be returned."); + I_Method4(void, makePerspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar, + __void__makePerspective__double__double__double__double, + "Set to a symmetrical perspective projection. ", + "See gluPerspective for further details. Aspect ratio is defined as width/height."); + I_Method4(bool, getPerspective, IN, double &, fovy, IN, double &, aspectRatio, IN, double &, zNear, IN, double &, zFar, + __bool__getPerspective__double_R1__double_R1__double_R1__double_R1, + "Get the frustum settings of a symmetric perspective projection matrix. ", + "Return false if matrix is not a perspective matrix, where parameter values are undefined. Note, if matrix is not a symmetric perspective matrix then the shear will be lost. Asymmetric matrices occur when stereo, power walls, caves and reality center display are used. In these configuration one should use the AsFrustum method instead."); + I_Method3(void, makeLookAt, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, center, IN, const osg::Vec3d &, up, + __void__makeLookAt__C5_Vec3d_R1__C5_Vec3d_R1__C5_Vec3d_R1, + "Set the position and orientation to be a view matrix, using the same convention as gluLookAt. ", + ""); + I_MethodWithDefaults4(void, getLookAt, IN, osg::Vec3f &, eye, , IN, osg::Vec3f &, center, , IN, osg::Vec3f &, up, , IN, osg::Matrixf::value_type, lookDistance, 1.0f, + __void__getLookAt__Vec3f_R1__Vec3f_R1__Vec3f_R1__value_type, + "Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. ", + ""); + I_MethodWithDefaults4(void, getLookAt, IN, osg::Vec3d &, eye, , IN, osg::Vec3d &, center, , IN, osg::Vec3d &, up, , IN, osg::Matrixf::value_type, lookDistance, 1.0f, + __void__getLookAt__Vec3d_R1__Vec3d_R1__Vec3d_R1__value_type, + "Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. ", + ""); + I_Method1(bool, invert, IN, const osg::Matrixf &, rhs, + __bool__invert__C5_Matrixf_R1, + "invert the matrix rhs, automatically select invert_4x3 or invert_4x4. ", + ""); + I_Method1(bool, invert_4x3, IN, const osg::Matrixf &, rhs, + __bool__invert_4x3__C5_Matrixf_R1, + "4x3 matrix invert, not right hand column is assumed to be 0,0,0,1. ", + ""); + I_Method1(bool, invert_4x4, IN, const osg::Matrixf &, rhs, + __bool__invert_4x4__C5_Matrixf_R1, + "full 4x4 matrix invert. ", + ""); + I_Method1(void, orthoNormalize, IN, const osg::Matrixf &, rhs, + __void__orthoNormalize__C5_Matrixf_R1, + "ortho-normalize the 3x3 rotation & scale matrix ", + ""); + I_Method1(osg::Vec3f, preMult, IN, const osg::Vec3f &, v, + __Vec3f__preMult__C5_Vec3f_R1, + "", + ""); + I_Method1(osg::Vec3d, preMult, IN, const osg::Vec3d &, v, + __Vec3d__preMult__C5_Vec3d_R1, + "", + ""); + I_Method1(osg::Vec3f, postMult, IN, const osg::Vec3f &, v, + __Vec3f__postMult__C5_Vec3f_R1, + "", + ""); + I_Method1(osg::Vec3d, postMult, IN, const osg::Vec3d &, v, + __Vec3d__postMult__C5_Vec3d_R1, + "", + ""); + I_Method1(osg::Vec4f, preMult, IN, const osg::Vec4f &, v, + __Vec4f__preMult__C5_Vec4f_R1, + "", + ""); + I_Method1(osg::Vec4d, preMult, IN, const osg::Vec4d &, v, + __Vec4d__preMult__C5_Vec4d_R1, + "", + ""); + I_Method1(osg::Vec4f, postMult, IN, const osg::Vec4f &, v, + __Vec4f__postMult__C5_Vec4f_R1, + "", + ""); + I_Method1(osg::Vec4d, postMult, IN, const osg::Vec4d &, v, + __Vec4d__postMult__C5_Vec4d_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Quat &, q, + __void__set__C5_Quat_R1, + "", + ""); + I_Method1(void, get, IN, osg::Quat &, q, + __void__get__Quat_R1, + "", + ""); + I_Method1(void, setRotate, IN, const osg::Quat &, q, + __void__setRotate__C5_Quat_R1, + "", + ""); + I_Method0(osg::Quat, getRotate, + __Quat__getRotate, + "", + ""); + I_Method3(void, setTrans, IN, osg::Matrixf::value_type, tx, IN, osg::Matrixf::value_type, ty, IN, osg::Matrixf::value_type, tz, + __void__setTrans__value_type__value_type__value_type, + "", + ""); + I_Method1(void, setTrans, IN, const osg::Vec3f &, v, + __void__setTrans__C5_Vec3f_R1, + "", + ""); + I_Method1(void, setTrans, IN, const osg::Vec3d &, v, + __void__setTrans__C5_Vec3d_R1, + "", + ""); + I_Method0(osg::Vec3d, getTrans, + __Vec3d__getTrans, + "", + ""); + I_Method0(osg::Vec3d, getScale, + __Vec3d__getScale, + "", + ""); + I_Method2(void, mult, IN, const osg::Matrixf &, x, IN, const osg::Matrixf &, x, + __void__mult__C5_Matrixf_R1__C5_Matrixf_R1, + "", + ""); + I_Method1(void, preMult, IN, const osg::Matrixf &, x, + __void__preMult__C5_Matrixf_R1, + "", + ""); + I_Method1(void, postMult, IN, const osg::Matrixf &, x, + __void__postMult__C5_Matrixf_R1, + "", + ""); + I_StaticMethod0(osg::Matrixf, identity, + __Matrixf__identity_S, + "", + ""); + I_StaticMethod1(osg::Matrixf, scale, IN, const osg::Vec3f &, sv, + __Matrixf__scale__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixf, scale, IN, const osg::Vec3d &, sv, + __Matrixf__scale__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod3(osg::Matrixf, scale, IN, osg::Matrixf::value_type, sx, IN, osg::Matrixf::value_type, sy, IN, osg::Matrixf::value_type, sz, + __Matrixf__scale__value_type__value_type__value_type_S, + "", + ""); + I_StaticMethod1(osg::Matrixf, translate, IN, const osg::Vec3f &, dv, + __Matrixf__translate__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixf, translate, IN, const osg::Vec3d &, dv, + __Matrixf__translate__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod3(osg::Matrixf, translate, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, y, IN, osg::Matrixf::value_type, z, + __Matrixf__translate__value_type__value_type__value_type_S, + "", + ""); + I_StaticMethod2(osg::Matrixf, rotate, IN, const osg::Vec3f &, from, IN, const osg::Vec3f &, to, + __Matrixf__rotate__C5_Vec3f_R1__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod2(osg::Matrixf, rotate, IN, const osg::Vec3d &, from, IN, const osg::Vec3d &, to, + __Matrixf__rotate__C5_Vec3d_R1__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod4(osg::Matrixf, rotate, IN, osg::Matrixf::value_type, angle, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, y, IN, osg::Matrixf::value_type, z, + __Matrixf__rotate__value_type__value_type__value_type__value_type_S, + "", + ""); + I_StaticMethod2(osg::Matrixf, rotate, IN, osg::Matrixf::value_type, angle, IN, const osg::Vec3f &, axis, + __Matrixf__rotate__value_type__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod2(osg::Matrixf, rotate, IN, osg::Matrixf::value_type, angle, IN, const osg::Vec3d &, axis, + __Matrixf__rotate__value_type__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod6(osg::Matrixf, rotate, IN, osg::Matrixf::value_type, angle1, IN, const osg::Vec3f &, axis1, IN, osg::Matrixf::value_type, angle2, IN, const osg::Vec3f &, axis2, IN, osg::Matrixf::value_type, angle3, IN, const osg::Vec3f &, axis3, + __Matrixf__rotate__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod6(osg::Matrixf, rotate, IN, osg::Matrixf::value_type, angle1, IN, const osg::Vec3d &, axis1, IN, osg::Matrixf::value_type, angle2, IN, const osg::Vec3d &, axis2, IN, osg::Matrixf::value_type, angle3, IN, const osg::Vec3d &, axis3, + __Matrixf__rotate__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixf, rotate, IN, const osg::Quat &, quat, + __Matrixf__rotate__C5_Quat_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixf, inverse, IN, const osg::Matrixf &, matrix, + __Matrixf__inverse__C5_Matrixf_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixf, orthoNormal, IN, const osg::Matrixf &, matrix, + __Matrixf__orthoNormal__C5_Matrixf_R1_S, + "", + ""); + I_StaticMethod6(osg::Matrixf, ortho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __Matrixf__ortho__double__double__double__double__double__double_S, + "Create an orthographic projection matrix. ", + "See glOrtho for further details."); + I_StaticMethod4(osg::Matrixf, ortho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, + __Matrixf__ortho2D__double__double__double__double_S, + "Create a 2D orthographic projection. ", + "See glOrtho for further details."); + I_StaticMethod6(osg::Matrixf, frustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __Matrixf__frustum__double__double__double__double__double__double_S, + "Create a perspective projection. ", + "See glFrustum for further details."); + I_StaticMethod4(osg::Matrixf, perspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar, + __Matrixf__perspective__double__double__double__double_S, + "Create a symmetrical perspective projection. ", + "See gluPerspective for further details. Aspect ratio is defined as width/height."); + I_StaticMethod3(osg::Matrixf, lookAt, IN, const osg::Vec3f &, eye, IN, const osg::Vec3f &, center, IN, const osg::Vec3f &, up, + __Matrixf__lookAt__C5_Vec3f_R1__C5_Vec3f_R1__C5_Vec3f_R1_S, + "Create the position and orientation as per a camera, using the same convention as gluLookAt. ", + ""); + I_StaticMethod3(osg::Matrixf, lookAt, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, center, IN, const osg::Vec3d &, up, + __Matrixf__lookAt__C5_Vec3d_R1__C5_Vec3d_R1__C5_Vec3d_R1_S, + "Create the position and orientation as per a camera, using the same convention as gluLookAt. ", + ""); + I_StaticMethod2(osg::Vec3f, transform3x3, IN, const osg::Vec3f &, v, IN, const osg::Matrixf &, m, + __Vec3f__transform3x3__C5_Vec3f_R1__C5_Matrixf_R1_S, + "apply a 3x3 transform of v*M[0. ", + ".2,0..2]. "); + I_StaticMethod2(osg::Vec3d, transform3x3, IN, const osg::Vec3d &, v, IN, const osg::Matrixf &, m, + __Vec3d__transform3x3__C5_Vec3d_R1__C5_Matrixf_R1_S, + "apply a 3x3 transform of v*M[0. ", + ".2,0..2]. "); + I_StaticMethod2(osg::Vec3f, transform3x3, IN, const osg::Matrixf &, m, IN, const osg::Vec3f &, v, + __Vec3f__transform3x3__C5_Matrixf_R1__C5_Vec3f_R1_S, + "apply a 3x3 transform of M[0. ", + ".2,0..2]*v. "); + I_StaticMethod2(osg::Vec3d, transform3x3, IN, const osg::Matrixf &, m, IN, const osg::Vec3d &, v, + __Vec3d__transform3x3__C5_Matrixf_R1__C5_Vec3d_R1_S, + "apply a 3x3 transform of M[0. ", + ".2,0..2]*v. "); + I_SimpleProperty(osg::Quat, Rotate, + __Quat__getRotate, + __void__setRotate__C5_Quat_R1); + I_SimpleProperty(osg::Vec3d, Scale, + __Vec3d__getScale, + 0); + I_SimpleProperty(osg::Vec3d, Trans, + __Vec3d__getTrans, + __void__setTrans__C5_Vec3d_R1); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::RefMatrixf) I_BaseType(osg::Object); I_BaseType(osg::Matrixf); - I_Constructor0(); - I_Constructor1(IN, const osg::Matrixf &, other); - I_Constructor1(IN, const osg::Matrixd &, other); - I_Constructor1(IN, const osg::RefMatrixf &, other); - I_Constructor1(IN, osg::Matrixf::value_type const *const, def); - I_Constructor16(IN, osg::Matrixf::value_type, a00, IN, osg::Matrixf::value_type, a01, IN, osg::Matrixf::value_type, a02, IN, osg::Matrixf::value_type, a03, IN, osg::Matrixf::value_type, a10, IN, osg::Matrixf::value_type, a11, IN, osg::Matrixf::value_type, a12, IN, osg::Matrixf::value_type, a13, IN, osg::Matrixf::value_type, a20, IN, osg::Matrixf::value_type, a21, IN, osg::Matrixf::value_type, a22, IN, osg::Matrixf::value_type, a23, IN, osg::Matrixf::value_type, a30, IN, osg::Matrixf::value_type, a31, IN, osg::Matrixf::value_type, a32, IN, osg::Matrixf::value_type, a33); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); + I_Constructor0(____RefMatrixf, + "", + ""); + I_Constructor1(IN, const osg::Matrixf &, other, + ____RefMatrixf__C5_Matrixf_R1, + "", + ""); + I_Constructor1(IN, const osg::Matrixd &, other, + ____RefMatrixf__C5_Matrixd_R1, + "", + ""); + I_Constructor1(IN, const osg::RefMatrixf &, other, + ____RefMatrixf__C5_RefMatrixf_R1, + "", + ""); + I_Constructor1(IN, osg::Matrixf::value_type const *const, def, + ____RefMatrixf__Matrixf_value_type_C5_P1C5, + "", + ""); + I_Constructor16(IN, osg::Matrixf::value_type, a00, IN, osg::Matrixf::value_type, a01, IN, osg::Matrixf::value_type, a02, IN, osg::Matrixf::value_type, a03, IN, osg::Matrixf::value_type, a10, IN, osg::Matrixf::value_type, a11, IN, osg::Matrixf::value_type, a12, IN, osg::Matrixf::value_type, a13, IN, osg::Matrixf::value_type, a20, IN, osg::Matrixf::value_type, a21, IN, osg::Matrixf::value_type, a22, IN, osg::Matrixf::value_type, a23, IN, osg::Matrixf::value_type, a30, IN, osg::Matrixf::value_type, a31, IN, osg::Matrixf::value_type, a32, IN, osg::Matrixf::value_type, a33, + ____RefMatrixf__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); END_REFLECTOR diff --git a/src/osgWrappers/osg/Multisample.cpp b/src/osgWrappers/osg/Multisample.cpp index 096f3c437..e3f2bf034 100644 --- a/src/osgWrappers/osg/Multisample.cpp +++ b/src/osgWrappers/osg/Multisample.cpp @@ -32,46 +32,145 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Multisample) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Multisample &, trans, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method2(void, setSampleCoverage, IN, float, coverage, IN, bool, invert); - I_Method1(void, setCoverage, IN, float, coverage); - I_Method0(float, getCoverage); - I_Method1(void, setInvert, IN, bool, invert); - I_Method0(bool, getInvert); - I_Method1(void, setHint, IN, osg::Multisample::Mode, mode); - I_Method0(osg::Multisample::Mode, getHint); - I_Method1(void, apply, IN, osg::State &, state); - I_StaticMethod2(osg::Multisample::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Multisample::Extensions *, extensions); - I_Property(float, Coverage); - I_Property(osg::Multisample::Mode, Hint); - I_Property(bool, Invert); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____Multisample, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Multisample &, trans, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Multisample__C5_Multisample_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method2(void, setSampleCoverage, IN, float, coverage, IN, bool, invert, + __void__setSampleCoverage__float__bool, + "", + ""); + I_Method1(void, setCoverage, IN, float, coverage, + __void__setCoverage__float, + "", + ""); + I_Method0(float, getCoverage, + __float__getCoverage, + "", + ""); + I_Method1(void, setInvert, IN, bool, invert, + __void__setInvert__bool, + "", + ""); + I_Method0(bool, getInvert, + __bool__getInvert, + "", + ""); + I_Method1(void, setHint, IN, osg::Multisample::Mode, mode, + __void__setHint__Mode, + "", + ""); + I_Method0(osg::Multisample::Mode, getHint, + __Mode__getHint, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_StaticMethod2(osg::Multisample::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Exentsion object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID.. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Multisample::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(float, Coverage, + __float__getCoverage, + __void__setCoverage__float); + I_SimpleProperty(osg::Multisample::Mode, Hint, + __Mode__getHint, + __void__setHint__Mode); + I_SimpleProperty(bool, Invert, + __bool__getInvert, + __void__setInvert__bool); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Multisample::Extensions) I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID); - I_Constructor1(IN, const osg::Multisample::Extensions &, rhs); - I_Method1(void, lowestCommonDenominator, IN, const osg::Multisample::Extensions &, rhs); - I_Method1(void, setupGLExtenions, IN, unsigned int, contextID); - I_Method1(void, setMultisampleSupported, IN, bool, flag); - I_Method1(void, setMultisampleFilterHintSupported, IN, bool, flag); - I_Method0(bool, isMultisampleSupported); - I_Method0(bool, isMultisampleFilterHintSupported); - I_Method1(void, setSampleCoverageProc, IN, void *, ptr); - I_Method2(void, glSampleCoverage, IN, GLclampf, value, IN, GLboolean, invert); - I_WriteOnlyProperty(bool, MultisampleFilterHintSupported); - I_WriteOnlyProperty(bool, MultisampleSupported); - I_WriteOnlyProperty(void *, SampleCoverageProc); - I_WriteOnlyProperty(unsigned int, upGLExtenions); + I_Constructor1(IN, unsigned int, contextID, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Multisample::Extensions &, rhs, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Multisample::Extensions &, rhs, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setMultisampleSupported, IN, bool, flag, + __void__setMultisampleSupported__bool, + "", + ""); + I_Method1(void, setMultisampleFilterHintSupported, IN, bool, flag, + __void__setMultisampleFilterHintSupported__bool, + "", + ""); + I_Method0(bool, isMultisampleSupported, + __bool__isMultisampleSupported, + "", + ""); + I_Method0(bool, isMultisampleFilterHintSupported, + __bool__isMultisampleFilterHintSupported, + "", + ""); + I_Method1(void, setSampleCoverageProc, IN, void *, ptr, + __void__setSampleCoverageProc__void_P1, + "", + ""); + I_Method2(void, glSampleCoverage, IN, GLclampf, value, IN, GLboolean, invert, + __void__glSampleCoverage__GLclampf__GLboolean, + "", + ""); + I_SimpleProperty(bool, MultisampleFilterHintSupported, + 0, + __void__setMultisampleFilterHintSupported__bool); + I_SimpleProperty(bool, MultisampleSupported, + 0, + __void__setMultisampleSupported__bool); + I_SimpleProperty(void *, SampleCoverageProc, + 0, + __void__setSampleCoverageProc__void_P1); END_REFLECTOR diff --git a/src/osgWrappers/osg/Node.cpp b/src/osgWrappers/osg/Node.cpp index d7be7de76..79bb98fbe 100644 --- a/src/osgWrappers/osg/Node.cpp +++ b/src/osgWrappers/osg/Node.cpp @@ -37,91 +37,327 @@ TYPE_NAME_ALIAS(std::vector< std::string >, osg::Node::DescriptionList); BEGIN_OBJECT_REFLECTOR(osg::Node) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Node &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::Group *, asGroup); - I_Method0(const osg::Group *, asGroup); - I_Method0(osg::Transform *, asTransform); - I_Method0(const osg::Transform *, asTransform); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, ascend, IN, osg::NodeVisitor &, nv); - I_Method1(void, traverse, IN, osg::NodeVisitor &, x); - I_Method0(const osg::Node::ParentList &, getParents); - I_Method0(osg::Node::ParentList, getParents); - I_Method1(osg::Group *, getParent, IN, unsigned int, i); - I_Method1(const osg::Group *, getParent, IN, unsigned int, i); - I_Method0(unsigned int, getNumParents); - I_MethodWithDefaults1(osg::NodePathList, getParentalNodePaths, IN, osg::Node *, haltTraversalAtNode, 0); - I_MethodWithDefaults1(osg::MatrixList, getWorldMatrices, IN, osg::Node *, haltTraversalAtNode, 0); - I_Method1(void, setUpdateCallback, IN, osg::NodeCallback *, nc); - I_Method0(osg::NodeCallback *, getUpdateCallback); - I_Method0(const osg::NodeCallback *, getUpdateCallback); - I_Method0(unsigned int, getNumChildrenRequiringUpdateTraversal); - I_Method1(void, setEventCallback, IN, osg::NodeCallback *, nc); - I_Method0(osg::NodeCallback *, getEventCallback); - I_Method0(const osg::NodeCallback *, getEventCallback); - I_Method0(unsigned int, getNumChildrenRequiringEventTraversal); - I_Method1(void, setCullCallback, IN, osg::NodeCallback *, nc); - I_Method0(osg::NodeCallback *, getCullCallback); - I_Method0(const osg::NodeCallback *, getCullCallback); - I_Method1(void, setCullingActive, IN, bool, active); - I_Method0(bool, getCullingActive); - I_Method0(unsigned int, getNumChildrenWithCullingDisabled); - I_Method0(bool, isCullingActive); - I_Method0(unsigned int, getNumChildrenWithOccluderNodes); - I_Method0(bool, containsOccluderNodes); - I_Method1(void, setNodeMask, IN, osg::Node::NodeMask, nm); - I_Method0(osg::Node::NodeMask, getNodeMask); - I_Method1(void, setDescriptions, IN, const osg::Node::DescriptionList &, descriptions); - I_Method0(osg::Node::DescriptionList &, getDescriptions); - I_Method0(const osg::Node::DescriptionList &, getDescriptions); - I_Method1(const std::string &, getDescription, IN, unsigned int, i); - I_Method1(std::string &, getDescription, IN, unsigned int, i); - I_Method0(unsigned int, getNumDescriptions); - I_Method1(void, addDescription, IN, const std::string &, desc); - I_Method1(void, setStateSet, IN, osg::StateSet *, stateset); - I_Method0(osg::StateSet *, getOrCreateStateSet); - I_Method0(osg::StateSet *, getStateSet); - I_Method0(const osg::StateSet *, getStateSet); - I_Method1(void, setInitialBound, IN, const osg::BoundingSphere &, bsphere); - I_Method0(const osg::BoundingSphere &, getInitialBound); - I_Method0(void, dirtyBound); - I_Method0(const osg::BoundingSphere &, getBound); - I_Method0(osg::BoundingSphere, computeBound); - I_Method1(void, setComputeBoundingSphereCallback, IN, osg::Node::ComputeBoundingSphereCallback *, callback); - I_Method0(osg::Node::ComputeBoundingSphereCallback *, getComputeBoundingSphereCallback); - I_Method0(const osg::Node::ComputeBoundingSphereCallback *, getComputeBoundingSphereCallback); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0); - I_ReadOnlyProperty(const osg::BoundingSphere &, Bound); - I_Property(osg::Node::ComputeBoundingSphereCallback *, ComputeBoundingSphereCallback); - I_Property(osg::NodeCallback *, CullCallback); - I_Property(bool, CullingActive); - I_ArrayProperty_GA(const std::string &, Description, Descriptions, unsigned int, void); - I_Property(const osg::Node::DescriptionList &, Descriptions); - I_Property(osg::NodeCallback *, EventCallback); - I_Property(const osg::BoundingSphere &, InitialBound); - I_Property(osg::Node::NodeMask, NodeMask); - I_ArrayProperty_G(osg::Group *, Parent, Parents, unsigned int, void); - I_ReadOnlyProperty(osg::Node::ParentList, Parents); - I_Property(osg::StateSet *, StateSet); - I_Property(osg::NodeCallback *, UpdateCallback); + I_Constructor0(____Node, + "Construct a node. ", + "Initialize the parent list to empty, node name to \"\" and bounding sphere dirty flag to true. "); + I_ConstructorWithDefaults2(IN, const osg::Node &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Node__C5_Node_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(osg::Group *, asGroup, + __Group_P1__asGroup, + "convert 'this' into a Group pointer if Node is a Group, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method0(const osg::Group *, asGroup, + __C5_Group_P1__asGroup, + "convert 'const this' into a const Group pointer if Node is a Group, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method0(osg::Transform *, asTransform, + __Transform_P1__asTransform, + "Convert 'this' into a Transform pointer if Node is a Transform, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method0(const osg::Transform *, asTransform, + __C5_Transform_P1__asTransform, + "convert 'const this' into a const Transform pointer if Node is a Transform, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, ascend, IN, osg::NodeVisitor &, nv, + __void__ascend__NodeVisitor_R1, + "Traverse upwards : calls parents' accept method with NodeVisitor. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, + __void__traverse__NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method0(const osg::Node::ParentList &, getParents, + __C5_ParentList_R1__getParents, + "Get the parent list of node. ", + ""); + I_Method0(osg::Node::ParentList, getParents, + __ParentList__getParents, + "Get the a copy of parent list of node. ", + "A copy is returned to prevent modification of the parent list. "); + I_Method1(osg::Group *, getParent, IN, unsigned int, i, + __Group_P1__getParent__unsigned_int, + "", + ""); + I_Method1(const osg::Group *, getParent, IN, unsigned int, i, + __C5_Group_P1__getParent__unsigned_int, + "Get a single const parent of node. ", + " param i index of the parent to get. return the parent i."); + I_Method0(unsigned int, getNumParents, + __unsigned_int__getNumParents, + "Get the number of parents of node. ", + "the number of parents of this node. "); + I_MethodWithDefaults1(osg::NodePathList, getParentalNodePaths, IN, osg::Node *, haltTraversalAtNode, 0, + __NodePathList__getParentalNodePaths__osg_Node_P1, + "Get the list of node paths parent paths. ", + "The optional Node* haltTraversalAtNode allows the user to prevent traversal beyond a specifed node. "); + I_MethodWithDefaults1(osg::MatrixList, getWorldMatrices, IN, osg::Node *, haltTraversalAtNode, 0, + __MatrixList__getWorldMatrices__osg_Node_P1, + "Get the list of matrices that transform this node from local coordinates to world coordinates. ", + "The optional Node* haltTraversalAtNode allows the user to prevent traversal beyond a specifed node. "); + I_Method1(void, setUpdateCallback, IN, osg::NodeCallback *, nc, + __void__setUpdateCallback__NodeCallback_P1, + "Set update node callback, called during update traversal. ", + ""); + I_Method0(osg::NodeCallback *, getUpdateCallback, + __NodeCallback_P1__getUpdateCallback, + "Get update node callback, called during update traversal. ", + ""); + I_Method0(const osg::NodeCallback *, getUpdateCallback, + __C5_NodeCallback_P1__getUpdateCallback, + "Get const update node callback, called during update traversal. ", + ""); + I_Method0(unsigned int, getNumChildrenRequiringUpdateTraversal, + __unsigned_int__getNumChildrenRequiringUpdateTraversal, + "Get the number of Children of this node which require Update traversal, since they have an Update Callback attached to them or their children. ", + ""); + I_Method1(void, setEventCallback, IN, osg::NodeCallback *, nc, + __void__setEventCallback__NodeCallback_P1, + "Set update node callback, called during update traversal. ", + ""); + I_Method0(osg::NodeCallback *, getEventCallback, + __NodeCallback_P1__getEventCallback, + "Get update node callback, called during update traversal. ", + ""); + I_Method0(const osg::NodeCallback *, getEventCallback, + __C5_NodeCallback_P1__getEventCallback, + "Get const update node callback, called during update traversal. ", + ""); + I_Method0(unsigned int, getNumChildrenRequiringEventTraversal, + __unsigned_int__getNumChildrenRequiringEventTraversal, + "Get the number of Children of this node which require Event traversal, since they have an Event Callback attached to them or their children. ", + ""); + I_Method1(void, setCullCallback, IN, osg::NodeCallback *, nc, + __void__setCullCallback__NodeCallback_P1, + "Set cull node callback, called during cull traversal. ", + ""); + I_Method0(osg::NodeCallback *, getCullCallback, + __NodeCallback_P1__getCullCallback, + "Get cull node callback, called during cull traversal. ", + ""); + I_Method0(const osg::NodeCallback *, getCullCallback, + __C5_NodeCallback_P1__getCullCallback, + "Get const cull node callback, called during cull traversal. ", + ""); + I_Method1(void, setCullingActive, IN, bool, active, + __void__setCullingActive__bool, + "Set the view frustum/small feature culling of this node to be active or inactive. ", + "The default value is true for _cullingActive. Used as a guide to the cull traversal. "); + I_Method0(bool, getCullingActive, + __bool__getCullingActive, + "Get the view frustum/small feature _cullingActive flag for this node. ", + "Used as a guide to the cull traversal. "); + I_Method0(unsigned int, getNumChildrenWithCullingDisabled, + __unsigned_int__getNumChildrenWithCullingDisabled, + "Get the number of Children of this node which have culling disabled. ", + ""); + I_Method0(bool, isCullingActive, + __bool__isCullingActive, + "Return true if this node can be culled by view frustum, occlusion or small feature culling during the cull traversal. ", + "Note, returns true only if no children have culling disabled, and the local _cullingActive flag is true. "); + I_Method0(unsigned int, getNumChildrenWithOccluderNodes, + __unsigned_int__getNumChildrenWithOccluderNodes, + "Get the number of Children of this node which are or have OccluderNode's. ", + ""); + I_Method0(bool, containsOccluderNodes, + __bool__containsOccluderNodes, + "return true if this node is an OccluderNode or the subgraph below this node are OccluderNodes. ", + ""); + I_Method1(void, setNodeMask, IN, osg::Node::NodeMask, nm, + __void__setNodeMask__NodeMask, + "Set the node mask. ", + ""); + I_Method0(osg::Node::NodeMask, getNodeMask, + __NodeMask__getNodeMask, + "Get the node Mask. ", + ""); + I_Method1(void, setDescriptions, IN, const osg::Node::DescriptionList &, descriptions, + __void__setDescriptions__C5_DescriptionList_R1, + "Set the description list of the node. ", + ""); + I_Method0(osg::Node::DescriptionList &, getDescriptions, + __DescriptionList_R1__getDescriptions, + "Get the description list of the node. ", + ""); + I_Method0(const osg::Node::DescriptionList &, getDescriptions, + __C5_DescriptionList_R1__getDescriptions, + "Get the const description list of the const node. ", + ""); + I_Method1(const std::string &, getDescription, IN, unsigned int, i, + __C5_std_string_R1__getDescription__unsigned_int, + "Get a single const description of the const node. ", + ""); + I_Method1(std::string &, getDescription, IN, unsigned int, i, + __std_string_R1__getDescription__unsigned_int, + "Get a single description of the node. ", + ""); + I_Method0(unsigned int, getNumDescriptions, + __unsigned_int__getNumDescriptions, + "Get the number of descriptions of the node. ", + ""); + I_Method1(void, addDescription, IN, const std::string &, desc, + __void__addDescription__C5_std_string_R1, + "Add a description string to the node. ", + ""); + I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, + __void__setStateSet__osg_StateSet_P1, + "Set the node's StateSet. ", + ""); + I_Method0(osg::StateSet *, getOrCreateStateSet, + __osg_StateSet_P1__getOrCreateStateSet, + "return the node's StateSet, if one does not already exist create it set the node and return the newly created StateSet. ", + "This ensures that a valid StateSet is always returned and can be used directly. "); + I_Method0(osg::StateSet *, getStateSet, + __osg_StateSet_P1__getStateSet, + "Return the node's StateSet. ", + "returns NULL if a stateset is not attached. "); + I_Method0(const osg::StateSet *, getStateSet, + __C5_osg_StateSet_P1__getStateSet, + "Return the node's const StateSet. ", + "Returns NULL if a stateset is not attached. "); + I_Method1(void, setInitialBound, IN, const osg::BoundingSphere &, bsphere, + __void__setInitialBound__C5_osg_BoundingSphere_R1, + "Set the intial bounding volume to use when computing the overall bounding volume. ", + ""); + I_Method0(const osg::BoundingSphere &, getInitialBound, + __C5_BoundingSphere_R1__getInitialBound, + "Set the intial bounding volume to use when computing the overall bounding volume. ", + ""); + I_Method0(void, dirtyBound, + __void__dirtyBound, + "Mark this node's bounding sphere dirty. ", + "Forcing it to be computed on the next call to getBound(). "); + I_Method0(const osg::BoundingSphere &, getBound, + __C5_BoundingSphere_R1__getBound, + "Get the bounding sphere of node. ", + "Using lazy evaluation computes the bounding sphere if it is 'dirty'. "); + I_Method0(osg::BoundingSphere, computeBound, + __BoundingSphere__computeBound, + "Compute the bounding sphere around Node's geometry or children. ", + "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); + I_Method1(void, setComputeBoundingSphereCallback, IN, osg::Node::ComputeBoundingSphereCallback *, callback, + __void__setComputeBoundingSphereCallback__ComputeBoundingSphereCallback_P1, + "Set the compute bound callback to override the default computeBound. ", + ""); + I_Method0(osg::Node::ComputeBoundingSphereCallback *, getComputeBoundingSphereCallback, + __ComputeBoundingSphereCallback_P1__getComputeBoundingSphereCallback, + "Get the compute bound callback. ", + ""); + I_Method0(const osg::Node::ComputeBoundingSphereCallback *, getComputeBoundingSphereCallback, + __C5_ComputeBoundingSphereCallback_P1__getComputeBoundingSphereCallback, + "Get the const compute bound callback. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + __void__releaseGLObjects__osg_State_P1, + "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objexts for all graphics contexts. "); + I_SimpleProperty(const osg::BoundingSphere &, Bound, + __C5_BoundingSphere_R1__getBound, + 0); + I_SimpleProperty(osg::Node::ComputeBoundingSphereCallback *, ComputeBoundingSphereCallback, + __ComputeBoundingSphereCallback_P1__getComputeBoundingSphereCallback, + __void__setComputeBoundingSphereCallback__ComputeBoundingSphereCallback_P1); + I_SimpleProperty(osg::NodeCallback *, CullCallback, + __NodeCallback_P1__getCullCallback, + __void__setCullCallback__NodeCallback_P1); + I_SimpleProperty(bool, CullingActive, + __bool__getCullingActive, + __void__setCullingActive__bool); + I_ArrayProperty(const std::string &, Description, + __C5_std_string_R1__getDescription__unsigned_int, + 0, + __unsigned_int__getNumDescriptions, + __void__addDescription__C5_std_string_R1, + 0, + 0); + I_SimpleProperty(const osg::Node::DescriptionList &, Descriptions, + __C5_DescriptionList_R1__getDescriptions, + __void__setDescriptions__C5_DescriptionList_R1); + I_SimpleProperty(osg::NodeCallback *, EventCallback, + __NodeCallback_P1__getEventCallback, + __void__setEventCallback__NodeCallback_P1); + I_SimpleProperty(const osg::BoundingSphere &, InitialBound, + __C5_BoundingSphere_R1__getInitialBound, + __void__setInitialBound__C5_osg_BoundingSphere_R1); + I_SimpleProperty(osg::Node::NodeMask, NodeMask, + __NodeMask__getNodeMask, + __void__setNodeMask__NodeMask); + I_ArrayProperty(osg::Group *, Parent, + __Group_P1__getParent__unsigned_int, + 0, + __unsigned_int__getNumParents, + 0, + 0, + 0); + I_SimpleProperty(osg::Node::ParentList, Parents, + __ParentList__getParents, + 0); + I_SimpleProperty(osg::StateSet *, StateSet, + __osg_StateSet_P1__getStateSet, + __void__setStateSet__osg_StateSet_P1); + I_SimpleProperty(osg::NodeCallback *, UpdateCallback, + __NodeCallback_P1__getUpdateCallback, + __void__setUpdateCallback__NodeCallback_P1); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Node::ComputeBoundingSphereCallback) I_BaseType(osg::Object); - I_Constructor0(); - I_Constructor2(IN, const osg::Node::ComputeBoundingSphereCallback &, x, IN, const osg::CopyOp &, x); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(osg::BoundingSphere, computeBound, IN, const osg::Node &, x); + I_Constructor0(____ComputeBoundingSphereCallback, + "", + ""); + I_Constructor2(IN, const osg::Node::ComputeBoundingSphereCallback &, x, IN, const osg::CopyOp &, x, + ____ComputeBoundingSphereCallback__C5_ComputeBoundingSphereCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(osg::BoundingSphere, computeBound, IN, const osg::Node &, x, + __BoundingSphere__computeBound__C5_osg_Node_R1, + "", + ""); END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osg::Node * >, osg::NodePath); diff --git a/src/osgWrappers/osg/NodeCallback.cpp b/src/osgWrappers/osg/NodeCallback.cpp index 18a4ad7cf..4d4d8a202 100644 --- a/src/osgWrappers/osg/NodeCallback.cpp +++ b/src/osgWrappers/osg/NodeCallback.cpp @@ -26,20 +26,60 @@ BEGIN_OBJECT_REFLECTOR(osg::NodeCallback) I_VirtualBaseType(osg::Object); - I_Constructor0(); - I_Constructor2(IN, const osg::NodeCallback &, nc, IN, const osg::CopyOp &, x); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method2(void, traverse, IN, osg::Node *, node, IN, osg::NodeVisitor *, nv); - I_Method1(void, setNestedCallback, IN, osg::NodeCallback *, nc); - I_Method0(osg::NodeCallback *, getNestedCallback); - I_Method0(const osg::NodeCallback *, getNestedCallback); - I_Method1(void, addNestedCallback, IN, osg::NodeCallback *, nc); - I_Method1(void, removeNestedCallback, IN, osg::NodeCallback *, nc); - I_Property(osg::NodeCallback *, NestedCallback); + I_Constructor0(____NodeCallback, + "", + ""); + I_Constructor2(IN, const osg::NodeCallback &, nc, IN, const osg::CopyOp &, x, + ____NodeCallback__C5_NodeCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method2(void, traverse, IN, osg::Node *, node, IN, osg::NodeVisitor *, nv, + __void__traverse__Node_P1__NodeVisitor_P1, + "Call any nested callbacks and then traverse the scene graph. ", + ""); + I_Method1(void, setNestedCallback, IN, osg::NodeCallback *, nc, + __void__setNestedCallback__NodeCallback_P1, + "", + ""); + I_Method0(osg::NodeCallback *, getNestedCallback, + __NodeCallback_P1__getNestedCallback, + "", + ""); + I_Method0(const osg::NodeCallback *, getNestedCallback, + __C5_NodeCallback_P1__getNestedCallback, + "", + ""); + I_Method1(void, addNestedCallback, IN, osg::NodeCallback *, nc, + __void__addNestedCallback__NodeCallback_P1, + "", + ""); + I_Method1(void, removeNestedCallback, IN, osg::NodeCallback *, nc, + __void__removeNestedCallback__NodeCallback_P1, + "", + ""); + I_SimpleProperty(osg::NodeCallback *, NestedCallback, + __NodeCallback_P1__getNestedCallback, + __void__setNestedCallback__NodeCallback_P1); I_PublicMemberProperty(osg::ref_ptr< osg::NodeCallback >, _nestedCallback); END_REFLECTOR diff --git a/src/osgWrappers/osg/NodeTrackerCallback.cpp b/src/osgWrappers/osg/NodeTrackerCallback.cpp index e448962e3..b586dbded 100644 --- a/src/osgWrappers/osg/NodeTrackerCallback.cpp +++ b/src/osgWrappers/osg/NodeTrackerCallback.cpp @@ -26,29 +26,81 @@ TYPE_NAME_ALIAS(std::vector< osg::observer_ptr< osg::Node > >, osg::NodeTrackerC BEGIN_OBJECT_REFLECTOR(osg::NodeTrackerCallback) I_BaseType(osg::NodeCallback); - I_Constructor0(); - I_Method1(void, setTrackNodePath, IN, const osg::NodePath &, nodePath); - I_Method1(void, setTrackNodePath, IN, const osg::NodeTrackerCallback::ObserveredNodePath &, nodePath); - I_Method0(osg::NodeTrackerCallback::ObserveredNodePath &, getTrackNodePath); - I_Method1(void, setTrackNode, IN, osg::Node *, node); - I_Method0(osg::Node *, getTrackNode); - I_Method0(const osg::Node *, getTrackNode); - I_Method1(void, update, IN, osg::Node &, node); - I_Method0(bool, validateNodePath); - I_Property(osg::Node *, TrackNode); - I_ReadOnlyProperty(osg::NodeTrackerCallback::ObserveredNodePath &, TrackNodePath); + I_Constructor0(____NodeTrackerCallback, + "", + ""); + I_Method1(void, setTrackNodePath, IN, const osg::NodePath &, nodePath, + __void__setTrackNodePath__C5_osg_NodePath_R1, + "", + ""); + I_Method1(void, setTrackNodePath, IN, const osg::NodeTrackerCallback::ObserveredNodePath &, nodePath, + __void__setTrackNodePath__C5_ObserveredNodePath_R1, + "", + ""); + I_Method0(osg::NodeTrackerCallback::ObserveredNodePath &, getTrackNodePath, + __ObserveredNodePath_R1__getTrackNodePath, + "", + ""); + I_Method1(void, setTrackNode, IN, osg::Node *, node, + __void__setTrackNode__osg_Node_P1, + "", + ""); + I_Method0(osg::Node *, getTrackNode, + __osg_Node_P1__getTrackNode, + "", + ""); + I_Method0(const osg::Node *, getTrackNode, + __C5_osg_Node_P1__getTrackNode, + "", + ""); + I_Method1(void, update, IN, osg::Node &, node, + __void__update__osg_Node_R1, + "Update the node to track the nodepath. ", + ""); + I_Method0(bool, validateNodePath, + __bool__validateNodePath, + "", + ""); + I_SimpleProperty(osg::Node *, TrackNode, + __osg_Node_P1__getTrackNode, + __void__setTrackNode__osg_Node_P1); + I_SimpleProperty(osg::NodeTrackerCallback::ObserveredNodePath &, TrackNodePath, + __ObserveredNodePath_R1__getTrackNodePath, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::observer_ptr< osg::Node >) I_BaseType(osg::Observer); - I_Constructor0(); - I_Constructor1(IN, osg::Node *, t); - I_Constructor1(IN, const osg::observer_ptr< osg::Node > &, rp); - I_Method1(void, objectDeleted, IN, void *, ptr); - I_Method0(bool, valid); - I_Method0(osg::Node *, get); - I_Method0(const osg::Node *, get); - I_ReadOnlyProperty(osg::Node *, ); + I_Constructor0(____observer_ptr, + "", + ""); + I_Constructor1(IN, osg::Node *, t, + ____observer_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::observer_ptr< osg::Node > &, rp, + ____observer_ptr__C5_observer_ptr_R1, + "", + ""); + I_Method1(void, objectDeleted, IN, void *, ptr, + __void__objectDeleted__void_P1, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osg::Node *, get, + __T_P1__get, + "", + ""); + I_Method0(const osg::Node *, get, + __C5_T_P1__get, + "", + ""); + I_SimpleProperty(osg::Node *, , + __T_P1__get, + 0); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< osg::observer_ptr< osg::Node > >); diff --git a/src/osgWrappers/osg/NodeVisitor.cpp b/src/osgWrappers/osg/NodeVisitor.cpp index 79e895b7d..60500327b 100644 --- a/src/osgWrappers/osg/NodeVisitor.cpp +++ b/src/osgWrappers/osg/NodeVisitor.cpp @@ -46,7 +46,10 @@ #endif BEGIN_VALUE_REFLECTOR(osg::NodeAcceptOp) - I_Constructor1(IN, osg::NodeVisitor &, nv); + I_Constructor1(IN, osg::NodeVisitor &, nv, + ____NodeAcceptOp__NodeVisitor_R1, + "", + ""); END_REFLECTOR BEGIN_ENUM_REFLECTOR(osg::NodeVisitor::TraversalMode) @@ -66,73 +69,254 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::NodeVisitor) I_VirtualBaseType(osg::Referenced); - I_ConstructorWithDefaults1(IN, osg::NodeVisitor::TraversalMode, tm, osg::NodeVisitor::TRAVERSE_NONE); - I_ConstructorWithDefaults2(IN, osg::NodeVisitor::VisitorType, type, , IN, osg::NodeVisitor::TraversalMode, tm, osg::NodeVisitor::TRAVERSE_NONE); - I_Method0(void, reset); - I_Method1(void, setVisitorType, IN, osg::NodeVisitor::VisitorType, type); - I_Method0(osg::NodeVisitor::VisitorType, getVisitorType); - I_Method1(void, setTraversalNumber, IN, int, fn); - I_Method0(int, getTraversalNumber); - I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs); - I_Method0(const osg::FrameStamp *, getFrameStamp); - I_Method1(void, setTraversalMask, IN, osg::Node::NodeMask, mask); - I_Method0(osg::Node::NodeMask, getTraversalMask); - I_Method1(void, setNodeMaskOverride, IN, osg::Node::NodeMask, mask); - I_Method0(osg::Node::NodeMask, getNodeMaskOverride); - I_Method1(bool, validNodeMask, IN, const osg::Node &, node); - I_Method1(void, setTraversalMode, IN, osg::NodeVisitor::TraversalMode, mode); - I_Method0(osg::NodeVisitor::TraversalMode, getTraversalMode); - I_Method1(void, setUserData, IN, osg::Referenced *, obj); - I_Method0(osg::Referenced *, getUserData); - I_Method0(const osg::Referenced *, getUserData); - I_Method1(void, traverse, IN, osg::Node &, node); - I_Method1(void, pushOntoNodePath, IN, osg::Node *, node); - I_Method0(void, popFromNodePath); - I_Method0(osg::NodePath &, getNodePath); - I_Method0(const osg::NodePath &, getNodePath); - I_Method0(osg::Vec3, getEyePoint); - I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, x, IN, bool, x); - I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, x, IN, bool, x); - I_Method1(void, apply, IN, osg::Node &, node); - I_Method1(void, apply, IN, osg::Geode &, node); - I_Method1(void, apply, IN, osg::Billboard &, node); - I_Method1(void, apply, IN, osg::Group &, node); - I_Method1(void, apply, IN, osg::ProxyNode &, node); - I_Method1(void, apply, IN, osg::Projection &, node); - I_Method1(void, apply, IN, osg::CoordinateSystemNode &, node); - I_Method1(void, apply, IN, osg::ClipNode &, node); - I_Method1(void, apply, IN, osg::TexGenNode &, node); - I_Method1(void, apply, IN, osg::LightSource &, node); - I_Method1(void, apply, IN, osg::Transform &, node); - I_Method1(void, apply, IN, osg::View &, node); - I_Method1(void, apply, IN, osg::CameraNode &, node); - I_Method1(void, apply, IN, osg::CameraView &, node); - I_Method1(void, apply, IN, osg::MatrixTransform &, node); - I_Method1(void, apply, IN, osg::PositionAttitudeTransform &, node); - I_Method1(void, apply, IN, osg::Switch &, node); - I_Method1(void, apply, IN, osg::Sequence &, node); - I_Method1(void, apply, IN, osg::LOD &, node); - I_Method1(void, apply, IN, osg::PagedLOD &, node); - I_Method1(void, apply, IN, osg::ClearNode &, node); - I_Method1(void, apply, IN, osg::OccluderNode &, node); - I_Method1(void, setDatabaseRequestHandler, IN, osg::NodeVisitor::DatabaseRequestHandler *, handler); - I_Method0(osg::NodeVisitor::DatabaseRequestHandler *, getDatabaseRequestHandler); - I_Method0(const osg::NodeVisitor::DatabaseRequestHandler *, getDatabaseRequestHandler); - I_Property(osg::NodeVisitor::DatabaseRequestHandler *, DatabaseRequestHandler); - I_ReadOnlyProperty(osg::Vec3, EyePoint); - I_WriteOnlyProperty(osg::FrameStamp *, FrameStamp); - I_Property(osg::Node::NodeMask, NodeMaskOverride); - I_ReadOnlyProperty(osg::NodePath &, NodePath); - I_Property(osg::Node::NodeMask, TraversalMask); - I_Property(osg::NodeVisitor::TraversalMode, TraversalMode); - I_Property(int, TraversalNumber); - I_Property(osg::Referenced *, UserData); - I_Property(osg::NodeVisitor::VisitorType, VisitorType); + I_ConstructorWithDefaults1(IN, osg::NodeVisitor::TraversalMode, tm, osg::NodeVisitor::TRAVERSE_NONE, + ____NodeVisitor__TraversalMode, + "", + ""); + I_ConstructorWithDefaults2(IN, osg::NodeVisitor::VisitorType, type, , IN, osg::NodeVisitor::TraversalMode, tm, osg::NodeVisitor::TRAVERSE_NONE, + ____NodeVisitor__VisitorType__TraversalMode, + "", + ""); + I_Method0(void, reset, + __void__reset, + "Method to call to reset visitor. ", + "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); + I_Method1(void, setVisitorType, IN, osg::NodeVisitor::VisitorType, type, + __void__setVisitorType__VisitorType, + "Set the VisitorType, used to distinguish different visitors during traversal of the scene, typically used in the Node::traverse() method to select which behaviour to use for different types of traversal/visitors. ", + ""); + I_Method0(osg::NodeVisitor::VisitorType, getVisitorType, + __VisitorType__getVisitorType, + "Get the VisitorType. ", + ""); + I_Method1(void, setTraversalNumber, IN, int, fn, + __void__setTraversalNumber__int, + "Set the traversal number. ", + "Typically used to denote the frame count. "); + I_Method0(int, getTraversalNumber, + __int__getTraversalNumber, + "Get the traversal number. ", + "Typically used to denote the frame count. "); + I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs, + __void__setFrameStamp__FrameStamp_P1, + "Set the FrameStamp that this traversal is associated with. ", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + __C5_FrameStamp_P1__getFrameStamp, + "Get the FrameStamp that this traversal is associated with. ", + ""); + I_Method1(void, setTraversalMask, IN, osg::Node::NodeMask, mask, + __void__setTraversalMask__Node_NodeMask, + "Set the TraversalMask of this NodeVisitor. ", + "The TraversalMask is used by the NodeVisitor::validNodeMask() method to determine whether to operate on a node and its subgraph. validNodeMask() is called automatically in the Node::accept() method before any call to NodeVisitor::apply(), apply() is only ever called if validNodeMask returns true. Note, if NodeVisitor::_traversalMask is 0 then all operations will be switched off for all nodes. Whereas setting both _traversalMask and _nodeMaskOverride to 0xffffffff will allow a visitor to work on all nodes regardless of their own Node::_nodeMask state. "); + I_Method0(osg::Node::NodeMask, getTraversalMask, + __Node_NodeMask__getTraversalMask, + "Get the TraversalMask. ", + ""); + I_Method1(void, setNodeMaskOverride, IN, osg::Node::NodeMask, mask, + __void__setNodeMaskOverride__Node_NodeMask, + "Set the NodeMaskOverride mask. ", + "Used in validNodeMask() to determine whether to operate on a node or its subgraph, by OR'ing NodeVisitor::_nodeMaskOverride with the Node's own Node::_nodeMask. Typically used to force on nodes which may have been switched off by their own Node::_nodeMask. "); + I_Method0(osg::Node::NodeMask, getNodeMaskOverride, + __Node_NodeMask__getNodeMaskOverride, + "Get the NodeMaskOverride mask. ", + ""); + I_Method1(bool, validNodeMask, IN, const osg::Node &, node, + __bool__validNodeMask__C5_osg_Node_R1, + "Method to called by Node and its subclass' Node::accept() method, if the result is true it is used to cull operations of nodes and their subgraphs. ", + "Return true if the result of a bit wise and of the NodeVisitor::_traversalMask with the bit or between NodeVistor::_nodeMaskOverride and the Node::_nodeMask. default values for _traversalMask is 0xffffffff, _nodeMaskOverride is 0x0, and osg::Node::_nodeMask is 0xffffffff. "); + I_Method1(void, setTraversalMode, IN, osg::NodeVisitor::TraversalMode, mode, + __void__setTraversalMode__TraversalMode, + "Set the traversal mode for Node::traverse() to use when deciding which children of a node to traverse. ", + "If a NodeVisitor has been attached via setTraverseVisitor() and the new mode is not TRAVERSE_VISITOR then the attached visitor is detached. Default mode is TRAVERSE_NONE. "); + I_Method0(osg::NodeVisitor::TraversalMode, getTraversalMode, + __TraversalMode__getTraversalMode, + "Get the traversal mode. ", + ""); + I_Method1(void, setUserData, IN, osg::Referenced *, obj, + __void__setUserData__Referenced_P1, + "Set user data, data must be subclased from Referenced to allow automatic memory handling. ", + "If your own data isn't directly subclassed from Referenced then create an adapter object which points to your own objects and handles the memory addressing."); + I_Method0(osg::Referenced *, getUserData, + __Referenced_P1__getUserData, + "Get user data. ", + ""); + I_Method0(const osg::Referenced *, getUserData, + __C5_Referenced_P1__getUserData, + "Get const user data. ", + ""); + I_Method1(void, traverse, IN, osg::Node &, node, + __void__traverse__Node_R1, + "Method for handling traversal of a nodes. ", + "If you intend to use the visitor for actively traversing the scene graph then make sure the accept() methods call this method unless they handle traversal directly. "); + I_Method1(void, pushOntoNodePath, IN, osg::Node *, node, + __void__pushOntoNodePath__Node_P1, + "Method called by osg::Node::accept() method before a call to the NodeVisitor::apply(. ", + ".). The back of the list will, therefore, be the current node being visited inside the apply(..), and the rest of the list will be the parental sequence of nodes from the top most node applied down the graph to the current node. Note, the user does not typically call pushNodeOnPath() as it will be called automatically by the Node::accept() method. "); + I_Method0(void, popFromNodePath, + __void__popFromNodePath, + "Method called by osg::Node::accept() method after a call to NodeVisitor::apply(. ", + ".). Note, the user does not typically call popFromNodePath() as it will be called automatically by the Node::accept() method. "); + I_Method0(osg::NodePath &, getNodePath, + __NodePath_R1__getNodePath, + "Get the non const NodePath from the top most node applied down to the current Node being visited. ", + ""); + I_Method0(const osg::NodePath &, getNodePath, + __C5_NodePath_R1__getNodePath, + "Get the const NodePath from the top most node applied down to the current Node being visited. ", + ""); + I_Method0(osg::Vec3, getEyePoint, + __osg_Vec3__getEyePoint, + "Get the eye point in local coordinates. ", + "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. "); + I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, x, IN, bool, x, + __float__getDistanceToEyePoint__C5_Vec3_R1__bool, + "Get the distance from a point to the eye point, distance value in local coordinate system. ", + "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceFromEyePoint(pos) is not implemented then a default value of 0.0 is returned. "); + I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, x, IN, bool, x, + __float__getDistanceFromEyePoint__C5_Vec3_R1__bool, + "Get the distance of a point from the eye point, distance value in the eye coordinate system. ", + "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceFromEyePoint(pos) is not implemented than a default value of 0.0 is returned. "); + I_Method1(void, apply, IN, osg::Node &, node, + __void__apply__Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + __void__apply__Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + __void__apply__Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + __void__apply__Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ProxyNode &, node, + __void__apply__ProxyNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, node, + __void__apply__Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::CoordinateSystemNode &, node, + __void__apply__CoordinateSystemNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ClipNode &, node, + __void__apply__ClipNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::TexGenNode &, node, + __void__apply__TexGenNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LightSource &, node, + __void__apply__LightSource_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + __void__apply__Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::View &, node, + __void__apply__View_R1, + "", + ""); + I_Method1(void, apply, IN, osg::CameraNode &, node, + __void__apply__CameraNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::CameraView &, node, + __void__apply__CameraView_R1, + "", + ""); + I_Method1(void, apply, IN, osg::MatrixTransform &, node, + __void__apply__MatrixTransform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::PositionAttitudeTransform &, node, + __void__apply__PositionAttitudeTransform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + __void__apply__Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Sequence &, node, + __void__apply__Sequence_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + __void__apply__LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::PagedLOD &, node, + __void__apply__PagedLOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ClearNode &, node, + __void__apply__ClearNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::OccluderNode &, node, + __void__apply__OccluderNode_R1, + "", + ""); + I_Method1(void, setDatabaseRequestHandler, IN, osg::NodeVisitor::DatabaseRequestHandler *, handler, + __void__setDatabaseRequestHandler__DatabaseRequestHandler_P1, + "Set the handler for database requests. ", + ""); + I_Method0(osg::NodeVisitor::DatabaseRequestHandler *, getDatabaseRequestHandler, + __DatabaseRequestHandler_P1__getDatabaseRequestHandler, + "Get the handler for database requests. ", + ""); + I_Method0(const osg::NodeVisitor::DatabaseRequestHandler *, getDatabaseRequestHandler, + __C5_DatabaseRequestHandler_P1__getDatabaseRequestHandler, + "Get the const handler for database requests. ", + ""); + I_SimpleProperty(osg::NodeVisitor::DatabaseRequestHandler *, DatabaseRequestHandler, + __DatabaseRequestHandler_P1__getDatabaseRequestHandler, + __void__setDatabaseRequestHandler__DatabaseRequestHandler_P1); + I_SimpleProperty(osg::Vec3, EyePoint, + __osg_Vec3__getEyePoint, + 0); + I_SimpleProperty(osg::FrameStamp *, FrameStamp, + 0, + __void__setFrameStamp__FrameStamp_P1); + I_SimpleProperty(osg::Node::NodeMask, NodeMaskOverride, + __Node_NodeMask__getNodeMaskOverride, + __void__setNodeMaskOverride__Node_NodeMask); + I_SimpleProperty(osg::NodePath &, NodePath, + __NodePath_R1__getNodePath, + 0); + I_SimpleProperty(osg::Node::NodeMask, TraversalMask, + __Node_NodeMask__getTraversalMask, + __void__setTraversalMask__Node_NodeMask); + I_SimpleProperty(osg::NodeVisitor::TraversalMode, TraversalMode, + __TraversalMode__getTraversalMode, + __void__setTraversalMode__TraversalMode); + I_SimpleProperty(int, TraversalNumber, + __int__getTraversalNumber, + __void__setTraversalNumber__int); + I_SimpleProperty(osg::Referenced *, UserData, + __Referenced_P1__getUserData, + __void__setUserData__Referenced_P1); + I_SimpleProperty(osg::NodeVisitor::VisitorType, VisitorType, + __VisitorType__getVisitorType, + __void__setVisitorType__VisitorType); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::NodeVisitor::DatabaseRequestHandler) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method4(void, requestNodeFile, IN, const std::string &, fileName, IN, osg::Group *, group, IN, float, priority, IN, const osg::FrameStamp *, framestamp); + I_Constructor0(____DatabaseRequestHandler, + "", + ""); + I_Method4(void, requestNodeFile, IN, const std::string &, fileName, IN, osg::Group *, group, IN, float, priority, IN, const osg::FrameStamp *, framestamp, + __void__requestNodeFile__C5_std_string_R1__osg_Group_P1__float__C5_FrameStamp_P1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Object.cpp b/src/osgWrappers/osg/Object.cpp index c6bbfc69f..d27e1eab5 100644 --- a/src/osgWrappers/osg/Object.cpp +++ b/src/osgWrappers/osg/Object.cpp @@ -30,25 +30,81 @@ END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Object) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Constructor1(IN, bool, threadSafeRefUnref); - I_ConstructorWithDefaults2(IN, const osg::Object &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, x); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, setName, IN, const std::string &, name); - I_Method1(void, setName, IN, const char *, name); - I_Method0(const std::string &, getName); - I_Method1(void, setDataVariance, IN, osg::Object::DataVariance, dv); - I_Method0(osg::Object::DataVariance, getDataVariance); - I_Method1(void, setUserData, IN, osg::Referenced *, obj); - I_Method0(osg::Referenced *, getUserData); - I_Method0(const osg::Referenced *, getUserData); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0); - I_Property(osg::Object::DataVariance, DataVariance); - I_Property(const std::string &, Name); - I_Property(osg::Referenced *, UserData); + I_Constructor0(____Object, + "Construct an object. ", + "Note Object is a pure virtual base class and therefore cannot be constructed on its own, only derived classes which override the clone and className methods are concrete classes and can be constructed. "); + I_Constructor1(IN, bool, threadSafeRefUnref, + ____Object__bool, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Object &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Object__C5_Object_R1__C5_CopyOp_R1, + "Copy constructor, optional CopyOp object can be used to control shallow vs deep copying of dynamic data. ", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, x, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setName, IN, const std::string &, name, + __void__setName__C5_std_string_R1, + "Set the name of object using C++ style string. ", + ""); + I_Method1(void, setName, IN, const char *, name, + __void__setName__C5_char_P1, + "Set the name of object using a C style string. ", + ""); + I_Method0(const std::string &, getName, + __C5_std_string_R1__getName, + "Get the name of object. ", + ""); + I_Method1(void, setDataVariance, IN, osg::Object::DataVariance, dv, + __void__setDataVariance__DataVariance, + "Set the data variance of this object. ", + "Can be set to either STATIC for values that do not change over the lifetime of the object, or DYNAMIC for values that vary over the lifetime of the object. The DataVariance value can be used by routines such as optimzation codes that wish to share static data. "); + I_Method0(osg::Object::DataVariance, getDataVariance, + __DataVariance__getDataVariance, + "Get the data variance of this object. ", + ""); + I_Method1(void, setUserData, IN, osg::Referenced *, obj, + __void__setUserData__Referenced_P1, + "Set user data, data must be subclassed from Referenced to allow automatic memory handling. ", + "If your own data isn't directly subclassed from Referenced then create an adapter object which points to your own object and handles the memory addressing."); + I_Method0(osg::Referenced *, getUserData, + __Referenced_P1__getUserData, + "Get user data. ", + ""); + I_Method0(const osg::Referenced *, getUserData, + __C5_Referenced_P1__getUserData, + "Get const user data. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + __void__releaseGLObjects__osg_State_P1, + "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objexts for all graphics contexts. "); + I_SimpleProperty(osg::Object::DataVariance, DataVariance, + __DataVariance__getDataVariance, + __void__setDataVariance__DataVariance); + I_SimpleProperty(const std::string &, Name, + __C5_std_string_R1__getName, + __void__setName__C5_std_string_R1); + I_SimpleProperty(osg::Referenced *, UserData, + __Referenced_P1__getUserData, + __void__setUserData__Referenced_P1); END_REFLECTOR diff --git a/src/osgWrappers/osg/OccluderNode.cpp b/src/osgWrappers/osg/OccluderNode.cpp index a81c56d0c..d2527d7f0 100644 --- a/src/osgWrappers/osg/OccluderNode.cpp +++ b/src/osgWrappers/osg/OccluderNode.cpp @@ -27,18 +27,55 @@ BEGIN_OBJECT_REFLECTOR(osg::OccluderNode) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::OccluderNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, setOccluder, IN, osg::ConvexPlanarOccluder *, occluder); - I_Method0(osg::ConvexPlanarOccluder *, getOccluder); - I_Method0(const osg::ConvexPlanarOccluder *, getOccluder); - I_Method0(osg::BoundingSphere, computeBound); - I_Property(osg::ConvexPlanarOccluder *, Occluder); + I_Constructor0(____OccluderNode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::OccluderNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____OccluderNode__C5_OccluderNode_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, setOccluder, IN, osg::ConvexPlanarOccluder *, occluder, + __void__setOccluder__ConvexPlanarOccluder_P1, + "Attach a ConvexPlanarOccluder to an OccluderNode. ", + ""); + I_Method0(osg::ConvexPlanarOccluder *, getOccluder, + __ConvexPlanarOccluder_P1__getOccluder, + "Get the ConvexPlanarOccluder* attached to a OccluderNode. ", + ""); + I_Method0(const osg::ConvexPlanarOccluder *, getOccluder, + __C5_ConvexPlanarOccluder_P1__getOccluder, + "Get the const ConvexPlanarOccluder* attached to a OccluderNode. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + __BoundingSphere__computeBound, + "Overrides Group's computeBound. ", + ""); + I_SimpleProperty(osg::ConvexPlanarOccluder *, Occluder, + __ConvexPlanarOccluder_P1__getOccluder, + __void__setOccluder__ConvexPlanarOccluder_P1); END_REFLECTOR diff --git a/src/osgWrappers/osg/PagedLOD.cpp b/src/osgWrappers/osg/PagedLOD.cpp index f6d49376d..79be32c82 100644 --- a/src/osgWrappers/osg/PagedLOD.cpp +++ b/src/osgWrappers/osg/PagedLOD.cpp @@ -29,50 +29,180 @@ TYPE_NAME_ALIAS(std::vector< osg::PagedLOD::PerRangeData >, osg::PagedLOD::PerRa BEGIN_OBJECT_REFLECTOR(osg::PagedLOD) I_BaseType(osg::LOD); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::PagedLOD &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method1(bool, addChild, IN, osg::Node *, child); - I_Method3(bool, addChild, IN, osg::Node *, child, IN, float, min, IN, float, max); - I_MethodWithDefaults6(bool, addChild, IN, osg::Node *, child, , IN, float, min, , IN, float, max, , IN, const std::string &, filename, , IN, float, priorityOffset, 0.0f, IN, float, priorityScale, 1.0f); - I_MethodWithDefaults2(bool, removeChildren, IN, unsigned int, pos, , IN, unsigned int, numChildrenToRemove, 1); - I_Method1(void, setDatabasePath, IN, const std::string &, path); - I_Method0(const std::string &, getDatabasePath); - I_Method2(void, setFileName, IN, unsigned int, childNo, IN, const std::string &, filename); - I_Method1(const std::string &, getFileName, IN, unsigned int, childNo); - I_Method0(unsigned int, getNumFileNames); - I_Method2(void, setPriorityOffset, IN, unsigned int, childNo, IN, float, priorityOffset); - I_Method1(float, getPriorityOffset, IN, unsigned int, childNo); - I_Method0(unsigned int, getNumPriorityOffsets); - I_Method2(void, setPriorityScale, IN, unsigned int, childNo, IN, float, priorityScale); - I_Method1(float, getPriorityScale, IN, unsigned int, childNo); - I_Method0(unsigned int, getNumPriorityScales); - I_Method2(void, setTimeStamp, IN, unsigned int, childNo, IN, double, timeStamp); - I_Method1(double, getTimeStamp, IN, unsigned int, childNo); - I_Method0(unsigned int, getNumTimeStamps); - I_Method1(void, setFrameNumberOfLastTraversal, IN, int, frameNumber); - I_Method0(int, getFrameNumberOfLastTraversal); - I_Method1(void, setNumChildrenThatCannotBeExpired, IN, unsigned int, num); - I_Method0(unsigned int, getNumChildrenThatCannotBeExpired); - I_Method2(bool, removeExpiredChildren, IN, double, expiryTime, IN, osg::NodeList &, removedChildren); - I_Property(const std::string &, DatabasePath); - I_ArrayProperty_G(const std::string &, FileName, FileNames, unsigned int, void); - I_Property(int, FrameNumberOfLastTraversal); - I_WriteOnlyProperty(unsigned int, NumChildrenThatCannotBeExpired); - I_ArrayProperty_G(float, PriorityOffset, PriorityOffsets, unsigned int, void); - I_ArrayProperty_G(float, PriorityScale, PriorityScales, unsigned int, void); - I_ArrayProperty_G(double, TimeStamp, TimeStamps, unsigned int, void); + I_Constructor0(____PagedLOD, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PagedLOD &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PagedLOD__C5_PagedLOD_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + __bool__addChild__Node_P1, + "Add Node to Group. ", + "If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes."); + I_Method3(bool, addChild, IN, osg::Node *, child, IN, float, min, IN, float, max, + __bool__addChild__Node_P1__float__float, + "", + ""); + I_MethodWithDefaults6(bool, addChild, IN, osg::Node *, child, , IN, float, min, , IN, float, max, , IN, const std::string &, filename, , IN, float, priorityOffset, 0.0f, IN, float, priorityScale, 1.0f, + __bool__addChild__Node_P1__float__float__C5_std_string_R1__float__float, + "", + ""); + I_MethodWithDefaults2(bool, removeChildren, IN, unsigned int, pos, , IN, unsigned int, numChildrenToRemove, 1, + __bool__removeChildren__unsigned_int__unsigned_int, + "Remove children from Group. ", + "Note, must be override by subclasses of Group which add per child attributes. "); + I_Method1(void, setDatabasePath, IN, const std::string &, path, + __void__setDatabasePath__C5_std_string_R1, + "Set the database path to prepend to children's filenames. ", + ""); + I_Method0(const std::string &, getDatabasePath, + __C5_std_string_R1__getDatabasePath, + "Get the database path used to prepend to children's filenames. ", + ""); + I_Method2(void, setFileName, IN, unsigned int, childNo, IN, const std::string &, filename, + __void__setFileName__unsigned_int__C5_std_string_R1, + "", + ""); + I_Method1(const std::string &, getFileName, IN, unsigned int, childNo, + __C5_std_string_R1__getFileName__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumFileNames, + __unsigned_int__getNumFileNames, + "", + ""); + I_Method2(void, setPriorityOffset, IN, unsigned int, childNo, IN, float, priorityOffset, + __void__setPriorityOffset__unsigned_int__float, + "", + ""); + I_Method1(float, getPriorityOffset, IN, unsigned int, childNo, + __float__getPriorityOffset__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumPriorityOffsets, + __unsigned_int__getNumPriorityOffsets, + "", + ""); + I_Method2(void, setPriorityScale, IN, unsigned int, childNo, IN, float, priorityScale, + __void__setPriorityScale__unsigned_int__float, + "", + ""); + I_Method1(float, getPriorityScale, IN, unsigned int, childNo, + __float__getPriorityScale__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumPriorityScales, + __unsigned_int__getNumPriorityScales, + "", + ""); + I_Method2(void, setTimeStamp, IN, unsigned int, childNo, IN, double, timeStamp, + __void__setTimeStamp__unsigned_int__double, + "", + ""); + I_Method1(double, getTimeStamp, IN, unsigned int, childNo, + __double__getTimeStamp__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumTimeStamps, + __unsigned_int__getNumTimeStamps, + "", + ""); + I_Method1(void, setFrameNumberOfLastTraversal, IN, int, frameNumber, + __void__setFrameNumberOfLastTraversal__int, + "Set the frame number of the last time that this PageLOD node was traversed. ", + "Note, this frame number is automatically set by the traverse() method for all traversals (update, cull etc.)."); + I_Method0(int, getFrameNumberOfLastTraversal, + __int__getFrameNumberOfLastTraversal, + "Get the frame number of the last time that this PageLOD node was traversed. ", + ""); + I_Method1(void, setNumChildrenThatCannotBeExpired, IN, unsigned int, num, + __void__setNumChildrenThatCannotBeExpired__unsigned_int, + "Set the number of children that the PagedLOD must keep around, even if they are older than their expiry time. ", + ""); + I_Method0(unsigned int, getNumChildrenThatCannotBeExpired, + __unsigned_int__getNumChildrenThatCannotBeExpired, + "Get the number of children that the PagedLOD must keep around, even if they are older than their expiry time. ", + ""); + I_Method2(bool, removeExpiredChildren, IN, double, expiryTime, IN, osg::NodeList &, removedChildren, + __bool__removeExpiredChildren__double__NodeList_R1, + "Remove the children from the PagedLOD which haven't been visited since specified expiry time. ", + "The removed children are added to the removeChildren list passed into the method, this allows the children to be deleted later at the caller's discretion. Return true if children are removed, false otherwise. "); + I_SimpleProperty(const std::string &, DatabasePath, + __C5_std_string_R1__getDatabasePath, + __void__setDatabasePath__C5_std_string_R1); + I_ArrayProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName__unsigned_int, + __void__setFileName__unsigned_int__C5_std_string_R1, + __unsigned_int__getNumFileNames, + 0, + 0, + 0); + I_SimpleProperty(int, FrameNumberOfLastTraversal, + __int__getFrameNumberOfLastTraversal, + __void__setFrameNumberOfLastTraversal__int); + I_SimpleProperty(unsigned int, NumChildrenThatCannotBeExpired, + 0, + __void__setNumChildrenThatCannotBeExpired__unsigned_int); + I_ArrayProperty(float, PriorityOffset, + __float__getPriorityOffset__unsigned_int, + __void__setPriorityOffset__unsigned_int__float, + __unsigned_int__getNumPriorityOffsets, + 0, + 0, + 0); + I_ArrayProperty(float, PriorityScale, + __float__getPriorityScale__unsigned_int, + __void__setPriorityScale__unsigned_int__float, + __unsigned_int__getNumPriorityScales, + 0, + 0, + 0); + I_ArrayProperty(double, TimeStamp, + __double__getTimeStamp__unsigned_int, + __void__setTimeStamp__unsigned_int__double, + __unsigned_int__getNumTimeStamps, + 0, + 0, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::PagedLOD::PerRangeData) - I_Constructor0(); - I_Constructor1(IN, const osg::PagedLOD::PerRangeData &, prd); + I_Constructor0(____PerRangeData, + "", + ""); + I_Constructor1(IN, const osg::PagedLOD::PerRangeData &, prd, + ____PerRangeData__C5_PerRangeData_R1, + "", + ""); I_PublicMemberProperty(std::string, _filename); I_PublicMemberProperty(float, _priorityOffset); I_PublicMemberProperty(float, _priorityScale); diff --git a/src/osgWrappers/osg/Plane.cpp b/src/osgWrappers/osg/Plane.cpp index 65f276adf..2348ae6ff 100644 --- a/src/osgWrappers/osg/Plane.cpp +++ b/src/osgWrappers/osg/Plane.cpp @@ -30,35 +30,119 @@ BEGIN_VALUE_REFLECTOR(osg::Plane) I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined - I_Constructor0(); - I_Constructor1(IN, const osg::Plane &, pl); - I_Constructor4(IN, float, a, IN, float, b, IN, float, c, IN, float, d); - I_Constructor1(IN, const osg::Vec4 &, vec); - I_Constructor2(IN, const osg::Vec3 &, norm, IN, float, d); - I_Constructor3(IN, const osg::Vec3 &, v1, IN, const osg::Vec3 &, v2, IN, const osg::Vec3 &, v3); - I_Constructor2(IN, const osg::Vec3 &, norm, IN, const osg::Vec3 &, point); - I_Method1(void, set, IN, const osg::Plane &, pl); - I_Method4(void, set, IN, float, a, IN, float, b, IN, float, c, IN, float, d); - I_Method1(void, set, IN, const osg::Vec4 &, vec); - I_Method2(void, set, IN, const osg::Vec3 &, norm, IN, float, d); - I_Method3(void, set, IN, const osg::Vec3 &, v1, IN, const osg::Vec3 &, v2, IN, const osg::Vec3 &, v3); - I_Method2(void, set, IN, const osg::Vec3 &, norm, IN, const osg::Vec3 &, point); - I_Method0(void, flip); - I_Method0(void, makeUnitLength); - I_Method0(void, calculateUpperLowerBBCorners); - I_Method0(bool, valid); - I_Method0(float *, ptr); - I_Method0(const float *, ptr); - I_Method0(osg::Vec4 &, asVec4); - I_Method0(const osg::Vec4 &, asVec4); - I_Method0(osg::Vec3, getNormal); - I_Method1(float, distance, IN, const osg::Vec3 &, v); - I_Method1(int, intersect, IN, const std::vector< osg::Vec3 > &, vertices); - I_Method1(int, intersect, IN, const osg::BoundingSphere &, bs); - I_Method1(int, intersect, IN, const osg::BoundingBox &, bb); - I_Method1(void, transform, IN, const osg::Matrix &, matrix); - I_Method1(void, transformProvidingInverse, IN, const osg::Matrix &, matrix); - I_WriteOnlyProperty(const osg::Vec4 &, ); - I_ReadOnlyProperty(osg::Vec3, Normal); + I_Constructor0(____Plane, + "", + ""); + I_Constructor1(IN, const osg::Plane &, pl, + ____Plane__C5_Plane_R1, + "", + ""); + I_Constructor4(IN, float, a, IN, float, b, IN, float, c, IN, float, d, + ____Plane__float__float__float__float, + "", + ""); + I_Constructor1(IN, const osg::Vec4 &, vec, + ____Plane__C5_Vec4_R1, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, norm, IN, float, d, + ____Plane__C5_Vec3_R1__float, + "", + ""); + I_Constructor3(IN, const osg::Vec3 &, v1, IN, const osg::Vec3 &, v2, IN, const osg::Vec3 &, v3, + ____Plane__C5_Vec3_R1__C5_Vec3_R1__C5_Vec3_R1, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, norm, IN, const osg::Vec3 &, point, + ____Plane__C5_Vec3_R1__C5_Vec3_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Plane &, pl, + __void__set__C5_Plane_R1, + "", + ""); + I_Method4(void, set, IN, float, a, IN, float, b, IN, float, c, IN, float, d, + __void__set__float__float__float__float, + "", + ""); + I_Method1(void, set, IN, const osg::Vec4 &, vec, + __void__set__C5_Vec4_R1, + "", + ""); + I_Method2(void, set, IN, const osg::Vec3 &, norm, IN, float, d, + __void__set__C5_Vec3_R1__float, + "", + ""); + I_Method3(void, set, IN, const osg::Vec3 &, v1, IN, const osg::Vec3 &, v2, IN, const osg::Vec3 &, v3, + __void__set__C5_Vec3_R1__C5_Vec3_R1__C5_Vec3_R1, + "", + ""); + I_Method2(void, set, IN, const osg::Vec3 &, norm, IN, const osg::Vec3 &, point, + __void__set__C5_Vec3_R1__C5_Vec3_R1, + "", + ""); + I_Method0(void, flip, + __void__flip, + "flip/reverse the orientation of the plane. ", + ""); + I_Method0(void, makeUnitLength, + __void__makeUnitLength, + "", + ""); + I_Method0(void, calculateUpperLowerBBCorners, + __void__calculateUpperLowerBBCorners, + "calculate the upper and lower bounding box corners to be used in the intersect(BoundingBox&) method for speeding calculations. ", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(float *, ptr, + __float_P1__ptr, + "", + ""); + I_Method0(const float *, ptr, + __C5_float_P1__ptr, + "", + ""); + I_Method0(osg::Vec4 &, asVec4, + __Vec4_R1__asVec4, + "", + ""); + I_Method0(const osg::Vec4 &, asVec4, + __C5_Vec4_R1__asVec4, + "", + ""); + I_Method0(osg::Vec3, getNormal, + __osg_Vec3__getNormal, + "", + ""); + I_Method1(float, distance, IN, const osg::Vec3 &, v, + __float__distance__C5_osg_Vec3_R1, + "calculate the distance between a point and the plane. ", + ""); + I_Method1(int, intersect, IN, const std::vector< osg::Vec3 > &, vertices, + __int__intersect__C5_std_vectorT1_Vec3__R1, + "intersection test between plane and vertex list return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane. ", + ""); + I_Method1(int, intersect, IN, const osg::BoundingSphere &, bs, + __int__intersect__C5_BoundingSphere_R1, + "intersection test between plane and bounding sphere. ", + "return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane. "); + I_Method1(int, intersect, IN, const osg::BoundingBox &, bb, + __int__intersect__C5_BoundingBox_R1, + "intersection test between plane and bounding sphere. ", + "return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane. "); + I_Method1(void, transform, IN, const osg::Matrix &, matrix, + __void__transform__C5_osg_Matrix_R1, + "Transform the plane by matrix. ", + "Note, this operation carries out the calculation of the inverse of the matrix since a plane must be multiplied by the inverse transposed to transform it. This make this operation expensive. If the inverse has been already calculated elsewhere then use transformProvidingInverse() instead. See http://www.worldserver.com/turk/computergraphics/NormalTransformations.pdf "); + I_Method1(void, transformProvidingInverse, IN, const osg::Matrix &, matrix, + __void__transformProvidingInverse__C5_osg_Matrix_R1, + "Transform the plane by providing a pre inverted matrix. ", + "see transform for details. "); + I_SimpleProperty(osg::Vec3, Normal, + __osg_Vec3__getNormal, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/Point.cpp b/src/osgWrappers/osg/Point.cpp index 15f1e88b1..542a1eb12 100644 --- a/src/osgWrappers/osg/Point.cpp +++ b/src/osgWrappers/osg/Point.cpp @@ -27,48 +27,153 @@ BEGIN_OBJECT_REFLECTOR(osg::Point) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Point &, point, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(void, setSize, IN, float, size); - I_Method0(float, getSize); - I_Method1(void, setFadeThresholdSize, IN, float, fadeThresholdSize); - I_Method0(float, getFadeThresholdSize); - I_Method1(void, setDistanceAttenuation, IN, const osg::Vec3 &, distanceAttenuation); - I_Method0(const osg::Vec3 &, getDistanceAttenuation); - I_Method1(void, setMinSize, IN, float, minSize); - I_Method0(float, getMinSize); - I_Method1(void, setMaxSize, IN, float, maxSize); - I_Method0(float, getMaxSize); - I_Method1(void, apply, IN, osg::State &, state); - I_StaticMethod2(osg::Point::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Point::Extensions *, extensions); - I_Property(const osg::Vec3 &, DistanceAttenuation); - I_Property(float, FadeThresholdSize); - I_Property(float, MaxSize); - I_Property(float, MinSize); - I_Property(float, Size); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____Point, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Point &, point, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Point__C5_Point_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setSize, IN, float, size, + __void__setSize__float, + "", + ""); + I_Method0(float, getSize, + __float__getSize, + "", + ""); + I_Method1(void, setFadeThresholdSize, IN, float, fadeThresholdSize, + __void__setFadeThresholdSize__float, + "", + ""); + I_Method0(float, getFadeThresholdSize, + __float__getFadeThresholdSize, + "", + ""); + I_Method1(void, setDistanceAttenuation, IN, const osg::Vec3 &, distanceAttenuation, + __void__setDistanceAttenuation__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getDistanceAttenuation, + __C5_Vec3_R1__getDistanceAttenuation, + "", + ""); + I_Method1(void, setMinSize, IN, float, minSize, + __void__setMinSize__float, + "", + ""); + I_Method0(float, getMinSize, + __float__getMinSize, + "", + ""); + I_Method1(void, setMaxSize, IN, float, maxSize, + __void__setMaxSize__float, + "", + ""); + I_Method0(float, getMaxSize, + __float__getMaxSize, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_StaticMethod2(osg::Point::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Returns the Extensions object for the given context. ", + "If createIfNotInitalized is true and the Exentsions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Point::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions() allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(const osg::Vec3 &, DistanceAttenuation, + __C5_Vec3_R1__getDistanceAttenuation, + __void__setDistanceAttenuation__C5_Vec3_R1); + I_SimpleProperty(float, FadeThresholdSize, + __float__getFadeThresholdSize, + __void__setFadeThresholdSize__float); + I_SimpleProperty(float, MaxSize, + __float__getMaxSize, + __void__setMaxSize__float); + I_SimpleProperty(float, MinSize, + __float__getMinSize, + __void__setMinSize__float); + I_SimpleProperty(float, Size, + __float__getSize, + __void__setSize__float); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Point::Extensions) I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID); - I_Constructor1(IN, const osg::Point::Extensions &, rhs); - I_Method1(void, lowestCommonDenominator, IN, const osg::Point::Extensions &, rhs); - I_Method1(void, setupGLExtenions, IN, unsigned int, contextID); - I_Method1(void, setPointParametersSupported, IN, bool, flag); - I_Method0(bool, isPointParametersSupported); - I_Method2(void, glPointParameterf, IN, GLenum, pname, IN, GLfloat, param); - I_Method2(void, glPointParameterfv, IN, GLenum, pname, IN, const GLfloat *, params); - I_WriteOnlyProperty(bool, PointParametersSupported); - I_WriteOnlyProperty(unsigned int, upGLExtenions); + I_Constructor1(IN, unsigned int, contextID, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Point::Extensions &, rhs, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Point::Extensions &, rhs, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setPointParametersSupported, IN, bool, flag, + __void__setPointParametersSupported__bool, + "", + ""); + I_Method0(bool, isPointParametersSupported, + __bool__isPointParametersSupported, + "", + ""); + I_Method2(void, glPointParameterf, IN, GLenum, pname, IN, GLfloat, param, + __void__glPointParameterf__GLenum__GLfloat, + "", + ""); + I_Method2(void, glPointParameterfv, IN, GLenum, pname, IN, const GLfloat *, params, + __void__glPointParameterfv__GLenum__C5_GLfloat_P1, + "", + ""); + I_SimpleProperty(bool, PointParametersSupported, + 0, + __void__setPointParametersSupported__bool); END_REFLECTOR diff --git a/src/osgWrappers/osg/PointSprite.cpp b/src/osgWrappers/osg/PointSprite.cpp index 0b1f971e2..ac2efbe3f 100644 --- a/src/osgWrappers/osg/PointSprite.cpp +++ b/src/osgWrappers/osg/PointSprite.cpp @@ -26,20 +26,63 @@ BEGIN_OBJECT_REFLECTOR(osg::PointSprite) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::PointSprite &, texenv, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, x); - I_Method0(bool, isTextureAttribute); - I_Method1(void, apply, IN, osg::State &, state); - I_StaticMethod1(bool, isPointSpriteSupported, IN, unsigned int, context); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____PointSprite, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PointSprite &, texenv, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PointSprite__C5_PointSprite_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, x, + __bool__checkValidityOfAssociatedModes__osg_State_R1, + "Check the modes associated with this StateAttribute are supported by current OpenGL drivers, and if not set the associated mode in osg::State to be black listed/invalid. ", + "Return true if all associated modes are valid. "); + I_Method0(bool, isTextureAttribute, + __bool__isTextureAttribute, + "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__osg_State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_StaticMethod1(bool, isPointSpriteSupported, IN, unsigned int, context, + __bool__isPointSpriteSupported__unsigned_int_S, + "", + ""); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/PolygonMode.cpp b/src/osgWrappers/osg/PolygonMode.cpp index 95aab630a..c4bf14ef8 100644 --- a/src/osgWrappers/osg/PolygonMode.cpp +++ b/src/osgWrappers/osg/PolygonMode.cpp @@ -38,22 +38,70 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::PolygonMode) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_Constructor2(IN, osg::PolygonMode::Face, face, IN, osg::PolygonMode::Mode, mode); - I_ConstructorWithDefaults2(IN, const osg::PolygonMode &, pm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method2(void, setMode, IN, osg::PolygonMode::Face, face, IN, osg::PolygonMode::Mode, mode); - I_Method1(osg::PolygonMode::Mode, getMode, IN, osg::PolygonMode::Face, face); - I_Method0(bool, getFrontAndBack); - I_Method1(void, apply, IN, osg::State &, state); - I_ReadOnlyProperty(bool, FrontAndBack); - I_IndexedProperty1(osg::PolygonMode::Mode, Mode, osg::PolygonMode::Face, face); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____PolygonMode, + "", + ""); + I_Constructor2(IN, osg::PolygonMode::Face, face, IN, osg::PolygonMode::Mode, mode, + ____PolygonMode__Face__Mode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PolygonMode &, pm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PolygonMode__C5_PolygonMode_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method2(void, setMode, IN, osg::PolygonMode::Face, face, IN, osg::PolygonMode::Mode, mode, + __void__setMode__Face__Mode, + "", + ""); + I_Method1(osg::PolygonMode::Mode, getMode, IN, osg::PolygonMode::Face, face, + __Mode__getMode__Face, + "", + ""); + I_Method0(bool, getFrontAndBack, + __bool__getFrontAndBack, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(bool, FrontAndBack, + __bool__getFrontAndBack, + 0); + I_IndexedProperty(osg::PolygonMode::Mode, Mode, + __Mode__getMode__Face, + __void__setMode__Face__Mode, + 0); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/PolygonOffset.cpp b/src/osgWrappers/osg/PolygonOffset.cpp index 8d820d41c..d697b6077 100644 --- a/src/osgWrappers/osg/PolygonOffset.cpp +++ b/src/osgWrappers/osg/PolygonOffset.cpp @@ -26,30 +26,101 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonOffset) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_Constructor2(IN, float, factor, IN, float, units); - I_ConstructorWithDefaults2(IN, const osg::PolygonOffset &, po, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(void, setFactor, IN, float, factor); - I_Method0(float, getFactor); - I_Method1(void, setUnits, IN, float, units); - I_Method0(float, getUnits); - I_Method1(void, apply, IN, osg::State &, state); - I_StaticMethod1(void, setFactorMultiplier, IN, float, multiplier); - I_StaticMethod0(float, getFactorMultiplier); - I_StaticMethod1(void, setUnitsMultiplier, IN, float, multiplier); - I_StaticMethod0(float, getUnitsMultiplier); - I_StaticMethod0(bool, areFactorAndUnitsMultipliersSet); - I_StaticMethod0(void, setFactorAndUnitsMultipliersUsingBestGuessForDriver); - I_Property(float, Factor); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); - I_Property(float, Units); + I_Constructor0(____PolygonOffset, + "", + ""); + I_Constructor2(IN, float, factor, IN, float, units, + ____PolygonOffset__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PolygonOffset &, po, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PolygonOffset__C5_PolygonOffset_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setFactor, IN, float, factor, + __void__setFactor__float, + "", + ""); + I_Method0(float, getFactor, + __float__getFactor, + "", + ""); + I_Method1(void, setUnits, IN, float, units, + __void__setUnits__float, + "", + ""); + I_Method0(float, getUnits, + __float__getUnits, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_StaticMethod1(void, setFactorMultiplier, IN, float, multiplier, + __void__setFactorMultiplier__float_S, + "", + ""); + I_StaticMethod0(float, getFactorMultiplier, + __float__getFactorMultiplier_S, + "", + ""); + I_StaticMethod1(void, setUnitsMultiplier, IN, float, multiplier, + __void__setUnitsMultiplier__float_S, + "", + ""); + I_StaticMethod0(float, getUnitsMultiplier, + __float__getUnitsMultiplier_S, + "", + ""); + I_StaticMethod0(bool, areFactorAndUnitsMultipliersSet, + __bool__areFactorAndUnitsMultipliersSet_S, + "", + ""); + I_StaticMethod0(void, setFactorAndUnitsMultipliersUsingBestGuessForDriver, + __void__setFactorAndUnitsMultipliersUsingBestGuessForDriver_S, + "Checks with the OpenGL driver to try and pick multiplier approrpriate for the hardware. ", + "note, requires a valid graphics context to be current. "); + I_SimpleProperty(float, Factor, + __float__getFactor, + __void__setFactor__float); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); + I_SimpleProperty(float, Units, + __float__getUnits, + __void__setUnits__float); END_REFLECTOR diff --git a/src/osgWrappers/osg/PolygonStipple.cpp b/src/osgWrappers/osg/PolygonStipple.cpp index ee6e5449d..ad7b47231 100644 --- a/src/osgWrappers/osg/PolygonStipple.cpp +++ b/src/osgWrappers/osg/PolygonStipple.cpp @@ -26,20 +26,62 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonStipple) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::PolygonStipple &, lw, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(void, setMask, IN, const GLubyte *, mask); - I_Method0(const GLubyte *, getMask); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(const GLubyte *, Mask); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____PolygonStipple, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PolygonStipple &, lw, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PolygonStipple__C5_PolygonStipple_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setMask, IN, const GLubyte *, mask, + __void__setMask__C5_GLubyte_P1, + "set the mask up, copying 128 bytes (32x32 bitfield) from mask into the local _mask. ", + ""); + I_Method0(const GLubyte *, getMask, + __C5_GLubyte_P1__getMask, + "get a pointer to the mask. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(const GLubyte *, Mask, + __C5_GLubyte_P1__getMask, + __void__setMask__C5_GLubyte_P1); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/Polytope.cpp b/src/osgWrappers/osg/Polytope.cpp index 959865702..60e7ae44d 100644 --- a/src/osgWrappers/osg/Polytope.cpp +++ b/src/osgWrappers/osg/Polytope.cpp @@ -34,58 +34,194 @@ TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osg::Polytope::VertexList); TYPE_NAME_ALIAS(osg::fast_back_stack< osg::Polytope::ClippingMask >, osg::Polytope::MaskStack); BEGIN_VALUE_REFLECTOR(osg::Polytope) - I_Constructor0(); - I_Constructor1(IN, const osg::Polytope &, cv); - I_Constructor1(IN, const osg::Polytope::PlaneList &, pl); - I_Method0(void, clear); - I_MethodWithDefaults2(void, setToUnitFrustum, IN, bool, withNear, true, IN, bool, withFar, true); - I_Method2(void, setAndTransformProvidingInverse, IN, const osg::Polytope &, pt, IN, const osg::Matrix &, matrix); - I_Method1(void, set, IN, const osg::Polytope::PlaneList &, pl); - I_Method1(void, add, IN, const osg::Plane &, pl); - I_Method0(void, flip); - I_Method0(osg::Polytope::PlaneList &, getPlaneList); - I_Method0(const osg::Polytope::PlaneList &, getPlaneList); - I_Method1(void, setReferenceVertexList, IN, osg::Polytope::VertexList &, vertices); - I_Method0(osg::Polytope::VertexList &, getReferenceVertexList); - I_Method0(const osg::Polytope::VertexList &, getReferenceVertexList); - I_Method0(void, setupMask); - I_Method0(osg::Polytope::ClippingMask &, getCurrentMask); - I_Method0(osg::Polytope::ClippingMask, getCurrentMask); - I_Method1(void, setResultMask, IN, osg::Polytope::ClippingMask, mask); - I_Method0(osg::Polytope::ClippingMask, getResultMask); - I_Method0(osg::Polytope::MaskStack &, getMaskStack); - I_Method0(const osg::Polytope::MaskStack &, getMaskStack); - I_Method0(void, pushCurrentMask); - I_Method0(void, popCurrentMask); - I_Method1(bool, contains, IN, const osg::Vec3 &, v); - I_Method1(bool, contains, IN, const std::vector< osg::Vec3 > &, vertices); - I_Method1(bool, contains, IN, const osg::BoundingSphere &, bs); - I_Method1(bool, contains, IN, const osg::BoundingBox &, bb); - I_Method1(bool, containsAllOf, IN, const std::vector< osg::Vec3 > &, vertices); - I_Method1(bool, containsAllOf, IN, const osg::BoundingSphere &, bs); - I_Method1(bool, containsAllOf, IN, const osg::BoundingBox &, bb); - I_Method1(void, transform, IN, const osg::Matrix &, matrix); - I_Method1(void, transformProvidingInverse, IN, const osg::Matrix &, matrix); - I_WriteOnlyProperty(const osg::Polytope::PlaneList &, ); - I_ReadOnlyProperty(osg::Polytope::ClippingMask, CurrentMask); - I_ReadOnlyProperty(osg::Polytope::MaskStack &, MaskStack); - I_ReadOnlyProperty(osg::Polytope::PlaneList &, PlaneList); - I_Property(osg::Polytope::VertexList &, ReferenceVertexList); - I_Property(osg::Polytope::ClippingMask, ResultMask); + I_Constructor0(____Polytope, + "", + ""); + I_Constructor1(IN, const osg::Polytope &, cv, + ____Polytope__C5_Polytope_R1, + "", + ""); + I_Constructor1(IN, const osg::Polytope::PlaneList &, pl, + ____Polytope__C5_PlaneList_R1, + "", + ""); + I_Method0(void, clear, + __void__clear, + "", + ""); + I_MethodWithDefaults2(void, setToUnitFrustum, IN, bool, withNear, true, IN, bool, withFar, true, + __void__setToUnitFrustum__bool__bool, + "Create a Polytope which is a cube, centered at 0,0,0, with sides of 2 units. ", + ""); + I_Method2(void, setAndTransformProvidingInverse, IN, const osg::Polytope &, pt, IN, const osg::Matrix &, matrix, + __void__setAndTransformProvidingInverse__C5_Polytope_R1__C5_osg_Matrix_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Polytope::PlaneList &, pl, + __void__set__C5_PlaneList_R1, + "", + ""); + I_Method1(void, add, IN, const osg::Plane &, pl, + __void__add__C5_osg_Plane_R1, + "", + ""); + I_Method0(void, flip, + __void__flip, + "flip/reverse the orientation of all the planes. ", + ""); + I_Method0(osg::Polytope::PlaneList &, getPlaneList, + __PlaneList_R1__getPlaneList, + "", + ""); + I_Method0(const osg::Polytope::PlaneList &, getPlaneList, + __C5_PlaneList_R1__getPlaneList, + "", + ""); + I_Method1(void, setReferenceVertexList, IN, osg::Polytope::VertexList &, vertices, + __void__setReferenceVertexList__VertexList_R1, + "", + ""); + I_Method0(osg::Polytope::VertexList &, getReferenceVertexList, + __VertexList_R1__getReferenceVertexList, + "", + ""); + I_Method0(const osg::Polytope::VertexList &, getReferenceVertexList, + __C5_VertexList_R1__getReferenceVertexList, + "", + ""); + I_Method0(void, setupMask, + __void__setupMask, + "", + ""); + I_Method0(osg::Polytope::ClippingMask &, getCurrentMask, + __ClippingMask_R1__getCurrentMask, + "", + ""); + I_Method0(osg::Polytope::ClippingMask, getCurrentMask, + __ClippingMask__getCurrentMask, + "", + ""); + I_Method1(void, setResultMask, IN, osg::Polytope::ClippingMask, mask, + __void__setResultMask__ClippingMask, + "", + ""); + I_Method0(osg::Polytope::ClippingMask, getResultMask, + __ClippingMask__getResultMask, + "", + ""); + I_Method0(osg::Polytope::MaskStack &, getMaskStack, + __MaskStack_R1__getMaskStack, + "", + ""); + I_Method0(const osg::Polytope::MaskStack &, getMaskStack, + __C5_MaskStack_R1__getMaskStack, + "", + ""); + I_Method0(void, pushCurrentMask, + __void__pushCurrentMask, + "", + ""); + I_Method0(void, popCurrentMask, + __void__popCurrentMask, + "", + ""); + I_Method1(bool, contains, IN, const osg::Vec3 &, v, + __bool__contains__C5_osg_Vec3_R1, + "Check whether a vertex is contained within clipping set. ", + ""); + I_Method1(bool, contains, IN, const std::vector< osg::Vec3 > &, vertices, + __bool__contains__C5_std_vectorT1_Vec3__R1, + "Check whether any part of vertex list is contained within clipping set. ", + ""); + I_Method1(bool, contains, IN, const osg::BoundingSphere &, bs, + __bool__contains__C5_osg_BoundingSphere_R1, + "Check whether any part of a bounding sphere is contained within clipping set. ", + "Using a mask to determine which planes should be used for the check, and modifying the mask to turn off planes which wouldn't contribute to clipping of any internal objects. This feature is used in osgUtil::CullVisitor to prevent redundant plane checking. "); + I_Method1(bool, contains, IN, const osg::BoundingBox &, bb, + __bool__contains__C5_osg_BoundingBox_R1, + "Check whether any part of a bounding box is contained within clipping set. ", + "Using a mask to determine which planes should be used for the check, and modifying the mask to turn off planes which wouldn't contribute to clipping of any internal objects. This feature is used in osgUtil::CullVisitor to prevent redundant plane checking. "); + I_Method1(bool, containsAllOf, IN, const std::vector< osg::Vec3 > &, vertices, + __bool__containsAllOf__C5_std_vectorT1_Vec3__R1, + "Check whether all of vertex list is contained with clipping set. ", + ""); + I_Method1(bool, containsAllOf, IN, const osg::BoundingSphere &, bs, + __bool__containsAllOf__C5_osg_BoundingSphere_R1, + "Check whether the entire bounding sphere is contained within clipping set. ", + ""); + I_Method1(bool, containsAllOf, IN, const osg::BoundingBox &, bb, + __bool__containsAllOf__C5_osg_BoundingBox_R1, + "Check whether the entire bounding box is contained within clipping set. ", + ""); + I_Method1(void, transform, IN, const osg::Matrix &, matrix, + __void__transform__C5_osg_Matrix_R1, + "Transform the clipping set by matrix. ", + "Note, this operations carries out the calculation of the inverse of the matrix since a plane must be multiplied by the inverse transposed to transform it. This makes this operation expensive. If the inverse has been already calculated elsewhere then use transformProvidingInverse() instead. See http://www.worldserver.com/turk/computergraphics/NormalTransformations.pdf "); + I_Method1(void, transformProvidingInverse, IN, const osg::Matrix &, matrix, + __void__transformProvidingInverse__C5_osg_Matrix_R1, + "Transform the clipping set by provide a pre inverted matrix. ", + "see transform for details. "); + I_SimpleProperty(osg::Polytope::ClippingMask, CurrentMask, + __ClippingMask__getCurrentMask, + 0); + I_SimpleProperty(osg::Polytope::MaskStack &, MaskStack, + __MaskStack_R1__getMaskStack, + 0); + I_SimpleProperty(osg::Polytope::PlaneList &, PlaneList, + __PlaneList_R1__getPlaneList, + 0); + I_SimpleProperty(osg::Polytope::VertexList &, ReferenceVertexList, + __VertexList_R1__getReferenceVertexList, + __void__setReferenceVertexList__VertexList_R1); + I_SimpleProperty(osg::Polytope::ClippingMask, ResultMask, + __ClippingMask__getResultMask, + __void__setResultMask__ClippingMask); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::fast_back_stack< osg::Polytope::ClippingMask >) - I_Constructor0(); - I_Constructor1(IN, const osg::fast_back_stack< osg::Polytope::ClippingMask > &, fbs); - I_Constructor1(IN, const osg::Polytope::ClippingMask &, value); - I_Method0(void, clear); - I_Method0(bool, empty); - I_Method0(unsigned int, size); - I_Method0(osg::Polytope::ClippingMask &, back); - I_Method0(const osg::Polytope::ClippingMask &, back); - I_Method0(void, push_back); - I_Method1(void, push_back, IN, const osg::Polytope::ClippingMask &, value); - I_Method0(void, pop_back); + I_Constructor0(____fast_back_stack, + "", + ""); + I_Constructor1(IN, const osg::fast_back_stack< osg::Polytope::ClippingMask > &, fbs, + ____fast_back_stack__C5_fast_back_stack_R1, + "", + ""); + I_Constructor1(IN, const osg::Polytope::ClippingMask &, value, + ____fast_back_stack__C5_T_R1, + "", + ""); + I_Method0(void, clear, + __void__clear, + "", + ""); + I_Method0(bool, empty, + __bool__empty, + "", + ""); + I_Method0(unsigned int, size, + __unsigned_int__size, + "", + ""); + I_Method0(osg::Polytope::ClippingMask &, back, + __T_R1__back, + "", + ""); + I_Method0(const osg::Polytope::ClippingMask &, back, + __C5_T_R1__back, + "", + ""); + I_Method0(void, push_back, + __void__push_back, + "", + ""); + I_Method1(void, push_back, IN, const osg::Polytope::ClippingMask &, value, + __void__push_back__C5_T_R1, + "", + ""); + I_Method0(void, pop_back, + __void__pop_back, + "", + ""); I_PublicMemberProperty(osg::Polytope::ClippingMask, _value); I_PublicMemberProperty(std::vector< osg::Polytope::ClippingMask >, _stack); I_PublicMemberProperty(unsigned int, _size); diff --git a/src/osgWrappers/osg/PositionAttitudeTransform.cpp b/src/osgWrappers/osg/PositionAttitudeTransform.cpp index 0060ccf76..2e41462ae 100644 --- a/src/osgWrappers/osg/PositionAttitudeTransform.cpp +++ b/src/osgWrappers/osg/PositionAttitudeTransform.cpp @@ -28,29 +28,96 @@ BEGIN_OBJECT_REFLECTOR(osg::PositionAttitudeTransform) I_BaseType(osg::Transform); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::PositionAttitudeTransform &, pat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(osg::PositionAttitudeTransform *, asPositionAttitudeTransform); - I_Method0(const osg::PositionAttitudeTransform *, asPositionAttitudeTransform); - I_Method1(void, setPosition, IN, const osg::Vec3d &, pos); - I_Method0(const osg::Vec3d &, getPosition); - I_Method1(void, setAttitude, IN, const osg::Quat &, quat); - I_Method0(const osg::Quat &, getAttitude); - I_Method1(void, setScale, IN, const osg::Vec3d &, scale); - I_Method0(const osg::Vec3d &, getScale); - I_Method1(void, setPivotPoint, IN, const osg::Vec3d &, pivot); - I_Method0(const osg::Vec3d &, getPivotPoint); - I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv); - I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv); - I_Property(const osg::Quat &, Attitude); - I_Property(const osg::Vec3d &, PivotPoint); - I_Property(const osg::Vec3d &, Position); - I_Property(const osg::Vec3d &, Scale); + I_Constructor0(____PositionAttitudeTransform, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PositionAttitudeTransform &, pat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PositionAttitudeTransform__C5_PositionAttitudeTransform_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + __PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method0(const osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + __C5_PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3d &, pos, + __void__setPosition__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPosition, + __C5_Vec3d_R1__getPosition, + "", + ""); + I_Method1(void, setAttitude, IN, const osg::Quat &, quat, + __void__setAttitude__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getAttitude, + __C5_Quat_R1__getAttitude, + "", + ""); + I_Method1(void, setScale, IN, const osg::Vec3d &, scale, + __void__setScale__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getScale, + __C5_Vec3d_R1__getScale, + "", + ""); + I_Method1(void, setPivotPoint, IN, const osg::Vec3d &, pivot, + __void__setPivotPoint__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPivotPoint, + __C5_Vec3d_R1__getPivotPoint, + "", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_SimpleProperty(const osg::Quat &, Attitude, + __C5_Quat_R1__getAttitude, + __void__setAttitude__C5_Quat_R1); + I_SimpleProperty(const osg::Vec3d &, PivotPoint, + __C5_Vec3d_R1__getPivotPoint, + __void__setPivotPoint__C5_Vec3d_R1); + I_SimpleProperty(const osg::Vec3d &, Position, + __C5_Vec3d_R1__getPosition, + __void__setPosition__C5_Vec3d_R1); + I_SimpleProperty(const osg::Vec3d &, Scale, + __C5_Vec3d_R1__getScale, + __void__setScale__C5_Vec3d_R1); END_REFLECTOR diff --git a/src/osgWrappers/osg/PrimitiveSet.cpp b/src/osgWrappers/osg/PrimitiveSet.cpp index 9cdf26394..e46e39d74 100644 --- a/src/osgWrappers/osg/PrimitiveSet.cpp +++ b/src/osgWrappers/osg/PrimitiveSet.cpp @@ -31,51 +31,171 @@ TYPE_NAME_ALIAS(osg::VectorGLsizei, osg::DrawArrayLengths::vector_type); BEGIN_OBJECT_REFLECTOR(osg::DrawArrayLengths) I_BaseType(osg::PrimitiveSet); I_BaseType(osg::VectorGLsizei); - I_ConstructorWithDefaults1(IN, GLenum, mode, 0); - I_ConstructorWithDefaults2(IN, const osg::DrawArrayLengths &, dal, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor4(IN, GLenum, mode, IN, GLint, first, IN, unsigned int, no, IN, GLsizei *, ptr); - I_Constructor3(IN, GLenum, mode, IN, GLint, first, IN, unsigned int, no); - I_Constructor2(IN, GLenum, mode, IN, GLint, first); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, setFirst, IN, GLint, first); - I_Method0(GLint, getFirst); - I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor); - I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor); - I_Method0(unsigned int, getNumIndices); - I_Method1(unsigned int, index, IN, unsigned int, pos); - I_Method1(void, offsetIndices, IN, int, offset); - I_Method0(unsigned int, getNumPrimitives); - I_Property(GLint, First); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + ____DrawArrayLengths__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::DrawArrayLengths &, dal, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DrawArrayLengths__C5_DrawArrayLengths_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor4(IN, GLenum, mode, IN, GLint, first, IN, unsigned int, no, IN, GLsizei *, ptr, + ____DrawArrayLengths__GLenum__GLint__unsigned_int__GLsizei_P1, + "", + ""); + I_Constructor3(IN, GLenum, mode, IN, GLint, first, IN, unsigned int, no, + ____DrawArrayLengths__GLenum__GLint__unsigned_int, + "", + ""); + I_Constructor2(IN, GLenum, mode, IN, GLint, first, + ____DrawArrayLengths__GLenum__GLint, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setFirst, IN, GLint, first, + __void__setFirst__GLint, + "", + ""); + I_Method0(GLint, getFirst, + __GLint__getFirst, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + __void__offsetIndices__int, + "", + ""); + I_Method0(unsigned int, getNumPrimitives, + __unsigned_int__getNumPrimitives, + "", + ""); + I_SimpleProperty(GLint, First, + __GLint__getFirst, + __void__setFirst__GLint); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::DrawArrays) I_BaseType(osg::PrimitiveSet); - I_ConstructorWithDefaults1(IN, GLenum, mode, 0); - I_Constructor3(IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count); - I_ConstructorWithDefaults2(IN, const osg::DrawArrays &, da, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method3(void, set, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count); - I_Method1(void, setFirst, IN, GLint, first); - I_Method0(GLint, getFirst); - I_Method1(void, setCount, IN, GLsizei, count); - I_Method0(GLsizei, getCount); - I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor); - I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor); - I_Method0(unsigned int, getNumIndices); - I_Method1(unsigned int, index, IN, unsigned int, pos); - I_Method1(void, offsetIndices, IN, int, offset); - I_Property(GLsizei, Count); - I_Property(GLint, First); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + ____DrawArrays__GLenum, + "", + ""); + I_Constructor3(IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, + ____DrawArrays__GLenum__GLint__GLsizei, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::DrawArrays &, da, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DrawArrays__C5_DrawArrays_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method3(void, set, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, + __void__set__GLenum__GLint__GLsizei, + "", + ""); + I_Method1(void, setFirst, IN, GLint, first, + __void__setFirst__GLint, + "", + ""); + I_Method0(GLint, getFirst, + __GLint__getFirst, + "", + ""); + I_Method1(void, setCount, IN, GLsizei, count, + __void__setCount__GLsizei, + "", + ""); + I_Method0(GLsizei, getCount, + __GLsizei__getCount, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + __void__offsetIndices__int, + "", + ""); + I_SimpleProperty(GLsizei, Count, + __GLsizei__getCount, + __void__setCount__GLsizei); + I_SimpleProperty(GLint, First, + __GLint__getFirst, + __void__setFirst__GLint); END_REFLECTOR TYPE_NAME_ALIAS(osg::VectorGLubyte, osg::DrawElementsUByte::vector_type); @@ -83,27 +203,88 @@ TYPE_NAME_ALIAS(osg::VectorGLubyte, osg::DrawElementsUByte::vector_type); BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUByte) I_BaseType(osg::PrimitiveSet); I_BaseType(osg::VectorGLubyte); - I_ConstructorWithDefaults1(IN, GLenum, mode, 0); - I_ConstructorWithDefaults2(IN, const osg::DrawElementsUByte &, array, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor3(IN, GLenum, mode, IN, unsigned int, no, IN, GLubyte *, ptr); - I_Constructor2(IN, GLenum, mode, IN, unsigned int, no); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(bool, supportsBufferObject); - I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor); - I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor); - I_Method0(unsigned int, getNumIndices); - I_Method1(unsigned int, index, IN, unsigned int, pos); - I_Method1(void, offsetIndices, IN, int, offset); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + ____DrawElementsUByte__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::DrawElementsUByte &, array, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DrawElementsUByte__C5_DrawElementsUByte_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor3(IN, GLenum, mode, IN, unsigned int, no, IN, GLubyte *, ptr, + ____DrawElementsUByte__GLenum__unsigned_int__GLubyte_P1, + "", + ""); + I_Constructor2(IN, GLenum, mode, IN, unsigned int, no, + ____DrawElementsUByte__GLenum__unsigned_int, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + __bool__supportsBufferObject, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + __void__offsetIndices__int, + "", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + __void__releaseGLObjects__State_P1, + "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objexts for all graphics contexts. "); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR TYPE_NAME_ALIAS(osg::VectorGLuint, osg::DrawElementsUInt::vector_type); @@ -111,27 +292,88 @@ TYPE_NAME_ALIAS(osg::VectorGLuint, osg::DrawElementsUInt::vector_type); BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUInt) I_BaseType(osg::PrimitiveSet); I_BaseType(osg::VectorGLuint); - I_ConstructorWithDefaults1(IN, GLenum, mode, 0); - I_ConstructorWithDefaults2(IN, const osg::DrawElementsUInt &, array, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor3(IN, GLenum, mode, IN, unsigned int, no, IN, GLuint *, ptr); - I_Constructor2(IN, GLenum, mode, IN, unsigned int, no); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(bool, supportsBufferObject); - I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor); - I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor); - I_Method0(unsigned int, getNumIndices); - I_Method1(unsigned int, index, IN, unsigned int, pos); - I_Method1(void, offsetIndices, IN, int, offset); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + ____DrawElementsUInt__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::DrawElementsUInt &, array, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DrawElementsUInt__C5_DrawElementsUInt_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor3(IN, GLenum, mode, IN, unsigned int, no, IN, GLuint *, ptr, + ____DrawElementsUInt__GLenum__unsigned_int__GLuint_P1, + "", + ""); + I_Constructor2(IN, GLenum, mode, IN, unsigned int, no, + ____DrawElementsUInt__GLenum__unsigned_int, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + __bool__supportsBufferObject, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + __void__offsetIndices__int, + "", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + __void__releaseGLObjects__State_P1, + "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objexts for all graphics contexts. "); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR TYPE_NAME_ALIAS(osg::VectorGLushort, osg::DrawElementsUShort::vector_type); @@ -139,60 +381,200 @@ TYPE_NAME_ALIAS(osg::VectorGLushort, osg::DrawElementsUShort::vector_type); BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUShort) I_BaseType(osg::PrimitiveSet); I_BaseType(osg::VectorGLushort); - I_ConstructorWithDefaults1(IN, GLenum, mode, 0); - I_ConstructorWithDefaults2(IN, const osg::DrawElementsUShort &, array, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor3(IN, GLenum, mode, IN, unsigned int, no, IN, GLushort *, ptr); - I_Constructor2(IN, GLenum, mode, IN, unsigned int, no); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(bool, supportsBufferObject); - I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor); - I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor); - I_Method0(unsigned int, getNumIndices); - I_Method1(unsigned int, index, IN, unsigned int, pos); - I_Method1(void, offsetIndices, IN, int, offset); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_ReadOnlyProperty(unsigned int, TotalDataSize); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + ____DrawElementsUShort__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::DrawElementsUShort &, array, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DrawElementsUShort__C5_DrawElementsUShort_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor3(IN, GLenum, mode, IN, unsigned int, no, IN, GLushort *, ptr, + ____DrawElementsUShort__GLenum__unsigned_int__GLushort_P1, + "", + ""); + I_Constructor2(IN, GLenum, mode, IN, unsigned int, no, + ____DrawElementsUShort__GLenum__unsigned_int, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + __bool__supportsBufferObject, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + __void__offsetIndices__int, + "", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + __void__releaseGLObjects__State_P1, + "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objexts for all graphics contexts. "); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveFunctor) - I_Constructor0(); - I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, vertices); - I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, vertices); - I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, vertices); - I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count); - I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices); - I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, indices); - I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, indices); - I_Method1(void, begin, IN, GLenum, mode); - I_Method1(void, vertex, IN, const osg::Vec2 &, vert); - I_Method1(void, vertex, IN, const osg::Vec3 &, vert); - I_Method1(void, vertex, IN, const osg::Vec4 &, vert); - I_Method2(void, vertex, IN, float, x, IN, float, y); - I_Method3(void, vertex, IN, float, x, IN, float, y, IN, float, z); - I_Method4(void, vertex, IN, float, x, IN, float, y, IN, float, z, IN, float, w); - I_Method0(void, end); + I_Constructor0(____PrimitiveFunctor, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, vertices, + __void__setVertexArray__unsigned_int__C5_Vec2_P1, + "Sets the array of vertices used to describe the primitives. ", + "Somehow mimics the OpenGL glVertexPointer() function."); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, vertices, + __void__setVertexArray__unsigned_int__C5_Vec3_P1, + "Sets the array of vertices used to describe the primitives. ", + "Somehow mimics the OpenGL glVertexPointer() function."); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, vertices, + __void__setVertexArray__unsigned_int__C5_Vec4_P1, + "Sets the array of vertices used to describe the primitives. ", + "Somehow mimics the OpenGL glVertexPointer() function."); + I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, + __void__drawArrays__GLenum__GLint__GLsizei, + "Mimics the OpenGL glDrawArrays() function. ", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices, + __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, + "Mimics the OpenGL glDrawElements() function. ", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, indices, + __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, + "Mimics the OpenGL glDrawElements() function. ", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, indices, + __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, + "Mimics the OpenGL glDrawElements() function. ", + ""); + I_Method1(void, begin, IN, GLenum, mode, + __void__begin__GLenum, + "Mimics the OpenGL glBegin() function. ", + ""); + I_Method1(void, vertex, IN, const osg::Vec2 &, vert, + __void__vertex__C5_Vec2_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method1(void, vertex, IN, const osg::Vec3 &, vert, + __void__vertex__C5_Vec3_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method1(void, vertex, IN, const osg::Vec4 &, vert, + __void__vertex__C5_Vec4_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method2(void, vertex, IN, float, x, IN, float, y, + __void__vertex__float__float, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method3(void, vertex, IN, float, x, IN, float, y, IN, float, z, + __void__vertex__float__float__float, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method4(void, vertex, IN, float, x, IN, float, y, IN, float, z, IN, float, w, + __void__vertex__float__float__float__float, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method0(void, end, + __void__end, + "Mimics the OpenGL glEnd() function. ", + ""); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveIndexFunctor) - I_Constructor0(); - I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, vertices); - I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, vertices); - I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, vertices); - I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count); - I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices); - I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, indices); - I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, indices); - I_Method1(void, begin, IN, GLenum, mode); - I_Method1(void, vertex, IN, unsigned int, pos); - I_Method0(void, end); + I_Constructor0(____PrimitiveIndexFunctor, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, vertices, + __void__setVertexArray__unsigned_int__C5_Vec2_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, vertices, + __void__setVertexArray__unsigned_int__C5_Vec3_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, vertices, + __void__setVertexArray__unsigned_int__C5_Vec4_P1, + "", + ""); + I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, + __void__drawArrays__GLenum__GLint__GLsizei, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices, + __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, indices, + __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, indices, + __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(void, begin, IN, GLenum, mode, + __void__begin__GLenum, + "", + ""); + I_Method1(void, vertex, IN, unsigned int, pos, + __void__vertex__unsigned_int, + "", + ""); + I_Method0(void, end, + __void__end, + "", + ""); END_REFLECTOR BEGIN_ENUM_REFLECTOR(osg::PrimitiveSet::Type) @@ -219,64 +601,184 @@ END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveSet) I_BaseType(osg::Object); - I_ConstructorWithDefaults2(IN, osg::PrimitiveSet::Type, primType, osg::PrimitiveSet::PrimitiveType, IN, GLenum, mode, 0); - I_ConstructorWithDefaults2(IN, const osg::PrimitiveSet &, prim, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::PrimitiveSet::Type, getType); - I_Method0(const GLvoid *, getDataPointer); - I_Method0(unsigned int, getTotalDataSize); - I_Method0(bool, supportsBufferObject); - I_Method1(void, setMode, IN, GLenum, mode); - I_Method0(GLenum, getMode); - I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor); - I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor); - I_Method1(unsigned int, index, IN, unsigned int, pos); - I_Method0(unsigned int, getNumIndices); - I_Method1(void, offsetIndices, IN, int, offset); - I_Method0(unsigned int, getNumPrimitives); - I_Method0(void, dirty); - I_Method1(void, setModifiedCount, IN, unsigned int, value); - I_Method0(unsigned int, getModifiedCount); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0); - I_ReadOnlyProperty(const GLvoid *, DataPointer); - I_Property(GLenum, Mode); - I_Property(unsigned int, ModifiedCount); - I_ReadOnlyProperty(unsigned int, TotalDataSize); - I_ReadOnlyProperty(osg::PrimitiveSet::Type, Type); + I_ConstructorWithDefaults2(IN, osg::PrimitiveSet::Type, primType, osg::PrimitiveSet::PrimitiveType, IN, GLenum, mode, 0, + ____PrimitiveSet__Type__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PrimitiveSet &, prim, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PrimitiveSet__C5_PrimitiveSet_R1__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(osg::PrimitiveSet::Type, getType, + __Type__getType, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + __bool__supportsBufferObject, + "", + ""); + I_Method1(void, setMode, IN, GLenum, mode, + __void__setMode__GLenum, + "", + ""); + I_Method0(GLenum, getMode, + __GLenum__getMode, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumIndices, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + __void__offsetIndices__int, + "", + ""); + I_Method0(unsigned int, getNumPrimitives, + __unsigned_int__getNumPrimitives, + "", + ""); + I_Method0(void, dirty, + __void__dirty, + "Dirty the primitive, which increments the modified count, to force buffer objects to update. ", + ""); + I_Method1(void, setModifiedCount, IN, unsigned int, value, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + __void__releaseGLObjects__State_P1, + "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objexts for all graphics contexts. "); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(GLenum, Mode, + __GLenum__getMode, + __void__setMode__GLenum); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); + I_SimpleProperty(osg::PrimitiveSet::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::VectorGLsizei) I_BaseType(std::vector); - I_Constructor0(); - I_Constructor1(IN, const osg::VectorGLsizei &, copy); - I_Constructor2(IN, GLsizei *, beg, IN, GLsizei *, end); - I_Constructor1(IN, unsigned int, n); + I_Constructor0(____VectorGLsizei, + "", + ""); + I_Constructor1(IN, const osg::VectorGLsizei &, copy, + ____VectorGLsizei__C5_VectorGLsizei_R1, + "", + ""); + I_Constructor2(IN, GLsizei *, beg, IN, GLsizei *, end, + ____VectorGLsizei__GLsizei_P1__GLsizei_P1, + "", + ""); + I_Constructor1(IN, unsigned int, n, + ____VectorGLsizei__unsigned_int, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::VectorGLubyte) I_BaseType(std::vector); - I_Constructor0(); - I_Constructor1(IN, const osg::VectorGLubyte &, copy); - I_Constructor2(IN, GLubyte *, beg, IN, GLubyte *, end); - I_Constructor1(IN, unsigned int, n); + I_Constructor0(____VectorGLubyte, + "", + ""); + I_Constructor1(IN, const osg::VectorGLubyte &, copy, + ____VectorGLubyte__C5_VectorGLubyte_R1, + "", + ""); + I_Constructor2(IN, GLubyte *, beg, IN, GLubyte *, end, + ____VectorGLubyte__GLubyte_P1__GLubyte_P1, + "", + ""); + I_Constructor1(IN, unsigned int, n, + ____VectorGLubyte__unsigned_int, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::VectorGLuint) I_BaseType(std::vector); - I_Constructor0(); - I_Constructor1(IN, const osg::VectorGLuint &, copy); - I_Constructor2(IN, GLuint *, beg, IN, GLuint *, end); - I_Constructor1(IN, unsigned int, n); + I_Constructor0(____VectorGLuint, + "", + ""); + I_Constructor1(IN, const osg::VectorGLuint &, copy, + ____VectorGLuint__C5_VectorGLuint_R1, + "", + ""); + I_Constructor2(IN, GLuint *, beg, IN, GLuint *, end, + ____VectorGLuint__GLuint_P1__GLuint_P1, + "", + ""); + I_Constructor1(IN, unsigned int, n, + ____VectorGLuint__unsigned_int, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::VectorGLushort) I_BaseType(std::vector); - I_Constructor0(); - I_Constructor1(IN, const osg::VectorGLushort &, copy); - I_Constructor2(IN, GLushort *, beg, IN, GLushort *, end); - I_Constructor1(IN, unsigned int, n); + I_Constructor0(____VectorGLushort, + "", + ""); + I_Constructor1(IN, const osg::VectorGLushort &, copy, + ____VectorGLushort__C5_VectorGLushort_R1, + "", + ""); + I_Constructor2(IN, GLushort *, beg, IN, GLushort *, end, + ____VectorGLushort__GLushort_P1__GLushort_P1, + "", + ""); + I_Constructor1(IN, unsigned int, n, + ____VectorGLushort__unsigned_int, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Program.cpp b/src/osgWrappers/osg/Program.cpp index 56fbc07f3..5ae7f54b6 100644 --- a/src/osgWrappers/osg/Program.cpp +++ b/src/osgWrappers/osg/Program.cpp @@ -32,42 +32,140 @@ TYPE_NAME_ALIAS(std::map< std::string COMMA osg::Program::ActiveVarInfo >, osg: BEGIN_OBJECT_REFLECTOR(osg::Program) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Program &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(void, apply, IN, osg::State &, state); - I_Method1(void, compileGLObjects, IN, osg::State &, state); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); - I_Method0(void, dirtyProgram); - I_Method1(bool, addShader, IN, osg::Shader *, shader); - I_Method0(unsigned int, getNumShaders); - I_Method1(osg::Shader *, getShader, IN, unsigned int, i); - I_Method1(const osg::Shader *, getShader, IN, unsigned int, i); - I_Method1(bool, removeShader, IN, osg::Shader *, shader); - I_Method2(void, addBindAttribLocation, IN, const std::string &, name, IN, GLuint, index); - I_Method1(void, removeBindAttribLocation, IN, const std::string &, name); - I_Method0(const osg::Program::AttribBindingList &, getAttribBindingList); - I_Method0(bool, isFixedFunction); - I_Method2(bool, getGlProgramInfoLog, IN, unsigned int, contextID, IN, std::string &, log); - I_Method1(const osg::Program::ActiveVarInfoMap &, getActiveUniforms, IN, unsigned int, contextID); - I_Method1(const osg::Program::ActiveVarInfoMap &, getActiveAttribs, IN, unsigned int, contextID); - I_Method1(osg::Program::PerContextProgram *, getPCP, IN, unsigned int, contextID); - I_StaticMethod2(void, deleteGlProgram, IN, unsigned int, contextID, IN, GLuint, program); - I_StaticMethod3(void, flushDeletedGlPrograms, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime); - I_ReadOnlyProperty(const osg::Program::AttribBindingList &, AttribBindingList); - I_ArrayProperty_GA(osg::Shader *, Shader, Shaders, unsigned int, bool); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____Program, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Program &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Program__C5_Program_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_osg_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__osg_State_R1, + "If enabled, activate our program in the GL pipeline, performing any rebuild operations that might be pending. ", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + __void__compileGLObjects__osg_State_R1, + "default to nothing to compile - all state is applied immediately. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + __void__releaseGLObjects__osg_State_P1, + "release OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objects for all graphics context if State object pointer NULL. ", + ""); + I_Method0(void, dirtyProgram, + __void__dirtyProgram, + "Mark our PCSOs as needing relink. ", + ""); + I_Method1(bool, addShader, IN, osg::Shader *, shader, + __bool__addShader__Shader_P1, + "Attach an osg::Shader to this osg::Program. ", + "Mark Program as needing relink. Return true for success "); + I_Method0(unsigned int, getNumShaders, + __unsigned_int__getNumShaders, + "", + ""); + I_Method1(osg::Shader *, getShader, IN, unsigned int, i, + __Shader_P1__getShader__unsigned_int, + "", + ""); + I_Method1(const osg::Shader *, getShader, IN, unsigned int, i, + __C5_Shader_P1__getShader__unsigned_int, + "", + ""); + I_Method1(bool, removeShader, IN, osg::Shader *, shader, + __bool__removeShader__Shader_P1, + "Remove osg::Shader from this osg::Program. ", + "Mark Program as needing relink. Return true for success "); + I_Method2(void, addBindAttribLocation, IN, const std::string &, name, IN, GLuint, index, + __void__addBindAttribLocation__C5_std_string_R1__GLuint, + "Add an attribute location binding. ", + ""); + I_Method1(void, removeBindAttribLocation, IN, const std::string &, name, + __void__removeBindAttribLocation__C5_std_string_R1, + "Add an attribute location binding. ", + ""); + I_Method0(const osg::Program::AttribBindingList &, getAttribBindingList, + __C5_AttribBindingList_R1__getAttribBindingList, + "", + ""); + I_Method0(bool, isFixedFunction, + __bool__isFixedFunction, + "Return true if this Program represents \"fixed-functionality\" rendering. ", + ""); + I_Method2(bool, getGlProgramInfoLog, IN, unsigned int, contextID, IN, std::string &, log, + __bool__getGlProgramInfoLog__unsigned_int__std_string_R1, + "Query InfoLog from a glProgram. ", + ""); + I_Method1(const osg::Program::ActiveVarInfoMap &, getActiveUniforms, IN, unsigned int, contextID, + __C5_ActiveVarInfoMap_R1__getActiveUniforms__unsigned_int, + "", + ""); + I_Method1(const osg::Program::ActiveVarInfoMap &, getActiveAttribs, IN, unsigned int, contextID, + __C5_ActiveVarInfoMap_R1__getActiveAttribs__unsigned_int, + "", + ""); + I_Method1(osg::Program::PerContextProgram *, getPCP, IN, unsigned int, contextID, + __PerContextProgram_P1__getPCP__unsigned_int, + "Get the PCP for a particular GL context. ", + ""); + I_StaticMethod2(void, deleteGlProgram, IN, unsigned int, contextID, IN, GLuint, program, + __void__deleteGlProgram__unsigned_int__GLuint_S, + "Mark internal glProgram for deletion. ", + "Deletion requests are queued until they can be executed in the proper GL context. "); + I_StaticMethod3(void, flushDeletedGlPrograms, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedGlPrograms__unsigned_int__double__double_R1_S, + "flush all the cached glPrograms which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_SimpleProperty(const osg::Program::AttribBindingList &, AttribBindingList, + __C5_AttribBindingList_R1__getAttribBindingList, + 0); + I_ArrayProperty(osg::Shader *, Shader, + __Shader_P1__getShader__unsigned_int, + 0, + __unsigned_int__getNumShaders, + __bool__addShader__Shader_P1, + 0, + 0); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::Program::ActiveVarInfo) - I_Constructor0(); - I_Constructor3(IN, GLint, loc, IN, GLenum, type, IN, GLint, size); + I_Constructor0(____ActiveVarInfo, + "", + ""); + I_Constructor3(IN, GLint, loc, IN, GLenum, type, IN, GLint, size, + ____ActiveVarInfo__GLint__GLenum__GLint, + "", + ""); I_PublicMemberProperty(GLint, _location); I_PublicMemberProperty(GLenum, _type); I_PublicMemberProperty(GLint, _size); @@ -75,24 +173,75 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Program::PerContextProgram) I_BaseType(osg::Referenced); - I_Constructor2(IN, const osg::Program *, program, IN, unsigned int, contextID); - I_Method0(GLuint, getHandle); - I_Method0(void, requestLink); - I_Method0(void, linkProgram); - I_Method0(bool, validateProgram); - I_Method0(bool, needsLink); - I_Method0(bool, isLinked); - I_Method1(bool, getInfoLog, IN, std::string &, infoLog); - I_Method0(void, useProgram); - I_Method0(void, resetAppliedUniforms); - I_Method1(void, apply, IN, const osg::Uniform &, uniform); - I_Method0(const osg::Program::ActiveVarInfoMap &, getActiveUniforms); - I_Method0(const osg::Program::ActiveVarInfoMap &, getActiveAttribs); - I_Method1(GLint, getUniformLocation, IN, const std::string &, name); - I_Method1(GLint, getAttribLocation, IN, const std::string &, name); - I_ReadOnlyProperty(const osg::Program::ActiveVarInfoMap &, ActiveAttribs); - I_ReadOnlyProperty(const osg::Program::ActiveVarInfoMap &, ActiveUniforms); - I_ReadOnlyProperty(GLuint, Handle); + I_Constructor2(IN, const osg::Program *, program, IN, unsigned int, contextID, + ____PerContextProgram__C5_Program_P1__unsigned_int, + "", + ""); + I_Method0(GLuint, getHandle, + __GLuint__getHandle, + "", + ""); + I_Method0(void, requestLink, + __void__requestLink, + "", + ""); + I_Method0(void, linkProgram, + __void__linkProgram, + "", + ""); + I_Method0(bool, validateProgram, + __bool__validateProgram, + "", + ""); + I_Method0(bool, needsLink, + __bool__needsLink, + "", + ""); + I_Method0(bool, isLinked, + __bool__isLinked, + "", + ""); + I_Method1(bool, getInfoLog, IN, std::string &, infoLog, + __bool__getInfoLog__std_string_R1, + "", + ""); + I_Method0(void, useProgram, + __void__useProgram, + "", + ""); + I_Method0(void, resetAppliedUniforms, + __void__resetAppliedUniforms, + "", + ""); + I_Method1(void, apply, IN, const osg::Uniform &, uniform, + __void__apply__C5_Uniform_R1, + "", + ""); + I_Method0(const osg::Program::ActiveVarInfoMap &, getActiveUniforms, + __C5_ActiveVarInfoMap_R1__getActiveUniforms, + "", + ""); + I_Method0(const osg::Program::ActiveVarInfoMap &, getActiveAttribs, + __C5_ActiveVarInfoMap_R1__getActiveAttribs, + "", + ""); + I_Method1(GLint, getUniformLocation, IN, const std::string &, name, + __GLint__getUniformLocation__C5_std_string_R1, + "", + ""); + I_Method1(GLint, getAttribLocation, IN, const std::string &, name, + __GLint__getAttribLocation__C5_std_string_R1, + "", + ""); + I_SimpleProperty(const osg::Program::ActiveVarInfoMap &, ActiveAttribs, + __C5_ActiveVarInfoMap_R1__getActiveAttribs, + 0); + I_SimpleProperty(const osg::Program::ActiveVarInfoMap &, ActiveUniforms, + __C5_ActiveVarInfoMap_R1__getActiveUniforms, + 0); + I_SimpleProperty(GLuint, Handle, + __GLuint__getHandle, + 0); END_REFLECTOR STD_MAP_REFLECTOR(std::map< std::string COMMA GLuint >); diff --git a/src/osgWrappers/osg/Projection.cpp b/src/osgWrappers/osg/Projection.cpp index 52e94e6eb..95e0d126a 100644 --- a/src/osgWrappers/osg/Projection.cpp +++ b/src/osgWrappers/osg/Projection.cpp @@ -26,19 +26,59 @@ BEGIN_OBJECT_REFLECTOR(osg::Projection) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Projection &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, const osg::Matrix &, matix); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, setMatrix, IN, const osg::Matrix &, mat); - I_Method0(const osg::Matrix &, getMatrix); - I_Method1(void, preMult, IN, const osg::Matrix &, mat); - I_Method1(void, postMult, IN, const osg::Matrix &, mat); - I_Property(const osg::Matrix &, Matrix); + I_Constructor0(____Projection, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Projection &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Projection__C5_Projection_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Constructor1(IN, const osg::Matrix &, matix, + ____Projection__C5_Matrix_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, setMatrix, IN, const osg::Matrix &, mat, + __void__setMatrix__C5_Matrix_R1, + "Set the transform's matrix. ", + ""); + I_Method0(const osg::Matrix &, getMatrix, + __C5_Matrix_R1__getMatrix, + "Get the transform's matrix. ", + ""); + I_Method1(void, preMult, IN, const osg::Matrix &, mat, + __void__preMult__C5_Matrix_R1, + "preMult transform. ", + ""); + I_Method1(void, postMult, IN, const osg::Matrix &, mat, + __void__postMult__C5_Matrix_R1, + "postMult transform. ", + ""); + I_SimpleProperty(const osg::Matrix &, Matrix, + __C5_Matrix_R1__getMatrix, + __void__setMatrix__C5_Matrix_R1); END_REFLECTOR diff --git a/src/osgWrappers/osg/ProxyNode.cpp b/src/osgWrappers/osg/ProxyNode.cpp index b7e8ba585..44fb210e4 100644 --- a/src/osgWrappers/osg/ProxyNode.cpp +++ b/src/osgWrappers/osg/ProxyNode.cpp @@ -35,34 +35,119 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::ProxyNode) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::ProxyNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method1(bool, addChild, IN, osg::Node *, child); - I_Method2(bool, addChild, IN, osg::Node *, child, IN, const std::string &, filename); - I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove); - I_Method1(void, setDatabasePath, IN, const std::string &, path); - I_Method0(const std::string &, getDatabasePath); - I_Method2(void, setFileName, IN, unsigned int, childNo, IN, const std::string &, filename); - I_Method1(const std::string &, getFileName, IN, unsigned int, childNo); - I_Method0(unsigned int, getNumFileNames); - I_Method1(void, setCenterMode, IN, osg::ProxyNode::CenterMode, mode); - I_Method0(osg::ProxyNode::CenterMode, getCenterMode); - I_Method1(void, setCenter, IN, const osg::Vec3 &, center); - I_Method0(const osg::Vec3 &, getCenter); - I_Method1(void, setRadius, IN, float, radius); - I_Method0(float, getRadius); - I_Method0(osg::BoundingSphere, computeBound); - I_Property(const osg::Vec3 &, Center); - I_Property(osg::ProxyNode::CenterMode, CenterMode); - I_Property(const std::string &, DatabasePath); - I_ArrayProperty_G(const std::string &, FileName, FileNames, unsigned int, void); - I_Property(float, Radius); + I_Constructor0(____ProxyNode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ProxyNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ProxyNode__C5_ProxyNode_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + __bool__addChild__Node_P1, + "Add Node to Group. ", + "If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes."); + I_Method2(bool, addChild, IN, osg::Node *, child, IN, const std::string &, filename, + __bool__addChild__Node_P1__C5_std_string_R1, + "", + ""); + I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove, + __bool__removeChildren__unsigned_int__unsigned_int, + "Remove children from Group. ", + "Note, must be override by subclasses of Group which add per child attributes. "); + I_Method1(void, setDatabasePath, IN, const std::string &, path, + __void__setDatabasePath__C5_std_string_R1, + "Set the database path to prepend to children's filenames. ", + ""); + I_Method0(const std::string &, getDatabasePath, + __C5_std_string_R1__getDatabasePath, + "Get the database path used to prepend to children's filenames. ", + ""); + I_Method2(void, setFileName, IN, unsigned int, childNo, IN, const std::string &, filename, + __void__setFileName__unsigned_int__C5_std_string_R1, + "", + ""); + I_Method1(const std::string &, getFileName, IN, unsigned int, childNo, + __C5_std_string_R1__getFileName__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumFileNames, + __unsigned_int__getNumFileNames, + "", + ""); + I_Method1(void, setCenterMode, IN, osg::ProxyNode::CenterMode, mode, + __void__setCenterMode__CenterMode, + "Set how the center of object should be determined when computed which child is active. ", + ""); + I_Method0(osg::ProxyNode::CenterMode, getCenterMode, + __CenterMode__getCenterMode, + "Get how the center of object should be determined when computed which child is active. ", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + __void__setCenter__C5_Vec3_R1, + "Sets the object-space point which defines the center of the osg::ProxyNode. ", + "center is affected by any transforms in the hierarchy above the osg::ProxyNode. "); + I_Method0(const osg::Vec3 &, getCenter, + __C5_Vec3_R1__getCenter, + "return the ProxyNode center point. ", + ""); + I_Method1(void, setRadius, IN, float, radius, + __void__setRadius__float, + "Set the object-space reference radius of the volume enclosed by the ProxyNode. ", + "Used to detmine the bounding sphere of the ProxyNode in the absense of any children. "); + I_Method0(float, getRadius, + __float__getRadius, + "Get the object-space radius of the volume enclosed by the ProxyNode. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + __BoundingSphere__computeBound, + "Compute the bounding sphere around Node's geometry or children. ", + "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); + I_SimpleProperty(const osg::Vec3 &, Center, + __C5_Vec3_R1__getCenter, + __void__setCenter__C5_Vec3_R1); + I_SimpleProperty(osg::ProxyNode::CenterMode, CenterMode, + __CenterMode__getCenterMode, + __void__setCenterMode__CenterMode); + I_SimpleProperty(const std::string &, DatabasePath, + __C5_std_string_R1__getDatabasePath, + __void__setDatabasePath__C5_std_string_R1); + I_ArrayProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName__unsigned_int, + __void__setFileName__unsigned_int__C5_std_string_R1, + __unsigned_int__getNumFileNames, + 0, + 0, + 0); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); END_REFLECTOR diff --git a/src/osgWrappers/osg/Quat.cpp b/src/osgWrappers/osg/Quat.cpp index 22858ed3c..84c8f3bee 100644 --- a/src/osgWrappers/osg/Quat.cpp +++ b/src/osgWrappers/osg/Quat.cpp @@ -33,48 +33,172 @@ TYPE_NAME_ALIAS(double, osg::Quat::value_type); BEGIN_VALUE_REFLECTOR(osg::Quat) I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined - I_Constructor0(); - I_Constructor4(IN, osg::Quat::value_type, x, IN, osg::Quat::value_type, y, IN, osg::Quat::value_type, z, IN, osg::Quat::value_type, w); - I_Constructor1(IN, const osg::Vec4f &, v); - I_Constructor1(IN, const osg::Vec4d &, v); - I_Constructor2(IN, osg::Quat::value_type, angle, IN, const osg::Vec3f &, axis); - I_Constructor2(IN, osg::Quat::value_type, angle, IN, const osg::Vec3d &, axis); - I_Constructor6(IN, osg::Quat::value_type, angle1, IN, const osg::Vec3f &, axis1, IN, osg::Quat::value_type, angle2, IN, const osg::Vec3f &, axis2, IN, osg::Quat::value_type, angle3, IN, const osg::Vec3f &, axis3); - I_Constructor6(IN, osg::Quat::value_type, angle1, IN, const osg::Vec3d &, axis1, IN, osg::Quat::value_type, angle2, IN, const osg::Vec3d &, axis2, IN, osg::Quat::value_type, angle3, IN, const osg::Vec3d &, axis3); - I_Method0(osg::Vec4d, asVec4); - I_Method0(osg::Vec3d, asVec3); - I_Method4(void, set, IN, osg::Quat::value_type, x, IN, osg::Quat::value_type, y, IN, osg::Quat::value_type, z, IN, osg::Quat::value_type, w); - I_Method1(void, set, IN, const osg::Vec4f &, v); - I_Method1(void, set, IN, const osg::Vec4d &, v); - I_Method1(void, set, IN, const osg::Matrixf &, matrix); - I_Method1(void, set, IN, const osg::Matrixd &, matrix); - I_Method1(void, get, IN, osg::Matrixf &, matrix); - I_Method1(void, get, IN, osg::Matrixd &, matrix); - I_Method0(osg::Quat::value_type &, x); - I_Method0(osg::Quat::value_type &, y); - I_Method0(osg::Quat::value_type &, z); - I_Method0(osg::Quat::value_type &, w); - I_Method0(osg::Quat::value_type, x); - I_Method0(osg::Quat::value_type, y); - I_Method0(osg::Quat::value_type, z); - I_Method0(osg::Quat::value_type, w); - I_Method0(bool, zeroRotation); - I_Method0(osg::Quat::value_type, length); - I_Method0(osg::Quat::value_type, length2); - I_Method0(osg::Quat, conj); - I_Method0(const osg::Quat, inverse); - I_Method4(void, makeRotate, IN, osg::Quat::value_type, angle, IN, osg::Quat::value_type, x, IN, osg::Quat::value_type, y, IN, osg::Quat::value_type, z); - I_Method2(void, makeRotate, IN, osg::Quat::value_type, angle, IN, const osg::Vec3f &, vec); - I_Method2(void, makeRotate, IN, osg::Quat::value_type, angle, IN, const osg::Vec3d &, vec); - I_Method6(void, makeRotate, IN, osg::Quat::value_type, angle1, IN, const osg::Vec3f &, axis1, IN, osg::Quat::value_type, angle2, IN, const osg::Vec3f &, axis2, IN, osg::Quat::value_type, angle3, IN, const osg::Vec3f &, axis3); - I_Method6(void, makeRotate, IN, osg::Quat::value_type, angle1, IN, const osg::Vec3d &, axis1, IN, osg::Quat::value_type, angle2, IN, const osg::Vec3d &, axis2, IN, osg::Quat::value_type, angle3, IN, const osg::Vec3d &, axis3); - I_Method2(void, makeRotate, IN, const osg::Vec3f &, vec1, IN, const osg::Vec3f &, vec2); - I_Method2(void, makeRotate, IN, const osg::Vec3d &, vec1, IN, const osg::Vec3d &, vec2); - I_Method2(void, makeRotate_original, IN, const osg::Vec3d &, vec1, IN, const osg::Vec3d &, vec2); - I_Method4(void, getRotate, IN, osg::Quat::value_type &, angle, IN, osg::Quat::value_type &, x, IN, osg::Quat::value_type &, y, IN, osg::Quat::value_type &, z); - I_Method2(void, getRotate, IN, osg::Quat::value_type &, angle, IN, osg::Vec3f &, vec); - I_Method2(void, getRotate, IN, osg::Quat::value_type &, angle, IN, osg::Vec3d &, vec); - I_Method3(void, slerp, IN, osg::Quat::value_type, t, IN, const osg::Quat &, from, IN, const osg::Quat &, to); - I_WriteOnlyProperty(const osg::Vec4f &, ); + I_Constructor0(____Quat, + "", + ""); + I_Constructor4(IN, osg::Quat::value_type, x, IN, osg::Quat::value_type, y, IN, osg::Quat::value_type, z, IN, osg::Quat::value_type, w, + ____Quat__value_type__value_type__value_type__value_type, + "", + ""); + I_Constructor1(IN, const osg::Vec4f &, v, + ____Quat__C5_Vec4f_R1, + "", + ""); + I_Constructor1(IN, const osg::Vec4d &, v, + ____Quat__C5_Vec4d_R1, + "", + ""); + I_Constructor2(IN, osg::Quat::value_type, angle, IN, const osg::Vec3f &, axis, + ____Quat__value_type__C5_Vec3f_R1, + "", + ""); + I_Constructor2(IN, osg::Quat::value_type, angle, IN, const osg::Vec3d &, axis, + ____Quat__value_type__C5_Vec3d_R1, + "", + ""); + I_Constructor6(IN, osg::Quat::value_type, angle1, IN, const osg::Vec3f &, axis1, IN, osg::Quat::value_type, angle2, IN, const osg::Vec3f &, axis2, IN, osg::Quat::value_type, angle3, IN, const osg::Vec3f &, axis3, + ____Quat__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1, + "", + ""); + I_Constructor6(IN, osg::Quat::value_type, angle1, IN, const osg::Vec3d &, axis1, IN, osg::Quat::value_type, angle2, IN, const osg::Vec3d &, axis2, IN, osg::Quat::value_type, angle3, IN, const osg::Vec3d &, axis3, + ____Quat__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1, + "", + ""); + I_Method0(osg::Vec4d, asVec4, + __Vec4d__asVec4, + "", + ""); + I_Method0(osg::Vec3d, asVec3, + __Vec3d__asVec3, + "", + ""); + I_Method4(void, set, IN, osg::Quat::value_type, x, IN, osg::Quat::value_type, y, IN, osg::Quat::value_type, z, IN, osg::Quat::value_type, w, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec4f &, v, + __void__set__C5_osg_Vec4f_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Vec4d &, v, + __void__set__C5_osg_Vec4d_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Matrixf &, matrix, + __void__set__C5_Matrixf_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Matrixd &, matrix, + __void__set__C5_Matrixd_R1, + "", + ""); + I_Method1(void, get, IN, osg::Matrixf &, matrix, + __void__get__Matrixf_R1, + "", + ""); + I_Method1(void, get, IN, osg::Matrixd &, matrix, + __void__get__Matrixd_R1, + "", + ""); + I_Method0(osg::Quat::value_type &, x, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Quat::value_type &, y, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Quat::value_type &, z, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Quat::value_type &, w, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Quat::value_type, x, + __value_type__x, + "", + ""); + I_Method0(osg::Quat::value_type, y, + __value_type__y, + "", + ""); + I_Method0(osg::Quat::value_type, z, + __value_type__z, + "", + ""); + I_Method0(osg::Quat::value_type, w, + __value_type__w, + "", + ""); + I_Method0(bool, zeroRotation, + __bool__zeroRotation, + "return true if the Quat represents a zero rotation, and therefore can be ignored in computations. ", + ""); + I_Method0(osg::Quat::value_type, length, + __value_type__length, + "Length of the quaternion = sqrt( vec . vec ). ", + ""); + I_Method0(osg::Quat::value_type, length2, + __value_type__length2, + "Length of the quaternion = vec . vec. ", + ""); + I_Method0(osg::Quat, conj, + __Quat__conj, + "Conjugate. ", + ""); + I_Method0(const osg::Quat, inverse, + __C5_Quat__inverse, + "Multiplicative inverse method: q^(-1) = q^*/(q.q^*). ", + ""); + I_Method4(void, makeRotate, IN, osg::Quat::value_type, angle, IN, osg::Quat::value_type, x, IN, osg::Quat::value_type, y, IN, osg::Quat::value_type, z, + __void__makeRotate__value_type__value_type__value_type__value_type, + "", + ""); + I_Method2(void, makeRotate, IN, osg::Quat::value_type, angle, IN, const osg::Vec3f &, vec, + __void__makeRotate__value_type__C5_Vec3f_R1, + "", + ""); + I_Method2(void, makeRotate, IN, osg::Quat::value_type, angle, IN, const osg::Vec3d &, vec, + __void__makeRotate__value_type__C5_Vec3d_R1, + "", + ""); + I_Method6(void, makeRotate, IN, osg::Quat::value_type, angle1, IN, const osg::Vec3f &, axis1, IN, osg::Quat::value_type, angle2, IN, const osg::Vec3f &, axis2, IN, osg::Quat::value_type, angle3, IN, const osg::Vec3f &, axis3, + __void__makeRotate__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1, + "", + ""); + I_Method6(void, makeRotate, IN, osg::Quat::value_type, angle1, IN, const osg::Vec3d &, axis1, IN, osg::Quat::value_type, angle2, IN, const osg::Vec3d &, axis2, IN, osg::Quat::value_type, angle3, IN, const osg::Vec3d &, axis3, + __void__makeRotate__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1, + "", + ""); + I_Method2(void, makeRotate, IN, const osg::Vec3f &, vec1, IN, const osg::Vec3f &, vec2, + __void__makeRotate__C5_Vec3f_R1__C5_Vec3f_R1, + "Make a rotation Quat which will rotate vec1 to vec2. ", + "Generally take a dot product to get the angle between these and then use a cross product to get the rotation axis Watch out for the two special cases when the vectors are co-incident or opposite in direction. "); + I_Method2(void, makeRotate, IN, const osg::Vec3d &, vec1, IN, const osg::Vec3d &, vec2, + __void__makeRotate__C5_Vec3d_R1__C5_Vec3d_R1, + "Make a rotation Quat which will rotate vec1 to vec2. ", + "Generally take a dot product to get the angle between these and then use a cross product to get the rotation axis Watch out for the two special cases of when the vectors are co-incident or opposite in direction. "); + I_Method2(void, makeRotate_original, IN, const osg::Vec3d &, vec1, IN, const osg::Vec3d &, vec2, + __void__makeRotate_original__C5_Vec3d_R1__C5_Vec3d_R1, + "", + ""); + I_Method4(void, getRotate, IN, osg::Quat::value_type &, angle, IN, osg::Quat::value_type &, x, IN, osg::Quat::value_type &, y, IN, osg::Quat::value_type &, z, + __void__getRotate__value_type_R1__value_type_R1__value_type_R1__value_type_R1, + "Return the angle and vector components represented by the quaternion. ", + ""); + I_Method2(void, getRotate, IN, osg::Quat::value_type &, angle, IN, osg::Vec3f &, vec, + __void__getRotate__value_type_R1__Vec3f_R1, + "Return the angle and vector represented by the quaternion. ", + ""); + I_Method2(void, getRotate, IN, osg::Quat::value_type &, angle, IN, osg::Vec3d &, vec, + __void__getRotate__value_type_R1__Vec3d_R1, + "Return the angle and vector represented by the quaternion. ", + ""); + I_Method3(void, slerp, IN, osg::Quat::value_type, t, IN, const osg::Quat &, from, IN, const osg::Quat &, to, + __void__slerp__value_type__C5_Quat_R1__C5_Quat_R1, + "Spherical Linear Interpolation. ", + "As t goes from 0 to 1, the Quat object goes from \"from\" to \"to\". "); END_REFLECTOR diff --git a/src/osgWrappers/osg/Referenced.cpp b/src/osgWrappers/osg/Referenced.cpp index 3d82d8b8a..7b68455e3 100644 --- a/src/osgWrappers/osg/Referenced.cpp +++ b/src/osgWrappers/osg/Referenced.cpp @@ -22,28 +22,85 @@ #endif BEGIN_VALUE_REFLECTOR(osg::DeleteHandler) - I_Constructor0(); - I_Method0(void, flush); - I_Method1(void, doDelete, IN, const osg::Referenced *, object); - I_Method1(void, requestDelete, IN, const osg::Referenced *, object); + I_Constructor0(____DeleteHandler, + "", + ""); + I_Method0(void, flush, + __void__flush, + "flush any cache of objects that need to be deleted by doing an actual delete. ", + ""); + I_Method1(void, doDelete, IN, const osg::Referenced *, object, + __void__doDelete__C5_Referenced_P1, + "", + ""); + I_Method1(void, requestDelete, IN, const osg::Referenced *, object, + __void__requestDelete__C5_Referenced_P1, + "Request the deletion of an object. ", + "Depending on users implementation of DeleteHandler, the delete of the object may occur straight away or be delayed until doDelete is called. The default implementation does a delete straight away. "); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Referenced) - I_Constructor0(); - I_Constructor1(IN, bool, threadSafeRefUnref); - I_Constructor1(IN, const osg::Referenced &, x); - I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe); - I_Method0(bool, getThreadSafeRefUnref); - I_Method0(void, ref); - I_Method0(void, unref); - I_Method0(void, unref_nodelete); - I_Method0(int, referenceCount); - I_Method1(void, addObserver, IN, osg::Observer *, observer); - I_Method1(void, removeObserver, IN, osg::Observer *, observer); - I_StaticMethod1(void, setThreadSafeReferenceCounting, IN, bool, enableThreadSafeReferenceCounting); - I_StaticMethod0(bool, getThreadSafeReferenceCounting); - I_StaticMethod1(void, setDeleteHandler, IN, osg::DeleteHandler *, handler); - I_StaticMethod0(osg::DeleteHandler *, getDeleteHandler); - I_Property(bool, ThreadSafeRefUnref); + I_Constructor0(____Referenced, + "", + ""); + I_Constructor1(IN, bool, threadSafeRefUnref, + ____Referenced__bool, + "", + ""); + I_Constructor1(IN, const osg::Referenced &, x, + ____Referenced__C5_Referenced_R1, + "", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method0(bool, getThreadSafeRefUnref, + __bool__getThreadSafeRefUnref, + "Get whether a mutex is used to ensure ref() and unref() are thread safe. ", + ""); + I_Method0(void, ref, + __void__ref, + "Increment the reference count by one, indicating that this object has another pointer which is referencing it. ", + ""); + I_Method0(void, unref, + __void__unref, + "Decrement the reference count by one, indicating that a pointer to this object is referencing it. ", + "If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted. "); + I_Method0(void, unref_nodelete, + __void__unref_nodelete, + "Decrement the reference count by one, indicating that a pointer to this object is referencing it. ", + "However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be resonsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks. "); + I_Method0(int, referenceCount, + __int__referenceCount, + "Return the number pointers currently referencing this object. ", + ""); + I_Method1(void, addObserver, IN, osg::Observer *, observer, + __void__addObserver__Observer_P1, + "Add a Observer that is observering this object, notify the Observer when this object gets deleted. ", + ""); + I_Method1(void, removeObserver, IN, osg::Observer *, observer, + __void__removeObserver__Observer_P1, + "Add a Observer that is observering this object, notify the Observer when this object gets deleted. ", + ""); + I_StaticMethod1(void, setThreadSafeReferenceCounting, IN, bool, enableThreadSafeReferenceCounting, + __void__setThreadSafeReferenceCounting__bool_S, + "Set whether reference counting should be use a mutex to create thread reference counting. ", + ""); + I_StaticMethod0(bool, getThreadSafeReferenceCounting, + __bool__getThreadSafeReferenceCounting_S, + "Get whether reference counting is active. ", + ""); + I_StaticMethod1(void, setDeleteHandler, IN, osg::DeleteHandler *, handler, + __void__setDeleteHandler__DeleteHandler_P1_S, + "Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. ", + ""); + I_StaticMethod0(osg::DeleteHandler *, getDeleteHandler, + __DeleteHandler_P1__getDeleteHandler_S, + "Get a DeleteHandler. ", + ""); + I_SimpleProperty(bool, ThreadSafeRefUnref, + __bool__getThreadSafeRefUnref, + __void__setThreadSafeRefUnref__bool); END_REFLECTOR diff --git a/src/osgWrappers/osg/RenderInfo.cpp b/src/osgWrappers/osg/RenderInfo.cpp index afdb1e835..716a83d26 100644 --- a/src/osgWrappers/osg/RenderInfo.cpp +++ b/src/osgWrappers/osg/RenderInfo.cpp @@ -24,22 +24,68 @@ #endif BEGIN_VALUE_REFLECTOR(osg::RenderInfo) - I_Constructor0(); - I_Constructor1(IN, const osg::RenderInfo &, rhs); - I_Constructor2(IN, osg::State *, state, IN, osg::View *, view); - I_Method0(unsigned int, getContextID); - I_Method1(void, setState, IN, osg::State *, state); - I_Method0(osg::State *, getState); - I_Method0(const osg::State *, getState); - I_Method1(void, setView, IN, osg::View *, view); - I_Method0(osg::View *, getView); - I_Method0(const osg::View *, getView); - I_Method1(void, setUserData, IN, osg::Referenced *, userData); - I_Method0(osg::Referenced *, getUserData); - I_Method0(const osg::Referenced *, getUserData); - I_ReadOnlyProperty(unsigned int, ContextID); - I_Property(osg::State *, State); - I_Property(osg::Referenced *, UserData); - I_Property(osg::View *, View); + I_Constructor0(____RenderInfo, + "", + ""); + I_Constructor1(IN, const osg::RenderInfo &, rhs, + ____RenderInfo__C5_RenderInfo_R1, + "", + ""); + I_Constructor2(IN, osg::State *, state, IN, osg::View *, view, + ____RenderInfo__State_P1__View_P1, + "", + ""); + I_Method0(unsigned int, getContextID, + __unsigned_int__getContextID, + "", + ""); + I_Method1(void, setState, IN, osg::State *, state, + __void__setState__State_P1, + "", + ""); + I_Method0(osg::State *, getState, + __State_P1__getState, + "", + ""); + I_Method0(const osg::State *, getState, + __C5_State_P1__getState, + "", + ""); + I_Method1(void, setView, IN, osg::View *, view, + __void__setView__View_P1, + "", + ""); + I_Method0(osg::View *, getView, + __View_P1__getView, + "", + ""); + I_Method0(const osg::View *, getView, + __C5_View_P1__getView, + "", + ""); + I_Method1(void, setUserData, IN, osg::Referenced *, userData, + __void__setUserData__Referenced_P1, + "", + ""); + I_Method0(osg::Referenced *, getUserData, + __Referenced_P1__getUserData, + "", + ""); + I_Method0(const osg::Referenced *, getUserData, + __C5_Referenced_P1__getUserData, + "", + ""); + I_SimpleProperty(unsigned int, ContextID, + __unsigned_int__getContextID, + 0); + I_SimpleProperty(osg::State *, State, + __State_P1__getState, + __void__setState__State_P1); + I_SimpleProperty(osg::Referenced *, UserData, + __Referenced_P1__getUserData, + __void__setUserData__Referenced_P1); + I_SimpleProperty(osg::View *, View, + __View_P1__getView, + __void__setView__View_P1); END_REFLECTOR diff --git a/src/osgWrappers/osg/Scissor.cpp b/src/osgWrappers/osg/Scissor.cpp index 53a842d73..4975acf3d 100644 --- a/src/osgWrappers/osg/Scissor.cpp +++ b/src/osgWrappers/osg/Scissor.cpp @@ -26,28 +26,95 @@ BEGIN_OBJECT_REFLECTOR(osg::Scissor) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_Constructor4(IN, int, x, IN, int, y, IN, int, width, IN, int, height); - I_ConstructorWithDefaults2(IN, const osg::Scissor &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method4(void, setScissor, IN, int, x, IN, int, y, IN, int, width, IN, int, height); - I_Method4(void, getScissor, IN, int &, x, IN, int &, y, IN, int &, width, IN, int &, height); - I_Method0(int &, x); - I_Method0(int, x); - I_Method0(int &, y); - I_Method0(int, y); - I_Method0(int &, width); - I_Method0(int, width); - I_Method0(int &, height); - I_Method0(int, height); - I_Method1(void, apply, IN, osg::State &, state); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____Scissor, + "", + ""); + I_Constructor4(IN, int, x, IN, int, y, IN, int, width, IN, int, height, + ____Scissor__int__int__int__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Scissor &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Scissor__C5_Scissor_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method4(void, setScissor, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + __void__setScissor__int__int__int__int, + "", + ""); + I_Method4(void, getScissor, IN, int &, x, IN, int &, y, IN, int &, width, IN, int &, height, + __void__getScissor__int_R1__int_R1__int_R1__int_R1, + "", + ""); + I_Method0(int &, x, + __int_R1__x, + "", + ""); + I_Method0(int, x, + __int__x, + "", + ""); + I_Method0(int &, y, + __int_R1__y, + "", + ""); + I_Method0(int, y, + __int__y, + "", + ""); + I_Method0(int &, width, + __int_R1__width, + "", + ""); + I_Method0(int, width, + __int__width, + "", + ""); + I_Method0(int &, height, + __int_R1__height, + "", + ""); + I_Method0(int, height, + __int__height, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/Sequence.cpp b/src/osgWrappers/osg/Sequence.cpp index 835b84c0b..54df1ce34 100644 --- a/src/osgWrappers/osg/Sequence.cpp +++ b/src/osgWrappers/osg/Sequence.cpp @@ -37,28 +37,94 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Sequence) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Sequence &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method1(void, setValue, IN, int, value); - I_Method0(int, getValue); - I_Method2(void, setTime, IN, int, frame, IN, float, t); - I_Method1(float, getTime, IN, int, frame); - I_Method0(unsigned int, getNumFrames); - I_Method3(void, setInterval, IN, osg::Sequence::LoopMode, mode, IN, int, begin, IN, int, end); - I_Method3(void, getInterval, IN, osg::Sequence::LoopMode &, mode, IN, int &, begin, IN, int &, end); - I_MethodWithDefaults2(void, setDuration, IN, float, speed, , IN, int, nreps, -1); - I_Method2(void, getDuration, IN, float &, speed, IN, int &, nreps); - I_Method1(void, setMode, IN, osg::Sequence::SequenceMode, mode); - I_Method0(osg::Sequence::SequenceMode, getMode); - I_Property(osg::Sequence::SequenceMode, Mode); - I_IndexedProperty1(float, Time, int, frame); - I_Property(int, Value); + I_Constructor0(____Sequence, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Sequence &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Sequence__C5_Sequence_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(void, setValue, IN, int, value, + __void__setValue__int, + "", + ""); + I_Method0(int, getValue, + __int__getValue, + "", + ""); + I_Method2(void, setTime, IN, int, frame, IN, float, t, + __void__setTime__int__float, + "Set time in seconds for child. ", + ""); + I_Method1(float, getTime, IN, int, frame, + __float__getTime__int, + "Get time for child. ", + ""); + I_Method0(unsigned int, getNumFrames, + __unsigned_int__getNumFrames, + "Get number of frames. ", + ""); + I_Method3(void, setInterval, IN, osg::Sequence::LoopMode, mode, IN, int, begin, IN, int, end, + __void__setInterval__LoopMode__int__int, + "Set sequence mode & interval (range of children to be displayed). ", + ""); + I_Method3(void, getInterval, IN, osg::Sequence::LoopMode &, mode, IN, int &, begin, IN, int &, end, + __void__getInterval__LoopMode_R1__int_R1__int_R1, + "Get sequence mode & interval. ", + ""); + I_MethodWithDefaults2(void, setDuration, IN, float, speed, , IN, int, nreps, -1, + __void__setDuration__float__int, + "Set duration: speed-up & number of repeats. ", + ""); + I_Method2(void, getDuration, IN, float &, speed, IN, int &, nreps, + __void__getDuration__float_R1__int_R1, + "Get duration & number of repeats. ", + ""); + I_Method1(void, setMode, IN, osg::Sequence::SequenceMode, mode, + __void__setMode__SequenceMode, + "Set sequence mode. ", + "Start/stop & pause/resume. "); + I_Method0(osg::Sequence::SequenceMode, getMode, + __SequenceMode__getMode, + "Get sequence mode. ", + ""); + I_SimpleProperty(osg::Sequence::SequenceMode, Mode, + __SequenceMode__getMode, + __void__setMode__SequenceMode); + I_IndexedProperty(float, Time, + __float__getTime__int, + __void__setTime__int__float, + 0); + I_SimpleProperty(int, Value, + __int__getValue, + __void__setValue__int); END_REFLECTOR diff --git a/src/osgWrappers/osg/ShadeModel.cpp b/src/osgWrappers/osg/ShadeModel.cpp index a8f2e60ec..412001f05 100644 --- a/src/osgWrappers/osg/ShadeModel.cpp +++ b/src/osgWrappers/osg/ShadeModel.cpp @@ -31,19 +31,58 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::ShadeModel) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::ShadeModel &, sm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(void, setMode, IN, osg::ShadeModel::Mode, mode); - I_Method0(osg::ShadeModel::Mode, getMode); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(osg::ShadeModel::Mode, Mode); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____ShadeModel, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ShadeModel &, sm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadeModel__C5_ShadeModel_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setMode, IN, osg::ShadeModel::Mode, mode, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::ShadeModel::Mode, getMode, + __Mode__getMode, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(osg::ShadeModel::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/Shader.cpp b/src/osgWrappers/osg/Shader.cpp index 540266c7e..e8a5087e4 100644 --- a/src/osgWrappers/osg/Shader.cpp +++ b/src/osgWrappers/osg/Shader.cpp @@ -31,32 +31,110 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Shader) I_BaseType(osg::Object); - I_ConstructorWithDefaults1(IN, osg::Shader::Type, type, osg::Shader::UNDEFINED); - I_Constructor2(IN, osg::Shader::Type, type, IN, const std::string &, source); - I_ConstructorWithDefaults2(IN, const osg::Shader &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(int, compare, IN, const osg::Shader &, rhs); - I_Method1(bool, setType, IN, osg::Shader::Type, t); - I_Method1(void, setShaderSource, IN, const std::string &, sourceText); - I_Method1(bool, loadShaderSourceFromFile, IN, const std::string &, fileName); - I_Method0(const std::string &, getShaderSource); - I_Method0(osg::Shader::Type, getType); - I_Method0(const char *, getTypename); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); - I_Method0(void, dirtyShader); - I_Method1(void, compileShader, IN, unsigned int, contextID); - I_Method2(void, attachShader, IN, unsigned int, contextID, IN, GLuint, program); - I_Method2(bool, getGlShaderInfoLog, IN, unsigned int, contextID, IN, std::string &, log); - I_StaticMethod2(osg::Shader *, readShaderFile, IN, osg::Shader::Type, type, IN, const std::string &, fileName); - I_StaticMethod2(void, deleteGlShader, IN, unsigned int, contextID, IN, GLuint, shader); - I_StaticMethod3(void, flushDeletedGlShaders, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime); - I_StaticMethod1(osg::Shader::Type, getTypeId, IN, const std::string &, tname); - I_Property(const std::string &, ShaderSource); - I_PropertyWithReturnType(osg::Shader::Type, Type, bool); - I_ReadOnlyProperty(const char *, Typename); + I_ConstructorWithDefaults1(IN, osg::Shader::Type, type, osg::Shader::UNDEFINED, + ____Shader__Type, + "", + ""); + I_Constructor2(IN, osg::Shader::Type, type, IN, const std::string &, source, + ____Shader__Type__C5_std_string_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Shader &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Shader__C5_Shader_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(int, compare, IN, const osg::Shader &, rhs, + __int__compare__C5_Shader_R1, + "", + ""); + I_Method1(bool, setType, IN, osg::Shader::Type, t, + __bool__setType__Type, + "", + ""); + I_Method1(void, setShaderSource, IN, const std::string &, sourceText, + __void__setShaderSource__C5_std_string_R1, + "Load the Shader's source code text from a string. ", + ""); + I_Method1(bool, loadShaderSourceFromFile, IN, const std::string &, fileName, + __bool__loadShaderSourceFromFile__C5_std_string_R1, + "Load the Shader's source code text from a file. ", + ""); + I_Method0(const std::string &, getShaderSource, + __C5_std_string_R1__getShaderSource, + "Query the shader's source code text. ", + ""); + I_Method0(osg::Shader::Type, getType, + __Type__getType, + "Get the Shader type as an enum. ", + ""); + I_Method0(const char *, getTypename, + __C5_char_P1__getTypename, + "Get the Shader type as a descriptive string. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + __void__releaseGLObjects__osg_State_P1, + "release OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objects for all graphics context if State object pointer NULL. ", + ""); + I_Method0(void, dirtyShader, + __void__dirtyShader, + "Mark our PCSs as needing recompilation. ", + "Also mark Programs that depend on us as needing relink "); + I_Method1(void, compileShader, IN, unsigned int, contextID, + __void__compileShader__unsigned_int, + "If needed, compile the PCS's glShader. ", + ""); + I_Method2(void, attachShader, IN, unsigned int, contextID, IN, GLuint, program, + __void__attachShader__unsigned_int__GLuint, + "For a given GL context, attach a glShader to a glProgram. ", + ""); + I_Method2(bool, getGlShaderInfoLog, IN, unsigned int, contextID, IN, std::string &, log, + __bool__getGlShaderInfoLog__unsigned_int__std_string_R1, + "Query InfoLog from a glShader. ", + ""); + I_StaticMethod2(osg::Shader *, readShaderFile, IN, osg::Shader::Type, type, IN, const std::string &, fileName, + __Shader_P1__readShaderFile__Type__C5_std_string_R1_S, + "Read shader source from file and then constructor shader of specified type. ", + "Return the resulting Shader or 0 if no valid shader source code be read. "); + I_StaticMethod2(void, deleteGlShader, IN, unsigned int, contextID, IN, GLuint, shader, + __void__deleteGlShader__unsigned_int__GLuint_S, + "Mark internal glShader for deletion. ", + "Deletion requests are queued tuntil they can be executed in the proper GL context. "); + I_StaticMethod3(void, flushDeletedGlShaders, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedGlShaders__unsigned_int__double__double_R1_S, + "flush all the cached glShaders which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod1(osg::Shader::Type, getTypeId, IN, const std::string &, tname, + __Shader_Type__getTypeId__C5_std_string_R1_S, + "", + ""); + I_SimpleProperty(const std::string &, ShaderSource, + __C5_std_string_R1__getShaderSource, + __void__setShaderSource__C5_std_string_R1); + I_SimpleProperty(osg::Shader::Type, Type, + __Type__getType, + __bool__setType__Type); + I_SimpleProperty(const char *, Typename, + __C5_char_P1__getTypename, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/ShadowVolumeOccluder.cpp b/src/osgWrappers/osg/ShadowVolumeOccluder.cpp index 91fd0210b..46fa21388 100644 --- a/src/osgWrappers/osg/ShadowVolumeOccluder.cpp +++ b/src/osgWrappers/osg/ShadowVolumeOccluder.cpp @@ -31,29 +31,93 @@ TYPE_NAME_ALIAS(std::vector< osg::Polytope >, osg::ShadowVolumeOccluder::HoleList); BEGIN_VALUE_REFLECTOR(osg::ShadowVolumeOccluder) - I_Constructor1(IN, const osg::ShadowVolumeOccluder &, svo); - I_Constructor0(); - I_MethodWithDefaults4(bool, computeOccluder, IN, const osg::NodePath &, nodePath, , IN, const osg::ConvexPlanarOccluder &, occluder, , IN, osg::CullStack &, cullStack, , IN, bool, createDrawables, false); - I_Method0(void, disableResultMasks); - I_Method0(void, pushCurrentMask); - I_Method0(void, popCurrentMask); - I_Method1(bool, matchProjectionMatrix, IN, const osg::Matrix &, matrix); - I_Method1(void, setNodePath, IN, osg::NodePath &, nodePath); - I_Method0(osg::NodePath &, getNodePath); - I_Method0(const osg::NodePath &, getNodePath); - I_Method0(float, getVolume); - I_Method0(osg::Polytope &, getOccluder); - I_Method0(const osg::Polytope &, getOccluder); - I_Method0(osg::ShadowVolumeOccluder::HoleList &, getHoleList); - I_Method0(const osg::ShadowVolumeOccluder::HoleList &, getHoleList); - I_Method1(bool, contains, IN, const std::vector< osg::Vec3 > &, vertices); - I_Method1(bool, contains, IN, const osg::BoundingSphere &, bound); - I_Method1(bool, contains, IN, const osg::BoundingBox &, bound); - I_Method1(void, transformProvidingInverse, IN, const osg::Matrix &, matrix); - I_ReadOnlyProperty(osg::ShadowVolumeOccluder::HoleList &, HoleList); - I_Property(osg::NodePath &, NodePath); - I_ReadOnlyProperty(osg::Polytope &, Occluder); - I_ReadOnlyProperty(float, Volume); + I_Constructor1(IN, const osg::ShadowVolumeOccluder &, svo, + ____ShadowVolumeOccluder__C5_ShadowVolumeOccluder_R1, + "", + ""); + I_Constructor0(____ShadowVolumeOccluder, + "", + ""); + I_MethodWithDefaults4(bool, computeOccluder, IN, const osg::NodePath &, nodePath, , IN, const osg::ConvexPlanarOccluder &, occluder, , IN, osg::CullStack &, cullStack, , IN, bool, createDrawables, false, + __bool__computeOccluder__C5_NodePath_R1__C5_ConvexPlanarOccluder_R1__CullStack_R1__bool, + "compute the shadow volume occluder. ", + ""); + I_Method0(void, disableResultMasks, + __void__disableResultMasks, + "", + ""); + I_Method0(void, pushCurrentMask, + __void__pushCurrentMask, + "", + ""); + I_Method0(void, popCurrentMask, + __void__popCurrentMask, + "", + ""); + I_Method1(bool, matchProjectionMatrix, IN, const osg::Matrix &, matrix, + __bool__matchProjectionMatrix__C5_osg_Matrix_R1, + "return true if the matrix passed in matches the projection matrix that this ShadowVolumeOccluder is associated with. ", + ""); + I_Method1(void, setNodePath, IN, osg::NodePath &, nodePath, + __void__setNodePath__NodePath_R1, + "Set the NodePath which describes which node in the scene graph that this occluder is attached to. ", + ""); + I_Method0(osg::NodePath &, getNodePath, + __NodePath_R1__getNodePath, + "", + ""); + I_Method0(const osg::NodePath &, getNodePath, + __C5_NodePath_R1__getNodePath, + "", + ""); + I_Method0(float, getVolume, + __float__getVolume, + "get the volume of the occluder minus its holes, in eye coords, the volume is normalized by dividing by the volume of the view frustum in eye coords. ", + ""); + I_Method0(osg::Polytope &, getOccluder, + __Polytope_R1__getOccluder, + "return the occluder polytope. ", + ""); + I_Method0(const osg::Polytope &, getOccluder, + __C5_Polytope_R1__getOccluder, + "return the const occluder polytope. ", + ""); + I_Method0(osg::ShadowVolumeOccluder::HoleList &, getHoleList, + __HoleList_R1__getHoleList, + "return the list of holes. ", + ""); + I_Method0(const osg::ShadowVolumeOccluder::HoleList &, getHoleList, + __C5_HoleList_R1__getHoleList, + "return the const list of holes. ", + ""); + I_Method1(bool, contains, IN, const std::vector< osg::Vec3 > &, vertices, + __bool__contains__C5_std_vectorT1_Vec3__R1, + "return true if the specified vertex list is contained entirely within this shadow occluder volume. ", + ""); + I_Method1(bool, contains, IN, const osg::BoundingSphere &, bound, + __bool__contains__C5_BoundingSphere_R1, + "return true if the specified bounding sphere is contained entirely within this shadow occluder volume. ", + ""); + I_Method1(bool, contains, IN, const osg::BoundingBox &, bound, + __bool__contains__C5_BoundingBox_R1, + "return true if the specified bounding box is contained entirely within this shadow occluder volume. ", + ""); + I_Method1(void, transformProvidingInverse, IN, const osg::Matrix &, matrix, + __void__transformProvidingInverse__C5_osg_Matrix_R1, + "", + ""); + I_SimpleProperty(osg::ShadowVolumeOccluder::HoleList &, HoleList, + __HoleList_R1__getHoleList, + 0); + I_SimpleProperty(osg::NodePath &, NodePath, + __NodePath_R1__getNodePath, + __void__setNodePath__NodePath_R1); + I_SimpleProperty(osg::Polytope &, Occluder, + __Polytope_R1__getOccluder, + 0); + I_SimpleProperty(float, Volume, + __float__getVolume, + 0); END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osg::ShadowVolumeOccluder >, osg::ShadowVolumeOccluderList); diff --git a/src/osgWrappers/osg/Shape.cpp b/src/osgWrappers/osg/Shape.cpp index bcce80596..d96994408 100644 --- a/src/osgWrappers/osg/Shape.cpp +++ b/src/osgWrappers/osg/Shape.cpp @@ -29,322 +29,1061 @@ BEGIN_OBJECT_REFLECTOR(osg::Box) I_BaseType(osg::Shape); - I_Constructor0(); - I_Constructor2(IN, const osg::Vec3 &, center, IN, float, width); - I_Constructor4(IN, const osg::Vec3 &, center, IN, float, lengthX, IN, float, lengthY, IN, float, lengthZ); - I_ConstructorWithDefaults2(IN, const osg::Box &, box, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv); - I_Method0(bool, valid); - I_Method2(void, set, IN, const osg::Vec3 &, center, IN, const osg::Vec3 &, halfLengths); - I_Method1(void, setCenter, IN, const osg::Vec3 &, center); - I_Method0(const osg::Vec3 &, getCenter); - I_Method1(void, setHalfLengths, IN, const osg::Vec3 &, halfLengths); - I_Method0(const osg::Vec3 &, getHalfLengths); - I_Method1(void, setRotation, IN, const osg::Quat &, quat); - I_Method0(const osg::Quat &, getRotation); - I_Method0(osg::Matrix, computeRotationMatrix); - I_Method0(bool, zeroRotation); - I_Property(const osg::Vec3 &, Center); - I_Property(const osg::Vec3 &, HalfLengths); - I_Property(const osg::Quat &, Rotation); + I_Constructor0(____Box, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, center, IN, float, width, + ____Box__C5_osg_Vec3_R1__float, + "", + ""); + I_Constructor4(IN, const osg::Vec3 &, center, IN, float, lengthX, IN, float, lengthY, IN, float, lengthZ, + ____Box__C5_osg_Vec3_R1__float__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Box &, box, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Box__C5_Box_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the attribute's class type. ", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + __void__accept__osg_ShapeVisitor_R1, + "accept a non const shape visitor which can be used on non const shape objects. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + __void__accept__osg_ConstShapeVisitor_R1, + "accept a const shape visitor which can be used on const shape objects. ", + "Must be defined by derived classes. "); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method2(void, set, IN, const osg::Vec3 &, center, IN, const osg::Vec3 &, halfLengths, + __void__set__C5_Vec3_R1__C5_Vec3_R1, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setHalfLengths, IN, const osg::Vec3 &, halfLengths, + __void__setHalfLengths__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getHalfLengths, + __C5_Vec3_R1__getHalfLengths, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + __bool__zeroRotation, + "", + ""); + I_SimpleProperty(const osg::Vec3 &, Center, + __C5_Vec3_R1__getCenter, + __void__setCenter__C5_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, HalfLengths, + __C5_Vec3_R1__getHalfLengths, + __void__setHalfLengths__C5_Vec3_R1); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_Quat_R1__getRotation, + __void__setRotation__C5_Quat_R1); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Capsule) I_BaseType(osg::Shape); - I_Constructor0(); - I_Constructor3(IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height); - I_ConstructorWithDefaults2(IN, const osg::Capsule &, capsule, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv); - I_Method0(bool, valid); - I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height); - I_Method1(void, setCenter, IN, const osg::Vec3 &, center); - I_Method0(const osg::Vec3 &, getCenter); - I_Method1(void, setRadius, IN, float, radius); - I_Method0(float, getRadius); - I_Method1(void, setHeight, IN, float, height); - I_Method0(float, getHeight); - I_Method1(void, setRotation, IN, const osg::Quat &, quat); - I_Method0(const osg::Quat &, getRotation); - I_Method0(osg::Matrix, computeRotationMatrix); - I_Method0(bool, zeroRotation); - I_Property(const osg::Vec3 &, Center); - I_Property(float, Height); - I_Property(float, Radius); - I_Property(const osg::Quat &, Rotation); + I_Constructor0(____Capsule, + "", + ""); + I_Constructor3(IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + ____Capsule__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Capsule &, capsule, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Capsule__C5_Capsule_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the attribute's class type. ", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + __void__accept__osg_ShapeVisitor_R1, + "accept a non const shape visitor which can be used on non const shape objects. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + __void__accept__osg_ConstShapeVisitor_R1, + "accept a const shape visitor which can be used on const shape objects. ", + "Must be defined by derived classes. "); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + __void__set__C5_Vec3_R1__float__float, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + __float__getRadius, + "", + ""); + I_Method1(void, setHeight, IN, float, height, + __void__setHeight__float, + "", + ""); + I_Method0(float, getHeight, + __float__getHeight, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + __bool__zeroRotation, + "", + ""); + I_SimpleProperty(const osg::Vec3 &, Center, + __C5_Vec3_R1__getCenter, + __void__setCenter__C5_Vec3_R1); + I_SimpleProperty(float, Height, + __float__getHeight, + __void__setHeight__float); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_Quat_R1__getRotation, + __void__setRotation__C5_Quat_R1); END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Shape > >, osg::CompositeShape::ChildList); BEGIN_OBJECT_REFLECTOR(osg::CompositeShape) I_BaseType(osg::Shape); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::CompositeShape &, cs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv); - I_Method1(void, setShape, IN, osg::Shape *, shape); - I_Method0(osg::Shape *, getShape); - I_Method0(const osg::Shape *, getShape); - I_Method0(unsigned int, getNumChildren); - I_Method1(osg::Shape *, getChild, IN, unsigned int, i); - I_Method1(const osg::Shape *, getChild, IN, unsigned int, i); - I_Method1(void, addChild, IN, osg::Shape *, shape); - I_Method1(void, removeChild, IN, unsigned int, i); - I_Method1(unsigned int, findChildNo, IN, osg::Shape *, shape); - I_ArrayProperty_GA(osg::Shape *, Child, Children, unsigned int, void); - I_Property(osg::Shape *, Shape); + I_Constructor0(____CompositeShape, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::CompositeShape &, cs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CompositeShape__C5_CompositeShape_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the attribute's class type. ", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + __void__accept__osg_ShapeVisitor_R1, + "accept a non const shape visitor which can be used on non const shape objects. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + __void__accept__osg_ConstShapeVisitor_R1, + "accept a const shape visitor which can be used on const shape objects. ", + "Must be defined by derived classes. "); + I_Method1(void, setShape, IN, osg::Shape *, shape, + __void__setShape__Shape_P1, + "Set the shape that encloses all of the children. ", + ""); + I_Method0(osg::Shape *, getShape, + __Shape_P1__getShape, + "Get the shape that encloses all of the children. ", + ""); + I_Method0(const osg::Shape *, getShape, + __C5_Shape_P1__getShape, + "Get the const shape that encloses all of the children. ", + ""); + I_Method0(unsigned int, getNumChildren, + __unsigned_int__getNumChildren, + "Get the number of children of this composite shape. ", + ""); + I_Method1(osg::Shape *, getChild, IN, unsigned int, i, + __Shape_P1__getChild__unsigned_int, + "Get a child. ", + ""); + I_Method1(const osg::Shape *, getChild, IN, unsigned int, i, + __C5_Shape_P1__getChild__unsigned_int, + "Get a const child. ", + ""); + I_Method1(void, addChild, IN, osg::Shape *, shape, + __void__addChild__Shape_P1, + "Add a child to the list. ", + ""); + I_Method1(void, removeChild, IN, unsigned int, i, + __void__removeChild__unsigned_int, + "remove a child from the list. ", + ""); + I_Method1(unsigned int, findChildNo, IN, osg::Shape *, shape, + __unsigned_int__findChildNo__Shape_P1, + "find the index number of child, if child is not found then it returns getNumChildren(), so should be used in similar style to STL's result!=end(). ", + ""); + I_ArrayProperty(osg::Shape *, Child, + __Shape_P1__getChild__unsigned_int, + 0, + __unsigned_int__getNumChildren, + __void__addChild__Shape_P1, + 0, + __void__removeChild__unsigned_int); + I_SimpleProperty(osg::Shape *, Shape, + __Shape_P1__getShape, + __void__setShape__Shape_P1); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Cone) I_BaseType(osg::Shape); - I_Constructor0(); - I_Constructor3(IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height); - I_ConstructorWithDefaults2(IN, const osg::Cone &, cone, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv); - I_Method0(bool, valid); - I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height); - I_Method1(void, setCenter, IN, const osg::Vec3 &, center); - I_Method0(const osg::Vec3 &, getCenter); - I_Method1(void, setRadius, IN, float, radius); - I_Method0(float, getRadius); - I_Method1(void, setHeight, IN, float, height); - I_Method0(float, getHeight); - I_Method1(void, setRotation, IN, const osg::Quat &, quat); - I_Method0(const osg::Quat &, getRotation); - I_Method0(osg::Matrix, computeRotationMatrix); - I_Method0(bool, zeroRotation); - I_Method0(float, getBaseOffsetFactor); - I_Method0(float, getBaseOffset); - I_ReadOnlyProperty(float, BaseOffset); - I_ReadOnlyProperty(float, BaseOffsetFactor); - I_Property(const osg::Vec3 &, Center); - I_Property(float, Height); - I_Property(float, Radius); - I_Property(const osg::Quat &, Rotation); + I_Constructor0(____Cone, + "", + ""); + I_Constructor3(IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + ____Cone__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Cone &, cone, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Cone__C5_Cone_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the attribute's class type. ", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + __void__accept__osg_ShapeVisitor_R1, + "accept a non const shape visitor which can be used on non const shape objects. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + __void__accept__osg_ConstShapeVisitor_R1, + "accept a const shape visitor which can be used on const shape objects. ", + "Must be defined by derived classes. "); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + __void__set__C5_Vec3_R1__float__float, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + __float__getRadius, + "", + ""); + I_Method1(void, setHeight, IN, float, height, + __void__setHeight__float, + "", + ""); + I_Method0(float, getHeight, + __float__getHeight, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + __bool__zeroRotation, + "", + ""); + I_Method0(float, getBaseOffsetFactor, + __float__getBaseOffsetFactor, + "", + ""); + I_Method0(float, getBaseOffset, + __float__getBaseOffset, + "", + ""); + I_SimpleProperty(float, BaseOffset, + __float__getBaseOffset, + 0); + I_SimpleProperty(float, BaseOffsetFactor, + __float__getBaseOffsetFactor, + 0); + I_SimpleProperty(const osg::Vec3 &, Center, + __C5_Vec3_R1__getCenter, + __void__setCenter__C5_Vec3_R1); + I_SimpleProperty(float, Height, + __float__getHeight, + __void__setHeight__float); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_Quat_R1__getRotation, + __void__setRotation__C5_Quat_R1); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ConstShapeVisitor) - I_Constructor0(); - I_Method1(void, apply, IN, const osg::Sphere &, x); - I_Method1(void, apply, IN, const osg::Box &, x); - I_Method1(void, apply, IN, const osg::Cone &, x); - I_Method1(void, apply, IN, const osg::Cylinder &, x); - I_Method1(void, apply, IN, const osg::Capsule &, x); - I_Method1(void, apply, IN, const osg::InfinitePlane &, x); - I_Method1(void, apply, IN, const osg::TriangleMesh &, x); - I_Method1(void, apply, IN, const osg::ConvexHull &, x); - I_Method1(void, apply, IN, const osg::HeightField &, x); - I_Method1(void, apply, IN, const osg::CompositeShape &, x); + I_Constructor0(____ConstShapeVisitor, + "", + ""); + I_Method1(void, apply, IN, const osg::Sphere &, x, + __void__apply__C5_Sphere_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Box &, x, + __void__apply__C5_Box_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Cone &, x, + __void__apply__C5_Cone_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Cylinder &, x, + __void__apply__C5_Cylinder_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Capsule &, x, + __void__apply__C5_Capsule_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::InfinitePlane &, x, + __void__apply__C5_InfinitePlane_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::TriangleMesh &, x, + __void__apply__C5_TriangleMesh_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::ConvexHull &, x, + __void__apply__C5_ConvexHull_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::HeightField &, x, + __void__apply__C5_HeightField_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::CompositeShape &, x, + __void__apply__C5_CompositeShape_R1, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::ConvexHull) I_BaseType(osg::TriangleMesh); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::ConvexHull &, hull, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv); + I_Constructor0(____ConvexHull, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ConvexHull &, hull, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ConvexHull__C5_ConvexHull_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the attribute's class type. ", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + __void__accept__osg_ShapeVisitor_R1, + "accept a non const shape visitor which can be used on non const shape objects. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + __void__accept__osg_ConstShapeVisitor_R1, + "accept a const shape visitor which can be used on const shape objects. ", + "Must be defined by derived classes. "); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Cylinder) I_BaseType(osg::Shape); - I_Constructor0(); - I_Constructor3(IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height); - I_ConstructorWithDefaults2(IN, const osg::Cylinder &, cylinder, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv); - I_Method0(bool, valid); - I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height); - I_Method1(void, setCenter, IN, const osg::Vec3 &, center); - I_Method0(const osg::Vec3 &, getCenter); - I_Method1(void, setRadius, IN, float, radius); - I_Method0(float, getRadius); - I_Method1(void, setHeight, IN, float, height); - I_Method0(float, getHeight); - I_Method1(void, setRotation, IN, const osg::Quat &, quat); - I_Method0(const osg::Quat &, getRotation); - I_Method0(osg::Matrix, computeRotationMatrix); - I_Method0(bool, zeroRotation); - I_Property(const osg::Vec3 &, Center); - I_Property(float, Height); - I_Property(float, Radius); - I_Property(const osg::Quat &, Rotation); + I_Constructor0(____Cylinder, + "", + ""); + I_Constructor3(IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + ____Cylinder__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Cylinder &, cylinder, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Cylinder__C5_Cylinder_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the attribute's class type. ", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + __void__accept__osg_ShapeVisitor_R1, + "accept a non const shape visitor which can be used on non const shape objects. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + __void__accept__osg_ConstShapeVisitor_R1, + "accept a const shape visitor which can be used on const shape objects. ", + "Must be defined by derived classes. "); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + __void__set__C5_Vec3_R1__float__float, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + __float__getRadius, + "", + ""); + I_Method1(void, setHeight, IN, float, height, + __void__setHeight__float, + "", + ""); + I_Method0(float, getHeight, + __float__getHeight, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + __bool__zeroRotation, + "", + ""); + I_SimpleProperty(const osg::Vec3 &, Center, + __C5_Vec3_R1__getCenter, + __void__setCenter__C5_Vec3_R1); + I_SimpleProperty(float, Height, + __float__getHeight, + __void__setHeight__float); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_Quat_R1__getRotation, + __void__setRotation__C5_Quat_R1); END_REFLECTOR TYPE_NAME_ALIAS(std::vector< float >, osg::HeightField::HeightList); BEGIN_OBJECT_REFLECTOR(osg::HeightField) I_BaseType(osg::Shape); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::HeightField &, mesh, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv); - I_Method2(void, allocate, IN, unsigned int, numColumns, IN, unsigned int, numRows); - I_Method0(unsigned int, getNumColumns); - I_Method0(unsigned int, getNumRows); - I_Method1(void, setOrigin, IN, const osg::Vec3 &, origin); - I_Method0(const osg::Vec3 &, getOrigin); - I_Method1(void, setXInterval, IN, float, dx); - I_Method0(float, getXInterval); - I_Method1(void, setYInterval, IN, float, dy); - I_Method0(float, getYInterval); - I_Method1(void, setSkirtHeight, IN, float, skirtHeight); - I_Method0(float, getSkirtHeight); - I_Method1(void, setBorderWidth, IN, unsigned int, borderWidth); - I_Method0(unsigned int, getBorderWidth); - I_Method1(void, setRotation, IN, const osg::Quat &, quat); - I_Method0(const osg::Quat &, getRotation); - I_Method0(osg::Matrix, computeRotationMatrix); - I_Method0(bool, zeroRotation); - I_Method3(void, setHeight, IN, unsigned int, c, IN, unsigned int, r, IN, float, value); - I_Method2(float &, getHeight, IN, unsigned int, c, IN, unsigned int, r); - I_Method2(float, getHeight, IN, unsigned int, c, IN, unsigned int, r); - I_Method0(osg::HeightField::HeightList &, getHeightList); - I_Method0(const osg::HeightField::HeightList &, getHeightList); - I_Method2(osg::Vec3, getVertex, IN, unsigned int, c, IN, unsigned int, r); - I_Method2(osg::Vec3, getNormal, IN, unsigned int, c, IN, unsigned int, r); - I_Method2(osg::Vec2, getHeightDelta, IN, unsigned int, c, IN, unsigned int, r); - I_Property(unsigned int, BorderWidth); - I_IndexedProperty2(float, Height, unsigned int, c, unsigned int, r); - I_ReadOnlyProperty(osg::HeightField::HeightList &, HeightList); - I_Property(const osg::Vec3 &, Origin); - I_Property(const osg::Quat &, Rotation); - I_Property(float, SkirtHeight); - I_Property(float, XInterval); - I_Property(float, YInterval); + I_Constructor0(____HeightField, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::HeightField &, mesh, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____HeightField__C5_HeightField_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the attribute's class type. ", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + __void__accept__osg_ShapeVisitor_R1, + "accept a non const shape visitor which can be used on non const shape objects. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + __void__accept__osg_ConstShapeVisitor_R1, + "accept a const shape visitor which can be used on const shape objects. ", + "Must be defined by derived classes. "); + I_Method2(void, allocate, IN, unsigned int, numColumns, IN, unsigned int, numRows, + __void__allocate__unsigned_int__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumColumns, + __unsigned_int__getNumColumns, + "", + ""); + I_Method0(unsigned int, getNumRows, + __unsigned_int__getNumRows, + "", + ""); + I_Method1(void, setOrigin, IN, const osg::Vec3 &, origin, + __void__setOrigin__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getOrigin, + __C5_osg_Vec3_R1__getOrigin, + "", + ""); + I_Method1(void, setXInterval, IN, float, dx, + __void__setXInterval__float, + "", + ""); + I_Method0(float, getXInterval, + __float__getXInterval, + "", + ""); + I_Method1(void, setYInterval, IN, float, dy, + __void__setYInterval__float, + "", + ""); + I_Method0(float, getYInterval, + __float__getYInterval, + "", + ""); + I_Method1(void, setSkirtHeight, IN, float, skirtHeight, + __void__setSkirtHeight__float, + "Set the height of the skirt to render around the edge of HeightField. ", + "The skirt is used as a means of disguising edge boundaries between adjacent HeightField, particularly of ones with different resolutions. "); + I_Method0(float, getSkirtHeight, + __float__getSkirtHeight, + "Get the height of the skirt to render around the edge of HeightField. ", + ""); + I_Method1(void, setBorderWidth, IN, unsigned int, borderWidth, + __void__setBorderWidth__unsigned_int, + "Set the width in number of cells in from the edge that the height field should be rendered from. ", + "This exists to allow gradient and curvature continutity to be maintained between adjacent HeightField, where the border cells will overlap adjacent HeightField. "); + I_Method0(unsigned int, getBorderWidth, + __unsigned_int__getBorderWidth, + "Get the width in number of cells in from the edge that the height field should be rendered from. ", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + __bool__zeroRotation, + "", + ""); + I_Method3(void, setHeight, IN, unsigned int, c, IN, unsigned int, r, IN, float, value, + __void__setHeight__unsigned_int__unsigned_int__float, + "", + ""); + I_Method2(float &, getHeight, IN, unsigned int, c, IN, unsigned int, r, + __float_R1__getHeight__unsigned_int__unsigned_int, + "", + ""); + I_Method2(float, getHeight, IN, unsigned int, c, IN, unsigned int, r, + __float__getHeight__unsigned_int__unsigned_int, + "", + ""); + I_Method0(osg::HeightField::HeightList &, getHeightList, + __HeightList_R1__getHeightList, + "", + ""); + I_Method0(const osg::HeightField::HeightList &, getHeightList, + __C5_HeightList_R1__getHeightList, + "", + ""); + I_Method2(osg::Vec3, getVertex, IN, unsigned int, c, IN, unsigned int, r, + __Vec3__getVertex__unsigned_int__unsigned_int, + "", + ""); + I_Method2(osg::Vec3, getNormal, IN, unsigned int, c, IN, unsigned int, r, + __Vec3__getNormal__unsigned_int__unsigned_int, + "", + ""); + I_Method2(osg::Vec2, getHeightDelta, IN, unsigned int, c, IN, unsigned int, r, + __Vec2__getHeightDelta__unsigned_int__unsigned_int, + "", + ""); + I_SimpleProperty(unsigned int, BorderWidth, + __unsigned_int__getBorderWidth, + __void__setBorderWidth__unsigned_int); + I_IndexedProperty(float, Height, + __float__getHeight__unsigned_int__unsigned_int, + __void__setHeight__unsigned_int__unsigned_int__float, + 0); + I_SimpleProperty(osg::HeightField::HeightList &, HeightList, + __HeightList_R1__getHeightList, + 0); + I_SimpleProperty(const osg::Vec3 &, Origin, + __C5_osg_Vec3_R1__getOrigin, + __void__setOrigin__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_Quat_R1__getRotation, + __void__setRotation__C5_Quat_R1); + I_SimpleProperty(float, SkirtHeight, + __float__getSkirtHeight, + __void__setSkirtHeight__float); + I_SimpleProperty(float, XInterval, + __float__getXInterval, + __void__setXInterval__float); + I_SimpleProperty(float, YInterval, + __float__getYInterval, + __void__setYInterval__float); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::InfinitePlane) I_BaseType(osg::Shape); I_BaseType(osg::Plane); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::InfinitePlane &, plane, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv); + I_Constructor0(____InfinitePlane, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::InfinitePlane &, plane, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____InfinitePlane__C5_InfinitePlane_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the attribute's class type. ", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + __void__accept__osg_ShapeVisitor_R1, + "accept a non const shape visitor which can be used on non const shape objects. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + __void__accept__osg_ConstShapeVisitor_R1, + "accept a const shape visitor which can be used on const shape objects. ", + "Must be defined by derived classes. "); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Shape) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Shape &, sa, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, accept, IN, osg::ShapeVisitor &, x); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, x); + I_Constructor0(____Shape, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Shape &, sa, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Shape__C5_Shape_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the attribute's class type. ", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, x, + __void__accept__ShapeVisitor_R1, + "accept a non const shape visitor which can be used on non const shape objects. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, x, + __void__accept__ConstShapeVisitor_R1, + "accept a const shape visitor which can be used on const shape objects. ", + "Must be defined by derived classes. "); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ShapeVisitor) - I_Constructor0(); - I_Method1(void, apply, IN, osg::Sphere &, x); - I_Method1(void, apply, IN, osg::Box &, x); - I_Method1(void, apply, IN, osg::Cone &, x); - I_Method1(void, apply, IN, osg::Cylinder &, x); - I_Method1(void, apply, IN, osg::Capsule &, x); - I_Method1(void, apply, IN, osg::InfinitePlane &, x); - I_Method1(void, apply, IN, osg::TriangleMesh &, x); - I_Method1(void, apply, IN, osg::ConvexHull &, x); - I_Method1(void, apply, IN, osg::HeightField &, x); - I_Method1(void, apply, IN, osg::CompositeShape &, x); + I_Constructor0(____ShapeVisitor, + "", + ""); + I_Method1(void, apply, IN, osg::Sphere &, x, + __void__apply__Sphere_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Box &, x, + __void__apply__Box_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Cone &, x, + __void__apply__Cone_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Cylinder &, x, + __void__apply__Cylinder_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Capsule &, x, + __void__apply__Capsule_R1, + "", + ""); + I_Method1(void, apply, IN, osg::InfinitePlane &, x, + __void__apply__InfinitePlane_R1, + "", + ""); + I_Method1(void, apply, IN, osg::TriangleMesh &, x, + __void__apply__TriangleMesh_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ConvexHull &, x, + __void__apply__ConvexHull_R1, + "", + ""); + I_Method1(void, apply, IN, osg::HeightField &, x, + __void__apply__HeightField_R1, + "", + ""); + I_Method1(void, apply, IN, osg::CompositeShape &, x, + __void__apply__CompositeShape_R1, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Sphere) I_BaseType(osg::Shape); - I_Constructor0(); - I_Constructor2(IN, const osg::Vec3 &, center, IN, float, radius); - I_ConstructorWithDefaults2(IN, const osg::Sphere &, sphere, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv); - I_Method0(bool, valid); - I_Method2(void, set, IN, const osg::Vec3 &, center, IN, float, radius); - I_Method1(void, setCenter, IN, const osg::Vec3 &, center); - I_Method0(const osg::Vec3 &, getCenter); - I_Method1(void, setRadius, IN, float, radius); - I_Method0(float, getRadius); - I_Property(const osg::Vec3 &, Center); - I_Property(float, Radius); + I_Constructor0(____Sphere, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, center, IN, float, radius, + ____Sphere__C5_osg_Vec3_R1__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Sphere &, sphere, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Sphere__C5_Sphere_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the attribute's class type. ", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + __void__accept__osg_ShapeVisitor_R1, + "accept a non const shape visitor which can be used on non const shape objects. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + __void__accept__osg_ConstShapeVisitor_R1, + "accept a const shape visitor which can be used on const shape objects. ", + "Must be defined by derived classes. "); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method2(void, set, IN, const osg::Vec3 &, center, IN, float, radius, + __void__set__C5_Vec3_R1__float, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + __float__getRadius, + "", + ""); + I_SimpleProperty(const osg::Vec3 &, Center, + __C5_Vec3_R1__getCenter, + __void__setCenter__C5_Vec3_R1); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TriangleMesh) I_BaseType(osg::Shape); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TriangleMesh &, mesh, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv); - I_Method1(void, setVertices, IN, osg::Vec3Array *, vertices); - I_Method0(osg::Vec3Array *, getVertices); - I_Method0(const osg::Vec3Array *, getVertices); - I_Method1(void, setIndices, IN, osg::IndexArray *, indices); - I_Method0(osg::IndexArray *, getIndices); - I_Method0(const osg::IndexArray *, getIndices); - I_Property(osg::IndexArray *, Indices); - I_Property(osg::Vec3Array *, Vertices); + I_Constructor0(____TriangleMesh, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TriangleMesh &, mesh, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TriangleMesh__C5_TriangleMesh_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the attribute's class type. ", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + __void__accept__osg_ShapeVisitor_R1, + "accept a non const shape visitor which can be used on non const shape objects. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + __void__accept__osg_ConstShapeVisitor_R1, + "accept a const shape visitor which can be used on const shape objects. ", + "Must be defined by derived classes. "); + I_Method1(void, setVertices, IN, osg::Vec3Array *, vertices, + __void__setVertices__Vec3Array_P1, + "", + ""); + I_Method0(osg::Vec3Array *, getVertices, + __Vec3Array_P1__getVertices, + "", + ""); + I_Method0(const osg::Vec3Array *, getVertices, + __C5_Vec3Array_P1__getVertices, + "", + ""); + I_Method1(void, setIndices, IN, osg::IndexArray *, indices, + __void__setIndices__IndexArray_P1, + "", + ""); + I_Method0(osg::IndexArray *, getIndices, + __IndexArray_P1__getIndices, + "", + ""); + I_Method0(const osg::IndexArray *, getIndices, + __C5_IndexArray_P1__getIndices, + "", + ""); + I_SimpleProperty(osg::IndexArray *, Indices, + __IndexArray_P1__getIndices, + __void__setIndices__IndexArray_P1); + I_SimpleProperty(osg::Vec3Array *, Vertices, + __Vec3Array_P1__getVertices, + __void__setVertices__Vec3Array_P1); END_REFLECTOR TYPE_NAME_ALIAS(osg::HeightField, osg::Grid); BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Shape >) - I_Constructor0(); - I_Constructor1(IN, osg::Shape *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osg::Shape > &, rp); - I_Method0(osg::Shape *, get); - I_Method0(bool, valid); - I_Method0(osg::Shape *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osg::Shape > &, rp); - I_ReadOnlyProperty(osg::Shape *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Shape *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Shape > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Shape *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osg::Shape *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Shape > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Shape *, , + __T_P1__get, + 0); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< float >); diff --git a/src/osgWrappers/osg/ShapeDrawable.cpp b/src/osgWrappers/osg/ShapeDrawable.cpp index 5571622f9..b9ba80a5e 100644 --- a/src/osgWrappers/osg/ShapeDrawable.cpp +++ b/src/osgWrappers/osg/ShapeDrawable.cpp @@ -30,28 +30,91 @@ BEGIN_OBJECT_REFLECTOR(osg::ShapeDrawable) I_BaseType(osg::Drawable); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, osg::Shape *, shape, , IN, osg::TessellationHints *, hints, 0); - I_ConstructorWithDefaults2(IN, const osg::ShapeDrawable &, pg, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, setColor, IN, const osg::Vec4 &, color); - I_Method0(const osg::Vec4 &, getColor); - I_Method1(void, setTessellationHints, IN, osg::TessellationHints *, hints); - I_Method0(osg::TessellationHints *, getTessellationHints); - I_Method0(const osg::TessellationHints *, getTessellationHints); - I_Method1(void, drawImplementation, IN, osg::State &, state); - I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x); - I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x); - I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af); - I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf); - I_Method0(osg::BoundingBox, computeBound); - I_Property(const osg::Vec4 &, Color); - I_Property(osg::TessellationHints *, TessellationHints); + I_Constructor0(____ShapeDrawable, + "", + ""); + I_ConstructorWithDefaults2(IN, osg::Shape *, shape, , IN, osg::TessellationHints *, hints, 0, + ____ShapeDrawable__Shape_P1__TessellationHints_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ShapeDrawable &, pg, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShapeDrawable__C5_ShapeDrawable_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + __void__setColor__C5_Vec4_R1, + "Set the color of the shape. ", + ""); + I_Method0(const osg::Vec4 &, getColor, + __C5_Vec4_R1__getColor, + "Get the color of the shape. ", + ""); + I_Method1(void, setTessellationHints, IN, osg::TessellationHints *, hints, + __void__setTessellationHints__TessellationHints_P1, + "", + ""); + I_Method0(osg::TessellationHints *, getTessellationHints, + __TessellationHints_P1__getTessellationHints, + "", + ""); + I_Method0(const osg::TessellationHints *, getTessellationHints, + __C5_TessellationHints_P1__getTessellationHints, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + __void__drawImplementation__State_R1, + "Draw ShapeDrawable directly ignoring an OpenGL display list which could be attached. ", + "This is the internal draw method which does the drawing itself, and is the method to override when deriving from ShapeDrawable for user-drawn objects."); + I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, + __bool__supports__C5_AttributeFunctor_R1, + "Return false, osg::ShapeDrawable does not support accept(AttributeFunctor&). ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + __bool__supports__C5_ConstAttributeFunctor_R1, + "Return true, osg::ShapeDrawable does support accept(ConstAttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + __void__accept__ConstAttributeFunctor_R1, + "Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", + ""); + I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, + __bool__supports__C5_PrimitiveFunctor_R1, + "Return true, osg::ShapeDrawable does support accept(PrimitiveFunctor&) . ", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, + __void__accept__PrimitiveFunctor_R1, + "Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. ", + ""); + I_Method0(osg::BoundingBox, computeBound, + __BoundingBox__computeBound, + "Compute the bounding box around Drawables's geometry. ", + ""); + I_SimpleProperty(const osg::Vec4 &, Color, + __C5_Vec4_R1__getColor, + __void__setColor__C5_Vec4_R1); + I_SimpleProperty(osg::TessellationHints *, TessellationHints, + __TessellationHints_P1__getTessellationHints, + __void__setTessellationHints__TessellationHints_P1); END_REFLECTOR BEGIN_ENUM_REFLECTOR(osg::TessellationHints::TessellationMode) @@ -61,42 +124,142 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TessellationHints) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TessellationHints &, tess, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, setTessellationMode, IN, osg::TessellationHints::TessellationMode, mode); - I_Method0(osg::TessellationHints::TessellationMode, getTessellationMode); - I_Method1(void, setDetailRatio, IN, float, ratio); - I_Method0(float, getDetailRatio); - I_Method1(void, setTargetNumFaces, IN, unsigned int, target); - I_Method0(unsigned int, getTargetNumFaces); - I_Method1(void, setCreateFrontFace, IN, bool, on); - I_Method0(bool, getCreateFrontFace); - I_Method1(void, setCreateBackFace, IN, bool, on); - I_Method0(bool, getCreateBackFace); - I_Method1(void, setCreateNormals, IN, bool, on); - I_Method0(bool, getCreateNormals); - I_Method1(void, setCreateTextureCoords, IN, bool, on); - I_Method0(bool, getCreateTextureCoords); - I_Method1(void, setCreateTop, IN, bool, on); - I_Method0(bool, getCreateTop); - I_Method1(void, setCreateBody, IN, bool, on); - I_Method0(bool, getCreateBody); - I_Method1(void, setCreateBottom, IN, bool, on); - I_Method0(bool, getCreateBottom); - I_Property(bool, CreateBackFace); - I_Property(bool, CreateBody); - I_Property(bool, CreateBottom); - I_Property(bool, CreateFrontFace); - I_Property(bool, CreateNormals); - I_Property(bool, CreateTextureCoords); - I_Property(bool, CreateTop); - I_Property(float, DetailRatio); - I_Property(unsigned int, TargetNumFaces); - I_Property(osg::TessellationHints::TessellationMode, TessellationMode); + I_Constructor0(____TessellationHints, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TessellationHints &, tess, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TessellationHints__C5_TessellationHints_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setTessellationMode, IN, osg::TessellationHints::TessellationMode, mode, + __void__setTessellationMode__TessellationMode, + "", + ""); + I_Method0(osg::TessellationHints::TessellationMode, getTessellationMode, + __TessellationMode__getTessellationMode, + "", + ""); + I_Method1(void, setDetailRatio, IN, float, ratio, + __void__setDetailRatio__float, + "", + ""); + I_Method0(float, getDetailRatio, + __float__getDetailRatio, + "", + ""); + I_Method1(void, setTargetNumFaces, IN, unsigned int, target, + __void__setTargetNumFaces__unsigned_int, + "", + ""); + I_Method0(unsigned int, getTargetNumFaces, + __unsigned_int__getTargetNumFaces, + "", + ""); + I_Method1(void, setCreateFrontFace, IN, bool, on, + __void__setCreateFrontFace__bool, + "", + ""); + I_Method0(bool, getCreateFrontFace, + __bool__getCreateFrontFace, + "", + ""); + I_Method1(void, setCreateBackFace, IN, bool, on, + __void__setCreateBackFace__bool, + "", + ""); + I_Method0(bool, getCreateBackFace, + __bool__getCreateBackFace, + "", + ""); + I_Method1(void, setCreateNormals, IN, bool, on, + __void__setCreateNormals__bool, + "", + ""); + I_Method0(bool, getCreateNormals, + __bool__getCreateNormals, + "", + ""); + I_Method1(void, setCreateTextureCoords, IN, bool, on, + __void__setCreateTextureCoords__bool, + "", + ""); + I_Method0(bool, getCreateTextureCoords, + __bool__getCreateTextureCoords, + "", + ""); + I_Method1(void, setCreateTop, IN, bool, on, + __void__setCreateTop__bool, + "", + ""); + I_Method0(bool, getCreateTop, + __bool__getCreateTop, + "", + ""); + I_Method1(void, setCreateBody, IN, bool, on, + __void__setCreateBody__bool, + "", + ""); + I_Method0(bool, getCreateBody, + __bool__getCreateBody, + "", + ""); + I_Method1(void, setCreateBottom, IN, bool, on, + __void__setCreateBottom__bool, + "", + ""); + I_Method0(bool, getCreateBottom, + __bool__getCreateBottom, + "", + ""); + I_SimpleProperty(bool, CreateBackFace, + __bool__getCreateBackFace, + __void__setCreateBackFace__bool); + I_SimpleProperty(bool, CreateBody, + __bool__getCreateBody, + __void__setCreateBody__bool); + I_SimpleProperty(bool, CreateBottom, + __bool__getCreateBottom, + __void__setCreateBottom__bool); + I_SimpleProperty(bool, CreateFrontFace, + __bool__getCreateFrontFace, + __void__setCreateFrontFace__bool); + I_SimpleProperty(bool, CreateNormals, + __bool__getCreateNormals, + __void__setCreateNormals__bool); + I_SimpleProperty(bool, CreateTextureCoords, + __bool__getCreateTextureCoords, + __void__setCreateTextureCoords__bool); + I_SimpleProperty(bool, CreateTop, + __bool__getCreateTop, + __void__setCreateTop__bool); + I_SimpleProperty(float, DetailRatio, + __float__getDetailRatio, + __void__setDetailRatio__float); + I_SimpleProperty(unsigned int, TargetNumFaces, + __unsigned_int__getTargetNumFaces, + __void__setTargetNumFaces__unsigned_int); + I_SimpleProperty(osg::TessellationHints::TessellationMode, TessellationMode, + __TessellationMode__getTessellationMode, + __void__setTessellationMode__TessellationMode); END_REFLECTOR diff --git a/src/osgWrappers/osg/State.cpp b/src/osgWrappers/osg/State.cpp index f4eb6db69..35804671b 100644 --- a/src/osgWrappers/osg/State.cpp +++ b/src/osgWrappers/osg/State.cpp @@ -37,127 +37,475 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::State) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context); - I_Method0(osg::GraphicsContext *, getGraphicsContext); - I_Method0(const osg::GraphicsContext *, getGraphicsContext); - I_Method1(void, setContextID, IN, unsigned int, contextID); - I_Method0(unsigned int, getContextID); - I_Method1(void, pushStateSet, IN, const osg::StateSet *, dstate); - I_Method0(void, popStateSet); - I_Method0(void, popAllStateSets); - I_Method1(void, captureCurrentState, IN, osg::StateSet &, stateset); - I_Method0(void, reset); - I_Method0(const osg::Viewport *, getCurrentViewport); - I_Method1(void, setInitialViewMatrix, IN, const osg::RefMatrix *, matrix); - I_Method0(const osg::Matrix &, getInitialViewMatrix); - I_Method0(const osg::Matrix &, getInitialInverseViewMatrix); - I_Method1(void, applyProjectionMatrix, IN, const osg::RefMatrix *, matrix); - I_Method0(const osg::Matrix &, getProjectionMatrix); - I_Method1(void, applyModelViewMatrix, IN, const osg::RefMatrix *, matrix); - I_Method0(const osg::Matrix &, getModelViewMatrix); - I_Method0(osg::Polytope, getViewFrustum); - I_Method1(void, apply, IN, const osg::StateSet *, dstate); - I_Method0(void, apply); - I_Method2(void, setModeValidity, IN, osg::StateAttribute::GLMode, mode, IN, bool, valid); - I_Method1(bool, getModeValidity, IN, osg::StateAttribute::GLMode, mode); - I_Method2(void, setGlobalDefaultModeValue, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled); - I_Method1(bool, getGlobalDefaultModeValue, IN, osg::StateAttribute::GLMode, mode); - I_Method2(bool, applyMode, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled); - I_Method3(void, setGlobalDefaultTextureModeValue, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled); - I_Method2(bool, getGlobalDefaultTextureModeValue, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode); - I_Method3(bool, applyTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled); - I_Method1(void, setGlobalDefaultAttribute, IN, const osg::StateAttribute *, attribute); - I_MethodWithDefaults2(const osg::StateAttribute *, getGlobalDefaultAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0); - I_Method1(bool, applyAttribute, IN, const osg::StateAttribute *, attribute); - I_Method2(void, setGlobalDefaultTextureAttribute, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute); - I_MethodWithDefaults3(const osg::StateAttribute *, getGlobalDefaultTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0); - I_Method2(bool, applyTextureAttribute, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute); - I_Method2(void, haveAppliedMode, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value); - I_Method1(void, haveAppliedMode, IN, osg::StateAttribute::GLMode, mode); - I_Method1(void, haveAppliedAttribute, IN, const osg::StateAttribute *, attribute); - I_MethodWithDefaults2(void, haveAppliedAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0); - I_Method1(bool, getLastAppliedMode, IN, osg::StateAttribute::GLMode, mode); - I_MethodWithDefaults2(const osg::StateAttribute *, getLastAppliedAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0); - I_Method3(void, haveAppliedTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value); - I_Method2(void, haveAppliedTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode); - I_Method2(void, haveAppliedTextureAttribute, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute); - I_MethodWithDefaults3(void, haveAppliedTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0); - I_Method2(bool, getLastAppliedTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode); - I_MethodWithDefaults3(const osg::StateAttribute *, getLastAppliedTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0); - I_Method0(void, dirtyAllModes); - I_Method0(void, dirtyAllAttributes); - I_Method0(void, disableAllVertexArrays); - I_Method0(void, dirtyAllVertexArrays); - I_Method3(void, setInterleavedArrays, IN, GLenum, format, IN, GLsizei, stride, IN, const GLvoid *, pointer); - I_Method4(void, setVertexPointer, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr); - I_Method0(void, disableVertexPointer); - I_Method0(void, dirtyVertexPointer); - I_Method3(void, setNormalPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr); - I_Method0(void, disableNormalPointer); - I_Method0(void, dirtyNormalPointer); - I_Method4(void, setColorPointer, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr); - I_Method0(void, disableColorPointer); - I_Method0(void, dirtyColorPointer); - I_Method0(bool, isSecondaryColorSupported); - I_Method4(void, setSecondaryColorPointer, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr); - I_Method0(void, disableSecondaryColorPointer); - I_Method0(void, dirtySecondaryColorPointer); - I_Method3(void, setIndexPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr); - I_Method0(void, disableIndexPointer); - I_Method0(void, dirtyIndexPointer); - I_Method0(bool, isFogCoordSupported); - I_Method3(void, setFogCoordPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr); - I_Method0(void, disableFogCoordPointer); - I_Method0(void, dirtyFogCoordPointer); - I_Method5(void, setTexCoordPointer, IN, unsigned int, unit, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr); - I_Method1(void, disableTexCoordPointer, IN, unsigned int, unit); - I_Method1(void, dirtyTexCoordPointer, IN, unsigned int, unit); - I_Method1(void, disableTexCoordPointersAboveAndIncluding, IN, unsigned int, unit); - I_Method1(void, dirtyTexCoordPointersAboveAndIncluding, IN, unsigned int, unit); - I_Method1(bool, setActiveTextureUnit, IN, unsigned int, unit); - I_Method0(unsigned int, getActiveTextureUnit); - I_Method1(bool, setClientActiveTextureUnit, IN, unsigned int, unit); - I_Method0(unsigned int, getClientActiveTextureUnit); - I_Method6(void, setVertexAttribPointer, IN, unsigned int, index, IN, GLint, size, IN, GLenum, type, IN, GLboolean, normalized, IN, GLsizei, stride, IN, const GLvoid *, ptr); - I_Method1(void, disableVertexAttribPointer, IN, unsigned int, index); - I_Method1(void, disableVertexAttribPointersAboveAndIncluding, IN, unsigned int, index); - I_Method1(void, dirtyVertexAttribPointersAboveAndIncluding, IN, unsigned int, index); - I_Method0(bool, isVertexBufferObjectSupported); - I_Method1(void, setLastAppliedProgramObject, IN, const osg::Program::PerContextProgram *, program); - I_Method0(const osg::Program::PerContextProgram *, getLastAppliedProgramObject); - I_Method1(GLint, getUniformLocation, IN, const std::string &, name); - I_Method1(GLint, getAttribLocation, IN, const std::string &, name); - I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs); - I_Method0(const osg::FrameStamp *, getFrameStamp); - I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, vs); - I_Method0(const osg::DisplaySettings *, getDisplaySettings); - I_Method1(void, setAbortRenderingPtr, IN, bool *, abortPtr); - I_Method0(bool, getAbortRendering); - I_Method1(void, setCheckForGLErrors, IN, osg::State::CheckForGLErrors, check); - I_Method0(osg::State::CheckForGLErrors, getCheckForGLErrors); - I_Method1(bool, checkGLErrors, IN, const char *, str); - I_Method1(bool, checkGLErrors, IN, osg::StateAttribute::GLMode, mode); - I_Method1(bool, checkGLErrors, IN, const osg::StateAttribute *, attribute); - I_ReadOnlyProperty(bool, AbortRendering); - I_WriteOnlyProperty(bool *, AbortRenderingPtr); - I_PropertyWithReturnType(unsigned int, ActiveTextureUnit, bool); - I_Property(osg::State::CheckForGLErrors, CheckForGLErrors); - I_PropertyWithReturnType(unsigned int, ClientActiveTextureUnit, bool); - I_Property(unsigned int, ContextID); - I_ReadOnlyProperty(const osg::Viewport *, CurrentViewport); - I_WriteOnlyProperty(osg::DisplaySettings *, DisplaySettings); - I_WriteOnlyProperty(osg::FrameStamp *, FrameStamp); - I_WriteOnlyProperty(const osg::StateAttribute *, GlobalDefaultAttribute); - I_IndexedProperty1(bool, GlobalDefaultModeValue, osg::StateAttribute::GLMode, mode); - I_IndexedProperty2(bool, GlobalDefaultTextureModeValue, unsigned int, unit, osg::StateAttribute::GLMode, mode); - I_Property(osg::GraphicsContext *, GraphicsContext); - I_ReadOnlyProperty(const osg::Matrix &, InitialInverseViewMatrix); - I_WriteOnlyProperty(const osg::RefMatrix *, InitialViewMatrix); - I_Property(const osg::Program::PerContextProgram *, LastAppliedProgramObject); - I_IndexedProperty1(bool, ModeValidity, osg::StateAttribute::GLMode, mode); - I_ReadOnlyProperty(const osg::Matrix &, ModelViewMatrix); - I_ReadOnlyProperty(const osg::Matrix &, ProjectionMatrix); - I_ReadOnlyProperty(osg::Polytope, ViewFrustum); + I_Constructor0(____State, + "", + ""); + I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + __void__setGraphicsContext__GraphicsContext_P1, + "Set the graphics context associated with that owns this State object. ", + ""); + I_Method0(osg::GraphicsContext *, getGraphicsContext, + __GraphicsContext_P1__getGraphicsContext, + "Get the graphics context associated with that owns this State object. ", + ""); + I_Method0(const osg::GraphicsContext *, getGraphicsContext, + __C5_GraphicsContext_P1__getGraphicsContext, + "Get the const graphics context associated with that owns this State object. ", + ""); + I_Method1(void, setContextID, IN, unsigned int, contextID, + __void__setContextID__unsigned_int, + "Set the current OpenGL context uniqueID. ", + "Note, it is the application developers responsibility to set up unique ID for each OpenGL context. This value is then used by osg::StateAttribute's and osg::Drawable's to help manage OpenGL display list and texture binds appropriate for each context, the contextID simply acts as an index in local arrays that they maintain for the purpose. Typical settings for contextID are 0,1,2,3... up to the maximum number of graphics contexts you have set up. By default contextID is 0. "); + I_Method0(unsigned int, getContextID, + __unsigned_int__getContextID, + "Get the current OpenGL context unique ID. ", + ""); + I_Method1(void, pushStateSet, IN, const osg::StateSet *, dstate, + __void__pushStateSet__C5_StateSet_P1, + "Push stateset onto state stack. ", + ""); + I_Method0(void, popStateSet, + __void__popStateSet, + "Pop stateset off state stack. ", + ""); + I_Method0(void, popAllStateSets, + __void__popAllStateSets, + "pop all statesets off state stack, ensuring it is empty ready for the next frame. ", + "Note, to return OpenGL to default state, one should do any state.popAllStatSets(); state.apply(). "); + I_Method1(void, captureCurrentState, IN, osg::StateSet &, stateset, + __void__captureCurrentState__StateSet_R1, + "Copy the modes and attributes which capture the current state. ", + ""); + I_Method0(void, reset, + __void__reset, + "reset the state object to an empty stack. ", + ""); + I_Method0(const osg::Viewport *, getCurrentViewport, + __C5_Viewport_P1__getCurrentViewport, + "", + ""); + I_Method1(void, setInitialViewMatrix, IN, const osg::RefMatrix *, matrix, + __void__setInitialViewMatrix__C5_osg_RefMatrix_P1, + "", + ""); + I_Method0(const osg::Matrix &, getInitialViewMatrix, + __C5_osg_Matrix_R1__getInitialViewMatrix, + "", + ""); + I_Method0(const osg::Matrix &, getInitialInverseViewMatrix, + __C5_osg_Matrix_R1__getInitialInverseViewMatrix, + "", + ""); + I_Method1(void, applyProjectionMatrix, IN, const osg::RefMatrix *, matrix, + __void__applyProjectionMatrix__C5_osg_RefMatrix_P1, + "", + ""); + I_Method0(const osg::Matrix &, getProjectionMatrix, + __C5_osg_Matrix_R1__getProjectionMatrix, + "", + ""); + I_Method1(void, applyModelViewMatrix, IN, const osg::RefMatrix *, matrix, + __void__applyModelViewMatrix__C5_osg_RefMatrix_P1, + "", + ""); + I_Method0(const osg::Matrix &, getModelViewMatrix, + __C5_osg_Matrix_R1__getModelViewMatrix, + "", + ""); + I_Method0(osg::Polytope, getViewFrustum, + __Polytope__getViewFrustum, + "", + ""); + I_Method1(void, apply, IN, const osg::StateSet *, dstate, + __void__apply__C5_StateSet_P1, + "Apply stateset. ", + ""); + I_Method0(void, apply, + __void__apply, + "Updates the OpenGL state so that it matches the StateSet at the top of the stack of StateSets maintained internally by a State. ", + ""); + I_Method2(void, setModeValidity, IN, osg::StateAttribute::GLMode, mode, IN, bool, valid, + __void__setModeValidity__StateAttribute_GLMode__bool, + "Set whether a particular OpenGL mode is valid in the current graphics context. ", + "Use to disable OpenGL modes that are not supported by current graphics drivers/context. "); + I_Method1(bool, getModeValidity, IN, osg::StateAttribute::GLMode, mode, + __bool__getModeValidity__StateAttribute_GLMode, + "Get whether a particular OpenGL mode is valid in the current graphics context. ", + "Use to disable OpenGL modes that are not supported by current graphics drivers/context. "); + I_Method2(void, setGlobalDefaultModeValue, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled, + __void__setGlobalDefaultModeValue__StateAttribute_GLMode__bool, + "", + ""); + I_Method1(bool, getGlobalDefaultModeValue, IN, osg::StateAttribute::GLMode, mode, + __bool__getGlobalDefaultModeValue__StateAttribute_GLMode, + "", + ""); + I_Method2(bool, applyMode, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled, + __bool__applyMode__StateAttribute_GLMode__bool, + "Apply an OpenGL mode if required. ", + "This is a wrapper around glEnable() and glDisable(), that just actually calls these functions if the enabled flag is different than the current state. true if the state was actually changed. false otherwise. Notice that a false return does not indicate an error, it just means that the mode was already set to the same value as the enabled parameter. "); + I_Method3(void, setGlobalDefaultTextureModeValue, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled, + __void__setGlobalDefaultTextureModeValue__unsigned_int__StateAttribute_GLMode__bool, + "", + ""); + I_Method2(bool, getGlobalDefaultTextureModeValue, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + __bool__getGlobalDefaultTextureModeValue__unsigned_int__StateAttribute_GLMode, + "", + ""); + I_Method3(bool, applyTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled, + __bool__applyTextureMode__unsigned_int__StateAttribute_GLMode__bool, + "", + ""); + I_Method1(void, setGlobalDefaultAttribute, IN, const osg::StateAttribute *, attribute, + __void__setGlobalDefaultAttribute__C5_StateAttribute_P1, + "", + ""); + I_MethodWithDefaults2(const osg::StateAttribute *, getGlobalDefaultAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + __C5_StateAttribute_P1__getGlobalDefaultAttribute__StateAttribute_Type__unsigned_int, + "", + ""); + I_Method1(bool, applyAttribute, IN, const osg::StateAttribute *, attribute, + __bool__applyAttribute__C5_StateAttribute_P1, + "Apply an attribute if required. ", + ""); + I_Method2(void, setGlobalDefaultTextureAttribute, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, + __void__setGlobalDefaultTextureAttribute__unsigned_int__C5_StateAttribute_P1, + "", + ""); + I_MethodWithDefaults3(const osg::StateAttribute *, getGlobalDefaultTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + __C5_StateAttribute_P1__getGlobalDefaultTextureAttribute__unsigned_int__StateAttribute_Type__unsigned_int, + "", + ""); + I_Method2(bool, applyTextureAttribute, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, + __bool__applyTextureAttribute__unsigned_int__C5_StateAttribute_P1, + "", + ""); + I_Method2(void, haveAppliedMode, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + __void__haveAppliedMode__StateAttribute_GLMode__StateAttribute_GLModeValue, + "Mode has been set externally, update state to reflect this setting. ", + ""); + I_Method1(void, haveAppliedMode, IN, osg::StateAttribute::GLMode, mode, + __void__haveAppliedMode__StateAttribute_GLMode, + "Mode has been set externally, therefore dirty the associated mode in osg::State so it is applied on next call to osg::State::apply(. ", + ".) "); + I_Method1(void, haveAppliedAttribute, IN, const osg::StateAttribute *, attribute, + __void__haveAppliedAttribute__C5_StateAttribute_P1, + "Attribute has been applied externally, update state to reflect this setting. ", + ""); + I_MethodWithDefaults2(void, haveAppliedAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + __void__haveAppliedAttribute__StateAttribute_Type__unsigned_int, + "Attribute has been applied externally, and therefore this attribute type has been dirtied and will need to be re-applied on next osg::State.apply(. ", + ".). note, if you have an osg::StateAttribute which you have applied externally then use the have_applied(attribute) method as this will cause the osg::State to track the current state more accurately and enable lazy state updating such that only changed state will be applied. "); + I_Method1(bool, getLastAppliedMode, IN, osg::StateAttribute::GLMode, mode, + __bool__getLastAppliedMode__StateAttribute_GLMode, + "Get whether the current specified mode is enabled (true) or disabled (false). ", + ""); + I_MethodWithDefaults2(const osg::StateAttribute *, getLastAppliedAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + __C5_StateAttribute_P1__getLastAppliedAttribute__StateAttribute_Type__unsigned_int, + "Get the current specified attribute, return NULL if one has not yet been applied. ", + ""); + I_Method3(void, haveAppliedTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + __void__haveAppliedTextureMode__unsigned_int__StateAttribute_GLMode__StateAttribute_GLModeValue, + "texture Mode has been set externally, update state to reflect this setting. ", + ""); + I_Method2(void, haveAppliedTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + __void__haveAppliedTextureMode__unsigned_int__StateAttribute_GLMode, + "texture Mode has been set externally, therefore dirty the associated mode in osg::State so it is applied on next call to osg::State::apply(. ", + ".) "); + I_Method2(void, haveAppliedTextureAttribute, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, + __void__haveAppliedTextureAttribute__unsigned_int__C5_StateAttribute_P1, + "texture Attribute has been applied externally, update state to reflect this setting. ", + ""); + I_MethodWithDefaults3(void, haveAppliedTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + __void__haveAppliedTextureAttribute__unsigned_int__StateAttribute_Type__unsigned_int, + "texture Attribute has been applied externally, and therefore this attribute type has been dirtied and will need to be re-appplied on next osg::State.apply(. ", + ".). note, if you have an osg::StateAttribute which you have applied externally then use the have_applied(attribute) method as this will the osg::State to track the current state more accurately and enable lazy state updating such that only changed state will be applied. "); + I_Method2(bool, getLastAppliedTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + __bool__getLastAppliedTextureMode__unsigned_int__StateAttribute_GLMode, + "Get whether the current specified texture mode is enabled (true) or disabled (false). ", + ""); + I_MethodWithDefaults3(const osg::StateAttribute *, getLastAppliedTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + __C5_StateAttribute_P1__getLastAppliedTextureAttribute__unsigned_int__StateAttribute_Type__unsigned_int, + "Get the current specified texture attribute, return NULL if one has not yet been applied. ", + ""); + I_Method0(void, dirtyAllModes, + __void__dirtyAllModes, + "Dirty the modes previously applied in osg::State. ", + ""); + I_Method0(void, dirtyAllAttributes, + __void__dirtyAllAttributes, + "Dirty the modes attributes previously applied in osg::State. ", + ""); + I_Method0(void, disableAllVertexArrays, + __void__disableAllVertexArrays, + "disable the vertex, normal, color, tex coords, secondary color, fog coord and index arrays. ", + ""); + I_Method0(void, dirtyAllVertexArrays, + __void__dirtyAllVertexArrays, + "dirty the vertex, normal, color, tex coords, secondary color, fog coord and index arrays. ", + ""); + I_Method3(void, setInterleavedArrays, IN, GLenum, format, IN, GLsizei, stride, IN, const GLvoid *, pointer, + __void__setInterleavedArrays__GLenum__GLsizei__C5_GLvoid_P1, + "Wrapper around glInterleavedArrays(. ", + ".). also resets the internal array points and modes within osg::State to keep the other vertex array operations consistent. "); + I_Method4(void, setVertexPointer, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + __void__setVertexPointer__GLint__GLenum__GLsizei__C5_GLvoid_P1, + "wrapper around glEnableClientState(GL_VERTEX_ARRAY);glVertexPointer(. ", + ".); note, only updates values that change. "); + I_Method0(void, disableVertexPointer, + __void__disableVertexPointer, + "wrapper around glDisableClientState(GL_VERTEX_ARRAY). ", + "note, only updates values that change. "); + I_Method0(void, dirtyVertexPointer, + __void__dirtyVertexPointer, + "", + ""); + I_Method3(void, setNormalPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + __void__setNormalPointer__GLenum__GLsizei__C5_GLvoid_P1, + "wrapper around glEnableClientState(GL_NORMAL_ARRAY);glNormalPointer(. ", + ".); note, only updates values that change. "); + I_Method0(void, disableNormalPointer, + __void__disableNormalPointer, + "wrapper around glDisableClientState(GL_NORMAL_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyNormalPointer, + __void__dirtyNormalPointer, + "", + ""); + I_Method4(void, setColorPointer, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + __void__setColorPointer__GLint__GLenum__GLsizei__C5_GLvoid_P1, + "wrapper around glEnableClientState(GL_COLOR_ARRAY);glColorPointer(. ", + ".); note, only updates values that change. "); + I_Method0(void, disableColorPointer, + __void__disableColorPointer, + "wrapper around glDisableClientState(GL_COLOR_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyColorPointer, + __void__dirtyColorPointer, + "", + ""); + I_Method0(bool, isSecondaryColorSupported, + __bool__isSecondaryColorSupported, + "", + ""); + I_Method4(void, setSecondaryColorPointer, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + __void__setSecondaryColorPointer__GLint__GLenum__GLsizei__C5_GLvoid_P1, + "wrapper around glEnableClientState(GL_SECONDARY_COLOR_ARRAY);glSecondayColorPointer(. ", + ".); note, only updates values that change. "); + I_Method0(void, disableSecondaryColorPointer, + __void__disableSecondaryColorPointer, + "wrapper around glDisableClientState(GL_SECONDARY_COLOR_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtySecondaryColorPointer, + __void__dirtySecondaryColorPointer, + "", + ""); + I_Method3(void, setIndexPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + __void__setIndexPointer__GLenum__GLsizei__C5_GLvoid_P1, + "wrapper around glEnableClientState(GL_INDEX_ARRAY);glIndexPointer(. ", + ".); note, only updates values that change. "); + I_Method0(void, disableIndexPointer, + __void__disableIndexPointer, + "wrapper around glDisableClientState(GL_INDEX_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyIndexPointer, + __void__dirtyIndexPointer, + "", + ""); + I_Method0(bool, isFogCoordSupported, + __bool__isFogCoordSupported, + "", + ""); + I_Method3(void, setFogCoordPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + __void__setFogCoordPointer__GLenum__GLsizei__C5_GLvoid_P1, + "wrapper around glEnableClientState(GL_FOG_COORDINATE_ARRAY);glFogCoordPointer(. ", + ".); note, only updates values that change. "); + I_Method0(void, disableFogCoordPointer, + __void__disableFogCoordPointer, + "wrapper around glDisableClientState(GL_FOG_COORDINATE_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyFogCoordPointer, + __void__dirtyFogCoordPointer, + "", + ""); + I_Method5(void, setTexCoordPointer, IN, unsigned int, unit, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + __void__setTexCoordPointer__unsigned_int__GLint__GLenum__GLsizei__C5_GLvoid_P1, + "wrapper around glEnableClientState(GL_TEXTURE_COORD_ARRAY);glTexCoordPointer(. ", + ".); note, only updates values that change. "); + I_Method1(void, disableTexCoordPointer, IN, unsigned int, unit, + __void__disableTexCoordPointer__unsigned_int, + "wrapper around glDisableClientState(GL_TEXTURE_COORD_ARRAY); note, only updates values that change. ", + ""); + I_Method1(void, dirtyTexCoordPointer, IN, unsigned int, unit, + __void__dirtyTexCoordPointer__unsigned_int, + "", + ""); + I_Method1(void, disableTexCoordPointersAboveAndIncluding, IN, unsigned int, unit, + __void__disableTexCoordPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method1(void, dirtyTexCoordPointersAboveAndIncluding, IN, unsigned int, unit, + __void__dirtyTexCoordPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method1(bool, setActiveTextureUnit, IN, unsigned int, unit, + __bool__setActiveTextureUnit__unsigned_int, + "Set the current texture unit, return true if selected, false if selection failed such as when multitexturing is not supported. ", + "note, only updates values that change. "); + I_Method0(unsigned int, getActiveTextureUnit, + __unsigned_int__getActiveTextureUnit, + "Get the current texture unit. ", + ""); + I_Method1(bool, setClientActiveTextureUnit, IN, unsigned int, unit, + __bool__setClientActiveTextureUnit__unsigned_int, + "Set the current tex coord array texture unit, return true if selected, false if selection failed such as when multitexturing is not supported. ", + "note, only updates values that change. "); + I_Method0(unsigned int, getClientActiveTextureUnit, + __unsigned_int__getClientActiveTextureUnit, + "Get the current tex coord array texture unit. ", + ""); + I_Method6(void, setVertexAttribPointer, IN, unsigned int, index, IN, GLint, size, IN, GLenum, type, IN, GLboolean, normalized, IN, GLsizei, stride, IN, const GLvoid *, ptr, + __void__setVertexAttribPointer__unsigned_int__GLint__GLenum__GLboolean__GLsizei__C5_GLvoid_P1, + "wrapper around glEnableVertexAttribArrayARB(index);glVertexAttribPointerARB(. ", + ".); note, only updates values that change. "); + I_Method1(void, disableVertexAttribPointer, IN, unsigned int, index, + __void__disableVertexAttribPointer__unsigned_int, + "wrapper around DisableVertexAttribArrayARB(index); note, only updates values that change. ", + ""); + I_Method1(void, disableVertexAttribPointersAboveAndIncluding, IN, unsigned int, index, + __void__disableVertexAttribPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method1(void, dirtyVertexAttribPointersAboveAndIncluding, IN, unsigned int, index, + __void__dirtyVertexAttribPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method0(bool, isVertexBufferObjectSupported, + __bool__isVertexBufferObjectSupported, + "", + ""); + I_Method1(void, setLastAppliedProgramObject, IN, const osg::Program::PerContextProgram *, program, + __void__setLastAppliedProgramObject__C5_Program_PerContextProgram_P1, + "", + ""); + I_Method0(const osg::Program::PerContextProgram *, getLastAppliedProgramObject, + __C5_Program_PerContextProgram_P1__getLastAppliedProgramObject, + "", + ""); + I_Method1(GLint, getUniformLocation, IN, const std::string &, name, + __GLint__getUniformLocation__C5_std_string_R1, + "", + ""); + I_Method1(GLint, getAttribLocation, IN, const std::string &, name, + __GLint__getAttribLocation__C5_std_string_R1, + "", + ""); + I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs, + __void__setFrameStamp__FrameStamp_P1, + "Set the frame stamp for the current frame. ", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + __C5_FrameStamp_P1__getFrameStamp, + "Get the frame stamp for the current frame. ", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, vs, + __void__setDisplaySettings__DisplaySettings_P1, + "Set the DisplaySettings. ", + "Note, nothing is applied, the visual settings are just used in the State object to pass the current visual settings to Drawables during rendering. "); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + __C5_DisplaySettings_P1__getDisplaySettings, + "Get the DisplaySettings. ", + ""); + I_Method1(void, setAbortRenderingPtr, IN, bool *, abortPtr, + __void__setAbortRenderingPtr__bool_P1, + "Set flag for early termination of the draw traversal. ", + ""); + I_Method0(bool, getAbortRendering, + __bool__getAbortRendering, + "Get flag for early termination of the draw traversal, if true steps should be taken to complete rendering early. ", + ""); + I_Method1(void, setCheckForGLErrors, IN, osg::State::CheckForGLErrors, check, + __void__setCheckForGLErrors__CheckForGLErrors, + "Set whether and how often OpenGL errors should be checked for. ", + ""); + I_Method0(osg::State::CheckForGLErrors, getCheckForGLErrors, + __CheckForGLErrors__getCheckForGLErrors, + "Get whether and how often OpenGL errors should be checked for. ", + ""); + I_Method1(bool, checkGLErrors, IN, const char *, str, + __bool__checkGLErrors__C5_char_P1, + "", + ""); + I_Method1(bool, checkGLErrors, IN, osg::StateAttribute::GLMode, mode, + __bool__checkGLErrors__StateAttribute_GLMode, + "", + ""); + I_Method1(bool, checkGLErrors, IN, const osg::StateAttribute *, attribute, + __bool__checkGLErrors__C5_StateAttribute_P1, + "", + ""); + I_SimpleProperty(bool, AbortRendering, + __bool__getAbortRendering, + 0); + I_SimpleProperty(bool *, AbortRenderingPtr, + 0, + __void__setAbortRenderingPtr__bool_P1); + I_SimpleProperty(unsigned int, ActiveTextureUnit, + __unsigned_int__getActiveTextureUnit, + __bool__setActiveTextureUnit__unsigned_int); + I_SimpleProperty(osg::State::CheckForGLErrors, CheckForGLErrors, + __CheckForGLErrors__getCheckForGLErrors, + __void__setCheckForGLErrors__CheckForGLErrors); + I_SimpleProperty(unsigned int, ClientActiveTextureUnit, + __unsigned_int__getClientActiveTextureUnit, + __bool__setClientActiveTextureUnit__unsigned_int); + I_SimpleProperty(unsigned int, ContextID, + __unsigned_int__getContextID, + __void__setContextID__unsigned_int); + I_SimpleProperty(const osg::Viewport *, CurrentViewport, + __C5_Viewport_P1__getCurrentViewport, + 0); + I_SimpleProperty(osg::DisplaySettings *, DisplaySettings, + 0, + __void__setDisplaySettings__DisplaySettings_P1); + I_SimpleProperty(osg::FrameStamp *, FrameStamp, + 0, + __void__setFrameStamp__FrameStamp_P1); + I_SimpleProperty(const osg::StateAttribute *, GlobalDefaultAttribute, + 0, + __void__setGlobalDefaultAttribute__C5_StateAttribute_P1); + I_IndexedProperty(bool, GlobalDefaultModeValue, + __bool__getGlobalDefaultModeValue__StateAttribute_GLMode, + __void__setGlobalDefaultModeValue__StateAttribute_GLMode__bool, + 0); + I_IndexedProperty(bool, GlobalDefaultTextureModeValue, + __bool__getGlobalDefaultTextureModeValue__unsigned_int__StateAttribute_GLMode, + __void__setGlobalDefaultTextureModeValue__unsigned_int__StateAttribute_GLMode__bool, + 0); + I_SimpleProperty(osg::GraphicsContext *, GraphicsContext, + __GraphicsContext_P1__getGraphicsContext, + __void__setGraphicsContext__GraphicsContext_P1); + I_SimpleProperty(const osg::Matrix &, InitialInverseViewMatrix, + __C5_osg_Matrix_R1__getInitialInverseViewMatrix, + 0); + I_SimpleProperty(const osg::RefMatrix *, InitialViewMatrix, + 0, + __void__setInitialViewMatrix__C5_osg_RefMatrix_P1); + I_SimpleProperty(const osg::Program::PerContextProgram *, LastAppliedProgramObject, + __C5_Program_PerContextProgram_P1__getLastAppliedProgramObject, + __void__setLastAppliedProgramObject__C5_Program_PerContextProgram_P1); + I_IndexedProperty(bool, ModeValidity, + __bool__getModeValidity__StateAttribute_GLMode, + __void__setModeValidity__StateAttribute_GLMode__bool, + 0); + I_SimpleProperty(const osg::Matrix &, ModelViewMatrix, + __C5_osg_Matrix_R1__getModelViewMatrix, + 0); + I_SimpleProperty(const osg::Matrix &, ProjectionMatrix, + __C5_osg_Matrix_R1__getProjectionMatrix, + 0); + I_SimpleProperty(osg::Polytope, ViewFrustum, + __Polytope__getViewFrustum, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/StateAttribute.cpp b/src/osgWrappers/osg/StateAttribute.cpp index d484515f8..887a1ae7c 100644 --- a/src/osgWrappers/osg/StateAttribute.cpp +++ b/src/osgWrappers/osg/StateAttribute.cpp @@ -95,57 +95,183 @@ END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateAttribute) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::StateAttribute &, sa, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method0(unsigned int, getMember); - I_Method0(osg::StateAttribute::TypeMemberPair, getTypeMemberPair); - I_Method0(bool, isTextureAttribute); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method0(const osg::StateAttribute::ParentList &, getParents); - I_Method1(osg::StateSet *, getParent, IN, unsigned int, i); - I_Method1(const osg::StateSet *, getParent, IN, unsigned int, i); - I_Method0(unsigned int, getNumParents); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x); - I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, x); - I_Method1(void, setUpdateCallback, IN, osg::StateAttribute::Callback *, uc); - I_Method0(osg::StateAttribute::Callback *, getUpdateCallback); - I_Method0(const osg::StateAttribute::Callback *, getUpdateCallback); - I_Method1(void, setEventCallback, IN, osg::StateAttribute::Callback *, ec); - I_Method0(osg::StateAttribute::Callback *, getEventCallback); - I_Method0(const osg::StateAttribute::Callback *, getEventCallback); - I_Method1(void, apply, IN, osg::State &, x); - I_Method1(void, compileGLObjects, IN, osg::State &, x); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0); - I_Property(osg::StateAttribute::Callback *, EventCallback); - I_ReadOnlyProperty(unsigned int, Member); - I_ArrayProperty_G(osg::StateSet *, Parent, Parents, unsigned int, void); - I_ReadOnlyProperty(const osg::StateAttribute::ParentList &, Parents); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); - I_ReadOnlyProperty(osg::StateAttribute::TypeMemberPair, TypeMemberPair); - I_Property(osg::StateAttribute::Callback *, UpdateCallback); + I_Constructor0(____StateAttribute, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::StateAttribute &, sa, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____StateAttribute__C5_StateAttribute_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method0(unsigned int, getMember, + __unsigned_int__getMember, + "Return the member identifier within the attribute's class type. ", + "Used for light number/clip plane number etc. "); + I_Method0(osg::StateAttribute::TypeMemberPair, getTypeMemberPair, + __TypeMemberPair__getTypeMemberPair, + "Return the TypeMemberPair that uniquely identifies this type member. ", + ""); + I_Method0(bool, isTextureAttribute, + __bool__isTextureAttribute, + "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(const osg::StateAttribute::ParentList &, getParents, + __C5_ParentList_R1__getParents, + "Get the parent list of this StateAttribute. ", + ""); + I_Method1(osg::StateSet *, getParent, IN, unsigned int, i, + __StateSet_P1__getParent__unsigned_int, + "", + ""); + I_Method1(const osg::StateSet *, getParent, IN, unsigned int, i, + __C5_StateSet_P1__getParent__unsigned_int, + "Get a single const parent of this StateAttribute. ", + " param i index of the parent to get. return the parent i."); + I_Method0(unsigned int, getNumParents, + __unsigned_int__getNumParents, + "Get the number of parents of this StateAttribute. ", + "the number of parents of this StateAttribute. "); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, + __bool__getModeUsage__ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, x, + __bool__checkValidityOfAssociatedModes__osg_State_R1, + "Check the modes associated with this StateAttribute are supported by current OpenGL drivers, and if not set the associated mode in osg::State to be black listed/invalid. ", + "Return true if all associated modes are valid. "); + I_Method1(void, setUpdateCallback, IN, osg::StateAttribute::Callback *, uc, + __void__setUpdateCallback__Callback_P1, + "Set the UpdateCallback which allows users to attach customize the updating of an object during the update traversal. ", + ""); + I_Method0(osg::StateAttribute::Callback *, getUpdateCallback, + __Callback_P1__getUpdateCallback, + "Get the non const UpdateCallback. ", + ""); + I_Method0(const osg::StateAttribute::Callback *, getUpdateCallback, + __C5_Callback_P1__getUpdateCallback, + "Get the const UpdateCallback. ", + ""); + I_Method1(void, setEventCallback, IN, osg::StateAttribute::Callback *, ec, + __void__setEventCallback__Callback_P1, + "Set the EventCallback which allows users to attach customize the updating of an object during the Event traversal. ", + ""); + I_Method0(osg::StateAttribute::Callback *, getEventCallback, + __Callback_P1__getEventCallback, + "Get the non const EventCallback. ", + ""); + I_Method0(const osg::StateAttribute::Callback *, getEventCallback, + __C5_Callback_P1__getEventCallback, + "Get the const EventCallback. ", + ""); + I_Method1(void, apply, IN, osg::State &, x, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_Method1(void, compileGLObjects, IN, osg::State &, x, + __void__compileGLObjects__State_R1, + "default to nothing to compile - all state is applied immediately. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + __void__releaseGLObjects__State_P1, + "release OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics context if State object pointer NULL. ", + ""); + I_SimpleProperty(osg::StateAttribute::Callback *, EventCallback, + __Callback_P1__getEventCallback, + __void__setEventCallback__Callback_P1); + I_SimpleProperty(unsigned int, Member, + __unsigned_int__getMember, + 0); + I_ArrayProperty(osg::StateSet *, Parent, + __StateSet_P1__getParent__unsigned_int, + 0, + __unsigned_int__getNumParents, + 0, + 0, + 0); + I_SimpleProperty(const osg::StateAttribute::ParentList &, Parents, + __C5_ParentList_R1__getParents, + 0); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); + I_SimpleProperty(osg::StateAttribute::TypeMemberPair, TypeMemberPair, + __TypeMemberPair__getTypeMemberPair, + 0); + I_SimpleProperty(osg::StateAttribute::Callback *, UpdateCallback, + __Callback_P1__getUpdateCallback, + __void__setUpdateCallback__Callback_P1); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::StateAttribute::Callback) I_VirtualBaseType(osg::Object); - I_Constructor0(); - I_Constructor2(IN, const osg::StateAttribute::Callback &, x, IN, const osg::CopyOp &, x); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); + I_Constructor0(____Callback, + "", + ""); + I_Constructor2(IN, const osg::StateAttribute::Callback &, x, IN, const osg::CopyOp &, x, + ____Callback__C5_Callback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateAttribute::ModeUsage) - I_Constructor0(); - I_Method1(void, usesMode, IN, osg::StateAttribute::GLMode, mode); - I_Method1(void, usesTextureMode, IN, osg::StateAttribute::GLMode, mode); + I_Constructor0(____ModeUsage, + "", + ""); + I_Method1(void, usesMode, IN, osg::StateAttribute::GLMode, mode, + __void__usesMode__GLMode, + "", + ""); + I_Method1(void, usesTextureMode, IN, osg::StateAttribute::GLMode, mode, + __void__usesTextureMode__GLMode, + "", + ""); END_REFLECTOR STD_PAIR_REFLECTOR(std::pair< osg::StateAttribute::Type COMMA unsigned int >); diff --git a/src/osgWrappers/osg/StateSet.cpp b/src/osgWrappers/osg/StateSet.cpp index c875ec23f..4f78e99cd 100644 --- a/src/osgWrappers/osg/StateSet.cpp +++ b/src/osgWrappers/osg/StateSet.cpp @@ -56,140 +56,494 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::StateSet) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::StateSet &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_MethodWithDefaults2(int, compare, IN, const osg::StateSet &, rhs, , IN, bool, compareAttributeContents, false); - I_Method0(const osg::StateSet::ParentList &, getParents); - I_Method0(osg::StateSet::ParentList, getParents); - I_Method1(osg::Object *, getParent, IN, unsigned int, i); - I_Method1(const osg::Object *, getParent, IN, unsigned int, i); - I_Method0(unsigned int, getNumParents); - I_Method0(void, setGlobalDefaults); - I_Method0(void, clear); - I_Method1(void, merge, IN, const osg::StateSet &, rhs); - I_Method2(void, setMode, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value); - I_Method1(void, removeMode, IN, osg::StateAttribute::GLMode, mode); - I_Method1(osg::StateAttribute::GLModeValue, getMode, IN, osg::StateAttribute::GLMode, mode); - I_Method1(void, setModeList, IN, osg::StateSet::ModeList &, ml); - I_Method0(osg::StateSet::ModeList &, getModeList); - I_Method0(const osg::StateSet::ModeList &, getModeList); - I_MethodWithDefaults2(void, setAttribute, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF); - I_MethodWithDefaults2(void, setAttributeAndModes, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON); - I_MethodWithDefaults2(void, removeAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0); - I_Method1(void, removeAttribute, IN, osg::StateAttribute *, attribute); - I_MethodWithDefaults2(osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0); - I_MethodWithDefaults2(const osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0); - I_MethodWithDefaults2(const osg::StateSet::RefAttributePair *, getAttributePair, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0); - I_Method1(void, setAttributeList, IN, osg::StateSet::AttributeList &, al); - I_Method0(osg::StateSet::AttributeList &, getAttributeList); - I_Method0(const osg::StateSet::AttributeList &, getAttributeList); - I_Method3(void, setTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value); - I_Method2(void, removeTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode); - I_Method2(osg::StateAttribute::GLModeValue, getTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode); - I_Method1(void, setTextureModeList, IN, osg::StateSet::TextureModeList &, tml); - I_Method0(osg::StateSet::TextureModeList &, getTextureModeList); - I_Method0(const osg::StateSet::TextureModeList &, getTextureModeList); - I_MethodWithDefaults3(void, setTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF); - I_MethodWithDefaults3(void, setTextureAttributeAndModes, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON); - I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type); - I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute *, attribute); - I_Method2(osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type); - I_Method2(const osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type); - I_Method2(const osg::StateSet::RefAttributePair *, getTextureAttributePair, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type); - I_Method1(void, setTextureAttributeList, IN, osg::StateSet::TextureAttributeList &, tal); - I_Method0(osg::StateSet::TextureAttributeList &, getTextureAttributeList); - I_Method0(const osg::StateSet::TextureAttributeList &, getTextureAttributeList); - I_Method2(void, setAssociatedModes, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value); - I_Method3(void, setAssociatedTextureModes, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value); - I_MethodWithDefaults2(void, addUniform, IN, osg::Uniform *, uniform, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::ON); - I_Method1(void, removeUniform, IN, const std::string &, name); - I_Method1(void, removeUniform, IN, osg::Uniform *, uniform); - I_Method1(osg::Uniform *, getUniform, IN, const std::string &, name); - I_MethodWithDefaults3(osg::Uniform *, getOrCreateUniform, IN, const std::string &, name, , IN, osg::Uniform::Type, type, , IN, unsigned int, numElements, 1); - I_Method1(const osg::Uniform *, getUniform, IN, const std::string &, name); - I_Method1(const osg::StateSet::RefUniformPair *, getUniformPair, IN, const std::string &, name); - I_Method1(void, setUniformList, IN, osg::StateSet::UniformList &, al); - I_Method0(osg::StateSet::UniformList &, getUniformList); - I_Method0(const osg::StateSet::UniformList &, getUniformList); - I_Method1(void, setRenderingHint, IN, int, hint); - I_Method0(int, getRenderingHint); - I_MethodWithDefaults3(void, setRenderBinDetails, IN, int, binNum, , IN, const std::string &, binName, , IN, osg::StateSet::RenderBinMode, mode, osg::StateSet::USE_RENDERBIN_DETAILS); - I_Method0(void, setRenderBinToInherit); - I_Method0(bool, useRenderBinDetails); - I_Method1(void, setRenderBinMode, IN, osg::StateSet::RenderBinMode, mode); - I_Method0(osg::StateSet::RenderBinMode, getRenderBinMode); - I_Method1(void, setBinNumber, IN, int, num); - I_Method0(int, getBinNumber); - I_Method1(void, setBinName, IN, const std::string &, name); - I_Method0(const std::string &, getBinName); - I_Method1(void, setUpdateCallback, IN, osg::StateSet::Callback *, ac); - I_Method0(osg::StateSet::Callback *, getUpdateCallback); - I_Method0(const osg::StateSet::Callback *, getUpdateCallback); - I_Method0(bool, requiresUpdateTraversal); - I_Method0(unsigned int, getNumChildrenRequiringUpdateTraversal); - I_Method1(void, runUpdateCallbacks, IN, osg::NodeVisitor *, nv); - I_Method1(void, setEventCallback, IN, osg::StateSet::Callback *, ac); - I_Method0(osg::StateSet::Callback *, getEventCallback); - I_Method0(const osg::StateSet::Callback *, getEventCallback); - I_Method0(bool, requiresEventTraversal); - I_Method0(unsigned int, getNumChildrenRequiringEventTraversal); - I_Method1(void, runEventCallbacks, IN, osg::NodeVisitor *, nv); - I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, state); - I_Method1(void, compileGLObjects, IN, osg::State &, state); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); - I_Property(osg::StateSet::AttributeList &, AttributeList); - I_Property(const std::string &, BinName); - I_Property(int, BinNumber); - I_Property(osg::StateSet::Callback *, EventCallback); + I_Constructor0(____StateSet, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::StateSet &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____StateSet__C5_StateSet_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_MethodWithDefaults2(int, compare, IN, const osg::StateSet &, rhs, , IN, bool, compareAttributeContents, false, + __int__compare__C5_StateSet_R1__bool, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(const osg::StateSet::ParentList &, getParents, + __C5_ParentList_R1__getParents, + "Get the parent list of this StateSet. ", + ""); + I_Method0(osg::StateSet::ParentList, getParents, + __ParentList__getParents, + "Get the a copy of parent list of node. ", + "A copy is returned to prevent modification of the parent list. "); + I_Method1(osg::Object *, getParent, IN, unsigned int, i, + __Object_P1__getParent__unsigned_int, + "", + ""); + I_Method1(const osg::Object *, getParent, IN, unsigned int, i, + __C5_Object_P1__getParent__unsigned_int, + "Get a single const parent of this StateSet. ", + " param i index of the parent to get. return the parent i."); + I_Method0(unsigned int, getNumParents, + __unsigned_int__getNumParents, + "Get the number of parents of this StateSet. ", + "the number of parents of this StateSet. "); + I_Method0(void, setGlobalDefaults, + __void__setGlobalDefaults, + "Set all the modes to on or off so that it defines a complete state, typically used for a default global state. ", + ""); + I_Method0(void, clear, + __void__clear, + "Clear the StateSet of all modes and attributes. ", + ""); + I_Method1(void, merge, IN, const osg::StateSet &, rhs, + __void__merge__C5_StateSet_R1, + "Merge this StateSet with the StateSet passed as parameter. ", + "Every mode and attribute in this StateSet that is marked with StateAttribute::OVERRIDE is replaced with the equivalent mode or attribute from rhs."); + I_Method2(void, setMode, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + __void__setMode__StateAttribute_GLMode__StateAttribute_GLModeValue, + "Set this StateSet to contain the specified GLMode with a given value. ", + "Don't use this method to set modes related to textures. For this purpose, use setTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call. "); + I_Method1(void, removeMode, IN, osg::StateAttribute::GLMode, mode, + __void__removeMode__StateAttribute_GLMode, + "Remove mode from this StateSet. ", + "Don't use this method to remove modes related to textures. For this purpose, use removeTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call. "); + I_Method1(osg::StateAttribute::GLModeValue, getMode, IN, osg::StateAttribute::GLMode, mode, + __StateAttribute_GLModeValue__getMode__StateAttribute_GLMode, + "Get the value for a given GLMode. ", + " param mode The GLMode whose value is desired. return If mode is contained within this StateSet, returns the value associated with it. Otherwise, returns StateAttribute::INHERIT. note Don't use this method to get the value of modes related to textures. For this purpose, use removeTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call."); + I_Method1(void, setModeList, IN, osg::StateSet::ModeList &, ml, + __void__setModeList__ModeList_R1, + "Set the list of all GLModes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::ModeList &, getModeList, + __ModeList_R1__getModeList, + "Return the list of all GLModes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::ModeList &, getModeList, + __C5_ModeList_R1__getModeList, + "Return the const list of all GLModes contained in this const StateSet. ", + ""); + I_MethodWithDefaults2(void, setAttribute, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF, + __void__setAttribute__StateAttribute_P1__StateAttribute_OverrideValue, + "Set this StateSet to contain specified attribute and override flag. ", + ""); + I_MethodWithDefaults2(void, setAttributeAndModes, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, + __void__setAttributeAndModes__StateAttribute_P1__StateAttribute_GLModeValue, + "Set this StateSet to contain specified attribute and set the associated GLMode's to specified value. ", + ""); + I_MethodWithDefaults2(void, removeAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + __void__removeAttribute__StateAttribute_Type__unsigned_int, + "remove attribute of specified type from StateSet. ", + ""); + I_Method1(void, removeAttribute, IN, osg::StateAttribute *, attribute, + __void__removeAttribute__StateAttribute_P1, + "remove attribute from StateSet. ", + ""); + I_MethodWithDefaults2(osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + __StateAttribute_P1__getAttribute__StateAttribute_Type__unsigned_int, + "Get specified StateAttribute for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_MethodWithDefaults2(const osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + __C5_StateAttribute_P1__getAttribute__StateAttribute_Type__unsigned_int, + "Get specified const StateAttribute for specified type. ", + "Returns NULL if no type is contained within const StateSet. "); + I_MethodWithDefaults2(const osg::StateSet::RefAttributePair *, getAttributePair, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + __C5_RefAttributePair_P1__getAttributePair__StateAttribute_Type__unsigned_int, + "Get specified RefAttributePair for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_Method1(void, setAttributeList, IN, osg::StateSet::AttributeList &, al, + __void__setAttributeList__AttributeList_R1, + "set the list of all StateAttributes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::AttributeList &, getAttributeList, + __AttributeList_R1__getAttributeList, + "return the list of all StateAttributes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::AttributeList &, getAttributeList, + __C5_AttributeList_R1__getAttributeList, + "return the const list of all StateAttributes contained in this const StateSet. ", + ""); + I_Method3(void, setTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + __void__setTextureMode__unsigned_int__StateAttribute_GLMode__StateAttribute_GLModeValue, + "Set this StateSet to contain specified GLMode with a given value. ", + " param unit The texture unit to be affected (used with multi-texturing). mode The OpenGL mode to be added to the StateSet. value The value to be assigned to mode. "); + I_Method2(void, removeTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + __void__removeTextureMode__unsigned_int__StateAttribute_GLMode, + "Remove texture mode from StateSet. ", + ""); + I_Method2(osg::StateAttribute::GLModeValue, getTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + __StateAttribute_GLModeValue__getTextureMode__unsigned_int__StateAttribute_GLMode, + "Get specified GLModeValue for specified GLMode. ", + "returns INHERIT if no GLModeValue is contained within StateSet. "); + I_Method1(void, setTextureModeList, IN, osg::StateSet::TextureModeList &, tml, + __void__setTextureModeList__TextureModeList_R1, + "set the list of all Texture related GLModes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::TextureModeList &, getTextureModeList, + __TextureModeList_R1__getTextureModeList, + "return the list of all Texture related GLModes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::TextureModeList &, getTextureModeList, + __C5_TextureModeList_R1__getTextureModeList, + "return the const list of all Texture related GLModes contained in this const StateSet. ", + ""); + I_MethodWithDefaults3(void, setTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF, + __void__setTextureAttribute__unsigned_int__StateAttribute_P1__StateAttribute_OverrideValue, + "Set this StateSet to contain specified attribute and override flag. ", + ""); + I_MethodWithDefaults3(void, setTextureAttributeAndModes, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, + __void__setTextureAttributeAndModes__unsigned_int__StateAttribute_P1__StateAttribute_GLModeValue, + "Set this StateSet to contain specified attribute and set the associated GLMode's to specified value. ", + ""); + I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + __void__removeTextureAttribute__unsigned_int__StateAttribute_Type, + "remove texture attribute of specified type from StateSet. ", + ""); + I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute *, attribute, + __void__removeTextureAttribute__unsigned_int__StateAttribute_P1, + "remove texture attribute from StateSet. ", + ""); + I_Method2(osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + __StateAttribute_P1__getTextureAttribute__unsigned_int__StateAttribute_Type, + "Get specified Texture related StateAttribute for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_Method2(const osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + __C5_StateAttribute_P1__getTextureAttribute__unsigned_int__StateAttribute_Type, + "Get specified Texture related const StateAttribute for specified type. ", + "Returns NULL if no type is contained within const StateSet. "); + I_Method2(const osg::StateSet::RefAttributePair *, getTextureAttributePair, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + __C5_RefAttributePair_P1__getTextureAttributePair__unsigned_int__StateAttribute_Type, + "Get specified Texture related RefAttributePair for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_Method1(void, setTextureAttributeList, IN, osg::StateSet::TextureAttributeList &, tal, + __void__setTextureAttributeList__TextureAttributeList_R1, + "Set the list of all Texture related StateAttributes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::TextureAttributeList &, getTextureAttributeList, + __TextureAttributeList_R1__getTextureAttributeList, + "Return the list of all Texture related StateAttributes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::TextureAttributeList &, getTextureAttributeList, + __C5_TextureAttributeList_R1__getTextureAttributeList, + "Return the const list of all Texture related StateAttributes contained in this const StateSet. ", + ""); + I_Method2(void, setAssociatedModes, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value, + __void__setAssociatedModes__C5_StateAttribute_P1__StateAttribute_GLModeValue, + "", + ""); + I_Method3(void, setAssociatedTextureModes, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value, + __void__setAssociatedTextureModes__unsigned_int__C5_StateAttribute_P1__StateAttribute_GLModeValue, + "", + ""); + I_MethodWithDefaults2(void, addUniform, IN, osg::Uniform *, uniform, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::ON, + __void__addUniform__Uniform_P1__StateAttribute_OverrideValue, + "Set this StateSet to contain specified uniform and override flag. ", + ""); + I_Method1(void, removeUniform, IN, const std::string &, name, + __void__removeUniform__C5_std_string_R1, + "remove uniform of specified name from StateSet. ", + ""); + I_Method1(void, removeUniform, IN, osg::Uniform *, uniform, + __void__removeUniform__Uniform_P1, + "remove Uniform from StateSet. ", + ""); + I_Method1(osg::Uniform *, getUniform, IN, const std::string &, name, + __Uniform_P1__getUniform__C5_std_string_R1, + "Get Uniform for specified name. ", + "Returns NULL if no matching Uniform is contained within StateSet. "); + I_MethodWithDefaults3(osg::Uniform *, getOrCreateUniform, IN, const std::string &, name, , IN, osg::Uniform::Type, type, , IN, unsigned int, numElements, 1, + __Uniform_P1__getOrCreateUniform__C5_std_string_R1__Uniform_Type__unsigned_int, + "Get Uniform for specified name, if one is not available create it, add it to this StateSet and return a pointer to it. ", + ""); + I_Method1(const osg::Uniform *, getUniform, IN, const std::string &, name, + __C5_Uniform_P1__getUniform__C5_std_string_R1, + "Get const Uniform for specified name. ", + "Returns NULL if no matching Uniform is contained within StateSet. "); + I_Method1(const osg::StateSet::RefUniformPair *, getUniformPair, IN, const std::string &, name, + __C5_RefUniformPair_P1__getUniformPair__C5_std_string_R1, + "Get specified RefUniformPair for specified Uniform name. ", + "Returns NULL if no Uniform is contained within StateSet. "); + I_Method1(void, setUniformList, IN, osg::StateSet::UniformList &, al, + __void__setUniformList__UniformList_R1, + "set the list of all Uniforms contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::UniformList &, getUniformList, + __UniformList_R1__getUniformList, + "return the list of all Uniforms contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::UniformList &, getUniformList, + __C5_UniformList_R1__getUniformList, + "return the const list of all Uniforms contained in this const StateSet. ", + ""); + I_Method1(void, setRenderingHint, IN, int, hint, + __void__setRenderingHint__int, + "Set the RenderingHint of this StateSet. ", + "RenderingHint is used by the renderer to determine which draw bin to drop associated osg::Drawables in. Typically, users will set this to either StateSet::OPAQUE_BIN or StateSet::TRANSPARENT_BIN. Drawables in the opaque bin are sorted by their StateSet, so that the number of expensive changes in the OpenGL state is minimized. Drawables in the transparent bin are sorted by depth, so that objects farther from the viewer are rendered first (and hence alpha blending works nicely for translucent objects)."); + I_Method0(int, getRenderingHint, + __int__getRenderingHint, + "Get the RenderingHint of this StateSet. ", + ""); + I_MethodWithDefaults3(void, setRenderBinDetails, IN, int, binNum, , IN, const std::string &, binName, , IN, osg::StateSet::RenderBinMode, mode, osg::StateSet::USE_RENDERBIN_DETAILS, + __void__setRenderBinDetails__int__C5_std_string_R1__RenderBinMode, + "Set the render bin details. ", + ""); + I_Method0(void, setRenderBinToInherit, + __void__setRenderBinToInherit, + "Set the render bin details to inherit. ", + ""); + I_Method0(bool, useRenderBinDetails, + __bool__useRenderBinDetails, + "Get whether the render bin details are set and should be used. ", + ""); + I_Method1(void, setRenderBinMode, IN, osg::StateSet::RenderBinMode, mode, + __void__setRenderBinMode__RenderBinMode, + "Set the render bin mode. ", + ""); + I_Method0(osg::StateSet::RenderBinMode, getRenderBinMode, + __RenderBinMode__getRenderBinMode, + "Get the render bin mode. ", + ""); + I_Method1(void, setBinNumber, IN, int, num, + __void__setBinNumber__int, + "Set the render bin number. ", + ""); + I_Method0(int, getBinNumber, + __int__getBinNumber, + "Get the render bin number. ", + ""); + I_Method1(void, setBinName, IN, const std::string &, name, + __void__setBinName__C5_std_string_R1, + "Set the render bin name. ", + ""); + I_Method0(const std::string &, getBinName, + __C5_std_string_R1__getBinName, + "Get the render bin name. ", + ""); + I_Method1(void, setUpdateCallback, IN, osg::StateSet::Callback *, ac, + __void__setUpdateCallback__Callback_P1, + "Set the Update Callback which allows users to attach customize the updating of an object during the update traversal. ", + ""); + I_Method0(osg::StateSet::Callback *, getUpdateCallback, + __Callback_P1__getUpdateCallback, + "Get the non const Update Callback. ", + ""); + I_Method0(const osg::StateSet::Callback *, getUpdateCallback, + __C5_Callback_P1__getUpdateCallback, + "Get the const Update Callback. ", + ""); + I_Method0(bool, requiresUpdateTraversal, + __bool__requiresUpdateTraversal, + "Return whether this StateSet has update callbacks associated with it, and therefore must be traversed. ", + ""); + I_Method0(unsigned int, getNumChildrenRequiringUpdateTraversal, + __unsigned_int__getNumChildrenRequiringUpdateTraversal, + "Get the number of Objects of this StateSet which require Update traversal, since they have an Update Callback attached to them or their children. ", + ""); + I_Method1(void, runUpdateCallbacks, IN, osg::NodeVisitor *, nv, + __void__runUpdateCallbacks__osg_NodeVisitor_P1, + "Run the update callbacks attached directly to this StateSet or to its children. ", + ""); + I_Method1(void, setEventCallback, IN, osg::StateSet::Callback *, ac, + __void__setEventCallback__Callback_P1, + "Set the Event Callback which allows users to attach customize the updating of an object during the event traversal. ", + ""); + I_Method0(osg::StateSet::Callback *, getEventCallback, + __Callback_P1__getEventCallback, + "Get the non const Event Callback. ", + ""); + I_Method0(const osg::StateSet::Callback *, getEventCallback, + __C5_Callback_P1__getEventCallback, + "Get the const Event Callback. ", + ""); + I_Method0(bool, requiresEventTraversal, + __bool__requiresEventTraversal, + "Return whether this StateSet has event callbacks associated with it, and therefore must be traversed. ", + ""); + I_Method0(unsigned int, getNumChildrenRequiringEventTraversal, + __unsigned_int__getNumChildrenRequiringEventTraversal, + "Get the number of Objects of this StateSet which require Event traversal, since they have an Eevnt Callback attached to them or their children. ", + ""); + I_Method1(void, runEventCallbacks, IN, osg::NodeVisitor *, nv, + __void__runEventCallbacks__osg_NodeVisitor_P1, + "Run the event callbacks attached directly to this StateSet or to its children. ", + ""); + I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, state, + __bool__checkValidityOfAssociatedModes__State_R1, + "Check the modes associated with this StateSet are supported by current OpenGL drivers, and if not set the associated mode in osg::State to be black listed/invalid. ", + "Return true if all associated modes are valid. "); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + __void__compileGLObjects__State_R1, + "call compile on all StateAttributes contained within this StateSet. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + __void__releaseGLObjects__State_P1, + "call release on all StateAttributes contained within this StateSet. ", + ""); + I_SimpleProperty(osg::StateSet::AttributeList &, AttributeList, + __AttributeList_R1__getAttributeList, + __void__setAttributeList__AttributeList_R1); + I_SimpleProperty(const std::string &, BinName, + __C5_std_string_R1__getBinName, + __void__setBinName__C5_std_string_R1); + I_SimpleProperty(int, BinNumber, + __int__getBinNumber, + __void__setBinNumber__int); + I_SimpleProperty(osg::StateSet::Callback *, EventCallback, + __Callback_P1__getEventCallback, + __void__setEventCallback__Callback_P1); - I_Property(osg::StateSet::ModeList &, ModeList); - I_ArrayProperty_G(osg::Object *, Parent, Parents, unsigned int, void); - I_ReadOnlyProperty(osg::StateSet::ParentList, Parents); - I_Property(osg::StateSet::RenderBinMode, RenderBinMode); - I_Property(int, RenderingHint); - I_Property(osg::StateSet::TextureAttributeList &, TextureAttributeList); - I_IndexedProperty2(osg::StateAttribute::GLModeValue, TextureMode, unsigned int, unit, osg::StateAttribute::GLMode, mode); - I_Property(osg::StateSet::TextureModeList &, TextureModeList); - I_Property(osg::StateSet::UniformList &, UniformList); - I_Property(osg::StateSet::Callback *, UpdateCallback); + I_SimpleProperty(osg::StateSet::ModeList &, ModeList, + __ModeList_R1__getModeList, + __void__setModeList__ModeList_R1); + I_ArrayProperty(osg::Object *, Parent, + __Object_P1__getParent__unsigned_int, + 0, + __unsigned_int__getNumParents, + 0, + 0, + 0); + I_SimpleProperty(osg::StateSet::ParentList, Parents, + __ParentList__getParents, + 0); + I_SimpleProperty(osg::StateSet::RenderBinMode, RenderBinMode, + __RenderBinMode__getRenderBinMode, + __void__setRenderBinMode__RenderBinMode); + I_SimpleProperty(int, RenderingHint, + __int__getRenderingHint, + __void__setRenderingHint__int); + I_SimpleProperty(osg::StateSet::TextureAttributeList &, TextureAttributeList, + __TextureAttributeList_R1__getTextureAttributeList, + __void__setTextureAttributeList__TextureAttributeList_R1); + I_IndexedProperty(osg::StateAttribute::GLModeValue, TextureMode, + __StateAttribute_GLModeValue__getTextureMode__unsigned_int__StateAttribute_GLMode, + __void__setTextureMode__unsigned_int__StateAttribute_GLMode__StateAttribute_GLModeValue, + 0); + I_SimpleProperty(osg::StateSet::TextureModeList &, TextureModeList, + __TextureModeList_R1__getTextureModeList, + __void__setTextureModeList__TextureModeList_R1); + I_SimpleProperty(osg::StateSet::UniformList &, UniformList, + __UniformList_R1__getUniformList, + __void__setUniformList__UniformList_R1); + I_SimpleProperty(osg::StateSet::Callback *, UpdateCallback, + __Callback_P1__getUpdateCallback, + __void__setUpdateCallback__Callback_P1); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::StateSet::Callback) I_VirtualBaseType(osg::Object); - I_Constructor0(); - I_Constructor2(IN, const osg::StateSet::Callback &, x, IN, const osg::CopyOp &, x); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); + I_Constructor0(____Callback, + "", + ""); + I_Constructor2(IN, const osg::StateSet::Callback &, x, IN, const osg::CopyOp &, x, + ____Callback__C5_Callback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::StateAttribute >) - I_Constructor0(); - I_Constructor1(IN, osg::StateAttribute *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osg::StateAttribute > &, rp); - I_Method0(osg::StateAttribute *, get); - I_Method0(bool, valid); - I_Method0(osg::StateAttribute *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osg::StateAttribute > &, rp); - I_ReadOnlyProperty(osg::StateAttribute *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::StateAttribute *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::StateAttribute > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::StateAttribute *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osg::StateAttribute *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::StateAttribute > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::StateAttribute *, , + __T_P1__get, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Uniform >) - I_Constructor0(); - I_Constructor1(IN, osg::Uniform *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osg::Uniform > &, rp); - I_Method0(osg::Uniform *, get); - I_Method0(bool, valid); - I_Method0(osg::Uniform *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osg::Uniform > &, rp); - I_ReadOnlyProperty(osg::Uniform *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Uniform *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Uniform > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Uniform *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osg::Uniform *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Uniform > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Uniform *, , + __T_P1__get, + 0); END_REFLECTOR STD_MAP_REFLECTOR_WITH_TYPES(std::map< osg::StateAttribute::GLMode COMMA osg::StateAttribute::GLModeValue >, osg::StateAttribute::GLMode, osg::StateAttribute::Values); diff --git a/src/osgWrappers/osg/Stencil.cpp b/src/osgWrappers/osg/Stencil.cpp index dc0fea3bb..27108eb0e 100644 --- a/src/osgWrappers/osg/Stencil.cpp +++ b/src/osgWrappers/osg/Stencil.cpp @@ -46,40 +46,136 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Stencil) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Stencil &, stencil, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method3(void, setFunction, IN, osg::Stencil::Function, func, IN, int, ref, IN, unsigned int, mask); - I_Method1(void, setFunction, IN, osg::Stencil::Function, func); - I_Method0(osg::Stencil::Function, getFunction); - I_Method1(void, setFunctionRef, IN, int, ref); - I_Method0(int, getFunctionRef); - I_Method1(void, setFunctionMask, IN, unsigned int, mask); - I_Method0(unsigned int, getFunctionMask); - I_Method3(void, setOperation, IN, osg::Stencil::Operation, sfail, IN, osg::Stencil::Operation, zfail, IN, osg::Stencil::Operation, zpass); - I_Method1(void, setStencilFailOperation, IN, osg::Stencil::Operation, sfail); - I_Method0(osg::Stencil::Operation, getStencilFailOperation); - I_Method1(void, setStencilPassAndDepthFailOperation, IN, osg::Stencil::Operation, zfail); - I_Method0(osg::Stencil::Operation, getStencilPassAndDepthFailOperation); - I_Method1(void, setStencilPassAndDepthPassOperation, IN, osg::Stencil::Operation, zpass); - I_Method0(osg::Stencil::Operation, getStencilPassAndDepthPassOperation); - I_Method1(void, setWriteMask, IN, unsigned int, mask); - I_Method0(unsigned int, getWriteMask); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(osg::Stencil::Function, Function); - I_Property(unsigned int, FunctionMask); - I_Property(int, FunctionRef); - I_Property(osg::Stencil::Operation, StencilFailOperation); - I_Property(osg::Stencil::Operation, StencilPassAndDepthFailOperation); - I_Property(osg::Stencil::Operation, StencilPassAndDepthPassOperation); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); - I_Property(unsigned int, WriteMask); + I_Constructor0(____Stencil, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Stencil &, stencil, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Stencil__C5_Stencil_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method3(void, setFunction, IN, osg::Stencil::Function, func, IN, int, ref, IN, unsigned int, mask, + __void__setFunction__Function__int__unsigned_int, + "", + ""); + I_Method1(void, setFunction, IN, osg::Stencil::Function, func, + __void__setFunction__Function, + "", + ""); + I_Method0(osg::Stencil::Function, getFunction, + __Function__getFunction, + "", + ""); + I_Method1(void, setFunctionRef, IN, int, ref, + __void__setFunctionRef__int, + "", + ""); + I_Method0(int, getFunctionRef, + __int__getFunctionRef, + "", + ""); + I_Method1(void, setFunctionMask, IN, unsigned int, mask, + __void__setFunctionMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getFunctionMask, + __unsigned_int__getFunctionMask, + "", + ""); + I_Method3(void, setOperation, IN, osg::Stencil::Operation, sfail, IN, osg::Stencil::Operation, zfail, IN, osg::Stencil::Operation, zpass, + __void__setOperation__Operation__Operation__Operation, + "set the operations to apply when the various stencil and depth tests fail or pass. ", + "First parameter is to control the operation when the stencil test fails. The second parameter is to control the operation when the stencil test passes, but depth test fails. The third parameter controls the operation when both the stencil test and depth pass. Ordering of parameter is the same as if using glStencilOp(,,). "); + I_Method1(void, setStencilFailOperation, IN, osg::Stencil::Operation, sfail, + __void__setStencilFailOperation__Operation, + "set the operation when the stencil test fails. ", + ""); + I_Method0(osg::Stencil::Operation, getStencilFailOperation, + __Operation__getStencilFailOperation, + "get the operation when the stencil test fails. ", + ""); + I_Method1(void, setStencilPassAndDepthFailOperation, IN, osg::Stencil::Operation, zfail, + __void__setStencilPassAndDepthFailOperation__Operation, + "set the operation when the stencil test passes but the depth test fails. ", + ""); + I_Method0(osg::Stencil::Operation, getStencilPassAndDepthFailOperation, + __Operation__getStencilPassAndDepthFailOperation, + "get the operation when the stencil test passes but the depth test fails. ", + ""); + I_Method1(void, setStencilPassAndDepthPassOperation, IN, osg::Stencil::Operation, zpass, + __void__setStencilPassAndDepthPassOperation__Operation, + "set the operation when both the stencil test and the depth test pass. ", + ""); + I_Method0(osg::Stencil::Operation, getStencilPassAndDepthPassOperation, + __Operation__getStencilPassAndDepthPassOperation, + "get the operation when both the stencil test and the depth test pass. ", + ""); + I_Method1(void, setWriteMask, IN, unsigned int, mask, + __void__setWriteMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getWriteMask, + __unsigned_int__getWriteMask, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(osg::Stencil::Function, Function, + __Function__getFunction, + __void__setFunction__Function); + I_SimpleProperty(unsigned int, FunctionMask, + __unsigned_int__getFunctionMask, + __void__setFunctionMask__unsigned_int); + I_SimpleProperty(int, FunctionRef, + __int__getFunctionRef, + __void__setFunctionRef__int); + I_SimpleProperty(osg::Stencil::Operation, StencilFailOperation, + __Operation__getStencilFailOperation, + __void__setStencilFailOperation__Operation); + I_SimpleProperty(osg::Stencil::Operation, StencilPassAndDepthFailOperation, + __Operation__getStencilPassAndDepthFailOperation, + __void__setStencilPassAndDepthFailOperation__Operation); + I_SimpleProperty(osg::Stencil::Operation, StencilPassAndDepthPassOperation, + __Operation__getStencilPassAndDepthPassOperation, + __void__setStencilPassAndDepthPassOperation__Operation); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); + I_SimpleProperty(unsigned int, WriteMask, + __unsigned_int__getWriteMask, + __void__setWriteMask__unsigned_int); END_REFLECTOR diff --git a/src/osgWrappers/osg/Switch.cpp b/src/osgWrappers/osg/Switch.cpp index 983e5e49a..582ed7903 100644 --- a/src/osgWrappers/osg/Switch.cpp +++ b/src/osgWrappers/osg/Switch.cpp @@ -29,37 +29,126 @@ TYPE_NAME_ALIAS(std::vector< bool >, osg::Switch::ValueList); BEGIN_OBJECT_REFLECTOR(osg::Switch) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Switch &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method1(void, setNewChildDefaultValue, IN, bool, value); - I_Method0(bool, getNewChildDefaultValue); - I_Method1(bool, addChild, IN, osg::Node *, child); - I_Method2(bool, addChild, IN, osg::Node *, child, IN, bool, value); - I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child); - I_Method3(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, IN, bool, value); - I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove); - I_Method2(void, setValue, IN, unsigned int, pos, IN, bool, value); - I_Method1(bool, getValue, IN, unsigned int, pos); - I_Method2(void, setChildValue, IN, const osg::Node *, child, IN, bool, value); - I_Method1(bool, getChildValue, IN, const osg::Node *, child); - I_Method0(bool, setAllChildrenOff); - I_Method0(bool, setAllChildrenOn); - I_Method1(bool, setSingleChildOn, IN, unsigned int, pos); - I_Method1(void, setValueList, IN, const osg::Switch::ValueList &, values); - I_Method0(const osg::Switch::ValueList &, getValueList); - I_Method0(osg::BoundingSphere, computeBound); - I_IndexedProperty1(bool, ChildValue, const osg::Node *, child); - I_Property(bool, NewChildDefaultValue); - I_WriteOnlyPropertyWithReturnType(unsigned int, SingleChildOn, bool); - I_IndexedProperty1(bool, Value, unsigned int, pos); - I_Property(const osg::Switch::ValueList &, ValueList); + I_Constructor0(____Switch, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Switch &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Switch__C5_Switch_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(void, setNewChildDefaultValue, IN, bool, value, + __void__setNewChildDefaultValue__bool, + "", + ""); + I_Method0(bool, getNewChildDefaultValue, + __bool__getNewChildDefaultValue, + "", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + __bool__addChild__Node_P1, + "Add Node to Group. ", + "If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes."); + I_Method2(bool, addChild, IN, osg::Node *, child, IN, bool, value, + __bool__addChild__Node_P1__bool, + "", + ""); + I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, + __bool__insertChild__unsigned_int__Node_P1, + "Insert Node to Group at specific location. ", + "The new child node is inserted into the child list before the node at the specified index. No nodes are removed from the group with this operation."); + I_Method3(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, IN, bool, value, + __bool__insertChild__unsigned_int__Node_P1__bool, + "", + ""); + I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove, + __bool__removeChildren__unsigned_int__unsigned_int, + "Remove children from Group. ", + "Note, must be override by subclasses of Group which add per child attributes. "); + I_Method2(void, setValue, IN, unsigned int, pos, IN, bool, value, + __void__setValue__unsigned_int__bool, + "", + ""); + I_Method1(bool, getValue, IN, unsigned int, pos, + __bool__getValue__unsigned_int, + "", + ""); + I_Method2(void, setChildValue, IN, const osg::Node *, child, IN, bool, value, + __void__setChildValue__C5_Node_P1__bool, + "", + ""); + I_Method1(bool, getChildValue, IN, const osg::Node *, child, + __bool__getChildValue__C5_Node_P1, + "", + ""); + I_Method0(bool, setAllChildrenOff, + __bool__setAllChildrenOff, + "Set all the children off (false), and set the new default child value to off (false). ", + ""); + I_Method0(bool, setAllChildrenOn, + __bool__setAllChildrenOn, + "Set all the children on (true), and set the new default child value to on (true). ", + ""); + I_Method1(bool, setSingleChildOn, IN, unsigned int, pos, + __bool__setSingleChildOn__unsigned_int, + "Set a single child on, switch off all other children. ", + ""); + I_Method1(void, setValueList, IN, const osg::Switch::ValueList &, values, + __void__setValueList__C5_ValueList_R1, + "", + ""); + I_Method0(const osg::Switch::ValueList &, getValueList, + __C5_ValueList_R1__getValueList, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + __BoundingSphere__computeBound, + "Compute the bounding sphere around Node's geometry or children. ", + "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); + I_IndexedProperty(bool, ChildValue, + __bool__getChildValue__C5_Node_P1, + __void__setChildValue__C5_Node_P1__bool, + 0); + I_SimpleProperty(bool, NewChildDefaultValue, + __bool__getNewChildDefaultValue, + __void__setNewChildDefaultValue__bool); + I_SimpleProperty(unsigned int, SingleChildOn, + 0, + __bool__setSingleChildOn__unsigned_int); + I_IndexedProperty(bool, Value, + __bool__getValue__unsigned_int, + __void__setValue__unsigned_int__bool, + 0); + I_SimpleProperty(const osg::Switch::ValueList &, ValueList, + __C5_ValueList_R1__getValueList, + __void__setValueList__C5_ValueList_R1); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< bool >); diff --git a/src/osgWrappers/osg/TexEnv.cpp b/src/osgWrappers/osg/TexEnv.cpp index a5394cd6f..9cba73753 100644 --- a/src/osgWrappers/osg/TexEnv.cpp +++ b/src/osgWrappers/osg/TexEnv.cpp @@ -35,24 +35,78 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TexEnv) I_BaseType(osg::StateAttribute); - I_ConstructorWithDefaults1(IN, osg::TexEnv::Mode, mode, osg::TexEnv::MODULATE); - I_ConstructorWithDefaults2(IN, const osg::TexEnv &, texenv, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method0(bool, isTextureAttribute); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(void, setMode, IN, osg::TexEnv::Mode, mode); - I_Method0(osg::TexEnv::Mode, getMode); - I_Method1(void, setColor, IN, const osg::Vec4 &, color); - I_Method0(osg::Vec4 &, getColor); - I_Method0(const osg::Vec4 &, getColor); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(const osg::Vec4 &, Color); - I_Property(osg::TexEnv::Mode, Mode); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_ConstructorWithDefaults1(IN, osg::TexEnv::Mode, mode, osg::TexEnv::MODULATE, + ____TexEnv__Mode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexEnv &, texenv, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexEnv__C5_TexEnv_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method0(bool, isTextureAttribute, + __bool__isTextureAttribute, + "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setMode, IN, osg::TexEnv::Mode, mode, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::TexEnv::Mode, getMode, + __Mode__getMode, + "", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + __void__setColor__C5_Vec4_R1, + "", + ""); + I_Method0(osg::Vec4 &, getColor, + __Vec4_R1__getColor, + "", + ""); + I_Method0(const osg::Vec4 &, getColor, + __C5_Vec4_R1__getColor, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(const osg::Vec4 &, Color, + __C5_Vec4_R1__getColor, + __void__setColor__C5_Vec4_R1); + I_SimpleProperty(osg::TexEnv::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/TexEnvCombine.cpp b/src/osgWrappers/osg/TexEnvCombine.cpp index c1cc19d67..825f5338a 100644 --- a/src/osgWrappers/osg/TexEnvCombine.cpp +++ b/src/osgWrappers/osg/TexEnvCombine.cpp @@ -61,71 +61,249 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TexEnvCombine) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TexEnvCombine &, texenv, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method0(bool, isTextureAttribute); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(void, setCombine_RGB, IN, GLint, cm); - I_Method1(void, setCombine_Alpha, IN, GLint, cm); - I_Method0(GLint, getCombine_RGB); - I_Method0(GLint, getCombine_Alpha); - I_Method1(void, setSource0_RGB, IN, GLint, sp); - I_Method1(void, setSource1_RGB, IN, GLint, sp); - I_Method1(void, setSource2_RGB, IN, GLint, sp); - I_Method1(void, setSource0_Alpha, IN, GLint, sp); - I_Method1(void, setSource1_Alpha, IN, GLint, sp); - I_Method1(void, setSource2_Alpha, IN, GLint, sp); - I_Method0(GLint, getSource0_RGB); - I_Method0(GLint, getSource1_RGB); - I_Method0(GLint, getSource2_RGB); - I_Method0(GLint, getSource0_Alpha); - I_Method0(GLint, getSource1_Alpha); - I_Method0(GLint, getSource2_Alpha); - I_Method1(void, setOperand0_RGB, IN, GLint, op); - I_Method1(void, setOperand1_RGB, IN, GLint, op); - I_Method1(void, setOperand2_RGB, IN, GLint, op); - I_Method1(void, setOperand0_Alpha, IN, GLint, op); - I_Method1(void, setOperand1_Alpha, IN, GLint, op); - I_Method1(void, setOperand2_Alpha, IN, GLint, op); - I_Method0(GLint, getOperand0_RGB); - I_Method0(GLint, getOperand1_RGB); - I_Method0(GLint, getOperand2_RGB); - I_Method0(GLint, getOperand0_Alpha); - I_Method0(GLint, getOperand1_Alpha); - I_Method0(GLint, getOperand2_Alpha); - I_Method1(void, setScale_RGB, IN, float, scale); - I_Method1(void, setScale_Alpha, IN, float, scale); - I_Method0(float, getScale_RGB); - I_Method0(float, getScale_Alpha); - I_Method1(void, setConstantColor, IN, const osg::Vec4 &, color); - I_Method0(const osg::Vec4 &, getConstantColor); - I_Method1(void, setConstantColorAsLightDirection, IN, const osg::Vec3 &, direction); - I_Method0(osg::Vec3, getConstantColorAsLightDirection); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(GLint, Combine_Alpha); - I_Property(GLint, Combine_RGB); - I_Property(const osg::Vec4 &, ConstantColor); - I_ReadOnlyProperty(osg::Vec3, ConstantColorAsLightDirection); - I_Property(GLint, Operand0_Alpha); - I_Property(GLint, Operand0_RGB); - I_Property(GLint, Operand1_Alpha); - I_Property(GLint, Operand1_RGB); - I_Property(GLint, Operand2_Alpha); - I_Property(GLint, Operand2_RGB); - I_Property(float, Scale_Alpha); - I_Property(float, Scale_RGB); - I_Property(GLint, Source0_Alpha); - I_Property(GLint, Source0_RGB); - I_Property(GLint, Source1_Alpha); - I_Property(GLint, Source1_RGB); - I_Property(GLint, Source2_Alpha); - I_Property(GLint, Source2_RGB); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____TexEnvCombine, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexEnvCombine &, texenv, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexEnvCombine__C5_TexEnvCombine_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method0(bool, isTextureAttribute, + __bool__isTextureAttribute, + "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setCombine_RGB, IN, GLint, cm, + __void__setCombine_RGB__GLint, + "", + ""); + I_Method1(void, setCombine_Alpha, IN, GLint, cm, + __void__setCombine_Alpha__GLint, + "", + ""); + I_Method0(GLint, getCombine_RGB, + __GLint__getCombine_RGB, + "", + ""); + I_Method0(GLint, getCombine_Alpha, + __GLint__getCombine_Alpha, + "", + ""); + I_Method1(void, setSource0_RGB, IN, GLint, sp, + __void__setSource0_RGB__GLint, + "", + ""); + I_Method1(void, setSource1_RGB, IN, GLint, sp, + __void__setSource1_RGB__GLint, + "", + ""); + I_Method1(void, setSource2_RGB, IN, GLint, sp, + __void__setSource2_RGB__GLint, + "", + ""); + I_Method1(void, setSource0_Alpha, IN, GLint, sp, + __void__setSource0_Alpha__GLint, + "", + ""); + I_Method1(void, setSource1_Alpha, IN, GLint, sp, + __void__setSource1_Alpha__GLint, + "", + ""); + I_Method1(void, setSource2_Alpha, IN, GLint, sp, + __void__setSource2_Alpha__GLint, + "", + ""); + I_Method0(GLint, getSource0_RGB, + __GLint__getSource0_RGB, + "", + ""); + I_Method0(GLint, getSource1_RGB, + __GLint__getSource1_RGB, + "", + ""); + I_Method0(GLint, getSource2_RGB, + __GLint__getSource2_RGB, + "", + ""); + I_Method0(GLint, getSource0_Alpha, + __GLint__getSource0_Alpha, + "", + ""); + I_Method0(GLint, getSource1_Alpha, + __GLint__getSource1_Alpha, + "", + ""); + I_Method0(GLint, getSource2_Alpha, + __GLint__getSource2_Alpha, + "", + ""); + I_Method1(void, setOperand0_RGB, IN, GLint, op, + __void__setOperand0_RGB__GLint, + "", + ""); + I_Method1(void, setOperand1_RGB, IN, GLint, op, + __void__setOperand1_RGB__GLint, + "", + ""); + I_Method1(void, setOperand2_RGB, IN, GLint, op, + __void__setOperand2_RGB__GLint, + "", + ""); + I_Method1(void, setOperand0_Alpha, IN, GLint, op, + __void__setOperand0_Alpha__GLint, + "", + ""); + I_Method1(void, setOperand1_Alpha, IN, GLint, op, + __void__setOperand1_Alpha__GLint, + "", + ""); + I_Method1(void, setOperand2_Alpha, IN, GLint, op, + __void__setOperand2_Alpha__GLint, + "", + ""); + I_Method0(GLint, getOperand0_RGB, + __GLint__getOperand0_RGB, + "", + ""); + I_Method0(GLint, getOperand1_RGB, + __GLint__getOperand1_RGB, + "", + ""); + I_Method0(GLint, getOperand2_RGB, + __GLint__getOperand2_RGB, + "", + ""); + I_Method0(GLint, getOperand0_Alpha, + __GLint__getOperand0_Alpha, + "", + ""); + I_Method0(GLint, getOperand1_Alpha, + __GLint__getOperand1_Alpha, + "", + ""); + I_Method0(GLint, getOperand2_Alpha, + __GLint__getOperand2_Alpha, + "", + ""); + I_Method1(void, setScale_RGB, IN, float, scale, + __void__setScale_RGB__float, + "", + ""); + I_Method1(void, setScale_Alpha, IN, float, scale, + __void__setScale_Alpha__float, + "", + ""); + I_Method0(float, getScale_RGB, + __float__getScale_RGB, + "", + ""); + I_Method0(float, getScale_Alpha, + __float__getScale_Alpha, + "", + ""); + I_Method1(void, setConstantColor, IN, const osg::Vec4 &, color, + __void__setConstantColor__C5_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getConstantColor, + __C5_Vec4_R1__getConstantColor, + "", + ""); + I_Method1(void, setConstantColorAsLightDirection, IN, const osg::Vec3 &, direction, + __void__setConstantColorAsLightDirection__C5_Vec3_R1, + "Set the constant color attribute to the given light direction for use with DOT3 combine operation. ", + ""); + I_Method0(osg::Vec3, getConstantColorAsLightDirection, + __Vec3__getConstantColorAsLightDirection, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(GLint, Combine_Alpha, + __GLint__getCombine_Alpha, + __void__setCombine_Alpha__GLint); + I_SimpleProperty(GLint, Combine_RGB, + __GLint__getCombine_RGB, + __void__setCombine_RGB__GLint); + I_SimpleProperty(const osg::Vec4 &, ConstantColor, + __C5_Vec4_R1__getConstantColor, + __void__setConstantColor__C5_Vec4_R1); + I_SimpleProperty(osg::Vec3, ConstantColorAsLightDirection, + __Vec3__getConstantColorAsLightDirection, + __void__setConstantColorAsLightDirection__C5_Vec3_R1); + I_SimpleProperty(GLint, Operand0_Alpha, + __GLint__getOperand0_Alpha, + __void__setOperand0_Alpha__GLint); + I_SimpleProperty(GLint, Operand0_RGB, + __GLint__getOperand0_RGB, + __void__setOperand0_RGB__GLint); + I_SimpleProperty(GLint, Operand1_Alpha, + __GLint__getOperand1_Alpha, + __void__setOperand1_Alpha__GLint); + I_SimpleProperty(GLint, Operand1_RGB, + __GLint__getOperand1_RGB, + __void__setOperand1_RGB__GLint); + I_SimpleProperty(GLint, Operand2_Alpha, + __GLint__getOperand2_Alpha, + __void__setOperand2_Alpha__GLint); + I_SimpleProperty(GLint, Operand2_RGB, + __GLint__getOperand2_RGB, + __void__setOperand2_RGB__GLint); + I_SimpleProperty(float, Scale_Alpha, + __float__getScale_Alpha, + __void__setScale_Alpha__float); + I_SimpleProperty(float, Scale_RGB, + __float__getScale_RGB, + __void__setScale_RGB__float); + I_SimpleProperty(GLint, Source0_Alpha, + __GLint__getSource0_Alpha, + __void__setSource0_Alpha__GLint); + I_SimpleProperty(GLint, Source0_RGB, + __GLint__getSource0_RGB, + __void__setSource0_RGB__GLint); + I_SimpleProperty(GLint, Source1_Alpha, + __GLint__getSource1_Alpha, + __void__setSource1_Alpha__GLint); + I_SimpleProperty(GLint, Source1_RGB, + __GLint__getSource1_RGB, + __void__setSource1_RGB__GLint); + I_SimpleProperty(GLint, Source2_Alpha, + __GLint__getSource2_Alpha, + __void__setSource2_Alpha__GLint); + I_SimpleProperty(GLint, Source2_RGB, + __GLint__getSource2_RGB, + __void__setSource2_RGB__GLint); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/TexEnvFilter.cpp b/src/osgWrappers/osg/TexEnvFilter.cpp index 0ba4cad21..ea947815b 100644 --- a/src/osgWrappers/osg/TexEnvFilter.cpp +++ b/src/osgWrappers/osg/TexEnvFilter.cpp @@ -26,20 +26,63 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnvFilter) I_BaseType(osg::StateAttribute); - I_ConstructorWithDefaults1(IN, float, lodBias, 0.0f); - I_ConstructorWithDefaults2(IN, const osg::TexEnvFilter &, texenv, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method0(bool, isTextureAttribute); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(void, setLodBias, IN, float, lodBias); - I_Method0(float, getLodBias); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(float, LodBias); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_ConstructorWithDefaults1(IN, float, lodBias, 0.0f, + ____TexEnvFilter__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexEnvFilter &, texenv, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexEnvFilter__C5_TexEnvFilter_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method0(bool, isTextureAttribute, + __bool__isTextureAttribute, + "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setLodBias, IN, float, lodBias, + __void__setLodBias__float, + "", + ""); + I_Method0(float, getLodBias, + __float__getLodBias, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(float, LodBias, + __float__getLodBias, + __void__setLodBias__float); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/TexGen.cpp b/src/osgWrappers/osg/TexGen.cpp index 477a06191..c6d9d6f1b 100644 --- a/src/osgWrappers/osg/TexGen.cpp +++ b/src/osgWrappers/osg/TexGen.cpp @@ -43,27 +43,89 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TexGen) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TexGen &, texgen, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method0(bool, isTextureAttribute); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(void, apply, IN, osg::State &, state); - I_Method1(void, setMode, IN, osg::TexGen::Mode, mode); - I_Method0(osg::TexGen::Mode, getMode); - I_Method2(void, setPlane, IN, osg::TexGen::Coord, which, IN, const osg::Plane &, plane); - I_Method1(osg::Plane &, getPlane, IN, osg::TexGen::Coord, which); - I_Method1(const osg::Plane &, getPlane, IN, osg::TexGen::Coord, which); - I_Method1(void, setPlanesFromMatrix, IN, const osg::Matrixd &, matrix); - I_Property(osg::TexGen::Mode, Mode); - I_IndexedProperty1(const osg::Plane &, Plane, osg::TexGen::Coord, which); - I_WriteOnlyProperty(const osg::Matrixd &, PlanesFromMatrix); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____TexGen, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexGen &, texgen, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexGen__C5_TexGen_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method0(bool, isTextureAttribute, + __bool__isTextureAttribute, + "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_Method1(void, setMode, IN, osg::TexGen::Mode, mode, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::TexGen::Mode, getMode, + __Mode__getMode, + "", + ""); + I_Method2(void, setPlane, IN, osg::TexGen::Coord, which, IN, const osg::Plane &, plane, + __void__setPlane__Coord__C5_Plane_R1, + "", + ""); + I_Method1(osg::Plane &, getPlane, IN, osg::TexGen::Coord, which, + __Plane_R1__getPlane__Coord, + "", + ""); + I_Method1(const osg::Plane &, getPlane, IN, osg::TexGen::Coord, which, + __C5_Plane_R1__getPlane__Coord, + "", + ""); + I_Method1(void, setPlanesFromMatrix, IN, const osg::Matrixd &, matrix, + __void__setPlanesFromMatrix__C5_Matrixd_R1, + "Set the tex gen planes from specified matrix. ", + "Typical usage would be to pass in a projection matrix to set up projective texturing."); + I_SimpleProperty(osg::TexGen::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_IndexedProperty(const osg::Plane &, Plane, + __C5_Plane_R1__getPlane__Coord, + __void__setPlane__Coord__C5_Plane_R1, + 0); + I_SimpleProperty(const osg::Matrixd &, PlanesFromMatrix, + 0, + __void__setPlanesFromMatrix__C5_Matrixd_R1); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/TexGenNode.cpp b/src/osgWrappers/osg/TexGenNode.cpp index b9a9e557c..6244a8c00 100644 --- a/src/osgWrappers/osg/TexGenNode.cpp +++ b/src/osgWrappers/osg/TexGenNode.cpp @@ -31,24 +31,77 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TexGenNode) I_BaseType(osg::Group); - I_Constructor0(); - I_Constructor1(IN, osg::TexGen *, texgen); - I_ConstructorWithDefaults2(IN, const osg::TexGenNode &, tgb, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, setReferenceFrame, IN, osg::TexGenNode::ReferenceFrame, rf); - I_Method0(osg::TexGenNode::ReferenceFrame, getReferenceFrame); - I_Method1(void, setTextureUnit, IN, unsigned int, textureUnit); - I_Method0(unsigned int, getTextureUnit); - I_Method1(void, setTexGen, IN, osg::TexGen *, texgen); - I_Method0(osg::TexGen *, getTexGen); - I_Method0(const osg::TexGen *, getTexGen); - I_Property(osg::TexGenNode::ReferenceFrame, ReferenceFrame); - I_Property(osg::TexGen *, TexGen); - I_Property(unsigned int, TextureUnit); + I_Constructor0(____TexGenNode, + "", + ""); + I_Constructor1(IN, osg::TexGen *, texgen, + ____TexGenNode__TexGen_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexGenNode &, tgb, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexGenNode__C5_TexGenNode_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, setReferenceFrame, IN, osg::TexGenNode::ReferenceFrame, rf, + __void__setReferenceFrame__ReferenceFrame, + "Set the TexGenNode's ReferenceFrame, either to be relative to its parent reference frame. ", + ""); + I_Method0(osg::TexGenNode::ReferenceFrame, getReferenceFrame, + __ReferenceFrame__getReferenceFrame, + "Ge thte TexGenNode's ReferenceFrame. ", + ""); + I_Method1(void, setTextureUnit, IN, unsigned int, textureUnit, + __void__setTextureUnit__unsigned_int, + "Set the texture unit that this TexGenNode is associated with. ", + ""); + I_Method0(unsigned int, getTextureUnit, + __unsigned_int__getTextureUnit, + "", + ""); + I_Method1(void, setTexGen, IN, osg::TexGen *, texgen, + __void__setTexGen__TexGen_P1, + "Set the TexGen. ", + ""); + I_Method0(osg::TexGen *, getTexGen, + __TexGen_P1__getTexGen, + "Get the TexGen. ", + ""); + I_Method0(const osg::TexGen *, getTexGen, + __C5_TexGen_P1__getTexGen, + "Get the const TexGen. ", + ""); + I_SimpleProperty(osg::TexGenNode::ReferenceFrame, ReferenceFrame, + __ReferenceFrame__getReferenceFrame, + __void__setReferenceFrame__ReferenceFrame); + I_SimpleProperty(osg::TexGen *, TexGen, + __TexGen_P1__getTexGen, + __void__setTexGen__TexGen_P1); + I_SimpleProperty(unsigned int, TextureUnit, + __unsigned_int__getTextureUnit, + __void__setTextureUnit__unsigned_int); END_REFLECTOR diff --git a/src/osgWrappers/osg/TexMat.cpp b/src/osgWrappers/osg/TexMat.cpp index ce23725ee..a2a31036f 100644 --- a/src/osgWrappers/osg/TexMat.cpp +++ b/src/osgWrappers/osg/TexMat.cpp @@ -27,25 +27,81 @@ BEGIN_OBJECT_REFLECTOR(osg::TexMat) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_Constructor1(IN, const osg::Matrix &, matrix); - I_ConstructorWithDefaults2(IN, const osg::TexMat &, texmat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method0(bool, isTextureAttribute); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(void, setMatrix, IN, const osg::Matrix &, matrix); - I_Method0(osg::Matrix &, getMatrix); - I_Method0(const osg::Matrix &, getMatrix); - I_Method1(void, setScaleByTextureRectangleSize, IN, bool, flag); - I_Method0(bool, getScaleByTextureRectangleSize); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(const osg::Matrix &, Matrix); - I_Property(bool, ScaleByTextureRectangleSize); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____TexMat, + "", + ""); + I_Constructor1(IN, const osg::Matrix &, matrix, + ____TexMat__C5_Matrix_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexMat &, texmat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexMat__C5_TexMat_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method0(bool, isTextureAttribute, + __bool__isTextureAttribute, + "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setMatrix, IN, const osg::Matrix &, matrix, + __void__setMatrix__C5_Matrix_R1, + "Set the texture matrix. ", + ""); + I_Method0(osg::Matrix &, getMatrix, + __Matrix_R1__getMatrix, + "Get the texture matrix. ", + ""); + I_Method0(const osg::Matrix &, getMatrix, + __C5_Matrix_R1__getMatrix, + "Get the const texture matrix. ", + ""); + I_Method1(void, setScaleByTextureRectangleSize, IN, bool, flag, + __void__setScaleByTextureRectangleSize__bool, + "Switch on/off the post scaling of the TexMat matrix by the size of the last applied texture rectangle. ", + "Use a TexMat alongside a TextureRectangle with this scaling applied allows one to treat a TextureRectnagles texture coordinate range as if it were the usual non dimensional 0.0 to 1.0 range. Note, the TexMat matrix itself is not modified by the post scaling, its purely an operation passed to OpenGL to do the post scaling once the the TexMat matrix has been loaded. "); + I_Method0(bool, getScaleByTextureRectangleSize, + __bool__getScaleByTextureRectangleSize, + "Get whether the post scaling of the TexMat matrix, by the size of the last applied texture rectangle, is switched on/off. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "Apply texture matrix to OpenGL state. ", + ""); + I_SimpleProperty(const osg::Matrix &, Matrix, + __C5_Matrix_R1__getMatrix, + __void__setMatrix__C5_Matrix_R1); + I_SimpleProperty(bool, ScaleByTextureRectangleSize, + __bool__getScaleByTextureRectangleSize, + __void__setScaleByTextureRectangleSize__bool); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/Texture.cpp b/src/osgWrappers/osg/Texture.cpp index ace9c6e54..ad3bed23a 100644 --- a/src/osgWrappers/osg/Texture.cpp +++ b/src/osgWrappers/osg/Texture.cpp @@ -81,176 +81,623 @@ END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Texture &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method0(bool, isTextureAttribute); - I_Method0(GLenum, getTextureTarget); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method0(int, getTextureWidth); - I_Method0(int, getTextureHeight); - I_Method0(int, getTextureDepth); - I_Method2(void, setWrap, IN, osg::Texture::WrapParameter, which, IN, osg::Texture::WrapMode, wrap); - I_Method1(osg::Texture::WrapMode, getWrap, IN, osg::Texture::WrapParameter, which); - I_Method1(void, setBorderColor, IN, const osg::Vec4 &, color); - I_Method0(const osg::Vec4 &, getBorderColor); - I_Method1(void, setBorderWidth, IN, GLint, width); - I_Method0(GLint, getBorderWidth); - I_Method2(void, setFilter, IN, osg::Texture::FilterParameter, which, IN, osg::Texture::FilterMode, filter); - I_Method1(osg::Texture::FilterMode, getFilter, IN, osg::Texture::FilterParameter, which); - I_Method1(void, setMaxAnisotropy, IN, float, anis); - I_Method0(float, getMaxAnisotropy); - I_Method1(void, setUseHardwareMipMapGeneration, IN, bool, useHardwareMipMapGeneration); - I_Method0(bool, getUseHardwareMipMapGeneration); - I_Method1(void, setUnRefImageDataAfterApply, IN, bool, flag); - I_Method0(bool, getUnRefImageDataAfterApply); - I_Method1(void, setClientStorageHint, IN, bool, flag); - I_Method0(bool, getClientStorageHint); - I_Method1(void, setResizeNonPowerOfTwoHint, IN, bool, flag); - I_Method0(bool, getResizeNonPowerOfTwoHint); - I_Method1(void, setInternalFormatMode, IN, osg::Texture::InternalFormatMode, mode); - I_Method0(osg::Texture::InternalFormatMode, getInternalFormatMode); - I_Method1(void, setInternalFormat, IN, GLint, internalFormat); - I_Method0(GLint, getInternalFormat); - I_Method0(bool, isCompressedInternalFormat); - I_Method1(void, setSourceFormat, IN, GLenum, sourceFormat); - I_Method0(GLenum, getSourceFormat); - I_Method1(void, setSourceType, IN, GLenum, sourceType); - I_Method0(GLenum, getSourceType); - I_Method1(osg::Texture::TextureObject *, getTextureObject, IN, unsigned int, contextID); - I_Method0(void, dirtyTextureObject); - I_Method0(bool, areAllTextureObjectsLoaded); - I_Method1(unsigned int &, getTextureParameterDirty, IN, unsigned int, contextID); - I_Method0(void, dirtyTextureParameters); - I_Method1(void, setShadowComparison, IN, bool, flag); - I_Method1(void, setShadowCompareFunc, IN, osg::Texture::ShadowCompareFunc, func); - I_Method0(osg::Texture::ShadowCompareFunc, getShadowCompareFunc); - I_Method1(void, setShadowTextureMode, IN, osg::Texture::ShadowTextureMode, mode); - I_Method0(osg::Texture::ShadowTextureMode, getShadowTextureMode); - I_Method1(void, setShadowAmbient, IN, float, shadow_ambient); - I_Method0(float, getShadowAmbient); - I_Method2(void, setImage, IN, unsigned int, face, IN, osg::Image *, image); - I_Method1(osg::Image *, getImage, IN, unsigned int, face); - I_Method1(const osg::Image *, getImage, IN, unsigned int, face); - I_Method0(unsigned int, getNumImages); - I_Method1(void, setReadPBuffer, IN, osg::GraphicsContext *, context); - I_Method0(osg::GraphicsContext *, getReadPBuffer); - I_Method0(const osg::GraphicsContext *, getReadPBuffer); - I_Method1(void, apply, IN, osg::State &, state); - I_Method1(void, compileGLObjects, IN, osg::State &, state); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); - I_Method6(void, applyTexImage2D_load, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, numMipmapLevels); - I_Method7(void, applyTexImage2D_subload, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, inInternalFormat, IN, GLsizei, numMipmapLevels); - I_Method1(void, takeTextureObjects, IN, osg::Texture::TextureObjectListMap &, toblm); - I_StaticMethod2(osg::Texture::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Texture::Extensions *, extensions); - I_StaticMethod1(bool, isCompressedInternalFormat, IN, GLint, internalFormat); - I_StaticMethod6(void, getCompressedSize, IN, GLenum, internalFormat, IN, GLint, width, IN, GLint, height, IN, GLint, depth, IN, GLint &, blockSize, IN, GLint &, size); - I_StaticMethod2(osg::Texture::TextureObject *, generateTextureObject, IN, unsigned int, contextID, IN, GLenum, target); - I_StaticMethod8(osg::Texture::TextureObject *, generateTextureObject, IN, unsigned int, contextID, IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border); - I_StaticMethod1(void, setMinimumNumberOfTextureObjectsToRetainInCache, IN, unsigned int, minimum); - I_StaticMethod0(unsigned int, getMinimumNumberOfTextureObjectsToRetainInCache); - I_StaticMethod1(void, flushAllDeletedTextureObjects, IN, unsigned int, contextID); - I_StaticMethod3(void, flushDeletedTextureObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime); - I_Property(const osg::Vec4 &, BorderColor); - I_Property(GLint, BorderWidth); - I_Property(bool, ClientStorageHint); - I_IndexedProperty1(osg::Texture::FilterMode, Filter, osg::Texture::FilterParameter, which); - I_ArrayProperty_G(osg::Image *, Image, Images, unsigned int, void); - I_Property(GLint, InternalFormat); - I_Property(osg::Texture::InternalFormatMode, InternalFormatMode); - I_Property(float, MaxAnisotropy); - I_Property(osg::GraphicsContext *, ReadPBuffer); - I_Property(bool, ResizeNonPowerOfTwoHint); - I_Property(float, ShadowAmbient); - I_Property(osg::Texture::ShadowCompareFunc, ShadowCompareFunc); - I_WriteOnlyProperty(bool, ShadowComparison); - I_Property(osg::Texture::ShadowTextureMode, ShadowTextureMode); - I_Property(GLenum, SourceFormat); - I_Property(GLenum, SourceType); - I_ReadOnlyProperty(int, TextureDepth); - I_ReadOnlyProperty(int, TextureHeight); - I_ReadOnlyProperty(GLenum, TextureTarget); - I_ReadOnlyProperty(int, TextureWidth); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); - I_Property(bool, UnRefImageDataAfterApply); - I_Property(bool, UseHardwareMipMapGeneration); - I_IndexedProperty1(osg::Texture::WrapMode, Wrap, osg::Texture::WrapParameter, which); + I_Constructor0(____Texture, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Texture &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Texture__C5_Texture_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method0(bool, isTextureAttribute, + __bool__isTextureAttribute, + "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", + ""); + I_Method0(GLenum, getTextureTarget, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method0(int, getTextureWidth, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + __int__getTextureDepth, + "", + ""); + I_Method2(void, setWrap, IN, osg::Texture::WrapParameter, which, IN, osg::Texture::WrapMode, wrap, + __void__setWrap__WrapParameter__WrapMode, + "Sets the texture wrap mode. ", + ""); + I_Method1(osg::Texture::WrapMode, getWrap, IN, osg::Texture::WrapParameter, which, + __WrapMode__getWrap__WrapParameter, + "Gets the texture wrap mode. ", + ""); + I_Method1(void, setBorderColor, IN, const osg::Vec4 &, color, + __void__setBorderColor__C5_Vec4_R1, + "Sets the border color. ", + "Only used when wrap mode is CLAMP_TO_BORDER. "); + I_Method0(const osg::Vec4 &, getBorderColor, + __C5_Vec4_R1__getBorderColor, + "Gets the border color. ", + ""); + I_Method1(void, setBorderWidth, IN, GLint, width, + __void__setBorderWidth__GLint, + "Sets the border width. ", + ""); + I_Method0(GLint, getBorderWidth, + __GLint__getBorderWidth, + "", + ""); + I_Method2(void, setFilter, IN, osg::Texture::FilterParameter, which, IN, osg::Texture::FilterMode, filter, + __void__setFilter__FilterParameter__FilterMode, + "Sets the texture filter mode. ", + ""); + I_Method1(osg::Texture::FilterMode, getFilter, IN, osg::Texture::FilterParameter, which, + __FilterMode__getFilter__FilterParameter, + "Gets the texture filter mode. ", + ""); + I_Method1(void, setMaxAnisotropy, IN, float, anis, + __void__setMaxAnisotropy__float, + "Sets the maximum anisotropy value, default value is 1.0 for no anisotropic filtering. ", + "If hardware does not support anisotropic filtering, use normal filtering (equivilant to a max anisotropy value of 1.0. Valid range is 1.0f upwards. The maximum value depends on the graphics system. "); + I_Method0(float, getMaxAnisotropy, + __float__getMaxAnisotropy, + "Gets the maximum anisotropy value. ", + ""); + I_Method1(void, setUseHardwareMipMapGeneration, IN, bool, useHardwareMipMapGeneration, + __void__setUseHardwareMipMapGeneration__bool, + "Sets the hardware mipmap generation hint. ", + "If enabled, it will only be used if supported in the graphics system. "); + I_Method0(bool, getUseHardwareMipMapGeneration, + __bool__getUseHardwareMipMapGeneration, + "Gets the hardware mipmap generation hint. ", + ""); + I_Method1(void, setUnRefImageDataAfterApply, IN, bool, flag, + __void__setUnRefImageDataAfterApply__bool, + "Sets whether or not the apply() function will unreference the image data. ", + "If enabled, and the image data is only referened by this Texture, apply() will delete the image data. "); + I_Method0(bool, getUnRefImageDataAfterApply, + __bool__getUnRefImageDataAfterApply, + "Gets whether or not apply() unreferences image data. ", + ""); + I_Method1(void, setClientStorageHint, IN, bool, flag, + __void__setClientStorageHint__bool, + "Sets whether to use client storage for the texture, if supported by the graphics system. ", + "Note: If enabled, and the graphics system supports it, the osg::Image(s) associated with this texture cannot be deleted, so the UnRefImageDataAfterApply flag would be ignored. "); + I_Method0(bool, getClientStorageHint, + __bool__getClientStorageHint, + "Gets whether to use client storage for the texture. ", + ""); + I_Method1(void, setResizeNonPowerOfTwoHint, IN, bool, flag, + __void__setResizeNonPowerOfTwoHint__bool, + "Sets whether to force the texture to resize images that have dimensions that are not a power of two. ", + "If enabled, NPOT images will be resized, whether or not NPOT textures are supported by the hardware. If disabled, NPOT images will not be resized if supported by hardware. "); + I_Method0(bool, getResizeNonPowerOfTwoHint, + __bool__getResizeNonPowerOfTwoHint, + "Gets whether texture will force non power to two images to be resized. ", + ""); + I_Method1(void, setInternalFormatMode, IN, osg::Texture::InternalFormatMode, mode, + __void__setInternalFormatMode__InternalFormatMode, + "Sets the internal texture format mode. ", + "Note: If the texture format is USE_IMAGE_DATA_FORMAT, USE_ARB_COMPRESSION, or USE_S3TC_COMPRESSION, the internal format mode is set automatically and will overwrite the previous _internalFormat. "); + I_Method0(osg::Texture::InternalFormatMode, getInternalFormatMode, + __InternalFormatMode__getInternalFormatMode, + "Gets the internal texture format mode. ", + ""); + I_Method1(void, setInternalFormat, IN, GLint, internalFormat, + __void__setInternalFormat__GLint, + "Sets the internal texture format. ", + "Implicitly sets the internalFormatMode to USE_USER_DEFINED_FORMAT. "); + I_Method0(GLint, getInternalFormat, + __GLint__getInternalFormat, + "Gets the internal texture format. ", + ""); + I_Method0(bool, isCompressedInternalFormat, + __bool__isCompressedInternalFormat, + "Return true if the internal format is one of the compressed formats. ", + ""); + I_Method1(void, setSourceFormat, IN, GLenum, sourceFormat, + __void__setSourceFormat__GLenum, + "Sets the external source image format, used as a fallback when no osg::Image is attached to provide the source image format. ", + ""); + I_Method0(GLenum, getSourceFormat, + __GLenum__getSourceFormat, + "Gets the external source image format. ", + ""); + I_Method1(void, setSourceType, IN, GLenum, sourceType, + __void__setSourceType__GLenum, + "Sets the external source data type, used as a fallback when no osg::Image is attached to provide the source image format. ", + ""); + I_Method0(GLenum, getSourceType, + __GLenum__getSourceType, + "Gets the external source data type. ", + ""); + I_Method1(osg::Texture::TextureObject *, getTextureObject, IN, unsigned int, contextID, + __TextureObject_P1__getTextureObject__unsigned_int, + "Returns a pointer to the texture object for the current context. ", + ""); + I_Method0(void, dirtyTextureObject, + __void__dirtyTextureObject, + "Forces a recompile on next apply() of associated OpenGL texture objects. ", + ""); + I_Method0(bool, areAllTextureObjectsLoaded, + __bool__areAllTextureObjectsLoaded, + "Returns true if the texture objects for all the required graphics contexts are loaded. ", + ""); + I_Method1(unsigned int &, getTextureParameterDirty, IN, unsigned int, contextID, + __unsigned_int_R1__getTextureParameterDirty__unsigned_int, + "Gets the dirty flag for the current contextID. ", + ""); + I_Method0(void, dirtyTextureParameters, + __void__dirtyTextureParameters, + "Force a reset on next apply() of associated OpenGL texture parameters. ", + ""); + I_Method1(void, setShadowComparison, IN, bool, flag, + __void__setShadowComparison__bool, + "Sets GL_TEXTURE_COMPARE_MODE_ARB to GL_COMPARE_R_TO_TEXTURE_ARB See http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow.txt. ", + ""); + I_Method1(void, setShadowCompareFunc, IN, osg::Texture::ShadowCompareFunc, func, + __void__setShadowCompareFunc__ShadowCompareFunc, + "Sets shadow texture comparison function. ", + ""); + I_Method0(osg::Texture::ShadowCompareFunc, getShadowCompareFunc, + __ShadowCompareFunc__getShadowCompareFunc, + "", + ""); + I_Method1(void, setShadowTextureMode, IN, osg::Texture::ShadowTextureMode, mode, + __void__setShadowTextureMode__ShadowTextureMode, + "Sets shadow texture mode after comparison. ", + ""); + I_Method0(osg::Texture::ShadowTextureMode, getShadowTextureMode, + __ShadowTextureMode__getShadowTextureMode, + "", + ""); + I_Method1(void, setShadowAmbient, IN, float, shadow_ambient, + __void__setShadowAmbient__float, + "Sets the TEXTURE_COMPARE_FAIL_VALUE_ARB texture parameter. ", + "See http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow_ambient.txt. "); + I_Method0(float, getShadowAmbient, + __float__getShadowAmbient, + "", + ""); + I_Method2(void, setImage, IN, unsigned int, face, IN, osg::Image *, image, + __void__setImage__unsigned_int__Image_P1, + "Sets the texture image for the specified face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned int, face, + __Image_P1__getImage__unsigned_int, + "Gets the texture image for the specified face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned int, face, + __C5_Image_P1__getImage__unsigned_int, + "Gets the const texture image for specified face. ", + ""); + I_Method0(unsigned int, getNumImages, + __unsigned_int__getNumImages, + "Gets the number of images that can be assigned to this Texture. ", + ""); + I_Method1(void, setReadPBuffer, IN, osg::GraphicsContext *, context, + __void__setReadPBuffer__GraphicsContext_P1, + "Set the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", + ""); + I_Method0(osg::GraphicsContext *, getReadPBuffer, + __GraphicsContext_P1__getReadPBuffer, + "Get the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", + ""); + I_Method0(const osg::GraphicsContext *, getReadPBuffer, + __C5_GraphicsContext_P1__getReadPBuffer, + "Get the const PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "Texture is a pure virtual base class, apply must be overriden. ", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + __void__compileGLObjects__State_R1, + "Calls apply(state) to compile the texture. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + __void__releaseGLObjects__State_P1, + "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objexts for all graphics contexts. "); + I_Method6(void, applyTexImage2D_load, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, numMipmapLevels, + __void__applyTexImage2D_load__State_R1__GLenum__C5_Image_P1__GLsizei__GLsizei__GLsizei, + "Helper method. ", + "Creates the texture, but doesn't set or use a texture binding. Note: Don't call this method directly unless you're implementing a subload callback. "); + I_Method7(void, applyTexImage2D_subload, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, inInternalFormat, IN, GLsizei, numMipmapLevels, + __void__applyTexImage2D_subload__State_R1__GLenum__C5_Image_P1__GLsizei__GLsizei__GLint__GLsizei, + "Helper method. ", + "Subloads images into the texture, but doesn't set or use a texture binding. Note: Don't call this method directly unless you're implementing a subload callback. "); + I_Method1(void, takeTextureObjects, IN, osg::Texture::TextureObjectListMap &, toblm, + __void__takeTextureObjects__TextureObjectListMap_R1, + "Takes the active texture objects from the Texture and places them in the specified TextureObjectListMap. ", + ""); + I_StaticMethod2(osg::Texture::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Gets the extension for the specified context. ", + "Creates the Extensions object for that context if it doesn't exist. Returns NULL if the Extensions object for the context doesn't exist and the createIfNotInitalized flag is false. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Texture::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "Overrides Extensions objects across graphics contexts. ", + "Typically used to ensure the same lowest common denominator of extensions on sustems with different graphics pipes. "); + I_StaticMethod1(bool, isCompressedInternalFormat, IN, GLint, internalFormat, + __bool__isCompressedInternalFormat__GLint_S, + "Determine whether the given internalFormat is a compressed image format. ", + ""); + I_StaticMethod6(void, getCompressedSize, IN, GLenum, internalFormat, IN, GLint, width, IN, GLint, height, IN, GLint, depth, IN, GLint &, blockSize, IN, GLint &, size, + __void__getCompressedSize__GLenum__GLint__GLint__GLint__GLint_R1__GLint_R1_S, + "Determine the size of a compressed image, given the internalFormat, the width, the height, and the depth of the image. ", + "The block size and the size are output parameters. "); + I_StaticMethod2(osg::Texture::TextureObject *, generateTextureObject, IN, unsigned int, contextID, IN, GLenum, target, + __TextureObject_P1__generateTextureObject__unsigned_int__GLenum_S, + "", + ""); + I_StaticMethod8(osg::Texture::TextureObject *, generateTextureObject, IN, unsigned int, contextID, IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, + __TextureObject_P1__generateTextureObject__unsigned_int__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint_S, + "", + ""); + I_StaticMethod1(void, setMinimumNumberOfTextureObjectsToRetainInCache, IN, unsigned int, minimum, + __void__setMinimumNumberOfTextureObjectsToRetainInCache__unsigned_int_S, + "Set the minimum number of texture objects to retain in the deleted display list cache. ", + ""); + I_StaticMethod0(unsigned int, getMinimumNumberOfTextureObjectsToRetainInCache, + __unsigned_int__getMinimumNumberOfTextureObjectsToRetainInCache_S, + "Get the minimum number of display lists to retain in the deleted display list cache. ", + ""); + I_StaticMethod1(void, flushAllDeletedTextureObjects, IN, unsigned int, contextID, + __void__flushAllDeletedTextureObjects__unsigned_int_S, + "", + ""); + I_StaticMethod3(void, flushDeletedTextureObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedTextureObjects__unsigned_int__double__double_R1_S, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, BorderColor, + __C5_Vec4_R1__getBorderColor, + __void__setBorderColor__C5_Vec4_R1); + I_SimpleProperty(GLint, BorderWidth, + __GLint__getBorderWidth, + __void__setBorderWidth__GLint); + I_SimpleProperty(bool, ClientStorageHint, + __bool__getClientStorageHint, + __void__setClientStorageHint__bool); + I_IndexedProperty(osg::Texture::FilterMode, Filter, + __FilterMode__getFilter__FilterParameter, + __void__setFilter__FilterParameter__FilterMode, + 0); + I_ArrayProperty(osg::Image *, Image, + __Image_P1__getImage__unsigned_int, + __void__setImage__unsigned_int__Image_P1, + __unsigned_int__getNumImages, + 0, + 0, + 0); + I_SimpleProperty(GLint, InternalFormat, + __GLint__getInternalFormat, + __void__setInternalFormat__GLint); + I_SimpleProperty(osg::Texture::InternalFormatMode, InternalFormatMode, + __InternalFormatMode__getInternalFormatMode, + __void__setInternalFormatMode__InternalFormatMode); + I_SimpleProperty(float, MaxAnisotropy, + __float__getMaxAnisotropy, + __void__setMaxAnisotropy__float); + I_SimpleProperty(osg::GraphicsContext *, ReadPBuffer, + __GraphicsContext_P1__getReadPBuffer, + __void__setReadPBuffer__GraphicsContext_P1); + I_SimpleProperty(bool, ResizeNonPowerOfTwoHint, + __bool__getResizeNonPowerOfTwoHint, + __void__setResizeNonPowerOfTwoHint__bool); + I_SimpleProperty(float, ShadowAmbient, + __float__getShadowAmbient, + __void__setShadowAmbient__float); + I_SimpleProperty(osg::Texture::ShadowCompareFunc, ShadowCompareFunc, + __ShadowCompareFunc__getShadowCompareFunc, + __void__setShadowCompareFunc__ShadowCompareFunc); + I_SimpleProperty(bool, ShadowComparison, + 0, + __void__setShadowComparison__bool); + I_SimpleProperty(osg::Texture::ShadowTextureMode, ShadowTextureMode, + __ShadowTextureMode__getShadowTextureMode, + __void__setShadowTextureMode__ShadowTextureMode); + I_SimpleProperty(GLenum, SourceFormat, + __GLenum__getSourceFormat, + __void__setSourceFormat__GLenum); + I_SimpleProperty(GLenum, SourceType, + __GLenum__getSourceType, + __void__setSourceType__GLenum); + I_SimpleProperty(int, TextureDepth, + __int__getTextureDepth, + 0); + I_SimpleProperty(int, TextureHeight, + __int__getTextureHeight, + 0); + I_SimpleProperty(GLenum, TextureTarget, + __GLenum__getTextureTarget, + 0); + I_SimpleProperty(int, TextureWidth, + __int__getTextureWidth, + 0); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); + I_SimpleProperty(bool, UnRefImageDataAfterApply, + __bool__getUnRefImageDataAfterApply, + __void__setUnRefImageDataAfterApply__bool); + I_SimpleProperty(bool, UseHardwareMipMapGeneration, + __bool__getUseHardwareMipMapGeneration, + __void__setUseHardwareMipMapGeneration__bool); + I_IndexedProperty(osg::Texture::WrapMode, Wrap, + __WrapMode__getWrap__WrapParameter, + __void__setWrap__WrapParameter__WrapMode, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Texture::Extensions) I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID); - I_Constructor1(IN, const osg::Texture::Extensions &, rhs); - I_Method1(void, lowestCommonDenominator, IN, const osg::Texture::Extensions &, rhs); - I_Method1(void, setupGLExtensions, IN, unsigned int, contextID); - I_Method1(void, setMultiTexturingSupported, IN, bool, flag); - I_Method0(bool, isMultiTexturingSupported); - I_Method1(void, setTextureFilterAnisotropicSupported, IN, bool, flag); - I_Method0(bool, isTextureFilterAnisotropicSupported); - I_Method1(void, setTextureCompressionARBSupported, IN, bool, flag); - I_Method0(bool, isTextureCompressionARBSupported); - I_Method1(void, setTextureCompressionS3TCSupported, IN, bool, flag); - I_Method0(bool, isTextureCompressionS3TCSupported); - I_Method1(void, setTextureMirroredRepeatSupported, IN, bool, flag); - I_Method0(bool, isTextureMirroredRepeatSupported); - I_Method1(void, setTextureEdgeClampSupported, IN, bool, flag); - I_Method0(bool, isTextureEdgeClampSupported); - I_Method1(void, setTextureBorderClampSupported, IN, bool, flag); - I_Method0(bool, isTextureBorderClampSupported); - I_Method1(void, setGenerateMipMapSupported, IN, bool, flag); - I_Method0(bool, isGenerateMipMapSupported); - I_Method1(void, setShadowSupported, IN, bool, flag); - I_Method0(bool, isShadowSupported); - I_Method1(void, setShadowAmbientSupported, IN, bool, flag); - I_Method0(bool, isShadowAmbientSupported); - I_Method1(void, setMaxTextureSize, IN, GLint, maxsize); - I_Method0(GLint, maxTextureSize); - I_Method1(void, setNumTextureUnits, IN, GLint, nunits); - I_Method0(GLint, numTextureUnits); - I_Method0(bool, isCompressedTexImage2DSupported); - I_Method1(void, setCompressedTexImage2DProc, IN, void *, ptr); - I_Method8(void, glCompressedTexImage2D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data); - I_Method1(void, setCompressedTexSubImage2DProc, IN, void *, ptr); - I_Method9(void, glCompressedTexSubImage2D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLenum, format, IN, GLsizei, type, IN, const GLvoid *, data); - I_Method1(void, setGetCompressedTexImageProc, IN, void *, ptr); - I_Method3(void, glGetCompressedTexImage, IN, GLenum, target, IN, GLint, level, IN, GLvoid *, data); - I_Method0(bool, isClientStorageSupported); - I_Method1(bool, isNonPowerOfTwoTextureSupported, IN, GLenum, filter); - I_WriteOnlyProperty(void *, CompressedTexImage2DProc); - I_WriteOnlyProperty(void *, CompressedTexSubImage2DProc); - I_WriteOnlyProperty(bool, GenerateMipMapSupported); - I_WriteOnlyProperty(void *, GetCompressedTexImageProc); - I_WriteOnlyProperty(GLint, MaxTextureSize); - I_WriteOnlyProperty(bool, MultiTexturingSupported); - I_WriteOnlyProperty(GLint, NumTextureUnits); - I_WriteOnlyProperty(bool, ShadowAmbientSupported); - I_WriteOnlyProperty(bool, ShadowSupported); - I_WriteOnlyProperty(bool, TextureBorderClampSupported); - I_WriteOnlyProperty(bool, TextureCompressionARBSupported); - I_WriteOnlyProperty(bool, TextureCompressionS3TCSupported); - I_WriteOnlyProperty(bool, TextureEdgeClampSupported); - I_WriteOnlyProperty(bool, TextureFilterAnisotropicSupported); - I_WriteOnlyProperty(bool, TextureMirroredRepeatSupported); - I_WriteOnlyProperty(unsigned int, upGLExtensions); + I_Constructor1(IN, unsigned int, contextID, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Texture::Extensions &, rhs, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Texture::Extensions &, rhs, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, + __void__setupGLExtensions__unsigned_int, + "", + ""); + I_Method1(void, setMultiTexturingSupported, IN, bool, flag, + __void__setMultiTexturingSupported__bool, + "", + ""); + I_Method0(bool, isMultiTexturingSupported, + __bool__isMultiTexturingSupported, + "", + ""); + I_Method1(void, setTextureFilterAnisotropicSupported, IN, bool, flag, + __void__setTextureFilterAnisotropicSupported__bool, + "", + ""); + I_Method0(bool, isTextureFilterAnisotropicSupported, + __bool__isTextureFilterAnisotropicSupported, + "", + ""); + I_Method1(void, setTextureCompressionARBSupported, IN, bool, flag, + __void__setTextureCompressionARBSupported__bool, + "", + ""); + I_Method0(bool, isTextureCompressionARBSupported, + __bool__isTextureCompressionARBSupported, + "", + ""); + I_Method1(void, setTextureCompressionS3TCSupported, IN, bool, flag, + __void__setTextureCompressionS3TCSupported__bool, + "", + ""); + I_Method0(bool, isTextureCompressionS3TCSupported, + __bool__isTextureCompressionS3TCSupported, + "", + ""); + I_Method1(void, setTextureMirroredRepeatSupported, IN, bool, flag, + __void__setTextureMirroredRepeatSupported__bool, + "", + ""); + I_Method0(bool, isTextureMirroredRepeatSupported, + __bool__isTextureMirroredRepeatSupported, + "", + ""); + I_Method1(void, setTextureEdgeClampSupported, IN, bool, flag, + __void__setTextureEdgeClampSupported__bool, + "", + ""); + I_Method0(bool, isTextureEdgeClampSupported, + __bool__isTextureEdgeClampSupported, + "", + ""); + I_Method1(void, setTextureBorderClampSupported, IN, bool, flag, + __void__setTextureBorderClampSupported__bool, + "", + ""); + I_Method0(bool, isTextureBorderClampSupported, + __bool__isTextureBorderClampSupported, + "", + ""); + I_Method1(void, setGenerateMipMapSupported, IN, bool, flag, + __void__setGenerateMipMapSupported__bool, + "", + ""); + I_Method0(bool, isGenerateMipMapSupported, + __bool__isGenerateMipMapSupported, + "", + ""); + I_Method1(void, setShadowSupported, IN, bool, flag, + __void__setShadowSupported__bool, + "", + ""); + I_Method0(bool, isShadowSupported, + __bool__isShadowSupported, + "", + ""); + I_Method1(void, setShadowAmbientSupported, IN, bool, flag, + __void__setShadowAmbientSupported__bool, + "", + ""); + I_Method0(bool, isShadowAmbientSupported, + __bool__isShadowAmbientSupported, + "", + ""); + I_Method1(void, setMaxTextureSize, IN, GLint, maxsize, + __void__setMaxTextureSize__GLint, + "", + ""); + I_Method0(GLint, maxTextureSize, + __GLint__maxTextureSize, + "", + ""); + I_Method1(void, setNumTextureUnits, IN, GLint, nunits, + __void__setNumTextureUnits__GLint, + "", + ""); + I_Method0(GLint, numTextureUnits, + __GLint__numTextureUnits, + "", + ""); + I_Method0(bool, isCompressedTexImage2DSupported, + __bool__isCompressedTexImage2DSupported, + "", + ""); + I_Method1(void, setCompressedTexImage2DProc, IN, void *, ptr, + __void__setCompressedTexImage2DProc__void_P1, + "", + ""); + I_Method8(void, glCompressedTexImage2D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data, + __void__glCompressedTexImage2D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setCompressedTexSubImage2DProc, IN, void *, ptr, + __void__setCompressedTexSubImage2DProc__void_P1, + "", + ""); + I_Method9(void, glCompressedTexSubImage2D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLenum, format, IN, GLsizei, type, IN, const GLvoid *, data, + __void__glCompressedTexSubImage2D__GLenum__GLint__GLint__GLint__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setGetCompressedTexImageProc, IN, void *, ptr, + __void__setGetCompressedTexImageProc__void_P1, + "", + ""); + I_Method3(void, glGetCompressedTexImage, IN, GLenum, target, IN, GLint, level, IN, GLvoid *, data, + __void__glGetCompressedTexImage__GLenum__GLint__GLvoid_P1, + "", + ""); + I_Method0(bool, isClientStorageSupported, + __bool__isClientStorageSupported, + "", + ""); + I_Method1(bool, isNonPowerOfTwoTextureSupported, IN, GLenum, filter, + __bool__isNonPowerOfTwoTextureSupported__GLenum, + "", + ""); + I_SimpleProperty(void *, CompressedTexImage2DProc, + 0, + __void__setCompressedTexImage2DProc__void_P1); + I_SimpleProperty(void *, CompressedTexSubImage2DProc, + 0, + __void__setCompressedTexSubImage2DProc__void_P1); + I_SimpleProperty(bool, GenerateMipMapSupported, + 0, + __void__setGenerateMipMapSupported__bool); + I_SimpleProperty(void *, GetCompressedTexImageProc, + 0, + __void__setGetCompressedTexImageProc__void_P1); + I_SimpleProperty(GLint, MaxTextureSize, + 0, + __void__setMaxTextureSize__GLint); + I_SimpleProperty(bool, MultiTexturingSupported, + 0, + __void__setMultiTexturingSupported__bool); + I_SimpleProperty(GLint, NumTextureUnits, + 0, + __void__setNumTextureUnits__GLint); + I_SimpleProperty(bool, ShadowAmbientSupported, + 0, + __void__setShadowAmbientSupported__bool); + I_SimpleProperty(bool, ShadowSupported, + 0, + __void__setShadowSupported__bool); + I_SimpleProperty(bool, TextureBorderClampSupported, + 0, + __void__setTextureBorderClampSupported__bool); + I_SimpleProperty(bool, TextureCompressionARBSupported, + 0, + __void__setTextureCompressionARBSupported__bool); + I_SimpleProperty(bool, TextureCompressionS3TCSupported, + 0, + __void__setTextureCompressionS3TCSupported__bool); + I_SimpleProperty(bool, TextureEdgeClampSupported, + 0, + __void__setTextureEdgeClampSupported__bool); + I_SimpleProperty(bool, TextureFilterAnisotropicSupported, + 0, + __void__setTextureFilterAnisotropicSupported__bool); + I_SimpleProperty(bool, TextureMirroredRepeatSupported, + 0, + __void__setTextureMirroredRepeatSupported__bool); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Texture::TextureObject) I_BaseType(osg::Referenced); - I_Constructor2(IN, GLuint, id, IN, GLenum, target); - I_Constructor8(IN, GLuint, id, IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border); - I_Method7(bool, match, IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border); - I_Method0(void, bind); - I_MethodWithDefaults1(void, setAllocated, IN, bool, allocated, true); - I_Method6(void, setAllocated, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border); - I_Method0(bool, isAllocated); - I_Method0(bool, isReusable); - I_WriteOnlyProperty(bool, Allocated); + I_Constructor2(IN, GLuint, id, IN, GLenum, target, + ____TextureObject__GLuint__GLenum, + "", + ""); + I_Constructor8(IN, GLuint, id, IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, + ____TextureObject__GLuint__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint, + "", + ""); + I_Method7(bool, match, IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, + __bool__match__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint, + "", + ""); + I_Method0(void, bind, + __void__bind, + "", + ""); + I_MethodWithDefaults1(void, setAllocated, IN, bool, allocated, true, + __void__setAllocated__bool, + "", + ""); + I_Method6(void, setAllocated, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, + __void__setAllocated__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint, + "", + ""); + I_Method0(bool, isAllocated, + __bool__isAllocated, + "", + ""); + I_Method0(bool, isReusable, + __bool__isReusable, + "", + ""); + I_SimpleProperty(bool, Allocated, + 0, + __void__setAllocated__bool); I_PublicMemberProperty(GLuint, _id); I_PublicMemberProperty(GLenum, _target); I_PublicMemberProperty(GLint, _numMipmapLevels); @@ -264,24 +711,65 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture::TextureObject) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::buffered_object< osg::Texture::TextureObjectList >) - I_Constructor0(); - I_Constructor1(IN, unsigned int, size); - I_Method1(void, setAllElementsTo, IN, const osg::Texture::TextureObjectList &, t); - I_Method0(void, clear); - I_Method0(bool, empty); - I_Method0(unsigned int, size); - I_WriteOnlyProperty(const osg::Texture::TextureObjectList &, AllElementsTo); + I_Constructor0(____buffered_object, + "", + ""); + I_Constructor1(IN, unsigned int, size, + ____buffered_object__unsigned_int, + "", + ""); + I_Method1(void, setAllElementsTo, IN, const osg::Texture::TextureObjectList &, t, + __void__setAllElementsTo__C5_T_R1, + "", + ""); + I_Method0(void, clear, + __void__clear, + "", + ""); + I_Method0(bool, empty, + __bool__empty, + "", + ""); + I_Method0(unsigned int, size, + __unsigned_int__size, + "", + ""); + I_SimpleProperty(const osg::Texture::TextureObjectList &, AllElementsTo, + 0, + __void__setAllElementsTo__C5_T_R1); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Texture::TextureObject >) - I_Constructor0(); - I_Constructor1(IN, osg::Texture::TextureObject *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osg::Texture::TextureObject > &, rp); - I_Method0(osg::Texture::TextureObject *, get); - I_Method0(bool, valid); - I_Method0(osg::Texture::TextureObject *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osg::Texture::TextureObject > &, rp); - I_ReadOnlyProperty(osg::Texture::TextureObject *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Texture::TextureObject *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Texture::TextureObject > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Texture::TextureObject *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osg::Texture::TextureObject *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Texture::TextureObject > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Texture::TextureObject *, , + __T_P1__get, + 0); END_REFLECTOR STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::Texture::TextureObject > >); diff --git a/src/osgWrappers/osg/Texture1D.cpp b/src/osgWrappers/osg/Texture1D.cpp index 4a07901e7..8ab1fd3a4 100644 --- a/src/osgWrappers/osg/Texture1D.cpp +++ b/src/osgWrappers/osg/Texture1D.cpp @@ -27,50 +27,163 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture1D) I_BaseType(osg::Texture); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Texture1D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, rhs); - I_Method0(GLenum, getTextureTarget); - I_Method1(void, setImage, IN, osg::Image *, image); - I_Method0(osg::Image *, getImage); - I_Method0(const osg::Image *, getImage); - I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID); - I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image); - I_Method1(osg::Image *, getImage, IN, unsigned, int); - I_Method1(const osg::Image *, getImage, IN, unsigned, int); - I_Method0(unsigned int, getNumImages); - I_Method1(void, setTextureWidth, IN, int, width); - I_Method0(int, getTextureWidth); - I_Method0(int, getTextureHeight); - I_Method0(int, getTextureDepth); - I_Method1(void, setSubloadCallback, IN, osg::Texture1D::SubloadCallback *, cb); - I_Method0(osg::Texture1D::SubloadCallback *, getSubloadCallback); - I_Method0(const osg::Texture1D::SubloadCallback *, getSubloadCallback); - I_Method1(void, setNumMipmapLevels, IN, unsigned int, num); - I_Method0(unsigned int, getNumMipmapLevels); - I_Method4(void, copyTexImage1D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width); - I_Method5(void, copyTexSubImage1D, IN, osg::State &, state, IN, int, xoffset, IN, int, x, IN, int, y, IN, int, width); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(osg::Image *, Image); - I_WriteOnlyProperty(unsigned int, NumMipmapLevels); - I_Property(osg::Texture1D::SubloadCallback *, SubloadCallback); - I_ReadOnlyProperty(int, TextureDepth); - I_ReadOnlyProperty(int, TextureHeight); - I_ReadOnlyProperty(GLenum, TextureTarget); - I_Property(int, TextureWidth); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____Texture1D, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Texture1D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Texture1D__C5_Texture1D_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + __void__setImage__Image_P1, + "Sets the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + __Image_P1__getImage, + "Gets the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + __C5_Image_P1__getImage, + "Gets the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + __void__setImage__unsigned__Image_P1, + "Sets the texture image, ignoring face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned, int, + __Image_P1__getImage__unsigned, + "Gets the texture image, ignoring face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned, int, + __C5_Image_P1__getImage__unsigned, + "Gets the const texture image, ignoring face. ", + ""); + I_Method0(unsigned int, getNumImages, + __unsigned_int__getNumImages, + "Gets the number of images that can be assigned to the Texture. ", + ""); + I_Method1(void, setTextureWidth, IN, int, width, + __void__setTextureWidth__int, + "Sets the texture width. ", + "If width is zero, calculate the value from the source image width. "); + I_Method0(int, getTextureWidth, + __int__getTextureWidth, + "Gets the texture width. ", + ""); + I_Method0(int, getTextureHeight, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::Texture1D::SubloadCallback *, cb, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::Texture1D::SubloadCallback *, getSubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::Texture1D::SubloadCallback *, getSubloadCallback, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + __void__setNumMipmapLevels__unsigned_int, + "Helper function. ", + "Sets the number of mipmap levels created for this texture. Should only be called within an osg::Texuture::apply(), or during a custom OpenGL texture load. "); + I_Method0(unsigned int, getNumMipmapLevels, + __unsigned_int__getNumMipmapLevels, + "Gets the number of mipmap levels created. ", + ""); + I_Method4(void, copyTexImage1D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width, + __void__copyTexImage1D__State_R1__int__int__int, + "Copies pixels into a 1D texture image, as per glCopyTexImage1D. ", + "Creates an OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width. width must be a power of two. "); + I_Method5(void, copyTexSubImage1D, IN, osg::State &, state, IN, int, xoffset, IN, int, x, IN, int, y, IN, int, width, + __void__copyTexSubImage1D__State_R1__int__int__int__int, + "Copies a one-dimensional texture subimage, as per glCopyTexSubImage1D. ", + "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width. "); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "Bind the texture object. ", + "If the texture object hasn't already been compiled, create the texture mipmap levels. "); + I_SimpleProperty(osg::Image *, Image, + __Image_P1__getImage, + __void__setImage__Image_P1); + I_SimpleProperty(unsigned int, NumMipmapLevels, + 0, + __void__setNumMipmapLevels__unsigned_int); + I_SimpleProperty(osg::Texture1D::SubloadCallback *, SubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + __void__setSubloadCallback__SubloadCallback_P1); + I_SimpleProperty(int, TextureDepth, + __int__getTextureDepth, + 0); + I_SimpleProperty(int, TextureHeight, + __int__getTextureHeight, + 0); + I_SimpleProperty(GLenum, TextureTarget, + __GLenum__getTextureTarget, + 0); + I_SimpleProperty(int, TextureWidth, + __int__getTextureWidth, + __void__setTextureWidth__int); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture1D::SubloadCallback) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method2(void, load, IN, const osg::Texture1D &, texture, IN, osg::State &, state); - I_Method2(void, subload, IN, const osg::Texture1D &, texture, IN, osg::State &, state); + I_Constructor0(____SubloadCallback, + "", + ""); + I_Method2(void, load, IN, const osg::Texture1D &, texture, IN, osg::State &, state, + __void__load__C5_Texture1D_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::Texture1D &, texture, IN, osg::State &, state, + __void__subload__C5_Texture1D_R1__State_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Texture2D.cpp b/src/osgWrappers/osg/Texture2D.cpp index 83d146f06..0d6d83d13 100644 --- a/src/osgWrappers/osg/Texture2D.cpp +++ b/src/osgWrappers/osg/Texture2D.cpp @@ -27,53 +27,175 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture2D) I_BaseType(osg::Texture); - I_Constructor0(); - I_Constructor1(IN, osg::Image *, image); - I_ConstructorWithDefaults2(IN, const osg::Texture2D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, rhs); - I_Method0(GLenum, getTextureTarget); - I_Method1(void, setImage, IN, osg::Image *, image); - I_Method0(osg::Image *, getImage); - I_Method0(const osg::Image *, getImage); - I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID); - I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image); - I_Method1(osg::Image *, getImage, IN, unsigned, int); - I_Method1(const osg::Image *, getImage, IN, unsigned, int); - I_Method0(unsigned int, getNumImages); - I_Method2(void, setTextureSize, IN, int, width, IN, int, height); - I_Method1(void, setTextureWidth, IN, int, width); - I_Method1(void, setTextureHeight, IN, int, height); - I_Method0(int, getTextureWidth); - I_Method0(int, getTextureHeight); - I_Method0(int, getTextureDepth); - I_Method1(void, setSubloadCallback, IN, osg::Texture2D::SubloadCallback *, cb); - I_Method0(osg::Texture2D::SubloadCallback *, getSubloadCallback); - I_Method0(const osg::Texture2D::SubloadCallback *, getSubloadCallback); - I_Method1(void, setNumMipmapLevels, IN, unsigned int, num); - I_Method0(unsigned int, getNumMipmapLevels); - I_Method5(void, copyTexImage2D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width, IN, int, height); - I_Method7(void, copyTexSubImage2D, IN, osg::State &, state, IN, int, xoffset, IN, int, yoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(osg::Image *, Image); - I_WriteOnlyProperty(unsigned int, NumMipmapLevels); - I_Property(osg::Texture2D::SubloadCallback *, SubloadCallback); - I_ReadOnlyProperty(int, TextureDepth); - I_Property(int, TextureHeight); - I_ReadOnlyProperty(GLenum, TextureTarget); - I_Property(int, TextureWidth); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____Texture2D, + "", + ""); + I_Constructor1(IN, osg::Image *, image, + ____Texture2D__Image_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Texture2D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Texture2D__C5_Texture2D_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + __void__setImage__Image_P1, + "Sets the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + __Image_P1__getImage, + "Gets the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + __C5_Image_P1__getImage, + "Gets the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + __void__setImage__unsigned__Image_P1, + "Sets the texture image, ignoring face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned, int, + __Image_P1__getImage__unsigned, + "Gets the texture image, ignoring face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned, int, + __C5_Image_P1__getImage__unsigned, + "Gets the const texture image, ignoring face. ", + ""); + I_Method0(unsigned int, getNumImages, + __unsigned_int__getNumImages, + "Gets the number of images that can be assigned to the Texture. ", + ""); + I_Method2(void, setTextureSize, IN, int, width, IN, int, height, + __void__setTextureSize__int__int, + "Sets the texture width and height. ", + "If width or height are zero, calculate the respective value from the source image size. "); + I_Method1(void, setTextureWidth, IN, int, width, + __void__setTextureWidth__int, + "", + ""); + I_Method1(void, setTextureHeight, IN, int, height, + __void__setTextureHeight__int, + "", + ""); + I_Method0(int, getTextureWidth, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::Texture2D::SubloadCallback *, cb, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::Texture2D::SubloadCallback *, getSubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::Texture2D::SubloadCallback *, getSubloadCallback, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + __void__setNumMipmapLevels__unsigned_int, + "Helper function. ", + "Sets the number of mipmap levels created for this texture. Should only be called within an osg::Texuture::apply(), or during a custom OpenGL texture load. "); + I_Method0(unsigned int, getNumMipmapLevels, + __unsigned_int__getNumMipmapLevels, + "Gets the number of mipmap levels created. ", + ""); + I_Method5(void, copyTexImage2D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + __void__copyTexImage2D__State_R1__int__int__int__int, + "Copies pixels into a 2D texture image, as per glCopyTexImage2D. ", + "Creates an OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. width and height must be a power of two. "); + I_Method7(void, copyTexSubImage2D, IN, osg::State &, state, IN, int, xoffset, IN, int, yoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + __void__copyTexSubImage2D__State_R1__int__int__int__int__int__int, + "Copies a two-dimensional texture subimage, as per glCopyTexSubImage2D. ", + "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. Loads framebuffer data into the texture using offsets xoffset and yoffset. width and height must be powers of two. "); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "Bind the texture object. ", + "If the texture object hasn't already been compiled, create the texture mipmap levels. "); + I_SimpleProperty(osg::Image *, Image, + __Image_P1__getImage, + __void__setImage__Image_P1); + I_SimpleProperty(unsigned int, NumMipmapLevels, + 0, + __void__setNumMipmapLevels__unsigned_int); + I_SimpleProperty(osg::Texture2D::SubloadCallback *, SubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + __void__setSubloadCallback__SubloadCallback_P1); + I_SimpleProperty(int, TextureDepth, + __int__getTextureDepth, + 0); + I_SimpleProperty(int, TextureHeight, + __int__getTextureHeight, + __void__setTextureHeight__int); + I_SimpleProperty(GLenum, TextureTarget, + __GLenum__getTextureTarget, + 0); + I_SimpleProperty(int, TextureWidth, + __int__getTextureWidth, + __void__setTextureWidth__int); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture2D::SubloadCallback) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method2(void, load, IN, const osg::Texture2D &, texture, IN, osg::State &, state); - I_Method2(void, subload, IN, const osg::Texture2D &, texture, IN, osg::State &, state); + I_Constructor0(____SubloadCallback, + "", + ""); + I_Method2(void, load, IN, const osg::Texture2D &, texture, IN, osg::State &, state, + __void__load__C5_Texture2D_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::Texture2D &, texture, IN, osg::State &, state, + __void__subload__C5_Texture2D_R1__State_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Texture3D.cpp b/src/osgWrappers/osg/Texture3D.cpp index cd622d58c..96bd8e4ad 100644 --- a/src/osgWrappers/osg/Texture3D.cpp +++ b/src/osgWrappers/osg/Texture3D.cpp @@ -27,93 +27,310 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture3D) I_BaseType(osg::Texture); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Texture3D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, rhs); - I_Method0(GLenum, getTextureTarget); - I_Method1(void, setImage, IN, osg::Image *, image); - I_Method0(osg::Image *, getImage); - I_Method0(const osg::Image *, getImage); - I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID); - I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image); - I_Method1(osg::Image *, getImage, IN, unsigned, int); - I_Method1(const osg::Image *, getImage, IN, unsigned, int); - I_Method0(unsigned int, getNumImages); - I_Method3(void, setTextureSize, IN, int, width, IN, int, height, IN, int, depth); - I_Method3(void, getTextureSize, IN, int &, width, IN, int &, height, IN, int &, depth); - I_Method1(void, setTextureWidth, IN, int, width); - I_Method1(void, setTextureHeight, IN, int, height); - I_Method1(void, setTextureDepth, IN, int, depth); - I_Method0(int, getTextureWidth); - I_Method0(int, getTextureHeight); - I_Method0(int, getTextureDepth); - I_Method1(void, setSubloadCallback, IN, osg::Texture3D::SubloadCallback *, cb); - I_Method0(osg::Texture3D::SubloadCallback *, getSubloadCallback); - I_Method0(const osg::Texture3D::SubloadCallback *, getSubloadCallback); - I_Method1(void, setNumMipmapLevels, IN, unsigned int, num); - I_Method0(unsigned int, getNumMipmapLevels); - I_Method8(void, copyTexSubImage3D, IN, osg::State &, state, IN, int, xoffset, IN, int, yoffset, IN, int, zoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height); - I_Method1(void, apply, IN, osg::State &, state); - I_StaticMethod2(osg::Texture3D::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Texture3D::Extensions *, extensions); - I_Property(osg::Image *, Image); - I_WriteOnlyProperty(unsigned int, NumMipmapLevels); - I_Property(osg::Texture3D::SubloadCallback *, SubloadCallback); - I_Property(int, TextureDepth); - I_Property(int, TextureHeight); - I_ReadOnlyProperty(GLenum, TextureTarget); - I_Property(int, TextureWidth); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____Texture3D, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Texture3D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Texture3D__C5_Texture3D_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + __void__setImage__Image_P1, + "Sets the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + __Image_P1__getImage, + "Gets the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + __C5_Image_P1__getImage, + "Gets the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + __void__setImage__unsigned__Image_P1, + "Sets the texture image, ignoring face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned, int, + __Image_P1__getImage__unsigned, + "Gets the texture image, ignoring face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned, int, + __C5_Image_P1__getImage__unsigned, + "Gets the const texture image, ignoring face. ", + ""); + I_Method0(unsigned int, getNumImages, + __unsigned_int__getNumImages, + "Gets the number of images that can be assigned to the Texture. ", + ""); + I_Method3(void, setTextureSize, IN, int, width, IN, int, height, IN, int, depth, + __void__setTextureSize__int__int__int, + "Sets the texture width, height, and depth. ", + "If width, height, or depth are zero, calculate the respective value from the source image size. "); + I_Method3(void, getTextureSize, IN, int &, width, IN, int &, height, IN, int &, depth, + __void__getTextureSize__int_R1__int_R1__int_R1, + "Gets the texture subload width. ", + ""); + I_Method1(void, setTextureWidth, IN, int, width, + __void__setTextureWidth__int, + "", + ""); + I_Method1(void, setTextureHeight, IN, int, height, + __void__setTextureHeight__int, + "", + ""); + I_Method1(void, setTextureDepth, IN, int, depth, + __void__setTextureDepth__int, + "", + ""); + I_Method0(int, getTextureWidth, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::Texture3D::SubloadCallback *, cb, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::Texture3D::SubloadCallback *, getSubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::Texture3D::SubloadCallback *, getSubloadCallback, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + __void__setNumMipmapLevels__unsigned_int, + "Helper function. ", + "Sets the number of mipmap levels created for this texture. Should only be called within an osg::Texuture::apply(), or during a custom OpenGL texture load. "); + I_Method0(unsigned int, getNumMipmapLevels, + __unsigned_int__getNumMipmapLevels, + "Gets the number of mipmap levels created. ", + ""); + I_Method8(void, copyTexSubImage3D, IN, osg::State &, state, IN, int, xoffset, IN, int, yoffset, IN, int, zoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + __void__copyTexSubImage3D__State_R1__int__int__int__int__int__int__int, + "Copies a two-dimensional texture subimage, as per glCopyTexSubImage3D. ", + "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. Loads framebuffer data into the texture using offsets xoffset, yoffset, and zoffset. width and height must be powers of two. "); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "Bind the texture object. ", + "If the texture object hasn't already been compiled, create the texture mipmap levels. "); + I_StaticMethod2(osg::Texture3D::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Encapsulates queries of extension availability, obtains extension function pointers, and provides convinience wrappers for calling extension functions. ", + ""); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Texture3D::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "Overrides Extensions objects across graphics contexts. ", + "Typically used to ensure the same lowest common denominator of extensions on sustems with different graphics pipes. "); + I_SimpleProperty(osg::Image *, Image, + __Image_P1__getImage, + __void__setImage__Image_P1); + I_SimpleProperty(unsigned int, NumMipmapLevels, + 0, + __void__setNumMipmapLevels__unsigned_int); + I_SimpleProperty(osg::Texture3D::SubloadCallback *, SubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + __void__setSubloadCallback__SubloadCallback_P1); + I_SimpleProperty(int, TextureDepth, + __int__getTextureDepth, + __void__setTextureDepth__int); + I_SimpleProperty(int, TextureHeight, + __int__getTextureHeight, + __void__setTextureHeight__int); + I_SimpleProperty(GLenum, TextureTarget, + __GLenum__getTextureTarget, + 0); + I_SimpleProperty(int, TextureWidth, + __int__getTextureWidth, + __void__setTextureWidth__int); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Texture3D::Extensions) I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID); - I_Constructor1(IN, const osg::Texture3D::Extensions &, rhs); - I_Method1(void, lowestCommonDenominator, IN, const osg::Texture3D::Extensions &, rhs); - I_Method1(void, setupGLExtensions, IN, unsigned int, contextID); - I_Method1(void, setTexture3DSupported, IN, bool, flag); - I_Method0(bool, isTexture3DSupported); - I_Method1(void, setTexture3DFast, IN, bool, flag); - I_Method0(bool, isTexture3DFast); - I_Method1(void, setMaxTexture3DSize, IN, GLint, maxsize); - I_Method0(GLint, maxTexture3DSize); - I_Method1(void, setTexImage3DProc, IN, void *, ptr); - I_Method10(void, glTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels); - I_Method1(void, setTexSubImage3DProc, IN, void *, ptr); - I_Method11(void, glTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels); - I_Method1(void, setCopyTexSubImage3DProc, IN, void *, ptr); - I_Method9(void, glCopyTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLint, x, IN, GLint, y, IN, GLsizei, width, IN, GLsizei, height); - I_Method0(bool, isCompressedTexImage3DSupported); - I_Method1(void, setCompressedTexImage3DProc, IN, void *, ptr); - I_Method9(void, glCompressedTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data); - I_Method0(bool, isCompressedTexSubImage3DSupported); - I_Method1(void, setCompressedTexSubImage3DProc, IN, void *, ptr); - I_Method11(void, glCompressedTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLsizei, imageSize, IN, const GLvoid *, data); - I_Method1(void, setBuild3DMipmapsProc, IN, void *, ptr); - I_Method8(void, gluBuild3DMipmaps, IN, GLenum, target, IN, GLint, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, data); - I_WriteOnlyProperty(void *, Build3DMipmapsProc); - I_WriteOnlyProperty(void *, CompressedTexImage3DProc); - I_WriteOnlyProperty(void *, CompressedTexSubImage3DProc); - I_WriteOnlyProperty(void *, CopyTexSubImage3DProc); - I_WriteOnlyProperty(GLint, MaxTexture3DSize); - I_WriteOnlyProperty(void *, TexImage3DProc); - I_WriteOnlyProperty(void *, TexSubImage3DProc); - I_WriteOnlyProperty(bool, Texture3DFast); - I_WriteOnlyProperty(bool, Texture3DSupported); - I_WriteOnlyProperty(unsigned int, upGLExtensions); + I_Constructor1(IN, unsigned int, contextID, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Texture3D::Extensions &, rhs, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Texture3D::Extensions &, rhs, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, + __void__setupGLExtensions__unsigned_int, + "", + ""); + I_Method1(void, setTexture3DSupported, IN, bool, flag, + __void__setTexture3DSupported__bool, + "", + ""); + I_Method0(bool, isTexture3DSupported, + __bool__isTexture3DSupported, + "", + ""); + I_Method1(void, setTexture3DFast, IN, bool, flag, + __void__setTexture3DFast__bool, + "", + ""); + I_Method0(bool, isTexture3DFast, + __bool__isTexture3DFast, + "", + ""); + I_Method1(void, setMaxTexture3DSize, IN, GLint, maxsize, + __void__setMaxTexture3DSize__GLint, + "", + ""); + I_Method0(GLint, maxTexture3DSize, + __GLint__maxTexture3DSize, + "", + ""); + I_Method1(void, setTexImage3DProc, IN, void *, ptr, + __void__setTexImage3DProc__void_P1, + "", + ""); + I_Method10(void, glTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, + __void__glTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLenum__GLenum__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setTexSubImage3DProc, IN, void *, ptr, + __void__setTexSubImage3DProc__void_P1, + "", + ""); + I_Method11(void, glTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, + __void__glTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setCopyTexSubImage3DProc, IN, void *, ptr, + __void__setCopyTexSubImage3DProc__void_P1, + "", + ""); + I_Method9(void, glCopyTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLint, x, IN, GLint, y, IN, GLsizei, width, IN, GLsizei, height, + __void__glCopyTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLint__GLint__GLsizei__GLsizei, + "", + ""); + I_Method0(bool, isCompressedTexImage3DSupported, + __bool__isCompressedTexImage3DSupported, + "", + ""); + I_Method1(void, setCompressedTexImage3DProc, IN, void *, ptr, + __void__setCompressedTexImage3DProc__void_P1, + "", + ""); + I_Method9(void, glCompressedTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data, + __void__glCompressedTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method0(bool, isCompressedTexSubImage3DSupported, + __bool__isCompressedTexSubImage3DSupported, + "", + ""); + I_Method1(void, setCompressedTexSubImage3DProc, IN, void *, ptr, + __void__setCompressedTexSubImage3DProc__void_P1, + "", + ""); + I_Method11(void, glCompressedTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLsizei, imageSize, IN, const GLvoid *, data, + __void__glCompressedTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setBuild3DMipmapsProc, IN, void *, ptr, + __void__setBuild3DMipmapsProc__void_P1, + "", + ""); + I_Method8(void, gluBuild3DMipmaps, IN, GLenum, target, IN, GLint, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, data, + __void__gluBuild3DMipmaps__GLenum__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, + "", + ""); + I_SimpleProperty(void *, Build3DMipmapsProc, + 0, + __void__setBuild3DMipmapsProc__void_P1); + I_SimpleProperty(void *, CompressedTexImage3DProc, + 0, + __void__setCompressedTexImage3DProc__void_P1); + I_SimpleProperty(void *, CompressedTexSubImage3DProc, + 0, + __void__setCompressedTexSubImage3DProc__void_P1); + I_SimpleProperty(void *, CopyTexSubImage3DProc, + 0, + __void__setCopyTexSubImage3DProc__void_P1); + I_SimpleProperty(GLint, MaxTexture3DSize, + 0, + __void__setMaxTexture3DSize__GLint); + I_SimpleProperty(void *, TexImage3DProc, + 0, + __void__setTexImage3DProc__void_P1); + I_SimpleProperty(void *, TexSubImage3DProc, + 0, + __void__setTexSubImage3DProc__void_P1); + I_SimpleProperty(bool, Texture3DFast, + 0, + __void__setTexture3DFast__bool); + I_SimpleProperty(bool, Texture3DSupported, + 0, + __void__setTexture3DSupported__bool); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture3D::SubloadCallback) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method2(void, load, IN, const osg::Texture3D &, texture, IN, osg::State &, state); - I_Method2(void, subload, IN, const osg::Texture3D &, texture, IN, osg::State &, state); + I_Constructor0(____SubloadCallback, + "", + ""); + I_Method2(void, load, IN, const osg::Texture3D &, texture, IN, osg::State &, state, + __void__load__C5_Texture3D_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::Texture3D &, texture, IN, osg::State &, state, + __void__subload__C5_Texture3D_R1__State_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/TextureCubeMap.cpp b/src/osgWrappers/osg/TextureCubeMap.cpp index 032076b72..349cdc05b 100644 --- a/src/osgWrappers/osg/TextureCubeMap.cpp +++ b/src/osgWrappers/osg/TextureCubeMap.cpp @@ -36,62 +36,198 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TextureCubeMap) I_BaseType(osg::Texture); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::TextureCubeMap &, cm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, rhs); - I_Method0(GLenum, getTextureTarget); - I_Method2(void, setImage, IN, unsigned int, face, IN, osg::Image *, image); - I_Method1(osg::Image *, getImage, IN, unsigned int, face); - I_Method1(const osg::Image *, getImage, IN, unsigned int, face); - I_Method0(unsigned int, getNumImages); - I_Method2(unsigned int &, getModifiedCount, IN, unsigned int, face, IN, unsigned int, contextID); - I_Method2(void, setTextureSize, IN, int, width, IN, int, height); - I_Method1(void, setTextureWidth, IN, int, width); - I_Method1(void, setTextureHeight, IN, int, height); - I_Method0(int, getTextureWidth); - I_Method0(int, getTextureHeight); - I_Method0(int, getTextureDepth); - I_Method1(void, setSubloadCallback, IN, osg::TextureCubeMap::SubloadCallback *, cb); - I_Method0(osg::TextureCubeMap::SubloadCallback *, getSubloadCallback); - I_Method0(const osg::TextureCubeMap::SubloadCallback *, getSubloadCallback); - I_Method1(void, setNumMipmapLevels, IN, unsigned int, num); - I_Method0(unsigned int, getNumMipmapLevels); - I_Method8(void, copyTexSubImageCubeMap, IN, osg::State &, state, IN, int, face, IN, int, xoffset, IN, int, yoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height); - I_Method1(void, apply, IN, osg::State &, state); - I_StaticMethod2(osg::TextureCubeMap::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::TextureCubeMap::Extensions *, extensions); - I_ArrayProperty_G(osg::Image *, Image, Images, unsigned int, void); - I_WriteOnlyProperty(unsigned int, NumMipmapLevels); - I_Property(osg::TextureCubeMap::SubloadCallback *, SubloadCallback); - I_ReadOnlyProperty(int, TextureDepth); - I_Property(int, TextureHeight); - I_ReadOnlyProperty(GLenum, TextureTarget); - I_Property(int, TextureWidth); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____TextureCubeMap, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TextureCubeMap &, cm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TextureCubeMap__C5_TextureCubeMap_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + __GLenum__getTextureTarget, + "", + ""); + I_Method2(void, setImage, IN, unsigned int, face, IN, osg::Image *, image, + __void__setImage__unsigned_int__Image_P1, + "Set the texture image for specified face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned int, face, + __Image_P1__getImage__unsigned_int, + "Get the texture image for specified face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned int, face, + __C5_Image_P1__getImage__unsigned_int, + "Get the const texture image for specified face. ", + ""); + I_Method0(unsigned int, getNumImages, + __unsigned_int__getNumImages, + "Get the number of images that can be assigned to the Texture. ", + ""); + I_Method2(unsigned int &, getModifiedCount, IN, unsigned int, face, IN, unsigned int, contextID, + __unsigned_int_R1__getModifiedCount__unsigned_int__unsigned_int, + "", + ""); + I_Method2(void, setTextureSize, IN, int, width, IN, int, height, + __void__setTextureSize__int__int, + "Set the texture width and height. ", + "If width or height are zero then the repsective size value is calculated from the source image sizes."); + I_Method1(void, setTextureWidth, IN, int, width, + __void__setTextureWidth__int, + "", + ""); + I_Method1(void, setTextureHeight, IN, int, height, + __void__setTextureHeight__int, + "", + ""); + I_Method0(int, getTextureWidth, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::TextureCubeMap::SubloadCallback *, cb, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::TextureCubeMap::SubloadCallback *, getSubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::TextureCubeMap::SubloadCallback *, getSubloadCallback, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + __void__setNumMipmapLevels__unsigned_int, + "Set the number of mip map levels the the texture has been created with. ", + "Should only be called within an osg::Texuture::apply() and custom OpenGL texture load."); + I_Method0(unsigned int, getNumMipmapLevels, + __unsigned_int__getNumMipmapLevels, + "Get the number of mip map levels the the texture has been created with. ", + ""); + I_Method8(void, copyTexSubImageCubeMap, IN, osg::State &, state, IN, int, face, IN, int, xoffset, IN, int, yoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + __void__copyTexSubImageCubeMap__State_R1__int__int__int__int__int__int__int, + "Copies a two-dimensional texture subimage, as per glCopyTexSubImage2D. ", + "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. Loads framebuffer data into the texture using offsets xoffset and yoffset. width and height must be powers of two. "); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "On first apply (unless already compiled), create the mipmapped texture and bind it. ", + "Subsequent apply will simple bind to texture."); + I_StaticMethod2(osg::TextureCubeMap::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Exentsion object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID."); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::TextureCubeMap::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "The setExtensions method allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions."); + I_ArrayProperty(osg::Image *, Image, + __Image_P1__getImage__unsigned_int, + __void__setImage__unsigned_int__Image_P1, + __unsigned_int__getNumImages, + 0, + 0, + 0); + I_SimpleProperty(unsigned int, NumMipmapLevels, + 0, + __void__setNumMipmapLevels__unsigned_int); + I_SimpleProperty(osg::TextureCubeMap::SubloadCallback *, SubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + __void__setSubloadCallback__SubloadCallback_P1); + I_SimpleProperty(int, TextureDepth, + __int__getTextureDepth, + 0); + I_SimpleProperty(int, TextureHeight, + __int__getTextureHeight, + __void__setTextureHeight__int); + I_SimpleProperty(GLenum, TextureTarget, + __GLenum__getTextureTarget, + 0); + I_SimpleProperty(int, TextureWidth, + __int__getTextureWidth, + __void__setTextureWidth__int); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TextureCubeMap::Extensions) I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID); - I_Constructor1(IN, const osg::TextureCubeMap::Extensions &, rhs); - I_Method1(void, lowestCommonDenominator, IN, const osg::TextureCubeMap::Extensions &, rhs); - I_Method1(void, setupGLExtenions, IN, unsigned int, contextID); - I_Method1(void, setCubeMapSupported, IN, bool, flag); - I_Method0(bool, isCubeMapSupported); - I_WriteOnlyProperty(bool, CubeMapSupported); - I_WriteOnlyProperty(unsigned int, upGLExtenions); + I_Constructor1(IN, unsigned int, contextID, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::TextureCubeMap::Extensions &, rhs, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::TextureCubeMap::Extensions &, rhs, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setCubeMapSupported, IN, bool, flag, + __void__setCubeMapSupported__bool, + "", + ""); + I_Method0(bool, isCubeMapSupported, + __bool__isCubeMapSupported, + "", + ""); + I_SimpleProperty(bool, CubeMapSupported, + 0, + __void__setCubeMapSupported__bool); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TextureCubeMap::SubloadCallback) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method2(void, load, IN, const osg::TextureCubeMap &, texture, IN, osg::State &, state); - I_Method2(void, subload, IN, const osg::TextureCubeMap &, texture, IN, osg::State &, state); + I_Constructor0(____SubloadCallback, + "", + ""); + I_Method2(void, load, IN, const osg::TextureCubeMap &, texture, IN, osg::State &, state, + __void__load__C5_TextureCubeMap_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::TextureCubeMap &, texture, IN, osg::State &, state, + __void__subload__C5_TextureCubeMap_R1__State_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/TextureRectangle.cpp b/src/osgWrappers/osg/TextureRectangle.cpp index 4e1fac4e7..7b7e1e23f 100644 --- a/src/osgWrappers/osg/TextureRectangle.cpp +++ b/src/osgWrappers/osg/TextureRectangle.cpp @@ -27,50 +27,164 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TextureRectangle) I_BaseType(osg::Texture); - I_Constructor0(); - I_Constructor1(IN, osg::Image *, image); - I_ConstructorWithDefaults2(IN, const osg::TextureRectangle &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, rhs); - I_Method0(GLenum, getTextureTarget); - I_Method1(void, setImage, IN, osg::Image *, image); - I_Method0(osg::Image *, getImage); - I_Method0(const osg::Image *, getImage); - I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID); - I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image); - I_Method1(osg::Image *, getImage, IN, unsigned, int); - I_Method1(const osg::Image *, getImage, IN, unsigned, int); - I_Method0(unsigned int, getNumImages); - I_Method2(void, setTextureSize, IN, int, width, IN, int, height); - I_Method1(void, setTextureWidth, IN, int, width); - I_Method1(void, setTextureHeight, IN, int, height); - I_Method0(int, getTextureWidth); - I_Method0(int, getTextureHeight); - I_Method0(int, getTextureDepth); - I_Method1(void, setSubloadCallback, IN, osg::TextureRectangle::SubloadCallback *, cb); - I_Method0(osg::TextureRectangle::SubloadCallback *, getSubloadCallback); - I_Method0(const osg::TextureRectangle::SubloadCallback *, getSubloadCallback); - I_Method5(void, copyTexImage2D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width, IN, int, height); - I_Method7(void, copyTexSubImage2D, IN, osg::State &, state, IN, int, xoffset, IN, int, yoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(osg::Image *, Image); - I_Property(osg::TextureRectangle::SubloadCallback *, SubloadCallback); - I_ReadOnlyProperty(int, TextureDepth); - I_Property(int, TextureHeight); - I_ReadOnlyProperty(GLenum, TextureTarget); - I_Property(int, TextureWidth); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____TextureRectangle, + "", + ""); + I_Constructor1(IN, osg::Image *, image, + ____TextureRectangle__Image_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TextureRectangle &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TextureRectangle__C5_TextureRectangle_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + __void__setImage__Image_P1, + "Set the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + __Image_P1__getImage, + "Get the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + __C5_Image_P1__getImage, + "Get the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + __void__setImage__unsigned__Image_P1, + "Set the texture image, ignoring face value as there is only one image. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned, int, + __Image_P1__getImage__unsigned, + "Get the texture image, ignoring face value as there is only one image. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned, int, + __C5_Image_P1__getImage__unsigned, + "Get the const texture image, ignoring face value as there is only one image. ", + ""); + I_Method0(unsigned int, getNumImages, + __unsigned_int__getNumImages, + "Get the number of images that can be assigned to the Texture. ", + ""); + I_Method2(void, setTextureSize, IN, int, width, IN, int, height, + __void__setTextureSize__int__int, + "Set the texture width and height. ", + "If width or height are zero then the repsective size value is calculated from the source image sizes."); + I_Method1(void, setTextureWidth, IN, int, width, + __void__setTextureWidth__int, + "", + ""); + I_Method1(void, setTextureHeight, IN, int, height, + __void__setTextureHeight__int, + "", + ""); + I_Method0(int, getTextureWidth, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::TextureRectangle::SubloadCallback *, cb, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::TextureRectangle::SubloadCallback *, getSubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::TextureRectangle::SubloadCallback *, getSubloadCallback, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method5(void, copyTexImage2D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + __void__copyTexImage2D__State_R1__int__int__int__int, + "Copies pixels into a 2D texture image, as per glCopyTexImage2D. ", + "Creates an OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. width and height must be a power of two. "); + I_Method7(void, copyTexSubImage2D, IN, osg::State &, state, IN, int, xoffset, IN, int, yoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + __void__copyTexSubImage2D__State_R1__int__int__int__int__int__int, + "Copies a two-dimensional texture subimage, as per glCopyTexSubImage2D. ", + "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. Loads framebuffer data into the texture using offsets xoffset and yoffset. width and height must be powers of two. "); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "On first apply (unless already compiled), create and bind the texture, subsequent apply will simply bind to texture. ", + ""); + I_SimpleProperty(osg::Image *, Image, + __Image_P1__getImage, + __void__setImage__Image_P1); + I_SimpleProperty(osg::TextureRectangle::SubloadCallback *, SubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + __void__setSubloadCallback__SubloadCallback_P1); + I_SimpleProperty(int, TextureDepth, + __int__getTextureDepth, + 0); + I_SimpleProperty(int, TextureHeight, + __int__getTextureHeight, + __void__setTextureHeight__int); + I_SimpleProperty(GLenum, TextureTarget, + __GLenum__getTextureTarget, + 0); + I_SimpleProperty(int, TextureWidth, + __int__getTextureWidth, + __void__setTextureWidth__int); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TextureRectangle::SubloadCallback) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method2(void, load, IN, const osg::TextureRectangle &, x, IN, osg::State &, x); - I_Method2(void, subload, IN, const osg::TextureRectangle &, x, IN, osg::State &, x); + I_Constructor0(____SubloadCallback, + "", + ""); + I_Method2(void, load, IN, const osg::TextureRectangle &, x, IN, osg::State &, x, + __void__load__C5_TextureRectangle_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::TextureRectangle &, x, IN, osg::State &, x, + __void__subload__C5_TextureRectangle_R1__State_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Timer.cpp b/src/osgWrappers/osg/Timer.cpp index b647537c9..b1d603935 100644 --- a/src/osgWrappers/osg/Timer.cpp +++ b/src/osgWrappers/osg/Timer.cpp @@ -21,15 +21,40 @@ #endif BEGIN_VALUE_REFLECTOR(osg::Timer) - I_Constructor0(); - I_Method0(osg::Timer_t, tick); - I_Method2(double, delta_s, IN, osg::Timer_t, t1, IN, osg::Timer_t, t2); - I_Method2(double, delta_m, IN, osg::Timer_t, t1, IN, osg::Timer_t, t2); - I_Method2(double, delta_u, IN, osg::Timer_t, t1, IN, osg::Timer_t, t2); - I_Method2(double, delta_n, IN, osg::Timer_t, t1, IN, osg::Timer_t, t2); - I_Method0(double, getSecondsPerTick); - I_StaticMethod0(const osg::Timer *, instance); - I_ReadOnlyProperty(double, SecondsPerTick); + I_Constructor0(____Timer, + "", + ""); + I_Method0(osg::Timer_t, tick, + __Timer_t__tick, + "", + ""); + I_Method2(double, delta_s, IN, osg::Timer_t, t1, IN, osg::Timer_t, t2, + __double__delta_s__Timer_t__Timer_t, + "", + ""); + I_Method2(double, delta_m, IN, osg::Timer_t, t1, IN, osg::Timer_t, t2, + __double__delta_m__Timer_t__Timer_t, + "", + ""); + I_Method2(double, delta_u, IN, osg::Timer_t, t1, IN, osg::Timer_t, t2, + __double__delta_u__Timer_t__Timer_t, + "", + ""); + I_Method2(double, delta_n, IN, osg::Timer_t, t1, IN, osg::Timer_t, t2, + __double__delta_n__Timer_t__Timer_t, + "", + ""); + I_Method0(double, getSecondsPerTick, + __double__getSecondsPerTick, + "", + ""); + I_StaticMethod0(const osg::Timer *, instance, + __C5_Timer_P1__instance_S, + "", + ""); + I_SimpleProperty(double, SecondsPerTick, + __double__getSecondsPerTick, + 0); END_REFLECTOR TYPE_NAME_ALIAS(unsigned long long, osg::Timer_t); diff --git a/src/osgWrappers/osg/Transform.cpp b/src/osgWrappers/osg/Transform.cpp index e2270074f..4fbbd906c 100644 --- a/src/osgWrappers/osg/Transform.cpp +++ b/src/osgWrappers/osg/Transform.cpp @@ -34,25 +34,83 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Transform) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::Transform &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(osg::Transform *, asTransform); - I_Method0(const osg::Transform *, asTransform); - I_Method0(osg::MatrixTransform *, asMatrixTransform); - I_Method0(const osg::MatrixTransform *, asMatrixTransform); - I_Method0(osg::PositionAttitudeTransform *, asPositionAttitudeTransform); - I_Method0(const osg::PositionAttitudeTransform *, asPositionAttitudeTransform); - I_Method1(void, setReferenceFrame, IN, osg::Transform::ReferenceFrame, rf); - I_Method0(osg::Transform::ReferenceFrame, getReferenceFrame); - I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x); - I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x); - I_Method0(osg::BoundingSphere, computeBound); - I_Property(osg::Transform::ReferenceFrame, ReferenceFrame); + I_Constructor0(____Transform, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Transform &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Transform__C5_Transform_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(osg::Transform *, asTransform, + __Transform_P1__asTransform, + "Convert 'this' into a Transform pointer if Node is a Transform, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method0(const osg::Transform *, asTransform, + __C5_Transform_P1__asTransform, + "convert 'const this' into a const Transform pointer if Node is a Transform, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method0(osg::MatrixTransform *, asMatrixTransform, + __MatrixTransform_P1__asMatrixTransform, + "", + ""); + I_Method0(const osg::MatrixTransform *, asMatrixTransform, + __C5_MatrixTransform_P1__asMatrixTransform, + "", + ""); + I_Method0(osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + __PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method0(const osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + __C5_PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method1(void, setReferenceFrame, IN, osg::Transform::ReferenceFrame, rf, + __void__setReferenceFrame__ReferenceFrame, + "Set the transform's ReferenceFrame, either to be relative to its parent reference frame, or relative to an absolute coordinate frame. ", + "RELATIVE_RF is the default. Note: Setting the ReferenceFrame to be ABSOLUTE_RF will also set the CullingActive flag on the transform, and hence all of its parents, to false, thereby disabling culling of it and all its parents. This is neccessary to prevent inappropriate culling, but may impact cull times if the absolute transform is deep in the scene graph. It is therefore recommended to only use absolute Transforms at the top of the scene, for such things as heads up displays."); + I_Method0(osg::Transform::ReferenceFrame, getReferenceFrame, + __ReferenceFrame__getReferenceFrame, + "", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + __BoundingSphere__computeBound, + "Overrides Group's computeBound. ", + "There is no need to override in subclasses from osg::Transform since this computeBound() uses the underlying matrix (calling computeMatrix if required)."); + I_SimpleProperty(osg::Transform::ReferenceFrame, ReferenceFrame, + __ReferenceFrame__getReferenceFrame, + __void__setReferenceFrame__ReferenceFrame); END_REFLECTOR diff --git a/src/osgWrappers/osg/Uniform.cpp b/src/osgWrappers/osg/Uniform.cpp index 28ce55e8c..4a4c6b724 100644 --- a/src/osgWrappers/osg/Uniform.cpp +++ b/src/osgWrappers/osg/Uniform.cpp @@ -32,29 +32,79 @@ #endif BEGIN_VALUE_REFLECTOR(osg::Matrix2) - I_Constructor0(); - I_Constructor1(IN, const osg::Matrix2 &, mat); - I_Constructor4(IN, float, a00, IN, float, a01, IN, float, a10, IN, float, a11); - I_Method1(void, set, IN, const osg::Matrix2 &, rhs); - I_Method1(void, set, IN, float const *const, ptr); - I_Method4(void, set, IN, float, a00, IN, float, a01, IN, float, a10, IN, float, a11); - I_Method0(float *, ptr); - I_Method0(const float *, ptr); - I_Method0(void, makeIdentity); - I_WriteOnlyProperty(float const *const, ); + I_Constructor0(____Matrix2, + "", + ""); + I_Constructor1(IN, const osg::Matrix2 &, mat, + ____Matrix2__C5_Matrix2_R1, + "", + ""); + I_Constructor4(IN, float, a00, IN, float, a01, IN, float, a10, IN, float, a11, + ____Matrix2__float__float__float__float, + "", + ""); + I_Method1(void, set, IN, const osg::Matrix2 &, rhs, + __void__set__C5_Matrix2_R1, + "", + ""); + I_Method1(void, set, IN, float const *const, ptr, + __void__set__float_C5_P1C5, + "", + ""); + I_Method4(void, set, IN, float, a00, IN, float, a01, IN, float, a10, IN, float, a11, + __void__set__float__float__float__float, + "", + ""); + I_Method0(float *, ptr, + __float_P1__ptr, + "", + ""); + I_Method0(const float *, ptr, + __C5_float_P1__ptr, + "", + ""); + I_Method0(void, makeIdentity, + __void__makeIdentity, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::Matrix3) - I_Constructor0(); - I_Constructor1(IN, const osg::Matrix3 &, mat); - I_Constructor9(IN, float, a00, IN, float, a01, IN, float, a02, IN, float, a10, IN, float, a11, IN, float, a12, IN, float, a20, IN, float, a21, IN, float, a22); - I_Method1(void, set, IN, const osg::Matrix3 &, rhs); - I_Method1(void, set, IN, float const *const, ptr); - I_Method9(void, set, IN, float, a00, IN, float, a01, IN, float, a02, IN, float, a10, IN, float, a11, IN, float, a12, IN, float, a20, IN, float, a21, IN, float, a22); - I_Method0(float *, ptr); - I_Method0(const float *, ptr); - I_Method0(void, makeIdentity); - I_WriteOnlyProperty(float const *const, ); + I_Constructor0(____Matrix3, + "", + ""); + I_Constructor1(IN, const osg::Matrix3 &, mat, + ____Matrix3__C5_Matrix3_R1, + "", + ""); + I_Constructor9(IN, float, a00, IN, float, a01, IN, float, a02, IN, float, a10, IN, float, a11, IN, float, a12, IN, float, a20, IN, float, a21, IN, float, a22, + ____Matrix3__float__float__float__float__float__float__float__float__float, + "", + ""); + I_Method1(void, set, IN, const osg::Matrix3 &, rhs, + __void__set__C5_Matrix3_R1, + "", + ""); + I_Method1(void, set, IN, float const *const, ptr, + __void__set__float_C5_P1C5, + "", + ""); + I_Method9(void, set, IN, float, a00, IN, float, a01, IN, float, a02, IN, float, a10, IN, float, a11, IN, float, a12, IN, float, a20, IN, float, a21, IN, float, a22, + __void__set__float__float__float__float__float__float__float__float__float, + "", + ""); + I_Method0(float *, ptr, + __float_P1__ptr, + "", + ""); + I_Method0(const float *, ptr, + __C5_float_P1__ptr, + "", + ""); + I_Method0(void, makeIdentity, + __void__makeIdentity, + "", + ""); END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osg::StateSet * >, osg::Uniform::ParentList); @@ -86,153 +136,574 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Uniform) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults3(IN, osg::Uniform::Type, type, , IN, const std::string &, name, , IN, int, numElements, 1); - I_ConstructorWithDefaults2(IN, const osg::Uniform &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, setType, IN, osg::Uniform::Type, t); - I_Method0(const osg::Uniform::Type, getType); - I_Method1(void, setName, IN, const std::string &, name); - I_Method1(void, setNumElements, IN, unsigned int, numElements); - I_Method0(unsigned int, getNumElements); - I_Method0(unsigned int, getInternalArrayNumElements); - I_Constructor2(IN, const char *, name, IN, float, f); - I_Constructor2(IN, const char *, name, IN, int, i); - I_Constructor2(IN, const char *, name, IN, bool, b); - I_Constructor2(IN, const char *, name, IN, const osg::Vec2 &, v2); - I_Constructor2(IN, const char *, name, IN, const osg::Vec3 &, v3); - I_Constructor2(IN, const char *, name, IN, const osg::Vec4 &, v4); - I_Constructor2(IN, const char *, name, IN, const osg::Matrix2 &, m2); - I_Constructor2(IN, const char *, name, IN, const osg::Matrix3 &, m3); - I_Constructor2(IN, const char *, name, IN, const osg::Matrixf &, m4); - I_Constructor2(IN, const char *, name, IN, const osg::Matrixd &, m4); - I_Constructor3(IN, const char *, name, IN, int, i0, IN, int, i1); - I_Constructor4(IN, const char *, name, IN, int, i0, IN, int, i1, IN, int, i2); - I_Constructor5(IN, const char *, name, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3); - I_Constructor3(IN, const char *, name, IN, bool, b0, IN, bool, b1); - I_Constructor4(IN, const char *, name, IN, bool, b0, IN, bool, b1, IN, bool, b2); - I_Constructor5(IN, const char *, name, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3); - I_Method1(int, compare, IN, const osg::Uniform &, rhs); - I_Method1(int, compareData, IN, const osg::Uniform &, rhs); - I_Method1(void, copyData, IN, const osg::Uniform &, rhs); - I_Method0(const osg::Uniform::ParentList &, getParents); - I_Method0(osg::Uniform::ParentList, getParents); - I_Method1(osg::StateSet *, getParent, IN, unsigned int, i); - I_Method1(const osg::StateSet *, getParent, IN, unsigned int, i); - I_Method0(unsigned int, getNumParents); - I_Method1(bool, set, IN, float, f); - I_Method1(bool, set, IN, int, i); - I_Method1(bool, set, IN, bool, b); - I_Method1(bool, set, IN, const osg::Vec2 &, v2); - I_Method1(bool, set, IN, const osg::Vec3 &, v3); - I_Method1(bool, set, IN, const osg::Vec4 &, v4); - I_Method1(bool, set, IN, const osg::Matrix2 &, m2); - I_Method1(bool, set, IN, const osg::Matrix3 &, m3); - I_Method1(bool, set, IN, const osg::Matrixf &, m4); - I_Method1(bool, set, IN, const osg::Matrixd &, m4); - I_Method2(bool, set, IN, int, i0, IN, int, i1); - I_Method3(bool, set, IN, int, i0, IN, int, i1, IN, int, i2); - I_Method4(bool, set, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3); - I_Method2(bool, set, IN, bool, b0, IN, bool, b1); - I_Method3(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2); - I_Method4(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3); - I_Method1(bool, get, IN, float &, f); - I_Method1(bool, get, IN, int &, i); - I_Method1(bool, get, IN, bool &, b); - I_Method1(bool, get, IN, osg::Vec2 &, v2); - I_Method1(bool, get, IN, osg::Vec3 &, v3); - I_Method1(bool, get, IN, osg::Vec4 &, v4); - I_Method1(bool, get, IN, osg::Matrix2 &, m2); - I_Method1(bool, get, IN, osg::Matrix3 &, m3); - I_Method1(bool, get, IN, osg::Matrixf &, m4); - I_Method1(bool, get, IN, osg::Matrixd &, m4); - I_Method2(bool, get, IN, int &, i0, IN, int &, i1); - I_Method3(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2); - I_Method4(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2, IN, int &, i3); - I_Method2(bool, get, IN, bool &, b0, IN, bool &, b1); - I_Method3(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2); - I_Method4(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, IN, bool &, b3); - I_Method2(bool, setElement, IN, unsigned int, index, IN, float, f); - I_Method2(bool, setElement, IN, unsigned int, index, IN, int, i); - I_Method2(bool, setElement, IN, unsigned int, index, IN, bool, b); - I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec2 &, v2); - I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec3 &, v3); - I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec4 &, v4); - I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix2 &, m2); - I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix3 &, m3); - I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixf &, m4); - I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixd &, m4); - I_Method3(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1); - I_Method4(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, IN, int, i2); - I_Method5(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3); - I_Method3(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1); - I_Method4(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, IN, bool, b2); - I_Method5(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3); - I_Method2(bool, getElement, IN, unsigned int, index, IN, float &, f); - I_Method2(bool, getElement, IN, unsigned int, index, IN, int &, i); - I_Method2(bool, getElement, IN, unsigned int, index, IN, bool &, b); - I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec2 &, v2); - I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec3 &, v3); - I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec4 &, v4); - I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix2 &, m2); - I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix3 &, m3); - I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixf &, m4); - I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixd &, m4); - I_Method3(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1); - I_Method4(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, IN, int &, i2); - I_Method5(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, IN, int &, i2, IN, int &, i3); - I_Method3(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1); - I_Method4(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2); - I_Method5(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, IN, bool &, b3); - I_Method1(void, setUpdateCallback, IN, osg::Uniform::Callback *, uc); - I_Method0(osg::Uniform::Callback *, getUpdateCallback); - I_Method0(const osg::Uniform::Callback *, getUpdateCallback); - I_Method1(void, setEventCallback, IN, osg::Uniform::Callback *, ec); - I_Method0(osg::Uniform::Callback *, getEventCallback); - I_Method0(const osg::Uniform::Callback *, getEventCallback); - I_Method0(void, dirty); - I_Method1(bool, setArray, IN, osg::FloatArray *, array); - I_Method1(bool, setArray, IN, osg::IntArray *, array); - I_Method0(osg::FloatArray *, getFloatArray); - I_Method0(const osg::FloatArray *, getFloatArray); - I_Method0(osg::IntArray *, getIntArray); - I_Method0(const osg::IntArray *, getIntArray); - I_Method1(void, setModifiedCount, IN, unsigned int, mc); - I_Method0(unsigned int, getModifiedCount); - I_Method2(void, apply, IN, const osg::GL2Extensions *, ext, IN, GLint, location); - I_StaticMethod1(const char *, getTypename, IN, osg::Uniform::Type, t); - I_StaticMethod1(int, getTypeNumComponents, IN, osg::Uniform::Type, t); - I_StaticMethod1(osg::Uniform::Type, getTypeId, IN, const std::string &, tname); - I_StaticMethod1(osg::Uniform::Type, getGlApiType, IN, osg::Uniform::Type, t); - I_StaticMethod1(GLenum, getInternalArrayType, IN, osg::Uniform::Type, t); - I_WriteOnlyPropertyWithReturnType(bool, , bool); - I_WriteOnlyPropertyWithReturnType(osg::FloatArray *, Array, bool); - I_ArrayProperty_Custom(bool, Element, Elements, unsigned int, bool); - I_Property(osg::Uniform::Callback *, EventCallback); - I_ReadOnlyProperty(osg::FloatArray *, FloatArray); - I_ReadOnlyProperty(osg::IntArray *, IntArray); - I_ReadOnlyProperty(unsigned int, InternalArrayNumElements); - I_Property(unsigned int, ModifiedCount); - I_WriteOnlyProperty(const std::string &, Name); - I_WriteOnlyProperty(unsigned int, NumElements); - I_ArrayProperty_G(osg::StateSet *, Parent, Parents, unsigned int, void); - I_ReadOnlyProperty(osg::Uniform::ParentList, Parents); - I_WriteOnlyPropertyWithReturnType(osg::Uniform::Type, Type, bool); - I_Property(osg::Uniform::Callback *, UpdateCallback); + I_Constructor0(____Uniform, + "", + ""); + I_ConstructorWithDefaults3(IN, osg::Uniform::Type, type, , IN, const std::string &, name, , IN, int, numElements, 1, + ____Uniform__Type__C5_std_string_R1__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Uniform &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Uniform__C5_Uniform_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(bool, setType, IN, osg::Uniform::Type, t, + __bool__setType__Type, + "Set the type of glUniform, ensuring it is only set once. ", + ""); + I_Method0(const osg::Uniform::Type, getType, + __C5_Type__getType, + "Get the type of glUniform as enum. ", + ""); + I_Method1(void, setName, IN, const std::string &, name, + __void__setName__C5_std_string_R1, + "Set the name of the glUniform, ensuring it is only set once. ", + ""); + I_Method1(void, setNumElements, IN, unsigned int, numElements, + __void__setNumElements__unsigned_int, + "Set the length of a uniform, ensuring it is only set once (1==scalar). ", + ""); + I_Method0(unsigned int, getNumElements, + __unsigned_int__getNumElements, + "Get the number of GLSL elements of the osg::Uniform (1==scalar). ", + ""); + I_Method0(unsigned int, getInternalArrayNumElements, + __unsigned_int__getInternalArrayNumElements, + "Get the number of elements required for the internal data array. ", + "Returns 0 if the osg::Uniform is not properly configured. "); + I_Constructor2(IN, const char *, name, IN, float, f, + ____Uniform__C5_char_P1__float, + "convenient scalar (non-array) constructors w/ assignment ", + ""); + I_Constructor2(IN, const char *, name, IN, int, i, + ____Uniform__C5_char_P1__int, + "", + ""); + I_Constructor2(IN, const char *, name, IN, bool, b, + ____Uniform__C5_char_P1__bool, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec2 &, v2, + ____Uniform__C5_char_P1__C5_osg_Vec2_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec3 &, v3, + ____Uniform__C5_char_P1__C5_osg_Vec3_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec4 &, v4, + ____Uniform__C5_char_P1__C5_osg_Vec4_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrix2 &, m2, + ____Uniform__C5_char_P1__C5_osg_Matrix2_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrix3 &, m3, + ____Uniform__C5_char_P1__C5_osg_Matrix3_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrixf &, m4, + ____Uniform__C5_char_P1__C5_osg_Matrixf_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrixd &, m4, + ____Uniform__C5_char_P1__C5_osg_Matrixd_R1, + "", + ""); + I_Constructor3(IN, const char *, name, IN, int, i0, IN, int, i1, + ____Uniform__C5_char_P1__int__int, + "", + ""); + I_Constructor4(IN, const char *, name, IN, int, i0, IN, int, i1, IN, int, i2, + ____Uniform__C5_char_P1__int__int__int, + "", + ""); + I_Constructor5(IN, const char *, name, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + ____Uniform__C5_char_P1__int__int__int__int, + "", + ""); + I_Constructor3(IN, const char *, name, IN, bool, b0, IN, bool, b1, + ____Uniform__C5_char_P1__bool__bool, + "", + ""); + I_Constructor4(IN, const char *, name, IN, bool, b0, IN, bool, b1, IN, bool, b2, + ____Uniform__C5_char_P1__bool__bool__bool, + "", + ""); + I_Constructor5(IN, const char *, name, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + ____Uniform__C5_char_P1__bool__bool__bool__bool, + "", + ""); + I_Method1(int, compare, IN, const osg::Uniform &, rhs, + __int__compare__C5_Uniform_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(int, compareData, IN, const osg::Uniform &, rhs, + __int__compareData__C5_Uniform_R1, + "", + ""); + I_Method1(void, copyData, IN, const osg::Uniform &, rhs, + __void__copyData__C5_Uniform_R1, + "", + ""); + I_Method0(const osg::Uniform::ParentList &, getParents, + __C5_ParentList_R1__getParents, + "Get the parent list of this Uniform. ", + ""); + I_Method0(osg::Uniform::ParentList, getParents, + __ParentList__getParents, + "Get the a copy of parent list of node. ", + "A copy is returned to prevent modification of the parent list. "); + I_Method1(osg::StateSet *, getParent, IN, unsigned int, i, + __StateSet_P1__getParent__unsigned_int, + "", + ""); + I_Method1(const osg::StateSet *, getParent, IN, unsigned int, i, + __C5_StateSet_P1__getParent__unsigned_int, + "Get a single const parent of this Uniform. ", + " param i index of the parent to get. return the parent i."); + I_Method0(unsigned int, getNumParents, + __unsigned_int__getNumParents, + "Get the number of parents of this Uniform. ", + "the number of parents of this Uniform. "); + I_Method1(bool, set, IN, float, f, + __bool__set__float, + "convenient scalar (non-array) value assignment ", + ""); + I_Method1(bool, set, IN, int, i, + __bool__set__int, + "", + ""); + I_Method1(bool, set, IN, bool, b, + __bool__set__bool, + "", + ""); + I_Method1(bool, set, IN, const osg::Vec2 &, v2, + __bool__set__C5_osg_Vec2_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Vec3 &, v3, + __bool__set__C5_osg_Vec3_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Vec4 &, v4, + __bool__set__C5_osg_Vec4_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrix2 &, m2, + __bool__set__C5_osg_Matrix2_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrix3 &, m3, + __bool__set__C5_osg_Matrix3_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrixf &, m4, + __bool__set__C5_osg_Matrixf_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrixd &, m4, + __bool__set__C5_osg_Matrixd_R1, + "", + ""); + I_Method2(bool, set, IN, int, i0, IN, int, i1, + __bool__set__int__int, + "", + ""); + I_Method3(bool, set, IN, int, i0, IN, int, i1, IN, int, i2, + __bool__set__int__int__int, + "", + ""); + I_Method4(bool, set, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + __bool__set__int__int__int__int, + "", + ""); + I_Method2(bool, set, IN, bool, b0, IN, bool, b1, + __bool__set__bool__bool, + "", + ""); + I_Method3(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2, + __bool__set__bool__bool__bool, + "", + ""); + I_Method4(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + __bool__set__bool__bool__bool__bool, + "", + ""); + I_Method1(bool, get, IN, float &, f, + __bool__get__float_R1, + "convenient scalar (non-array) value query ", + ""); + I_Method1(bool, get, IN, int &, i, + __bool__get__int_R1, + "", + ""); + I_Method1(bool, get, IN, bool &, b, + __bool__get__bool_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Vec2 &, v2, + __bool__get__osg_Vec2_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Vec3 &, v3, + __bool__get__osg_Vec3_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Vec4 &, v4, + __bool__get__osg_Vec4_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrix2 &, m2, + __bool__get__osg_Matrix2_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrix3 &, m3, + __bool__get__osg_Matrix3_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrixf &, m4, + __bool__get__osg_Matrixf_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrixd &, m4, + __bool__get__osg_Matrixd_R1, + "", + ""); + I_Method2(bool, get, IN, int &, i0, IN, int &, i1, + __bool__get__int_R1__int_R1, + "", + ""); + I_Method3(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2, + __bool__get__int_R1__int_R1__int_R1, + "", + ""); + I_Method4(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2, IN, int &, i3, + __bool__get__int_R1__int_R1__int_R1__int_R1, + "", + ""); + I_Method2(bool, get, IN, bool &, b0, IN, bool &, b1, + __bool__get__bool_R1__bool_R1, + "", + ""); + I_Method3(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, + __bool__get__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method4(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, IN, bool &, b3, + __bool__get__bool_R1__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, float, f, + __bool__setElement__unsigned_int__float, + "value assignment for array uniforms ", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, int, i, + __bool__setElement__unsigned_int__int, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, bool, b, + __bool__setElement__unsigned_int__bool, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec2 &, v2, + __bool__setElement__unsigned_int__C5_osg_Vec2_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec3 &, v3, + __bool__setElement__unsigned_int__C5_osg_Vec3_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec4 &, v4, + __bool__setElement__unsigned_int__C5_osg_Vec4_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix2 &, m2, + __bool__setElement__unsigned_int__C5_osg_Matrix2_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix3 &, m3, + __bool__setElement__unsigned_int__C5_osg_Matrix3_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixf &, m4, + __bool__setElement__unsigned_int__C5_osg_Matrixf_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixd &, m4, + __bool__setElement__unsigned_int__C5_osg_Matrixd_R1, + "", + ""); + I_Method3(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, + __bool__setElement__unsigned_int__int__int, + "", + ""); + I_Method4(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, IN, int, i2, + __bool__setElement__unsigned_int__int__int__int, + "", + ""); + I_Method5(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + __bool__setElement__unsigned_int__int__int__int__int, + "", + ""); + I_Method3(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, + __bool__setElement__unsigned_int__bool__bool, + "", + ""); + I_Method4(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, IN, bool, b2, + __bool__setElement__unsigned_int__bool__bool__bool, + "", + ""); + I_Method5(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + __bool__setElement__unsigned_int__bool__bool__bool__bool, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, float &, f, + __bool__getElement__unsigned_int__float_R1, + "value query for array uniforms ", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, int &, i, + __bool__getElement__unsigned_int__int_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, bool &, b, + __bool__getElement__unsigned_int__bool_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec2 &, v2, + __bool__getElement__unsigned_int__osg_Vec2_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec3 &, v3, + __bool__getElement__unsigned_int__osg_Vec3_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec4 &, v4, + __bool__getElement__unsigned_int__osg_Vec4_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix2 &, m2, + __bool__getElement__unsigned_int__osg_Matrix2_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix3 &, m3, + __bool__getElement__unsigned_int__osg_Matrix3_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixf &, m4, + __bool__getElement__unsigned_int__osg_Matrixf_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixd &, m4, + __bool__getElement__unsigned_int__osg_Matrixd_R1, + "", + ""); + I_Method3(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, + __bool__getElement__unsigned_int__int_R1__int_R1, + "", + ""); + I_Method4(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, IN, int &, i2, + __bool__getElement__unsigned_int__int_R1__int_R1__int_R1, + "", + ""); + I_Method5(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, IN, int &, i2, IN, int &, i3, + __bool__getElement__unsigned_int__int_R1__int_R1__int_R1__int_R1, + "", + ""); + I_Method3(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, + __bool__getElement__unsigned_int__bool_R1__bool_R1, + "", + ""); + I_Method4(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, + __bool__getElement__unsigned_int__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method5(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, IN, bool &, b3, + __bool__getElement__unsigned_int__bool_R1__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method1(void, setUpdateCallback, IN, osg::Uniform::Callback *, uc, + __void__setUpdateCallback__Callback_P1, + "Set the UpdateCallback which allows users to attach customize the updating of an object during the update traversal. ", + ""); + I_Method0(osg::Uniform::Callback *, getUpdateCallback, + __Callback_P1__getUpdateCallback, + "Get the non const UpdateCallback. ", + ""); + I_Method0(const osg::Uniform::Callback *, getUpdateCallback, + __C5_Callback_P1__getUpdateCallback, + "Get the const UpdateCallback. ", + ""); + I_Method1(void, setEventCallback, IN, osg::Uniform::Callback *, ec, + __void__setEventCallback__Callback_P1, + "Set the EventCallback which allows users to attach customize the updating of an object during the Event traversal. ", + ""); + I_Method0(osg::Uniform::Callback *, getEventCallback, + __Callback_P1__getEventCallback, + "Get the non const EventCallback. ", + ""); + I_Method0(const osg::Uniform::Callback *, getEventCallback, + __C5_Callback_P1__getEventCallback, + "Get the const EventCallback. ", + ""); + I_Method0(void, dirty, + __void__dirty, + "Increment the modified count on the Uniform so Programs watching it know it update themselves. ", + "NOTE: autotomatically called during osg::Uniform::set*(); you must call if modifying the internal data array directly. "); + I_Method1(bool, setArray, IN, osg::FloatArray *, array, + __bool__setArray__FloatArray_P1, + "Set the internal data array for a osg::Uniform. ", + ""); + I_Method1(bool, setArray, IN, osg::IntArray *, array, + __bool__setArray__IntArray_P1, + "", + ""); + I_Method0(osg::FloatArray *, getFloatArray, + __FloatArray_P1__getFloatArray, + "Get the internal data array for a float osg::Uniform. ", + ""); + I_Method0(const osg::FloatArray *, getFloatArray, + __C5_FloatArray_P1__getFloatArray, + "", + ""); + I_Method0(osg::IntArray *, getIntArray, + __IntArray_P1__getIntArray, + "Get the internal data array for an int osg::Uniform. ", + ""); + I_Method0(const osg::IntArray *, getIntArray, + __C5_IntArray_P1__getIntArray, + "", + ""); + I_Method1(void, setModifiedCount, IN, unsigned int, mc, + __void__setModifiedCount__unsigned_int, + "", + ""); + I_Method0(unsigned int, getModifiedCount, + __unsigned_int__getModifiedCount, + "", + ""); + I_Method2(void, apply, IN, const osg::GL2Extensions *, ext, IN, GLint, location, + __void__apply__C5_GL2Extensions_P1__GLint, + "", + ""); + I_StaticMethod1(const char *, getTypename, IN, osg::Uniform::Type, t, + __C5_char_P1__getTypename__Type_S, + "Return the name of a Type enum as string. ", + ""); + I_StaticMethod1(int, getTypeNumComponents, IN, osg::Uniform::Type, t, + __int__getTypeNumComponents__Type_S, + "Return the the number of components for a GLSL type. ", + ""); + I_StaticMethod1(osg::Uniform::Type, getTypeId, IN, const std::string &, tname, + __Uniform_Type__getTypeId__C5_std_string_R1_S, + "Return the Type enum of a Uniform typename string. ", + ""); + I_StaticMethod1(osg::Uniform::Type, getGlApiType, IN, osg::Uniform::Type, t, + __Type__getGlApiType__Type_S, + "Return the GL API type corresponding to a GLSL type. ", + ""); + I_StaticMethod1(GLenum, getInternalArrayType, IN, osg::Uniform::Type, t, + __GLenum__getInternalArrayType__Type_S, + "Return the internal data array type corresponding to a GLSL type. ", + ""); + I_SimpleProperty(osg::FloatArray *, Array, + 0, + __bool__setArray__FloatArray_P1); + I_ArrayProperty(bool, Element, + 0, + __bool__setElement__unsigned_int__bool, + __unsigned_int__getNumElements, + 0, + 0, + 0); + I_SimpleProperty(osg::Uniform::Callback *, EventCallback, + __Callback_P1__getEventCallback, + __void__setEventCallback__Callback_P1); + I_SimpleProperty(osg::FloatArray *, FloatArray, + __FloatArray_P1__getFloatArray, + 0); + I_SimpleProperty(osg::IntArray *, IntArray, + __IntArray_P1__getIntArray, + 0); + I_SimpleProperty(unsigned int, InternalArrayNumElements, + __unsigned_int__getInternalArrayNumElements, + 0); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); + I_SimpleProperty(const std::string &, Name, + 0, + __void__setName__C5_std_string_R1); + I_SimpleProperty(unsigned int, NumElements, + 0, + __void__setNumElements__unsigned_int); + I_ArrayProperty(osg::StateSet *, Parent, + __StateSet_P1__getParent__unsigned_int, + 0, + __unsigned_int__getNumParents, + 0, + 0, + 0); + I_SimpleProperty(osg::Uniform::ParentList, Parents, + __ParentList__getParents, + 0); + I_SimpleProperty(osg::Uniform::Type, Type, + 0, + __bool__setType__Type); + I_SimpleProperty(osg::Uniform::Callback *, UpdateCallback, + __Callback_P1__getUpdateCallback, + __void__setUpdateCallback__Callback_P1); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Uniform::Callback) I_VirtualBaseType(osg::Object); - I_Constructor0(); - I_Constructor2(IN, const osg::Uniform::Callback &, x, IN, const osg::CopyOp &, x); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); + I_Constructor0(____Callback, + "", + ""); + I_Constructor2(IN, const osg::Uniform::Callback &, x, IN, const osg::CopyOp &, x, + ____Callback__C5_Callback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec2b.cpp b/src/osgWrappers/osg/Vec2b.cpp index 97b54fe76..f8abc5a43 100644 --- a/src/osgWrappers/osg/Vec2b.cpp +++ b/src/osgWrappers/osg/Vec2b.cpp @@ -27,20 +27,60 @@ TYPE_NAME_ALIAS(char, osg::Vec2b::value_type); BEGIN_VALUE_REFLECTOR(osg::Vec2b) I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined - I_Constructor0(); - I_Constructor2(IN, char, r, IN, char, g); - I_Method0(osg::Vec2b::value_type *, ptr); - I_Method0(const osg::Vec2b::value_type *, ptr); - I_Method2(void, set, IN, osg::Vec2b::value_type, x, IN, osg::Vec2b::value_type, y); - I_Method1(void, set, IN, const osg::Vec2b &, rhs); - I_Method0(osg::Vec2b::value_type &, x); - I_Method0(osg::Vec2b::value_type &, y); - I_Method0(osg::Vec2b::value_type, x); - I_Method0(osg::Vec2b::value_type, y); - I_Method0(osg::Vec2b::value_type &, r); - I_Method0(osg::Vec2b::value_type &, g); - I_Method0(osg::Vec2b::value_type, r); - I_Method0(osg::Vec2b::value_type, g); - I_WriteOnlyProperty(const osg::Vec2b &, ); + I_Constructor0(____Vec2b, + "", + ""); + I_Constructor2(IN, char, r, IN, char, g, + ____Vec2b__char__char, + "", + ""); + I_Method0(osg::Vec2b::value_type *, ptr, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec2b::value_type *, ptr, + __C5_value_type_P1__ptr, + "", + ""); + I_Method2(void, set, IN, osg::Vec2b::value_type, x, IN, osg::Vec2b::value_type, y, + __void__set__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec2b &, rhs, + __void__set__C5_Vec2b_R1, + "", + ""); + I_Method0(osg::Vec2b::value_type &, x, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec2b::value_type &, y, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec2b::value_type, x, + __value_type__x, + "", + ""); + I_Method0(osg::Vec2b::value_type, y, + __value_type__y, + "", + ""); + I_Method0(osg::Vec2b::value_type &, r, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec2b::value_type &, g, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec2b::value_type, r, + __value_type__r, + "", + ""); + I_Method0(osg::Vec2b::value_type, g, + __value_type__g, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec2d.cpp b/src/osgWrappers/osg/Vec2d.cpp index baacdd1c9..c43b3f625 100644 --- a/src/osgWrappers/osg/Vec2d.cpp +++ b/src/osgWrappers/osg/Vec2d.cpp @@ -28,20 +28,64 @@ TYPE_NAME_ALIAS(double, osg::Vec2d::value_type); BEGIN_VALUE_REFLECTOR(osg::Vec2d) I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined - I_Constructor0(); - I_Constructor2(IN, osg::Vec2d::value_type, x, IN, osg::Vec2d::value_type, y); - I_Constructor1(IN, const osg::Vec2f &, vec); - I_Method0(osg::Vec2d::value_type *, ptr); - I_Method0(const osg::Vec2d::value_type *, ptr); - I_Method2(void, set, IN, osg::Vec2d::value_type, x, IN, osg::Vec2d::value_type, y); - I_Method0(osg::Vec2d::value_type &, x); - I_Method0(osg::Vec2d::value_type &, y); - I_Method0(osg::Vec2d::value_type, x); - I_Method0(osg::Vec2d::value_type, y); - I_Method0(bool, valid); - I_Method0(bool, isNaN); - I_Method0(osg::Vec2d::value_type, length); - I_Method0(osg::Vec2d::value_type, length2); - I_Method0(osg::Vec2d::value_type, normalize); + I_Constructor0(____Vec2d, + "", + ""); + I_Constructor2(IN, osg::Vec2d::value_type, x, IN, osg::Vec2d::value_type, y, + ____Vec2d__value_type__value_type, + "", + ""); + I_Constructor1(IN, const osg::Vec2f &, vec, + ____Vec2d__C5_Vec2f_R1, + "", + ""); + I_Method0(osg::Vec2d::value_type *, ptr, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec2d::value_type *, ptr, + __C5_value_type_P1__ptr, + "", + ""); + I_Method2(void, set, IN, osg::Vec2d::value_type, x, IN, osg::Vec2d::value_type, y, + __void__set__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2d::value_type &, x, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec2d::value_type &, y, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec2d::value_type, x, + __value_type__x, + "", + ""); + I_Method0(osg::Vec2d::value_type, y, + __value_type__y, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec2d::value_type, length, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec2d::value_type, length2, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec2d::value_type, normalize, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec2f.cpp b/src/osgWrappers/osg/Vec2f.cpp index 5aec715fe..a9e383160 100644 --- a/src/osgWrappers/osg/Vec2f.cpp +++ b/src/osgWrappers/osg/Vec2f.cpp @@ -27,19 +27,60 @@ TYPE_NAME_ALIAS(float, osg::Vec2f::value_type); BEGIN_VALUE_REFLECTOR(osg::Vec2f) I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined - I_Constructor0(); - I_Constructor2(IN, osg::Vec2f::value_type, x, IN, osg::Vec2f::value_type, y); - I_Method0(osg::Vec2f::value_type *, ptr); - I_Method0(const osg::Vec2f::value_type *, ptr); - I_Method2(void, set, IN, osg::Vec2f::value_type, x, IN, osg::Vec2f::value_type, y); - I_Method0(osg::Vec2f::value_type &, x); - I_Method0(osg::Vec2f::value_type &, y); - I_Method0(osg::Vec2f::value_type, x); - I_Method0(osg::Vec2f::value_type, y); - I_Method0(bool, valid); - I_Method0(bool, isNaN); - I_Method0(osg::Vec2f::value_type, length); - I_Method0(osg::Vec2f::value_type, length2); - I_Method0(osg::Vec2f::value_type, normalize); + I_Constructor0(____Vec2f, + "", + ""); + I_Constructor2(IN, osg::Vec2f::value_type, x, IN, osg::Vec2f::value_type, y, + ____Vec2f__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2f::value_type *, ptr, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec2f::value_type *, ptr, + __C5_value_type_P1__ptr, + "", + ""); + I_Method2(void, set, IN, osg::Vec2f::value_type, x, IN, osg::Vec2f::value_type, y, + __void__set__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2f::value_type &, x, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec2f::value_type &, y, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec2f::value_type, x, + __value_type__x, + "", + ""); + I_Method0(osg::Vec2f::value_type, y, + __value_type__y, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec2f::value_type, length, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec2f::value_type, length2, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec2f::value_type, normalize, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec2s.cpp b/src/osgWrappers/osg/Vec2s.cpp index 117399c37..2c9fc72a5 100644 --- a/src/osgWrappers/osg/Vec2s.cpp +++ b/src/osgWrappers/osg/Vec2s.cpp @@ -23,20 +23,60 @@ TYPE_NAME_ALIAS(short, osg::Vec2s::value_type); BEGIN_VALUE_REFLECTOR(osg::Vec2s) - I_Constructor0(); - I_Constructor2(IN, osg::Vec2s::value_type, x, IN, osg::Vec2s::value_type, y); - I_Method0(osg::Vec2s::value_type *, ptr); - I_Method0(const osg::Vec2s::value_type *, ptr); - I_Method2(void, set, IN, osg::Vec2s::value_type, x, IN, osg::Vec2s::value_type, y); - I_Method1(void, set, IN, const osg::Vec2s &, rhs); - I_Method0(osg::Vec2s::value_type &, x); - I_Method0(osg::Vec2s::value_type &, y); - I_Method0(osg::Vec2s::value_type, x); - I_Method0(osg::Vec2s::value_type, y); - I_Method0(osg::Vec2s::value_type &, r); - I_Method0(osg::Vec2s::value_type &, g); - I_Method0(osg::Vec2s::value_type, r); - I_Method0(osg::Vec2s::value_type, g); - I_WriteOnlyProperty(const osg::Vec2s &, ); + I_Constructor0(____Vec2s, + "", + ""); + I_Constructor2(IN, osg::Vec2s::value_type, x, IN, osg::Vec2s::value_type, y, + ____Vec2s__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2s::value_type *, ptr, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec2s::value_type *, ptr, + __C5_value_type_P1__ptr, + "", + ""); + I_Method2(void, set, IN, osg::Vec2s::value_type, x, IN, osg::Vec2s::value_type, y, + __void__set__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec2s &, rhs, + __void__set__C5_Vec2s_R1, + "", + ""); + I_Method0(osg::Vec2s::value_type &, x, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec2s::value_type &, y, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec2s::value_type, x, + __value_type__x, + "", + ""); + I_Method0(osg::Vec2s::value_type, y, + __value_type__y, + "", + ""); + I_Method0(osg::Vec2s::value_type &, r, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec2s::value_type &, g, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec2s::value_type, r, + __value_type__r, + "", + ""); + I_Method0(osg::Vec2s::value_type, g, + __value_type__g, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec3b.cpp b/src/osgWrappers/osg/Vec3b.cpp index 58f4c744c..04f73f284 100644 --- a/src/osgWrappers/osg/Vec3b.cpp +++ b/src/osgWrappers/osg/Vec3b.cpp @@ -27,24 +27,76 @@ TYPE_NAME_ALIAS(char, osg::Vec3b::value_type); BEGIN_VALUE_REFLECTOR(osg::Vec3b) I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined - I_Constructor0(); - I_Constructor3(IN, osg::Vec3b::value_type, r, IN, osg::Vec3b::value_type, g, IN, osg::Vec3b::value_type, b); - I_Method0(osg::Vec3b::value_type *, ptr); - I_Method0(const osg::Vec3b::value_type *, ptr); - I_Method3(void, set, IN, osg::Vec3b::value_type, r, IN, osg::Vec3b::value_type, g, IN, osg::Vec3b::value_type, b); - I_Method1(void, set, IN, const osg::Vec3b &, rhs); - I_Method0(osg::Vec3b::value_type &, x); - I_Method0(osg::Vec3b::value_type &, y); - I_Method0(osg::Vec3b::value_type &, z); - I_Method0(osg::Vec3b::value_type, x); - I_Method0(osg::Vec3b::value_type, y); - I_Method0(osg::Vec3b::value_type, z); - I_Method0(osg::Vec3b::value_type &, r); - I_Method0(osg::Vec3b::value_type &, g); - I_Method0(osg::Vec3b::value_type &, b); - I_Method0(osg::Vec3b::value_type, r); - I_Method0(osg::Vec3b::value_type, g); - I_Method0(osg::Vec3b::value_type, b); - I_WriteOnlyProperty(const osg::Vec3b &, ); + I_Constructor0(____Vec3b, + "", + ""); + I_Constructor3(IN, osg::Vec3b::value_type, r, IN, osg::Vec3b::value_type, g, IN, osg::Vec3b::value_type, b, + ____Vec3b__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec3b::value_type *, ptr, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec3b::value_type *, ptr, + __C5_value_type_P1__ptr, + "", + ""); + I_Method3(void, set, IN, osg::Vec3b::value_type, r, IN, osg::Vec3b::value_type, g, IN, osg::Vec3b::value_type, b, + __void__set__value_type__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec3b &, rhs, + __void__set__C5_Vec3b_R1, + "", + ""); + I_Method0(osg::Vec3b::value_type &, x, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec3b::value_type &, y, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec3b::value_type &, z, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec3b::value_type, x, + __value_type__x, + "", + ""); + I_Method0(osg::Vec3b::value_type, y, + __value_type__y, + "", + ""); + I_Method0(osg::Vec3b::value_type, z, + __value_type__z, + "", + ""); + I_Method0(osg::Vec3b::value_type &, r, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec3b::value_type &, g, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec3b::value_type &, b, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec3b::value_type, r, + __value_type__r, + "", + ""); + I_Method0(osg::Vec3b::value_type, g, + __value_type__g, + "", + ""); + I_Method0(osg::Vec3b::value_type, b, + __value_type__b, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec3d.cpp b/src/osgWrappers/osg/Vec3d.cpp index b01b2b6d4..cf20710d4 100644 --- a/src/osgWrappers/osg/Vec3d.cpp +++ b/src/osgWrappers/osg/Vec3d.cpp @@ -29,25 +29,80 @@ TYPE_NAME_ALIAS(double, osg::Vec3d::value_type); BEGIN_VALUE_REFLECTOR(osg::Vec3d) I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined - I_Constructor0(); - I_Constructor1(IN, const osg::Vec3f &, vec); - I_Constructor3(IN, osg::Vec3d::value_type, x, IN, osg::Vec3d::value_type, y, IN, osg::Vec3d::value_type, z); - I_Constructor2(IN, const osg::Vec2d &, v2, IN, osg::Vec3d::value_type, zz); - I_Method0(osg::Vec3d::value_type *, ptr); - I_Method0(const osg::Vec3d::value_type *, ptr); - I_Method3(void, set, IN, osg::Vec3d::value_type, x, IN, osg::Vec3d::value_type, y, IN, osg::Vec3d::value_type, z); - I_Method1(void, set, IN, const osg::Vec3d &, rhs); - I_Method0(osg::Vec3d::value_type &, x); - I_Method0(osg::Vec3d::value_type &, y); - I_Method0(osg::Vec3d::value_type &, z); - I_Method0(osg::Vec3d::value_type, x); - I_Method0(osg::Vec3d::value_type, y); - I_Method0(osg::Vec3d::value_type, z); - I_Method0(bool, valid); - I_Method0(bool, isNaN); - I_Method0(osg::Vec3d::value_type, length); - I_Method0(osg::Vec3d::value_type, length2); - I_Method0(osg::Vec3d::value_type, normalize); - I_WriteOnlyProperty(const osg::Vec3d &, ); + I_Constructor0(____Vec3d, + "", + ""); + I_Constructor1(IN, const osg::Vec3f &, vec, + ____Vec3d__C5_Vec3f_R1, + "", + ""); + I_Constructor3(IN, osg::Vec3d::value_type, x, IN, osg::Vec3d::value_type, y, IN, osg::Vec3d::value_type, z, + ____Vec3d__value_type__value_type__value_type, + "", + ""); + I_Constructor2(IN, const osg::Vec2d &, v2, IN, osg::Vec3d::value_type, zz, + ____Vec3d__C5_Vec2d_R1__value_type, + "", + ""); + I_Method0(osg::Vec3d::value_type *, ptr, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec3d::value_type *, ptr, + __C5_value_type_P1__ptr, + "", + ""); + I_Method3(void, set, IN, osg::Vec3d::value_type, x, IN, osg::Vec3d::value_type, y, IN, osg::Vec3d::value_type, z, + __void__set__value_type__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec3d &, rhs, + __void__set__C5_Vec3d_R1, + "", + ""); + I_Method0(osg::Vec3d::value_type &, x, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec3d::value_type &, y, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec3d::value_type &, z, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec3d::value_type, x, + __value_type__x, + "", + ""); + I_Method0(osg::Vec3d::value_type, y, + __value_type__y, + "", + ""); + I_Method0(osg::Vec3d::value_type, z, + __value_type__z, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec3d::value_type, length, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec3d::value_type, length2, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec3d::value_type, normalize, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec3f.cpp b/src/osgWrappers/osg/Vec3f.cpp index 39d80946e..2750db885 100644 --- a/src/osgWrappers/osg/Vec3f.cpp +++ b/src/osgWrappers/osg/Vec3f.cpp @@ -28,24 +28,76 @@ TYPE_NAME_ALIAS(float, osg::Vec3f::value_type); BEGIN_VALUE_REFLECTOR(osg::Vec3f) I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined - I_Constructor0(); - I_Constructor3(IN, osg::Vec3f::value_type, x, IN, osg::Vec3f::value_type, y, IN, osg::Vec3f::value_type, z); - I_Constructor2(IN, const osg::Vec2f &, v2, IN, osg::Vec3f::value_type, zz); - I_Method0(osg::Vec3f::value_type *, ptr); - I_Method0(const osg::Vec3f::value_type *, ptr); - I_Method3(void, set, IN, osg::Vec3f::value_type, x, IN, osg::Vec3f::value_type, y, IN, osg::Vec3f::value_type, z); - I_Method1(void, set, IN, const osg::Vec3f &, rhs); - I_Method0(osg::Vec3f::value_type &, x); - I_Method0(osg::Vec3f::value_type &, y); - I_Method0(osg::Vec3f::value_type &, z); - I_Method0(osg::Vec3f::value_type, x); - I_Method0(osg::Vec3f::value_type, y); - I_Method0(osg::Vec3f::value_type, z); - I_Method0(bool, valid); - I_Method0(bool, isNaN); - I_Method0(osg::Vec3f::value_type, length); - I_Method0(osg::Vec3f::value_type, length2); - I_Method0(osg::Vec3f::value_type, normalize); - I_WriteOnlyProperty(const osg::Vec3f &, ); + I_Constructor0(____Vec3f, + "", + ""); + I_Constructor3(IN, osg::Vec3f::value_type, x, IN, osg::Vec3f::value_type, y, IN, osg::Vec3f::value_type, z, + ____Vec3f__value_type__value_type__value_type, + "", + ""); + I_Constructor2(IN, const osg::Vec2f &, v2, IN, osg::Vec3f::value_type, zz, + ____Vec3f__C5_Vec2f_R1__value_type, + "", + ""); + I_Method0(osg::Vec3f::value_type *, ptr, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec3f::value_type *, ptr, + __C5_value_type_P1__ptr, + "", + ""); + I_Method3(void, set, IN, osg::Vec3f::value_type, x, IN, osg::Vec3f::value_type, y, IN, osg::Vec3f::value_type, z, + __void__set__value_type__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec3f &, rhs, + __void__set__C5_Vec3f_R1, + "", + ""); + I_Method0(osg::Vec3f::value_type &, x, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec3f::value_type &, y, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec3f::value_type &, z, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec3f::value_type, x, + __value_type__x, + "", + ""); + I_Method0(osg::Vec3f::value_type, y, + __value_type__y, + "", + ""); + I_Method0(osg::Vec3f::value_type, z, + __value_type__z, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec3f::value_type, length, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec3f::value_type, length2, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec3f::value_type, normalize, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec3s.cpp b/src/osgWrappers/osg/Vec3s.cpp index 11f3bd0fe..8a3087e54 100644 --- a/src/osgWrappers/osg/Vec3s.cpp +++ b/src/osgWrappers/osg/Vec3s.cpp @@ -23,24 +23,76 @@ TYPE_NAME_ALIAS(short, osg::Vec3s::value_type); BEGIN_VALUE_REFLECTOR(osg::Vec3s) - I_Constructor0(); - I_Constructor3(IN, osg::Vec3s::value_type, r, IN, osg::Vec3s::value_type, g, IN, osg::Vec3s::value_type, b); - I_Method0(osg::Vec3s::value_type *, ptr); - I_Method0(const osg::Vec3s::value_type *, ptr); - I_Method3(void, set, IN, osg::Vec3s::value_type, r, IN, osg::Vec3s::value_type, g, IN, osg::Vec3s::value_type, b); - I_Method1(void, set, IN, const osg::Vec3s &, rhs); - I_Method0(osg::Vec3s::value_type &, x); - I_Method0(osg::Vec3s::value_type &, y); - I_Method0(osg::Vec3s::value_type &, z); - I_Method0(osg::Vec3s::value_type, x); - I_Method0(osg::Vec3s::value_type, y); - I_Method0(osg::Vec3s::value_type, z); - I_Method0(osg::Vec3s::value_type &, r); - I_Method0(osg::Vec3s::value_type &, g); - I_Method0(osg::Vec3s::value_type &, b); - I_Method0(osg::Vec3s::value_type, r); - I_Method0(osg::Vec3s::value_type, g); - I_Method0(osg::Vec3s::value_type, b); - I_WriteOnlyProperty(const osg::Vec3s &, ); + I_Constructor0(____Vec3s, + "", + ""); + I_Constructor3(IN, osg::Vec3s::value_type, r, IN, osg::Vec3s::value_type, g, IN, osg::Vec3s::value_type, b, + ____Vec3s__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec3s::value_type *, ptr, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec3s::value_type *, ptr, + __C5_value_type_P1__ptr, + "", + ""); + I_Method3(void, set, IN, osg::Vec3s::value_type, r, IN, osg::Vec3s::value_type, g, IN, osg::Vec3s::value_type, b, + __void__set__value_type__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec3s &, rhs, + __void__set__C5_Vec3s_R1, + "", + ""); + I_Method0(osg::Vec3s::value_type &, x, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec3s::value_type &, y, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec3s::value_type &, z, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec3s::value_type, x, + __value_type__x, + "", + ""); + I_Method0(osg::Vec3s::value_type, y, + __value_type__y, + "", + ""); + I_Method0(osg::Vec3s::value_type, z, + __value_type__z, + "", + ""); + I_Method0(osg::Vec3s::value_type &, r, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec3s::value_type &, g, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec3s::value_type &, b, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec3s::value_type, r, + __value_type__r, + "", + ""); + I_Method0(osg::Vec3s::value_type, g, + __value_type__g, + "", + ""); + I_Method0(osg::Vec3s::value_type, b, + __value_type__b, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec4b.cpp b/src/osgWrappers/osg/Vec4b.cpp index 5c22b9fca..40860037c 100644 --- a/src/osgWrappers/osg/Vec4b.cpp +++ b/src/osgWrappers/osg/Vec4b.cpp @@ -27,26 +27,88 @@ TYPE_NAME_ALIAS(char, osg::Vec4b::value_type); BEGIN_VALUE_REFLECTOR(osg::Vec4b) I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined - I_Constructor0(); - I_Constructor4(IN, osg::Vec4b::value_type, x, IN, osg::Vec4b::value_type, y, IN, osg::Vec4b::value_type, z, IN, osg::Vec4b::value_type, w); - I_Method0(osg::Vec4b::value_type *, ptr); - I_Method0(const osg::Vec4b::value_type *, ptr); - I_Method4(void, set, IN, osg::Vec4b::value_type, x, IN, osg::Vec4b::value_type, y, IN, osg::Vec4b::value_type, z, IN, osg::Vec4b::value_type, w); - I_Method0(osg::Vec4b::value_type &, x); - I_Method0(osg::Vec4b::value_type &, y); - I_Method0(osg::Vec4b::value_type &, z); - I_Method0(osg::Vec4b::value_type &, w); - I_Method0(osg::Vec4b::value_type, x); - I_Method0(osg::Vec4b::value_type, y); - I_Method0(osg::Vec4b::value_type, z); - I_Method0(osg::Vec4b::value_type, w); - I_Method0(osg::Vec4b::value_type &, r); - I_Method0(osg::Vec4b::value_type &, g); - I_Method0(osg::Vec4b::value_type &, b); - I_Method0(osg::Vec4b::value_type &, a); - I_Method0(osg::Vec4b::value_type, r); - I_Method0(osg::Vec4b::value_type, g); - I_Method0(osg::Vec4b::value_type, b); - I_Method0(osg::Vec4b::value_type, a); + I_Constructor0(____Vec4b, + "", + ""); + I_Constructor4(IN, osg::Vec4b::value_type, x, IN, osg::Vec4b::value_type, y, IN, osg::Vec4b::value_type, z, IN, osg::Vec4b::value_type, w, + ____Vec4b__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4b::value_type *, ptr, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec4b::value_type *, ptr, + __C5_value_type_P1__ptr, + "", + ""); + I_Method4(void, set, IN, osg::Vec4b::value_type, x, IN, osg::Vec4b::value_type, y, IN, osg::Vec4b::value_type, z, IN, osg::Vec4b::value_type, w, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4b::value_type &, x, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec4b::value_type &, y, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec4b::value_type &, z, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec4b::value_type &, w, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Vec4b::value_type, x, + __value_type__x, + "", + ""); + I_Method0(osg::Vec4b::value_type, y, + __value_type__y, + "", + ""); + I_Method0(osg::Vec4b::value_type, z, + __value_type__z, + "", + ""); + I_Method0(osg::Vec4b::value_type, w, + __value_type__w, + "", + ""); + I_Method0(osg::Vec4b::value_type &, r, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec4b::value_type &, g, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec4b::value_type &, b, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec4b::value_type &, a, + __value_type_R1__a, + "", + ""); + I_Method0(osg::Vec4b::value_type, r, + __value_type__r, + "", + ""); + I_Method0(osg::Vec4b::value_type, g, + __value_type__g, + "", + ""); + I_Method0(osg::Vec4b::value_type, b, + __value_type__b, + "", + ""); + I_Method0(osg::Vec4b::value_type, a, + __value_type__a, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec4d.cpp b/src/osgWrappers/osg/Vec4d.cpp index 6dcdbda25..3a813b6cb 100644 --- a/src/osgWrappers/osg/Vec4d.cpp +++ b/src/osgWrappers/osg/Vec4d.cpp @@ -29,35 +29,124 @@ TYPE_NAME_ALIAS(double, osg::Vec4d::value_type); BEGIN_VALUE_REFLECTOR(osg::Vec4d) I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined - I_Constructor0(); - I_Constructor4(IN, osg::Vec4d::value_type, x, IN, osg::Vec4d::value_type, y, IN, osg::Vec4d::value_type, z, IN, osg::Vec4d::value_type, w); - I_Constructor2(IN, const osg::Vec3d &, v3, IN, osg::Vec4d::value_type, w); - I_Constructor1(IN, const osg::Vec4f &, vec); - I_Method0(osg::Vec4d::value_type *, ptr); - I_Method0(const osg::Vec4d::value_type *, ptr); - I_Method4(void, set, IN, osg::Vec4d::value_type, x, IN, osg::Vec4d::value_type, y, IN, osg::Vec4d::value_type, z, IN, osg::Vec4d::value_type, w); - I_Method0(osg::Vec4d::value_type &, x); - I_Method0(osg::Vec4d::value_type &, y); - I_Method0(osg::Vec4d::value_type &, z); - I_Method0(osg::Vec4d::value_type &, w); - I_Method0(osg::Vec4d::value_type, x); - I_Method0(osg::Vec4d::value_type, y); - I_Method0(osg::Vec4d::value_type, z); - I_Method0(osg::Vec4d::value_type, w); - I_Method0(osg::Vec4d::value_type &, r); - I_Method0(osg::Vec4d::value_type &, g); - I_Method0(osg::Vec4d::value_type &, b); - I_Method0(osg::Vec4d::value_type &, a); - I_Method0(osg::Vec4d::value_type, r); - I_Method0(osg::Vec4d::value_type, g); - I_Method0(osg::Vec4d::value_type, b); - I_Method0(osg::Vec4d::value_type, a); - I_Method0(unsigned int, asABGR); - I_Method0(unsigned int, asRGBA); - I_Method0(bool, valid); - I_Method0(bool, isNaN); - I_Method0(osg::Vec4d::value_type, length); - I_Method0(osg::Vec4d::value_type, length2); - I_Method0(osg::Vec4d::value_type, normalize); + I_Constructor0(____Vec4d, + "", + ""); + I_Constructor4(IN, osg::Vec4d::value_type, x, IN, osg::Vec4d::value_type, y, IN, osg::Vec4d::value_type, z, IN, osg::Vec4d::value_type, w, + ____Vec4d__value_type__value_type__value_type__value_type, + "", + ""); + I_Constructor2(IN, const osg::Vec3d &, v3, IN, osg::Vec4d::value_type, w, + ____Vec4d__C5_Vec3d_R1__value_type, + "", + ""); + I_Constructor1(IN, const osg::Vec4f &, vec, + ____Vec4d__C5_Vec4f_R1, + "", + ""); + I_Method0(osg::Vec4d::value_type *, ptr, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec4d::value_type *, ptr, + __C5_value_type_P1__ptr, + "", + ""); + I_Method4(void, set, IN, osg::Vec4d::value_type, x, IN, osg::Vec4d::value_type, y, IN, osg::Vec4d::value_type, z, IN, osg::Vec4d::value_type, w, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4d::value_type &, x, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec4d::value_type &, y, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec4d::value_type &, z, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec4d::value_type &, w, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Vec4d::value_type, x, + __value_type__x, + "", + ""); + I_Method0(osg::Vec4d::value_type, y, + __value_type__y, + "", + ""); + I_Method0(osg::Vec4d::value_type, z, + __value_type__z, + "", + ""); + I_Method0(osg::Vec4d::value_type, w, + __value_type__w, + "", + ""); + I_Method0(osg::Vec4d::value_type &, r, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec4d::value_type &, g, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec4d::value_type &, b, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec4d::value_type &, a, + __value_type_R1__a, + "", + ""); + I_Method0(osg::Vec4d::value_type, r, + __value_type__r, + "", + ""); + I_Method0(osg::Vec4d::value_type, g, + __value_type__g, + "", + ""); + I_Method0(osg::Vec4d::value_type, b, + __value_type__b, + "", + ""); + I_Method0(osg::Vec4d::value_type, a, + __value_type__a, + "", + ""); + I_Method0(unsigned int, asABGR, + __unsigned_int__asABGR, + "", + ""); + I_Method0(unsigned int, asRGBA, + __unsigned_int__asRGBA, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec4d::value_type, length, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec4d::value_type, length2, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec4d::value_type, normalize, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec4f.cpp b/src/osgWrappers/osg/Vec4f.cpp index 9f3285110..7130ce0b4 100644 --- a/src/osgWrappers/osg/Vec4f.cpp +++ b/src/osgWrappers/osg/Vec4f.cpp @@ -28,34 +28,120 @@ TYPE_NAME_ALIAS(float, osg::Vec4f::value_type); BEGIN_VALUE_REFLECTOR(osg::Vec4f) I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined - I_Constructor0(); - I_Constructor4(IN, osg::Vec4f::value_type, x, IN, osg::Vec4f::value_type, y, IN, osg::Vec4f::value_type, z, IN, osg::Vec4f::value_type, w); - I_Constructor2(IN, const osg::Vec3f &, v3, IN, osg::Vec4f::value_type, w); - I_Method0(osg::Vec4f::value_type *, ptr); - I_Method0(const osg::Vec4f::value_type *, ptr); - I_Method4(void, set, IN, osg::Vec4f::value_type, x, IN, osg::Vec4f::value_type, y, IN, osg::Vec4f::value_type, z, IN, osg::Vec4f::value_type, w); - I_Method0(osg::Vec4f::value_type &, x); - I_Method0(osg::Vec4f::value_type &, y); - I_Method0(osg::Vec4f::value_type &, z); - I_Method0(osg::Vec4f::value_type &, w); - I_Method0(osg::Vec4f::value_type, x); - I_Method0(osg::Vec4f::value_type, y); - I_Method0(osg::Vec4f::value_type, z); - I_Method0(osg::Vec4f::value_type, w); - I_Method0(osg::Vec4f::value_type &, r); - I_Method0(osg::Vec4f::value_type &, g); - I_Method0(osg::Vec4f::value_type &, b); - I_Method0(osg::Vec4f::value_type &, a); - I_Method0(osg::Vec4f::value_type, r); - I_Method0(osg::Vec4f::value_type, g); - I_Method0(osg::Vec4f::value_type, b); - I_Method0(osg::Vec4f::value_type, a); - I_Method0(unsigned int, asABGR); - I_Method0(unsigned int, asRGBA); - I_Method0(bool, valid); - I_Method0(bool, isNaN); - I_Method0(osg::Vec4f::value_type, length); - I_Method0(osg::Vec4f::value_type, length2); - I_Method0(osg::Vec4f::value_type, normalize); + I_Constructor0(____Vec4f, + "", + ""); + I_Constructor4(IN, osg::Vec4f::value_type, x, IN, osg::Vec4f::value_type, y, IN, osg::Vec4f::value_type, z, IN, osg::Vec4f::value_type, w, + ____Vec4f__value_type__value_type__value_type__value_type, + "", + ""); + I_Constructor2(IN, const osg::Vec3f &, v3, IN, osg::Vec4f::value_type, w, + ____Vec4f__C5_Vec3f_R1__value_type, + "", + ""); + I_Method0(osg::Vec4f::value_type *, ptr, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec4f::value_type *, ptr, + __C5_value_type_P1__ptr, + "", + ""); + I_Method4(void, set, IN, osg::Vec4f::value_type, x, IN, osg::Vec4f::value_type, y, IN, osg::Vec4f::value_type, z, IN, osg::Vec4f::value_type, w, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4f::value_type &, x, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec4f::value_type &, y, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec4f::value_type &, z, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec4f::value_type &, w, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Vec4f::value_type, x, + __value_type__x, + "", + ""); + I_Method0(osg::Vec4f::value_type, y, + __value_type__y, + "", + ""); + I_Method0(osg::Vec4f::value_type, z, + __value_type__z, + "", + ""); + I_Method0(osg::Vec4f::value_type, w, + __value_type__w, + "", + ""); + I_Method0(osg::Vec4f::value_type &, r, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec4f::value_type &, g, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec4f::value_type &, b, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec4f::value_type &, a, + __value_type_R1__a, + "", + ""); + I_Method0(osg::Vec4f::value_type, r, + __value_type__r, + "", + ""); + I_Method0(osg::Vec4f::value_type, g, + __value_type__g, + "", + ""); + I_Method0(osg::Vec4f::value_type, b, + __value_type__b, + "", + ""); + I_Method0(osg::Vec4f::value_type, a, + __value_type__a, + "", + ""); + I_Method0(unsigned int, asABGR, + __unsigned_int__asABGR, + "", + ""); + I_Method0(unsigned int, asRGBA, + __unsigned_int__asRGBA, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec4f::value_type, length, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec4f::value_type, length2, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec4f::value_type, normalize, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec4s.cpp b/src/osgWrappers/osg/Vec4s.cpp index 2a9da4f05..06a6d930c 100644 --- a/src/osgWrappers/osg/Vec4s.cpp +++ b/src/osgWrappers/osg/Vec4s.cpp @@ -23,26 +23,88 @@ TYPE_NAME_ALIAS(short, osg::Vec4s::value_type); BEGIN_VALUE_REFLECTOR(osg::Vec4s) - I_Constructor0(); - I_Constructor4(IN, osg::Vec4s::value_type, x, IN, osg::Vec4s::value_type, y, IN, osg::Vec4s::value_type, z, IN, osg::Vec4s::value_type, w); - I_Method0(osg::Vec4s::value_type *, ptr); - I_Method0(const osg::Vec4s::value_type *, ptr); - I_Method4(void, set, IN, osg::Vec4s::value_type, x, IN, osg::Vec4s::value_type, y, IN, osg::Vec4s::value_type, z, IN, osg::Vec4s::value_type, w); - I_Method0(osg::Vec4s::value_type &, x); - I_Method0(osg::Vec4s::value_type &, y); - I_Method0(osg::Vec4s::value_type &, z); - I_Method0(osg::Vec4s::value_type &, w); - I_Method0(osg::Vec4s::value_type, x); - I_Method0(osg::Vec4s::value_type, y); - I_Method0(osg::Vec4s::value_type, z); - I_Method0(osg::Vec4s::value_type, w); - I_Method0(osg::Vec4s::value_type &, r); - I_Method0(osg::Vec4s::value_type &, g); - I_Method0(osg::Vec4s::value_type &, b); - I_Method0(osg::Vec4s::value_type &, a); - I_Method0(osg::Vec4s::value_type, r); - I_Method0(osg::Vec4s::value_type, g); - I_Method0(osg::Vec4s::value_type, b); - I_Method0(osg::Vec4s::value_type, a); + I_Constructor0(____Vec4s, + "", + ""); + I_Constructor4(IN, osg::Vec4s::value_type, x, IN, osg::Vec4s::value_type, y, IN, osg::Vec4s::value_type, z, IN, osg::Vec4s::value_type, w, + ____Vec4s__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4s::value_type *, ptr, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec4s::value_type *, ptr, + __C5_value_type_P1__ptr, + "", + ""); + I_Method4(void, set, IN, osg::Vec4s::value_type, x, IN, osg::Vec4s::value_type, y, IN, osg::Vec4s::value_type, z, IN, osg::Vec4s::value_type, w, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4s::value_type &, x, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec4s::value_type &, y, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec4s::value_type &, z, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec4s::value_type &, w, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Vec4s::value_type, x, + __value_type__x, + "", + ""); + I_Method0(osg::Vec4s::value_type, y, + __value_type__y, + "", + ""); + I_Method0(osg::Vec4s::value_type, z, + __value_type__z, + "", + ""); + I_Method0(osg::Vec4s::value_type, w, + __value_type__w, + "", + ""); + I_Method0(osg::Vec4s::value_type &, r, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec4s::value_type &, g, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec4s::value_type &, b, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec4s::value_type &, a, + __value_type_R1__a, + "", + ""); + I_Method0(osg::Vec4s::value_type, r, + __value_type__r, + "", + ""); + I_Method0(osg::Vec4s::value_type, g, + __value_type__g, + "", + ""); + I_Method0(osg::Vec4s::value_type, b, + __value_type__b, + "", + ""); + I_Method0(osg::Vec4s::value_type, a, + __value_type__a, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec4ub.cpp b/src/osgWrappers/osg/Vec4ub.cpp index cc7a84a27..cc1249cc8 100644 --- a/src/osgWrappers/osg/Vec4ub.cpp +++ b/src/osgWrappers/osg/Vec4ub.cpp @@ -27,18 +27,56 @@ TYPE_NAME_ALIAS(unsigned char, osg::Vec4ub::value_type); BEGIN_VALUE_REFLECTOR(osg::Vec4ub) I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined - I_Constructor0(); - I_Constructor4(IN, osg::Vec4ub::value_type, x, IN, osg::Vec4ub::value_type, y, IN, osg::Vec4ub::value_type, z, IN, osg::Vec4ub::value_type, w); - I_Method0(unsigned char *, ptr); - I_Method0(const unsigned char *, ptr); - I_Method4(void, set, IN, unsigned char, r, IN, unsigned char, g, IN, unsigned char, b, IN, unsigned char, a); - I_Method0(unsigned char &, r); - I_Method0(unsigned char &, g); - I_Method0(unsigned char &, b); - I_Method0(unsigned char &, a); - I_Method0(unsigned char, r); - I_Method0(unsigned char, g); - I_Method0(unsigned char, b); - I_Method0(unsigned char, a); + I_Constructor0(____Vec4ub, + "", + ""); + I_Constructor4(IN, osg::Vec4ub::value_type, x, IN, osg::Vec4ub::value_type, y, IN, osg::Vec4ub::value_type, z, IN, osg::Vec4ub::value_type, w, + ____Vec4ub__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(unsigned char *, ptr, + __unsigned_char_P1__ptr, + "", + ""); + I_Method0(const unsigned char *, ptr, + __C5_unsigned_char_P1__ptr, + "", + ""); + I_Method4(void, set, IN, unsigned char, r, IN, unsigned char, g, IN, unsigned char, b, IN, unsigned char, a, + __void__set__unsigned_char__unsigned_char__unsigned_char__unsigned_char, + "", + ""); + I_Method0(unsigned char &, r, + __unsigned_char_R1__r, + "", + ""); + I_Method0(unsigned char &, g, + __unsigned_char_R1__g, + "", + ""); + I_Method0(unsigned char &, b, + __unsigned_char_R1__b, + "", + ""); + I_Method0(unsigned char &, a, + __unsigned_char_R1__a, + "", + ""); + I_Method0(unsigned char, r, + __unsigned_char__r, + "", + ""); + I_Method0(unsigned char, g, + __unsigned_char__g, + "", + ""); + I_Method0(unsigned char, b, + __unsigned_char__b, + "", + ""); + I_Method0(unsigned char, a, + __unsigned_char__a, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/VertexProgram.cpp b/src/osgWrappers/osg/VertexProgram.cpp index 04e3cf2e2..52a315ac4 100644 --- a/src/osgWrappers/osg/VertexProgram.cpp +++ b/src/osgWrappers/osg/VertexProgram.cpp @@ -32,56 +32,187 @@ TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::Matrix >, osg::VertexProgram::Matri BEGIN_OBJECT_REFLECTOR(osg::VertexProgram) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::VertexProgram &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage); - I_Method1(GLuint &, getVertexProgramID, IN, unsigned int, contextID); - I_Method1(void, setVertexProgram, IN, const char *, program); - I_Method1(void, setVertexProgram, IN, const std::string &, program); - I_Method0(const std::string &, getVertexProgram); - I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p); - I_Method1(void, setLocalParameters, IN, const osg::VertexProgram::LocalParamList &, lpl); - I_Method0(osg::VertexProgram::LocalParamList &, getLocalParameters); - I_Method0(const osg::VertexProgram::LocalParamList &, getLocalParameters); - I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix); - I_Method1(void, setMatrices, IN, const osg::VertexProgram::MatrixList &, matrices); - I_Method0(osg::VertexProgram::MatrixList &, getMatrices); - I_Method0(const osg::VertexProgram::MatrixList &, getMatrices); - I_Method0(void, dirtyVertexProgramObject); - I_Method1(void, apply, IN, osg::State &, state); - I_Method1(void, compileGLObjects, IN, osg::State &, state); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); - I_StaticMethod2(void, deleteVertexProgramObject, IN, unsigned int, contextID, IN, GLuint, handle); - I_StaticMethod3(void, flushDeletedVertexProgramObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime); - I_StaticMethod2(osg::VertexProgram::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::VertexProgram::Extensions *, extensions); - I_Property(const osg::VertexProgram::LocalParamList &, LocalParameters); - I_Property(const osg::VertexProgram::MatrixList &, Matrices); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); - I_Property(const std::string &, VertexProgram); + I_Constructor0(____VertexProgram, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::VertexProgram &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____VertexProgram__C5_VertexProgram_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_osg_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(GLuint &, getVertexProgramID, IN, unsigned int, contextID, + __GLuint_R1__getVertexProgramID__unsigned_int, + "Get the handle to the vertex program ID for the current context. ", + ""); + I_Method1(void, setVertexProgram, IN, const char *, program, + __void__setVertexProgram__C5_char_P1, + "Set the vertex program using a C style string. ", + ""); + I_Method1(void, setVertexProgram, IN, const std::string &, program, + __void__setVertexProgram__C5_std_string_R1, + "Set the vertex program using C++ style string. ", + ""); + I_Method0(const std::string &, getVertexProgram, + __C5_std_string_R1__getVertexProgram, + "Get the vertex program. ", + ""); + I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p, + __void__setProgramLocalParameter__C5_GLuint__C5_Vec4_R1, + "Set Program Parameters. ", + ""); + I_Method1(void, setLocalParameters, IN, const osg::VertexProgram::LocalParamList &, lpl, + __void__setLocalParameters__C5_LocalParamList_R1, + "Set list of Program Parameters. ", + ""); + I_Method0(osg::VertexProgram::LocalParamList &, getLocalParameters, + __LocalParamList_R1__getLocalParameters, + "Get list of Program Parameters. ", + ""); + I_Method0(const osg::VertexProgram::LocalParamList &, getLocalParameters, + __C5_LocalParamList_R1__getLocalParameters, + "Get const list of Program Parameters. ", + ""); + I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix, + __void__setMatrix__C5_GLenum__C5_Matrix_R1, + "Matrix. ", + ""); + I_Method1(void, setMatrices, IN, const osg::VertexProgram::MatrixList &, matrices, + __void__setMatrices__C5_MatrixList_R1, + "Set list of Matrices. ", + ""); + I_Method0(osg::VertexProgram::MatrixList &, getMatrices, + __MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(const osg::VertexProgram::MatrixList &, getMatrices, + __C5_MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(void, dirtyVertexProgramObject, + __void__dirtyVertexProgramObject, + "Force a recompile on next apply() of associated OpenGL vertex program objects. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + __void__compileGLObjects__State_R1, + "default to nothing to compile - all state is applied immediately. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + __void__releaseGLObjects__State_P1, + "Release any OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics contexts if State object pointer is NULL. ", + ""); + I_StaticMethod2(void, deleteVertexProgramObject, IN, unsigned int, contextID, IN, GLuint, handle, + __void__deleteVertexProgramObject__unsigned_int__GLuint_S, + "Use deleteVertexProgramObject instead of glDeletePrograms to allow OpenGL Vertex Program objects to cached until they can be deleted by the OpenGL context in which they were created, specified by contextID. ", + ""); + I_StaticMethod3(void, flushDeletedVertexProgramObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedVertexProgramObjects__unsigned_int__double__double_R1_S, + "Flush all the cached vertex programs which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod2(osg::VertexProgram::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Exentsion object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID."); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::VertexProgram::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "The setExtensions method allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions."); + I_SimpleProperty(const osg::VertexProgram::LocalParamList &, LocalParameters, + __C5_LocalParamList_R1__getLocalParameters, + __void__setLocalParameters__C5_LocalParamList_R1); + I_SimpleProperty(const osg::VertexProgram::MatrixList &, Matrices, + __C5_MatrixList_R1__getMatrices, + __void__setMatrices__C5_MatrixList_R1); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); + I_SimpleProperty(const std::string &, VertexProgram, + __C5_std_string_R1__getVertexProgram, + __void__setVertexProgram__C5_std_string_R1); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::VertexProgram::Extensions) I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID); - I_Constructor1(IN, const osg::VertexProgram::Extensions &, rhs); - I_Method1(void, lowestCommonDenominator, IN, const osg::VertexProgram::Extensions &, rhs); - I_Method1(void, setupGLExtenions, IN, unsigned int, contextID); - I_Method1(void, setVertexProgramSupported, IN, bool, flag); - I_Method0(bool, isVertexProgramSupported); - I_Method2(void, glBindProgram, IN, GLenum, target, IN, GLuint, id); - I_Method2(void, glGenPrograms, IN, GLsizei, n, IN, GLuint *, programs); - I_Method2(void, glDeletePrograms, IN, GLsizei, n, IN, GLuint *, programs); - I_Method4(void, glProgramString, IN, GLenum, target, IN, GLenum, format, IN, GLsizei, len, IN, const void *, string); - I_Method3(void, glProgramLocalParameter4fv, IN, GLenum, target, IN, GLuint, index, IN, const GLfloat *, params); - I_WriteOnlyProperty(bool, VertexProgramSupported); - I_WriteOnlyProperty(unsigned int, upGLExtenions); + I_Constructor1(IN, unsigned int, contextID, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::VertexProgram::Extensions &, rhs, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::VertexProgram::Extensions &, rhs, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setVertexProgramSupported, IN, bool, flag, + __void__setVertexProgramSupported__bool, + "", + ""); + I_Method0(bool, isVertexProgramSupported, + __bool__isVertexProgramSupported, + "", + ""); + I_Method2(void, glBindProgram, IN, GLenum, target, IN, GLuint, id, + __void__glBindProgram__GLenum__GLuint, + "", + ""); + I_Method2(void, glGenPrograms, IN, GLsizei, n, IN, GLuint *, programs, + __void__glGenPrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glDeletePrograms, IN, GLsizei, n, IN, GLuint *, programs, + __void__glDeletePrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method4(void, glProgramString, IN, GLenum, target, IN, GLenum, format, IN, GLsizei, len, IN, const void *, string, + __void__glProgramString__GLenum__GLenum__GLsizei__C5_void_P1, + "", + ""); + I_Method3(void, glProgramLocalParameter4fv, IN, GLenum, target, IN, GLuint, index, IN, const GLfloat *, params, + __void__glProgramLocalParameter4fv__GLenum__GLuint__C5_GLfloat_P1, + "", + ""); + I_SimpleProperty(bool, VertexProgramSupported, + 0, + __void__setVertexProgramSupported__bool); END_REFLECTOR diff --git a/src/osgWrappers/osg/View.cpp b/src/osgWrappers/osg/View.cpp index 1e4a1a0e9..513667870 100644 --- a/src/osgWrappers/osg/View.cpp +++ b/src/osgWrappers/osg/View.cpp @@ -31,52 +31,179 @@ BEGIN_OBJECT_REFLECTOR(osg::View) I_BaseType(osg::Transform); I_BaseType(osg::CullSettings); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osg::View &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix); - I_Method1(void, setProjectionMatrix, IN, const osg::Matrixd &, matrix); - I_Method6(void, setProjectionMatrixAsOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); - I_Method4(void, setProjectionMatrixAsOrtho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top); - I_Method6(void, setProjectionMatrixAsFrustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); - I_Method4(void, setProjectionMatrixAsPerspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar); - I_Method0(osg::Matrixd &, getProjectionMatrix); - I_Method0(const osg::Matrixd &, getProjectionMatrix); - I_Method6(bool, getProjectionMatrixAsOrtho, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar); - I_Method6(bool, getProjectionMatrixAsFrustum, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar); - I_Method4(bool, getProjectionMatrixAsPerspective, IN, double &, fovy, IN, double &, aspectRatio, IN, double &, zNear, IN, double &, zFar); - I_Method1(void, setViewMatrix, IN, const osg::Matrixf &, matrix); - I_Method1(void, setViewMatrix, IN, const osg::Matrixd &, matrix); - I_Method3(void, setViewMatrixAsLookAt, IN, const osg::Vec3 &, eye, IN, const osg::Vec3 &, center, IN, const osg::Vec3 &, up); - I_Method0(osg::Matrixd &, getViewMatrix); - I_Method0(const osg::Matrixd &, getViewMatrix); - I_MethodWithDefaults4(void, getViewMatrixAsLookAt, IN, osg::Vec3 &, eye, , IN, osg::Vec3 &, center, , IN, osg::Vec3 &, up, , IN, float, lookDistance, 1.0f); - I_Method0(osg::Matrixd, getInverseViewMatrix); - I_Method1(bool, addCamera, IN, osg::CameraNode *, camera); - I_Method3(bool, addCamera, IN, osg::CameraNode *, camera, IN, const osg::Matrix &, projectionOffset, IN, const osg::Matrix &, viewOffse); - I_Method1(bool, removeCamera, IN, unsigned int, pos); - I_Method0(unsigned int, getNumCameras); - I_Method1(osg::CameraNode *, getCamera, IN, unsigned int, pos); - I_Method1(const osg::CameraNode *, getCamera, IN, unsigned int, pos); - I_Method1(osg::View::CameraData &, getCameraData, IN, unsigned int, pos); - I_Method1(const osg::View::CameraData &, getCameraData, IN, unsigned int, pos); - I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x); - I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x); - I_ArrayProperty_GA(osg::CameraNode *, Camera, Cameras, unsigned int, bool); - I_ReadOnlyProperty(osg::Matrixd, InverseViewMatrix); - I_Property(const osg::Matrixd &, ProjectionMatrix); - I_Property(const osg::Matrixd &, ViewMatrix); + I_Constructor0(____View, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::View &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____View__C5_View_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix, + __void__setProjectionMatrix__C5_osg_Matrixf_R1, + "Set the projection matrix. ", + "Can be thought of as setting the lens of a camera. "); + I_Method1(void, setProjectionMatrix, IN, const osg::Matrixd &, matrix, + __void__setProjectionMatrix__C5_osg_Matrixd_R1, + "Set the projection matrix. ", + "Can be thought of as setting the lens of a camera. "); + I_Method6(void, setProjectionMatrixAsOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __void__setProjectionMatrixAsOrtho__double__double__double__double__double__double, + "Set to an orthographic projection. ", + "See OpenGL glOrtho for documentation further details. "); + I_Method4(void, setProjectionMatrixAsOrtho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, + __void__setProjectionMatrixAsOrtho2D__double__double__double__double, + "Set to a 2D orthographic projection. ", + "See OpenGL glOrtho2D documentation for further details. "); + I_Method6(void, setProjectionMatrixAsFrustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __void__setProjectionMatrixAsFrustum__double__double__double__double__double__double, + "Set to a perspective projection. ", + "See OpenGL glFrustum documentation for further details. "); + I_Method4(void, setProjectionMatrixAsPerspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar, + __void__setProjectionMatrixAsPerspective__double__double__double__double, + "Create a symmetrical perspective projection, See OpenGL gluPerspective documentation for further details. ", + "Aspect ratio is defined as width/height. "); + I_Method0(osg::Matrixd &, getProjectionMatrix, + __osg_Matrixd_R1__getProjectionMatrix, + "Get the projection matrix. ", + ""); + I_Method0(const osg::Matrixd &, getProjectionMatrix, + __C5_osg_Matrixd_R1__getProjectionMatrix, + "Get the const projection matrix. ", + ""); + I_Method6(bool, getProjectionMatrixAsOrtho, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar, + __bool__getProjectionMatrixAsOrtho__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1, + "Get the othographic settings of the orthographic projection matrix. ", + "Returns false if matrix is not an orthographic matrix, where parameter values are undefined. "); + I_Method6(bool, getProjectionMatrixAsFrustum, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar, + __bool__getProjectionMatrixAsFrustum__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1, + "Get the frustum setting of a perspective projection matrix. ", + "Returns false if matrix is not a perspective matrix, where parameter values are undefined. "); + I_Method4(bool, getProjectionMatrixAsPerspective, IN, double &, fovy, IN, double &, aspectRatio, IN, double &, zNear, IN, double &, zFar, + __bool__getProjectionMatrixAsPerspective__double_R1__double_R1__double_R1__double_R1, + "Get the frustum setting of a symmetric perspective projection matrix. ", + "Returns false if matrix is not a perspective matrix, where parameter values are undefined. Note, if matrix is not a symmetric perspective matrix then the shear will be lost. Asymmetric matrices occur when stereo, power walls, caves and reality center display are used. In these configurations one should use the 'getProjectionMatrixAsFrustum' method instead. "); + I_Method1(void, setViewMatrix, IN, const osg::Matrixf &, matrix, + __void__setViewMatrix__C5_osg_Matrixf_R1, + "Set the view matrix. ", + "Can be thought of as setting the position of the world relative to the camera in camera coordinates. "); + I_Method1(void, setViewMatrix, IN, const osg::Matrixd &, matrix, + __void__setViewMatrix__C5_osg_Matrixd_R1, + "Set the view matrix. ", + "Can be thought of as setting the position of the world relative to the camera in camera coordinates. "); + I_Method3(void, setViewMatrixAsLookAt, IN, const osg::Vec3 &, eye, IN, const osg::Vec3 &, center, IN, const osg::Vec3 &, up, + __void__setViewMatrixAsLookAt__C5_osg_Vec3_R1__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "Set to the position and orientation of view matrix, using the same convention as gluLookAt. ", + ""); + I_Method0(osg::Matrixd &, getViewMatrix, + __osg_Matrixd_R1__getViewMatrix, + "Get the view matrix. ", + ""); + I_Method0(const osg::Matrixd &, getViewMatrix, + __C5_osg_Matrixd_R1__getViewMatrix, + "Get the const view matrix. ", + ""); + I_MethodWithDefaults4(void, getViewMatrixAsLookAt, IN, osg::Vec3 &, eye, , IN, osg::Vec3 &, center, , IN, osg::Vec3 &, up, , IN, float, lookDistance, 1.0f, + __void__getViewMatrixAsLookAt__osg_Vec3_R1__osg_Vec3_R1__osg_Vec3_R1__float, + "Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. ", + ""); + I_Method0(osg::Matrixd, getInverseViewMatrix, + __Matrixd__getInverseViewMatrix, + "Get the inverse view matrix. ", + ""); + I_Method1(bool, addCamera, IN, osg::CameraNode *, camera, + __bool__addCamera__osg_CameraNode_P1, + "", + ""); + I_Method3(bool, addCamera, IN, osg::CameraNode *, camera, IN, const osg::Matrix &, projectionOffset, IN, const osg::Matrix &, viewOffse, + __bool__addCamera__osg_CameraNode_P1__C5_osg_Matrix_R1__C5_osg_Matrix_R1, + "", + ""); + I_Method1(bool, removeCamera, IN, unsigned int, pos, + __bool__removeCamera__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumCameras, + __unsigned_int__getNumCameras, + "", + ""); + I_Method1(osg::CameraNode *, getCamera, IN, unsigned int, pos, + __CameraNode_P1__getCamera__unsigned_int, + "", + ""); + I_Method1(const osg::CameraNode *, getCamera, IN, unsigned int, pos, + __C5_CameraNode_P1__getCamera__unsigned_int, + "", + ""); + I_Method1(osg::View::CameraData &, getCameraData, IN, unsigned int, pos, + __CameraData_R1__getCameraData__unsigned_int, + "", + ""); + I_Method1(const osg::View::CameraData &, getCameraData, IN, unsigned int, pos, + __C5_CameraData_R1__getCameraData__unsigned_int, + "", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, + "Transform method that must be defined to provide generic interface for scene graph traversals. ", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, + "Transform method that must be defined to provide generic interface for scene graph traversals. ", + ""); + I_ArrayProperty(osg::CameraNode *, Camera, + __CameraNode_P1__getCamera__unsigned_int, + 0, + __unsigned_int__getNumCameras, + __bool__addCamera__osg_CameraNode_P1, + 0, + __bool__removeCamera__unsigned_int); + I_SimpleProperty(osg::Matrixd, InverseViewMatrix, + __Matrixd__getInverseViewMatrix, + 0); + I_SimpleProperty(const osg::Matrixd &, ProjectionMatrix, + __C5_osg_Matrixd_R1__getProjectionMatrix, + __void__setProjectionMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ViewMatrix, + __C5_osg_Matrixd_R1__getViewMatrix, + __void__setViewMatrix__C5_osg_Matrixd_R1); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::View::CameraData) - I_Constructor0(); - I_Constructor3(IN, osg::CameraNode *, camera, IN, const osg::Matrixd &, projectionOffset, IN, const osg::Matrixd &, viewOffset); - I_Constructor1(IN, const osg::View::CameraData &, rhs); + I_Constructor0(____CameraData, + "", + ""); + I_Constructor3(IN, osg::CameraNode *, camera, IN, const osg::Matrixd &, projectionOffset, IN, const osg::Matrixd &, viewOffset, + ____CameraData__osg_CameraNode_P1__C5_osg_Matrixd_R1__C5_osg_Matrixd_R1, + "", + ""); + I_Constructor1(IN, const osg::View::CameraData &, rhs, + ____CameraData__C5_CameraData_R1, + "", + ""); I_PublicMemberProperty(osg::ref_ptr< osg::CameraNode >, _camera); I_PublicMemberProperty(osg::Matrixd, _projectionOffset); I_PublicMemberProperty(osg::Matrixd, _viewOffset); diff --git a/src/osgWrappers/osg/Viewport.cpp b/src/osgWrappers/osg/Viewport.cpp index aaed162a3..c1eca7a37 100644 --- a/src/osgWrappers/osg/Viewport.cpp +++ b/src/osgWrappers/osg/Viewport.cpp @@ -27,30 +27,103 @@ BEGIN_OBJECT_REFLECTOR(osg::Viewport) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_Constructor4(IN, int, x, IN, int, y, IN, int, width, IN, int, height); - I_ConstructorWithDefaults2(IN, const osg::Viewport &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method4(void, setViewport, IN, int, x, IN, int, y, IN, int, width, IN, int, height); - I_Method4(void, getViewport, IN, int &, x, IN, int &, y, IN, int &, width, IN, int &, height); - I_Method0(int &, x); - I_Method0(int, x); - I_Method0(int &, y); - I_Method0(int, y); - I_Method0(int &, width); - I_Method0(int, width); - I_Method0(int &, height); - I_Method0(int, height); - I_Method0(bool, valid); - I_Method0(float, aspectRatio); - I_Method0(const osg::Matrix, computeWindowMatrix); - I_Method1(void, apply, IN, osg::State &, state); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____Viewport, + "", + ""); + I_Constructor4(IN, int, x, IN, int, y, IN, int, width, IN, int, height, + ____Viewport__int__int__int__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Viewport &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Viewport__C5_Viewport_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method4(void, setViewport, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + __void__setViewport__int__int__int__int, + "", + ""); + I_Method4(void, getViewport, IN, int &, x, IN, int &, y, IN, int &, width, IN, int &, height, + __void__getViewport__int_R1__int_R1__int_R1__int_R1, + "", + ""); + I_Method0(int &, x, + __int_R1__x, + "", + ""); + I_Method0(int, x, + __int__x, + "", + ""); + I_Method0(int &, y, + __int_R1__y, + "", + ""); + I_Method0(int, y, + __int__y, + "", + ""); + I_Method0(int &, width, + __int_R1__width, + "", + ""); + I_Method0(int, width, + __int__width, + "", + ""); + I_Method0(int &, height, + __int_R1__height, + "", + ""); + I_Method0(int, height, + __int__height, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(float, aspectRatio, + __float__aspectRatio, + "Return the aspectRatio of the viewport, which is equal to width/height. ", + "If height is zero, the potental division by zero is avoided by simply returning 1.0f."); + I_Method0(const osg::Matrix, computeWindowMatrix, + __C5_osg_Matrix__computeWindowMatrix, + "Compute the Window Matrix which takes projected coords into Window coordinates. ", + "To convert local coordinates into window coordinates use v_window = v_local * MVPW matrix, where the MVPW matrix is ModelViewMatrix * ProjectionMatrix * WindowMatrix, the latter supplied by Viewport::computeWindowMatrix(), the ModelView and Projection Matrix can either be sourced from the current osg::State object, via osgUtil::SceneView or CullVisitor."); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/observer_ptr.cpp b/src/osgWrappers/osg/observer_ptr.cpp index b1e17d81b..3d133c161 100644 --- a/src/osgWrappers/osg/observer_ptr.cpp +++ b/src/osgWrappers/osg/observer_ptr.cpp @@ -21,7 +21,12 @@ #endif BEGIN_VALUE_REFLECTOR(osg::Observer) - I_Constructor0(); - I_Method1(void, objectDeleted, IN, void *, x); + I_Constructor0(____Observer, + "", + ""); + I_Method1(void, objectDeleted, IN, void *, x, + __void__objectDeleted__void_P1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgDB/Archive.cpp b/src/osgWrappers/osgDB/Archive.cpp index 5fcd5f073..dfd83083e 100644 --- a/src/osgWrappers/osgDB/Archive.cpp +++ b/src/osgWrappers/osgDB/Archive.cpp @@ -29,22 +29,71 @@ TYPE_NAME_ALIAS(std::vector< std::string >, osgDB::Archive::FileNameList); BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Archive) I_BaseType(osgDB::ReaderWriter); - I_Constructor0(); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, acceptsExtension, IN, const std::string &, x); - I_Method0(void, close); - I_Method1(bool, fileExists, IN, const std::string &, filename); - I_Method0(std::string, getMasterFileName); - I_Method1(bool, getFileNames, IN, osgDB::Archive::FileNameList &, fileNameList); - I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_ReadOnlyProperty(std::string, MasterFileName); + I_Constructor0(____Archive, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(bool, acceptsExtension, IN, const std::string &, x, + __bool__acceptsExtension__C5_std_string_R1, + "", + ""); + I_Method0(void, close, + __void__close, + "close the archive. ", + ""); + I_Method1(bool, fileExists, IN, const std::string &, filename, + __bool__fileExists__C5_std_string_R1, + "return true if file exists in archive. ", + ""); + I_Method0(std::string, getMasterFileName, + __std_string__getMasterFileName, + "Get the file name which represents the master file recorded in the Archive. ", + ""); + I_Method1(bool, getFileNames, IN, osgDB::Archive::FileNameList &, fileNameList, + __bool__getFileNames__FileNameList_R1, + "Get the full list of file names available in the archive. ", + ""); + I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __ReadResult__readObject__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __ReadResult__readImage__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __ReadResult__readHeightField__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __ReadResult__readNode__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_SimpleProperty(std::string, MasterFileName, + __std_string__getMasterFileName, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgDB/DatabasePager.cpp b/src/osgWrappers/osgDB/DatabasePager.cpp index 1b0f9b67f..af066596c 100644 --- a/src/osgWrappers/osgDB/DatabasePager.cpp +++ b/src/osgWrappers/osgDB/DatabasePager.cpp @@ -49,79 +49,271 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgDB::DatabasePager) I_BaseType(osg::NodeVisitor::DatabaseRequestHandler); - I_Constructor0(); - I_Method4(void, requestNodeFile, IN, const std::string &, fileName, IN, osg::Group *, group, IN, float, priority, IN, const osg::FrameStamp *, framestamp); - I_Method0(void, run); - I_Method0(int, cancel); - I_Method0(void, clear); - I_Method1(void, setDatabasePagerThreadPause, IN, bool, pause); - I_Method0(bool, getDatabasePagerThreadPause); - I_Method1(void, setAcceptNewDatabaseRequests, IN, bool, acceptNewRequests); - I_Method0(bool, getAcceptNewDatabaseRequests); - I_Method1(void, setUseFrameBlock, IN, bool, useFrameBlock); - I_Method0(bool, getUseFrameBlock); - I_Method0(osg::Block *, getFrameBlock); - I_Method1(void, setThreadPriorityDuringFrame, IN, osgDB::DatabasePager::ThreadPriority, duringFrame); - I_Method0(osgDB::DatabasePager::ThreadPriority, getThreadPriorityDuringFrame); - I_Method1(void, setThreadPriorityOutwithFrame, IN, osgDB::DatabasePager::ThreadPriority, outwithFrame); - I_Method0(osgDB::DatabasePager::ThreadPriority, getThreadPriorityOutwithFrame); - I_Method0(int, getNumFramesActive); - I_Method1(void, signalBeginFrame, IN, const osg::FrameStamp *, framestamp); - I_Method0(void, signalEndFrame); - I_Method1(void, registerPagedLODs, IN, osg::Node *, subgraph); - I_Method1(void, setDoPreCompile, IN, bool, flag); - I_Method0(bool, getDoPreCompile); - I_Method1(void, setTargetFrameRate, IN, double, tfr); - I_Method0(double, getTargetFrameRate); - I_Method1(void, setMinimumTimeAvailableForGLCompileAndDeletePerFrame, IN, double, ta); - I_Method0(double, getMinimumTimeAvailableForGLCompileAndDeletePerFrame); - I_Method1(void, setMaximumNumOfObjectsToCompilePerFrame, IN, unsigned int, num); - I_Method0(unsigned int, getMaximumNumOfObjectsToCompilePerFrame); - I_Method1(void, setExpiryDelay, IN, double, expiryDelay); - I_Method0(double, getExpiryDelay); - I_Method1(void, setDeleteRemovedSubgraphsInDatabaseThread, IN, bool, flag); - I_Method0(bool, getDeleteRemovedSubgraphsInDatabaseThread); - I_Method1(void, setDrawablePolicy, IN, osgDB::DatabasePager::DrawablePolicy, policy); - I_Method0(osgDB::DatabasePager::DrawablePolicy, getDrawablePolicy); - I_Method2(void, setUnrefImageDataAfterApplyPolicy, IN, bool, changeAutoUnRef, IN, bool, valueAutoUnRef); - I_Method2(void, getUnrefImageDataAfterApplyPolicy, IN, bool &, changeAutoUnRef, IN, bool &, valueAutoUnRef); - I_Method2(void, setMaxAnisotropyPolicy, IN, bool, changeAnisotropy, IN, float, valueAnisotropy); - I_Method2(void, getMaxAnisotropyPolicy, IN, bool &, changeAnisotropy, IN, float &, valueAnisotropy); - I_Method0(bool, requiresUpdateSceneGraph); - I_Method1(void, updateSceneGraph, IN, double, currentFrameTime); - I_Method2(void, setCompileGLObjectsForContextID, IN, unsigned int, contextID, IN, bool, on); - I_Method1(bool, getCompileGLObjectsForContextID, IN, unsigned int, contextID); - I_Method0(bool, requiresCompileGLObjects); - I_Method2(void, compileGLObjects, IN, osg::State &, state, IN, double &, availableTime); - I_Method0(unsigned int, getFileRequestListSize); - I_Method0(unsigned int, getDataToCompileListSize); - I_Property(bool, AcceptNewDatabaseRequests); - I_IndexedProperty1(bool, CompileGLObjectsForContextID, unsigned int, contextID); - I_ReadOnlyProperty(unsigned int, DataToCompileListSize); - I_Property(bool, DatabasePagerThreadPause); - I_Property(bool, DeleteRemovedSubgraphsInDatabaseThread); - I_Property(bool, DoPreCompile); - I_Property(osgDB::DatabasePager::DrawablePolicy, DrawablePolicy); - I_Property(double, ExpiryDelay); - I_ReadOnlyProperty(unsigned int, FileRequestListSize); - I_ReadOnlyProperty(osg::Block *, FrameBlock); - I_Property(unsigned int, MaximumNumOfObjectsToCompilePerFrame); - I_Property(double, MinimumTimeAvailableForGLCompileAndDeletePerFrame); - I_Property(double, TargetFrameRate); - I_Property(osgDB::DatabasePager::ThreadPriority, ThreadPriorityDuringFrame); - I_Property(osgDB::DatabasePager::ThreadPriority, ThreadPriorityOutwithFrame); - I_Property(bool, UseFrameBlock); + I_Constructor0(____DatabasePager, + "", + ""); + I_Method4(void, requestNodeFile, IN, const std::string &, fileName, IN, osg::Group *, group, IN, float, priority, IN, const osg::FrameStamp *, framestamp, + __void__requestNodeFile__C5_std_string_R1__osg_Group_P1__float__C5_osg_FrameStamp_P1, + "Add a request to load a node file to end the the database request list. ", + ""); + I_Method0(void, run, + __void__run, + "Run does the database paging. ", + ""); + I_Method0(int, cancel, + __int__cancel, + "Cancel the database pager thread. ", + ""); + I_Method0(void, clear, + __void__clear, + "Clear all internally cached structures. ", + ""); + I_Method1(void, setDatabasePagerThreadPause, IN, bool, pause, + __void__setDatabasePagerThreadPause__bool, + "Set whether the database pager thread should be paused or not. ", + ""); + I_Method0(bool, getDatabasePagerThreadPause, + __bool__getDatabasePagerThreadPause, + "Get whether the database pager thread should is paused or not. ", + ""); + I_Method1(void, setAcceptNewDatabaseRequests, IN, bool, acceptNewRequests, + __void__setAcceptNewDatabaseRequests__bool, + "Set whether new database request calls are accepted or ignored. ", + ""); + I_Method0(bool, getAcceptNewDatabaseRequests, + __bool__getAcceptNewDatabaseRequests, + "Get whether new database request calls are accepted or ignored. ", + ""); + I_Method1(void, setUseFrameBlock, IN, bool, useFrameBlock, + __void__setUseFrameBlock__bool, + "Set the use of the frame block which, if enabled, blocks the DatabasePager from executing which the current frame is being drawn. ", + "When a single processor machine is being used it can be useful to block on frame to help prevent the database paging thread from slowing the cull and draw traversals which in turn can cause frame drops. "); + I_Method0(bool, getUseFrameBlock, + __bool__getUseFrameBlock, + "Get the whether UseFrameBlock is on or off. ", + ""); + I_Method0(osg::Block *, getFrameBlock, + __osg_Block_P1__getFrameBlock, + "", + ""); + I_Method1(void, setThreadPriorityDuringFrame, IN, osgDB::DatabasePager::ThreadPriority, duringFrame, + __void__setThreadPriorityDuringFrame__ThreadPriority, + "Set the priority of the database pager thread during the frame (i.e. ", + "while cull and draw are running.) "); + I_Method0(osgDB::DatabasePager::ThreadPriority, getThreadPriorityDuringFrame, + __ThreadPriority__getThreadPriorityDuringFrame, + "Get the priority of the database pager thread during the frame. ", + ""); + I_Method1(void, setThreadPriorityOutwithFrame, IN, osgDB::DatabasePager::ThreadPriority, outwithFrame, + __void__setThreadPriorityOutwithFrame__ThreadPriority, + "Set the priority of the database pager thread when the frame is not being exectuted (i.e. ", + "before or after cull and draw have run.) "); + I_Method0(osgDB::DatabasePager::ThreadPriority, getThreadPriorityOutwithFrame, + __ThreadPriority__getThreadPriorityOutwithFrame, + "Get the priority of the database pager thread when the frame is not being exectuted. ", + ""); + I_Method0(int, getNumFramesActive, + __int__getNumFramesActive, + "Get the number of frames that are currently active. ", + ""); + I_Method1(void, signalBeginFrame, IN, const osg::FrameStamp *, framestamp, + __void__signalBeginFrame__C5_osg_FrameStamp_P1, + "Signal the database thread that the update, cull and draw has begun for a new frame. ", + "Note, this is called by the application so that the database pager can go to sleep while the CPU is busy on the main rendering threads. "); + I_Method0(void, signalEndFrame, + __void__signalEndFrame, + "Signal the database thread that the update, cull and draw dispatch has completed. ", + "Note, this is called by the application so that the database pager can go to wake back up now the main rendering threads are iddle waiting for the next frame. "); + I_Method1(void, registerPagedLODs, IN, osg::Node *, subgraph, + __void__registerPagedLODs__osg_Node_P1, + "Find all PagedLOD nodes in a subgraph and register them with the DatabasePager so it can keep track of expired nodes. ", + "note, should be only be called from the update thread. "); + I_Method1(void, setDoPreCompile, IN, bool, flag, + __void__setDoPreCompile__bool, + "Set whether the database pager should pre compile OpenGL objects before allowing them to be merged into the scene graph. ", + "Pre compilation helps reduce the chances of frame drops, but also slows the speed at which tiles are merged as they have to be compiled first. "); + I_Method0(bool, getDoPreCompile, + __bool__getDoPreCompile, + "Get whether the database pager should pre compile OpenGL objects before allowing them to be merged into the scene graph. ", + ""); + I_Method1(void, setTargetFrameRate, IN, double, tfr, + __void__setTargetFrameRate__double, + "Set the target frame rate that the DatabasePager should assume. ", + "Typically one would set this to the value refresh rate of your display system i.e. 60Hz. Default value is 100. Usage notes. The TargetFrameRate and the MinimumTimeAvailableForGLCompileAndDeletePerFrame parameters are not directly used by DatabasePager, but are should be used as a guide for how long to set aside per frame for compiling and deleting OpenGL objects - ie. the value to use when calling DatabasePager::compileGLObjectgs(state,availableTime,). The longer amount of time to set aside cthe faster databases will be paged in but with increased chance of frame drops, the lower the amount of time the set aside the slower databases will paged it but with better chance of avoid any frame drops. The default values are chosen to achieve the later when running on a modern mid to high end PC. The way to compute the amount of available time use a scheme such as : availableTime = maximum(1.0/targetFrameRate - timeTakenDuringUpdateCullAndDraw, minimumTimeAvailableForGLCompileAndDeletePerFrame)."); + I_Method0(double, getTargetFrameRate, + __double__getTargetFrameRate, + "Get the target frame rate that the DatabasePager should assume. ", + ""); + I_Method1(void, setMinimumTimeAvailableForGLCompileAndDeletePerFrame, IN, double, ta, + __void__setMinimumTimeAvailableForGLCompileAndDeletePerFrame__double, + "Set the minimum amount of time (in seconds) that should be made available for compiling and delete OpenGL objects per frame. ", + "Default value is 0.001 (1 millisecond). For usage see notes in setTargetFrameRate. "); + I_Method0(double, getMinimumTimeAvailableForGLCompileAndDeletePerFrame, + __double__getMinimumTimeAvailableForGLCompileAndDeletePerFrame, + "Get the minimum amount of time that should be made available for compiling and delete OpenGL objects per frame. ", + "For usage see notes in setTargetFrameRate. "); + I_Method1(void, setMaximumNumOfObjectsToCompilePerFrame, IN, unsigned int, num, + __void__setMaximumNumOfObjectsToCompilePerFrame__unsigned_int, + "Set the maximum number of OpenGL objects that the page should attempt to compile per frame. ", + "Note, Lower values reduces chances of a frame drop but lower the rate that database will be paged in at. Default value is 8. "); + I_Method0(unsigned int, getMaximumNumOfObjectsToCompilePerFrame, + __unsigned_int__getMaximumNumOfObjectsToCompilePerFrame, + "Get the maximum number of OpenGL objects that the page should attempt to compile per frame. ", + ""); + I_Method1(void, setExpiryDelay, IN, double, expiryDelay, + __void__setExpiryDelay__double, + "Set the amount of time that a subgraph will be kept without being visited in the cull traversal before being removed. ", + ""); + I_Method0(double, getExpiryDelay, + __double__getExpiryDelay, + "Get the amount of time that a subgraph will be kept without being visited in the cull traversal before being removed. ", + ""); + I_Method1(void, setDeleteRemovedSubgraphsInDatabaseThread, IN, bool, flag, + __void__setDeleteRemovedSubgraphsInDatabaseThread__bool, + "Set whether the removed subgraphs should be deleted in the database thread or not. ", + ""); + I_Method0(bool, getDeleteRemovedSubgraphsInDatabaseThread, + __bool__getDeleteRemovedSubgraphsInDatabaseThread, + "Get whether the removed subgraphs should be deleted in the database thread or not. ", + ""); + I_Method1(void, setDrawablePolicy, IN, osgDB::DatabasePager::DrawablePolicy, policy, + __void__setDrawablePolicy__DrawablePolicy, + "Set how loaded drawables should be handled w.r.t their display list/vertex buffer object/vertex array settings. ", + ""); + I_Method0(osgDB::DatabasePager::DrawablePolicy, getDrawablePolicy, + __DrawablePolicy__getDrawablePolicy, + "Get how loaded drawables should be handled w.r.t their display list/vertex buffer object/vertex array settings. ", + ""); + I_Method2(void, setUnrefImageDataAfterApplyPolicy, IN, bool, changeAutoUnRef, IN, bool, valueAutoUnRef, + __void__setUnrefImageDataAfterApplyPolicy__bool__bool, + "Set whether newly loaded textures should have their UnrefImageDataAfterApply set to a specified value. ", + ""); + I_Method2(void, getUnrefImageDataAfterApplyPolicy, IN, bool &, changeAutoUnRef, IN, bool &, valueAutoUnRef, + __void__getUnrefImageDataAfterApplyPolicy__bool_R1__bool_R1, + "Get whether newly loaded textures should have their UnrefImageDataAfterApply set to a specified value. ", + ""); + I_Method2(void, setMaxAnisotropyPolicy, IN, bool, changeAnisotropy, IN, float, valueAnisotropy, + __void__setMaxAnisotropyPolicy__bool__float, + "Set whether newly loaded textures should have their MaxAnisotopy set to a specified value. ", + ""); + I_Method2(void, getMaxAnisotropyPolicy, IN, bool &, changeAnisotropy, IN, float &, valueAnisotropy, + __void__getMaxAnisotropyPolicy__bool_R1__float_R1, + "Set whether newly loaded textures should have their MaxAnisotopy set to a specified value. ", + ""); + I_Method0(bool, requiresUpdateSceneGraph, + __bool__requiresUpdateSceneGraph, + "Return true if there are pending updates to the scene graph that require a call to updateSceneGraph(double). ", + ""); + I_Method1(void, updateSceneGraph, IN, double, currentFrameTime, + __void__updateSceneGraph__double, + "Merge the changes to the scene graph by calling calling removeExpiredSubgraphs then addLoadedDataToSceneGraph. ", + "Note, must only be called from single thread update phase. "); + I_Method2(void, setCompileGLObjectsForContextID, IN, unsigned int, contextID, IN, bool, on, + __void__setCompileGLObjectsForContextID__unsigned_int__bool, + "Turn the compilation of rendering objects for specfied graphics context on (true) or off(false). ", + ""); + I_Method1(bool, getCompileGLObjectsForContextID, IN, unsigned int, contextID, + __bool__getCompileGLObjectsForContextID__unsigned_int, + "Get whether the compilation of rendering objects for specfied graphics context on (true) or off(false). ", + ""); + I_Method0(bool, requiresCompileGLObjects, + __bool__requiresCompileGLObjects, + "Return true if there are pending compile operations that are required. ", + "If requiresCompileGLObjects() return true the application should call compileGLObjects() . "); + I_Method2(void, compileGLObjects, IN, osg::State &, state, IN, double &, availableTime, + __void__compileGLObjects__osg_State_R1__double_R1, + "Compile the rendering objects (display lists,texture objects, VBO's) on loaded subgraph. ", + "note, should only be called from the draw thread. Note, must only be called from a valid graphics context. "); + I_Method0(unsigned int, getFileRequestListSize, + __unsigned_int__getFileRequestListSize, + "Report how many items are in the _fileRequestList queue. ", + ""); + I_Method0(unsigned int, getDataToCompileListSize, + __unsigned_int__getDataToCompileListSize, + "Report how many items are in the _dataToCompileList queue. ", + ""); + I_SimpleProperty(bool, AcceptNewDatabaseRequests, + __bool__getAcceptNewDatabaseRequests, + __void__setAcceptNewDatabaseRequests__bool); + I_IndexedProperty(bool, CompileGLObjectsForContextID, + __bool__getCompileGLObjectsForContextID__unsigned_int, + __void__setCompileGLObjectsForContextID__unsigned_int__bool, + 0); + I_SimpleProperty(unsigned int, DataToCompileListSize, + __unsigned_int__getDataToCompileListSize, + 0); + I_SimpleProperty(bool, DatabasePagerThreadPause, + __bool__getDatabasePagerThreadPause, + __void__setDatabasePagerThreadPause__bool); + I_SimpleProperty(bool, DeleteRemovedSubgraphsInDatabaseThread, + __bool__getDeleteRemovedSubgraphsInDatabaseThread, + __void__setDeleteRemovedSubgraphsInDatabaseThread__bool); + I_SimpleProperty(bool, DoPreCompile, + __bool__getDoPreCompile, + __void__setDoPreCompile__bool); + I_SimpleProperty(osgDB::DatabasePager::DrawablePolicy, DrawablePolicy, + __DrawablePolicy__getDrawablePolicy, + __void__setDrawablePolicy__DrawablePolicy); + I_SimpleProperty(double, ExpiryDelay, + __double__getExpiryDelay, + __void__setExpiryDelay__double); + I_SimpleProperty(unsigned int, FileRequestListSize, + __unsigned_int__getFileRequestListSize, + 0); + I_SimpleProperty(osg::Block *, FrameBlock, + __osg_Block_P1__getFrameBlock, + 0); + I_SimpleProperty(unsigned int, MaximumNumOfObjectsToCompilePerFrame, + __unsigned_int__getMaximumNumOfObjectsToCompilePerFrame, + __void__setMaximumNumOfObjectsToCompilePerFrame__unsigned_int); + I_SimpleProperty(double, MinimumTimeAvailableForGLCompileAndDeletePerFrame, + __double__getMinimumTimeAvailableForGLCompileAndDeletePerFrame, + __void__setMinimumTimeAvailableForGLCompileAndDeletePerFrame__double); + I_SimpleProperty(double, TargetFrameRate, + __double__getTargetFrameRate, + __void__setTargetFrameRate__double); + I_SimpleProperty(osgDB::DatabasePager::ThreadPriority, ThreadPriorityDuringFrame, + __ThreadPriority__getThreadPriorityDuringFrame, + __void__setThreadPriorityDuringFrame__ThreadPriority); + I_SimpleProperty(osgDB::DatabasePager::ThreadPriority, ThreadPriorityOutwithFrame, + __ThreadPriority__getThreadPriorityOutwithFrame, + __void__setThreadPriorityOutwithFrame__ThreadPriority); + I_SimpleProperty(bool, UseFrameBlock, + __bool__getUseFrameBlock, + __void__setUseFrameBlock__bool); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::PagedLOD >) - I_Constructor0(); - I_Constructor1(IN, osg::PagedLOD *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osg::PagedLOD > &, rp); - I_Method0(osg::PagedLOD *, get); - I_Method0(bool, valid); - I_Method0(osg::PagedLOD *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osg::PagedLOD > &, rp); - I_ReadOnlyProperty(osg::PagedLOD *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::PagedLOD *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::PagedLOD > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::PagedLOD *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osg::PagedLOD *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::PagedLOD > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::PagedLOD *, , + __T_P1__get, + 0); END_REFLECTOR STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::PagedLOD > >); diff --git a/src/osgWrappers/osgDB/DotOsgWrapper.cpp b/src/osgWrappers/osgDB/DotOsgWrapper.cpp index 0a34f3bee..54b826d55 100644 --- a/src/osgWrappers/osgDB/DotOsgWrapper.cpp +++ b/src/osgWrappers/osgDB/DotOsgWrapper.cpp @@ -34,18 +34,51 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgDB::DotOsgWrapper) I_BaseType(osg::Referenced); - I_ConstructorWithDefaults6(IN, osg::Object *, proto, , IN, const std::string &, name, , IN, const std::string &, associates, , IN, osgDB::DotOsgWrapper::ReadFunc, readFunc, , IN, osgDB::DotOsgWrapper::WriteFunc, writeFunc, , IN, osgDB::DotOsgWrapper::ReadWriteMode, readWriteMode, osgDB::DotOsgWrapper::READ_AND_WRITE); - I_Method0(const osg::Object *, getPrototype); - I_Method0(const std::string &, getName); - I_Method0(const osgDB::DotOsgWrapper::Associates &, getAssociates); - I_Method0(osgDB::DotOsgWrapper::ReadFunc, getReadFunc); - I_Method0(osgDB::DotOsgWrapper::WriteFunc, getWriteFunc); - I_Method0(osgDB::DotOsgWrapper::ReadWriteMode, getReadWriteMode); - I_ReadOnlyProperty(const osgDB::DotOsgWrapper::Associates &, Associates); - I_ReadOnlyProperty(const std::string &, Name); - I_ReadOnlyProperty(const osg::Object *, Prototype); - I_ReadOnlyProperty(osgDB::DotOsgWrapper::ReadFunc, ReadFunc); - I_ReadOnlyProperty(osgDB::DotOsgWrapper::ReadWriteMode, ReadWriteMode); - I_ReadOnlyProperty(osgDB::DotOsgWrapper::WriteFunc, WriteFunc); + I_ConstructorWithDefaults6(IN, osg::Object *, proto, , IN, const std::string &, name, , IN, const std::string &, associates, , IN, osgDB::DotOsgWrapper::ReadFunc, readFunc, , IN, osgDB::DotOsgWrapper::WriteFunc, writeFunc, , IN, osgDB::DotOsgWrapper::ReadWriteMode, readWriteMode, osgDB::DotOsgWrapper::READ_AND_WRITE, + ____DotOsgWrapper__osg_Object_P1__C5_std_string_R1__C5_std_string_R1__ReadFunc__WriteFunc__ReadWriteMode, + "", + ""); + I_Method0(const osg::Object *, getPrototype, + __C5_osg_Object_P1__getPrototype, + "", + ""); + I_Method0(const std::string &, getName, + __C5_std_string_R1__getName, + "", + ""); + I_Method0(const osgDB::DotOsgWrapper::Associates &, getAssociates, + __C5_Associates_R1__getAssociates, + "", + ""); + I_Method0(osgDB::DotOsgWrapper::ReadFunc, getReadFunc, + __ReadFunc__getReadFunc, + "", + ""); + I_Method0(osgDB::DotOsgWrapper::WriteFunc, getWriteFunc, + __WriteFunc__getWriteFunc, + "", + ""); + I_Method0(osgDB::DotOsgWrapper::ReadWriteMode, getReadWriteMode, + __ReadWriteMode__getReadWriteMode, + "", + ""); + I_SimpleProperty(const osgDB::DotOsgWrapper::Associates &, Associates, + __C5_Associates_R1__getAssociates, + 0); + I_SimpleProperty(const std::string &, Name, + __C5_std_string_R1__getName, + 0); + I_SimpleProperty(const osg::Object *, Prototype, + __C5_osg_Object_P1__getPrototype, + 0); + I_SimpleProperty(osgDB::DotOsgWrapper::ReadFunc, ReadFunc, + __ReadFunc__getReadFunc, + 0); + I_SimpleProperty(osgDB::DotOsgWrapper::ReadWriteMode, ReadWriteMode, + __ReadWriteMode__getReadWriteMode, + 0); + I_SimpleProperty(osgDB::DotOsgWrapper::WriteFunc, WriteFunc, + __WriteFunc__getWriteFunc, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgDB/DynamicLibrary.cpp b/src/osgWrappers/osgDB/DynamicLibrary.cpp index 97e8b3010..0d7421f42 100644 --- a/src/osgWrappers/osgDB/DynamicLibrary.cpp +++ b/src/osgWrappers/osgDB/DynamicLibrary.cpp @@ -26,13 +26,34 @@ TYPE_NAME_ALIAS(void *, osgDB::DynamicLibrary::PROC_ADDRESS); BEGIN_OBJECT_REFLECTOR(osgDB::DynamicLibrary) I_BaseType(osg::Referenced); - I_Method0(const std::string &, getName); - I_Method0(const std::string &, getFullName); - I_Method0(osgDB::DynamicLibrary::HANDLE, getHandle); - I_Method1(osgDB::DynamicLibrary::PROC_ADDRESS, getProcAddress, IN, const std::string &, procName); - I_StaticMethod1(osgDB::DynamicLibrary *, loadLibrary, IN, const std::string &, libraryName); - I_ReadOnlyProperty(const std::string &, FullName); - I_ReadOnlyProperty(osgDB::DynamicLibrary::HANDLE, Handle); - I_ReadOnlyProperty(const std::string &, Name); + I_Method0(const std::string &, getName, + __C5_std_string_R1__getName, + "return name of library stripped of path. ", + ""); + I_Method0(const std::string &, getFullName, + __C5_std_string_R1__getFullName, + "return name of library including full path to it. ", + ""); + I_Method0(osgDB::DynamicLibrary::HANDLE, getHandle, + __HANDLE__getHandle, + "return handle to .dso/.dll dynamic library itself. ", + ""); + I_Method1(osgDB::DynamicLibrary::PROC_ADDRESS, getProcAddress, IN, const std::string &, procName, + __PROC_ADDRESS__getProcAddress__C5_std_string_R1, + "return address of function located in library. ", + ""); + I_StaticMethod1(osgDB::DynamicLibrary *, loadLibrary, IN, const std::string &, libraryName, + __DynamicLibrary_P1__loadLibrary__C5_std_string_R1_S, + "returns a pointer to a DynamicLibrary object on successfully opening of library returns NULL on failure. ", + ""); + I_SimpleProperty(const std::string &, FullName, + __C5_std_string_R1__getFullName, + 0); + I_SimpleProperty(osgDB::DynamicLibrary::HANDLE, Handle, + __HANDLE__getHandle, + 0); + I_SimpleProperty(const std::string &, Name, + __C5_std_string_R1__getName, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgDB/Field.cpp b/src/osgWrappers/osgDB/Field.cpp index 488b43016..8304a929b 100644 --- a/src/osgWrappers/osgDB/Field.cpp +++ b/src/osgWrappers/osgDB/Field.cpp @@ -32,43 +32,151 @@ BEGIN_ENUM_REFLECTOR(osgDB::Field::FieldType) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgDB::Field) - I_Constructor0(); - I_Constructor1(IN, const osgDB::Field &, field); - I_Method0(void, reset); - I_Method1(void, addChar, IN, char, c); - I_Method0(int, getNoCharacters); - I_MethodWithDefaults1(void, setWithinQuotes, IN, bool, withinQuotes, true); - I_Method0(bool, getWithinQuotes); - I_Method1(void, setNoNestedBrackets, IN, int, no); - I_Method0(int, getNoNestedBrackets); - I_Method0(osgDB::Field::FieldType, getFieldType); - I_Method0(bool, isValid); - I_Method0(bool, isOpenBracket); - I_Method0(bool, isCloseBracket); - I_Method0(bool, isWord); - I_Method1(bool, matchWord, IN, const char *, str); - I_Method2(bool, matchWord, IN, const char *, str, IN, int, noCharacters); - I_Method0(bool, isString); - I_Method1(bool, matchString, IN, const char *, str); - I_Method2(bool, matchString, IN, const char *, str, IN, int, noCharacters); - I_Method0(bool, isQuotedString); - I_Method0(const char *, getStr); - I_Method0(char *, takeStr); - I_Method0(bool, isInt); - I_Method1(bool, matchInt, IN, int, i); - I_Method1(bool, getInt, IN, int &, i); - I_Method0(bool, isUInt); - I_Method1(bool, matchUInt, IN, unsigned int, i); - I_Method1(bool, getUInt, IN, unsigned int &, i); - I_Method0(bool, isFloat); - I_Method1(bool, matchFloat, IN, float, f); - I_Method1(bool, getFloat, IN, float &, f); - I_Method1(bool, getFloat, IN, double &, f); - I_StaticMethodWithDefaults2(osgDB::Field::FieldType, calculateFieldType, IN, const char *, str, , IN, bool, withinQuotes, false); - I_ReadOnlyProperty(osgDB::Field::FieldType, FieldType); - I_ReadOnlyProperty(int, NoCharacters); - I_Property(int, NoNestedBrackets); - I_ReadOnlyProperty(const char *, Str); - I_Property(bool, WithinQuotes); + I_Constructor0(____Field, + "", + ""); + I_Constructor1(IN, const osgDB::Field &, field, + ____Field__C5_Field_R1, + "", + ""); + I_Method0(void, reset, + __void__reset, + "", + ""); + I_Method1(void, addChar, IN, char, c, + __void__addChar__char, + "", + ""); + I_Method0(int, getNoCharacters, + __int__getNoCharacters, + "", + ""); + I_MethodWithDefaults1(void, setWithinQuotes, IN, bool, withinQuotes, true, + __void__setWithinQuotes__bool, + "", + ""); + I_Method0(bool, getWithinQuotes, + __bool__getWithinQuotes, + "", + ""); + I_Method1(void, setNoNestedBrackets, IN, int, no, + __void__setNoNestedBrackets__int, + "", + ""); + I_Method0(int, getNoNestedBrackets, + __int__getNoNestedBrackets, + "", + ""); + I_Method0(osgDB::Field::FieldType, getFieldType, + __FieldType__getFieldType, + "", + ""); + I_Method0(bool, isValid, + __bool__isValid, + "", + ""); + I_Method0(bool, isOpenBracket, + __bool__isOpenBracket, + "", + ""); + I_Method0(bool, isCloseBracket, + __bool__isCloseBracket, + "", + ""); + I_Method0(bool, isWord, + __bool__isWord, + "", + ""); + I_Method1(bool, matchWord, IN, const char *, str, + __bool__matchWord__C5_char_P1, + "", + ""); + I_Method2(bool, matchWord, IN, const char *, str, IN, int, noCharacters, + __bool__matchWord__C5_char_P1__int, + "", + ""); + I_Method0(bool, isString, + __bool__isString, + "", + ""); + I_Method1(bool, matchString, IN, const char *, str, + __bool__matchString__C5_char_P1, + "", + ""); + I_Method2(bool, matchString, IN, const char *, str, IN, int, noCharacters, + __bool__matchString__C5_char_P1__int, + "", + ""); + I_Method0(bool, isQuotedString, + __bool__isQuotedString, + "", + ""); + I_Method0(const char *, getStr, + __C5_char_P1__getStr, + "", + ""); + I_Method0(char *, takeStr, + __char_P1__takeStr, + "", + ""); + I_Method0(bool, isInt, + __bool__isInt, + "", + ""); + I_Method1(bool, matchInt, IN, int, i, + __bool__matchInt__int, + "", + ""); + I_Method1(bool, getInt, IN, int &, i, + __bool__getInt__int_R1, + "", + ""); + I_Method0(bool, isUInt, + __bool__isUInt, + "", + ""); + I_Method1(bool, matchUInt, IN, unsigned int, i, + __bool__matchUInt__unsigned_int, + "", + ""); + I_Method1(bool, getUInt, IN, unsigned int &, i, + __bool__getUInt__unsigned_int_R1, + "", + ""); + I_Method0(bool, isFloat, + __bool__isFloat, + "", + ""); + I_Method1(bool, matchFloat, IN, float, f, + __bool__matchFloat__float, + "", + ""); + I_Method1(bool, getFloat, IN, float &, f, + __bool__getFloat__float_R1, + "", + ""); + I_Method1(bool, getFloat, IN, double &, f, + __bool__getFloat__double_R1, + "", + ""); + I_StaticMethodWithDefaults2(osgDB::Field::FieldType, calculateFieldType, IN, const char *, str, , IN, bool, withinQuotes, false, + __FieldType__calculateFieldType__C5_char_P1__bool_S, + "", + ""); + I_SimpleProperty(osgDB::Field::FieldType, FieldType, + __FieldType__getFieldType, + 0); + I_SimpleProperty(int, NoCharacters, + __int__getNoCharacters, + 0); + I_SimpleProperty(int, NoNestedBrackets, + __int__getNoNestedBrackets, + __void__setNoNestedBrackets__int); + I_SimpleProperty(const char *, Str, + __C5_char_P1__getStr, + 0); + I_SimpleProperty(bool, WithinQuotes, + __bool__getWithinQuotes, + __void__setWithinQuotes__bool); END_REFLECTOR diff --git a/src/osgWrappers/osgDB/FieldReader.cpp b/src/osgWrappers/osgDB/FieldReader.cpp index 00097e2a5..ce2b8fc84 100644 --- a/src/osgWrappers/osgDB/FieldReader.cpp +++ b/src/osgWrappers/osgDB/FieldReader.cpp @@ -22,14 +22,39 @@ #endif BEGIN_VALUE_REFLECTOR(osgDB::FieldReader) - I_Constructor0(); - I_Constructor1(IN, const osgDB::FieldReader &, ic); - I_Method1(void, attach, IN, std::istream *, input); - I_Method0(void, detach); - I_Method0(bool, eof); - I_Method1(bool, readField, IN, osgDB::Field &, fieldPtr); - I_Method0(void, ignoreField); - I_Method0(int, getNoNestedBrackets); - I_ReadOnlyProperty(int, NoNestedBrackets); + I_Constructor0(____FieldReader, + "", + ""); + I_Constructor1(IN, const osgDB::FieldReader &, ic, + ____FieldReader__C5_FieldReader_R1, + "", + ""); + I_Method1(void, attach, IN, std::istream *, input, + __void__attach__std_istream_P1, + "", + ""); + I_Method0(void, detach, + __void__detach, + "", + ""); + I_Method0(bool, eof, + __bool__eof, + "", + ""); + I_Method1(bool, readField, IN, osgDB::Field &, fieldPtr, + __bool__readField__Field_R1, + "", + ""); + I_Method0(void, ignoreField, + __void__ignoreField, + "", + ""); + I_Method0(int, getNoNestedBrackets, + __int__getNoNestedBrackets, + "no of unmatched `{' encountered so far in file ", + ""); + I_SimpleProperty(int, NoNestedBrackets, + __int__getNoNestedBrackets, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgDB/FieldReaderIterator.cpp b/src/osgWrappers/osgDB/FieldReaderIterator.cpp index 3f849329d..321323529 100644 --- a/src/osgWrappers/osgDB/FieldReaderIterator.cpp +++ b/src/osgWrappers/osgDB/FieldReaderIterator.cpp @@ -29,39 +29,139 @@ #endif BEGIN_VALUE_REFLECTOR(osgDB::FieldReaderIterator) - I_Constructor0(); - I_Constructor1(IN, const osgDB::FieldReaderIterator &, ic); - I_Method1(void, attach, IN, std::istream *, input); - I_Method0(void, detach); - I_Method0(bool, eof); - I_Method0(osgDB::FieldReader &, getFieldReader); - I_Method2(void, insert, IN, int, pos, IN, osgDB::Field *, field); - I_Method2(void, insert, IN, int, pos, IN, const char *, str); - I_Method1(osgDB::Field &, field, IN, int, pos); - I_Method0(void, advanceOverCurrentFieldOrBlock); - I_Method0(void, advanceToEndOfCurrentBlock); - I_Method1(void, advanceToEndOfBlock, IN, int, noNestBrackets); - I_Method1(bool, matchSequence, IN, const char *, str); - I_Method2(bool, readSequence, IN, const char *, keyword, IN, std::string &, value); - I_Method2(bool, readSequence, IN, const char *, keyword, IN, unsigned int &, value); - I_Method2(bool, readSequence, IN, const char *, keyword, IN, int &, value); - I_Method2(bool, readSequence, IN, const char *, keyword, IN, float &, value); - I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec2f &, value); - I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec3f &, value); - I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec4f &, value); - I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec2d &, value); - I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec3d &, value); - I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec4d &, value); - I_Method1(bool, readSequence, IN, std::string &, value); - I_Method1(bool, readSequence, IN, unsigned int &, value); - I_Method1(bool, readSequence, IN, int &, value); - I_Method1(bool, readSequence, IN, float &, value); - I_Method1(bool, readSequence, IN, osg::Vec2f &, value); - I_Method1(bool, readSequence, IN, osg::Vec3f &, value); - I_Method1(bool, readSequence, IN, osg::Vec4f &, value); - I_Method1(bool, readSequence, IN, osg::Vec2d &, value); - I_Method1(bool, readSequence, IN, osg::Vec3d &, value); - I_Method1(bool, readSequence, IN, osg::Vec4d &, value); - I_ReadOnlyProperty(osgDB::FieldReader &, FieldReader); + I_Constructor0(____FieldReaderIterator, + "", + ""); + I_Constructor1(IN, const osgDB::FieldReaderIterator &, ic, + ____FieldReaderIterator__C5_FieldReaderIterator_R1, + "", + ""); + I_Method1(void, attach, IN, std::istream *, input, + __void__attach__std_istream_P1, + "", + ""); + I_Method0(void, detach, + __void__detach, + "", + ""); + I_Method0(bool, eof, + __bool__eof, + "", + ""); + I_Method0(osgDB::FieldReader &, getFieldReader, + __FieldReader_R1__getFieldReader, + "", + ""); + I_Method2(void, insert, IN, int, pos, IN, osgDB::Field *, field, + __void__insert__int__Field_P1, + "", + ""); + I_Method2(void, insert, IN, int, pos, IN, const char *, str, + __void__insert__int__C5_char_P1, + "", + ""); + I_Method1(osgDB::Field &, field, IN, int, pos, + __Field_R1__field__int, + "", + ""); + I_Method0(void, advanceOverCurrentFieldOrBlock, + __void__advanceOverCurrentFieldOrBlock, + "increments the iterator of the next simple field or whole block if the current field[0] is an open bracket ", + ""); + I_Method0(void, advanceToEndOfCurrentBlock, + __void__advanceToEndOfCurrentBlock, + "", + ""); + I_Method1(void, advanceToEndOfBlock, IN, int, noNestBrackets, + __void__advanceToEndOfBlock__int, + "", + ""); + I_Method1(bool, matchSequence, IN, const char *, str, + __bool__matchSequence__C5_char_P1, + "", + ""); + I_Method2(bool, readSequence, IN, const char *, keyword, IN, std::string &, value, + __bool__readSequence__C5_char_P1__std_string_R1, + "", + ""); + I_Method2(bool, readSequence, IN, const char *, keyword, IN, unsigned int &, value, + __bool__readSequence__C5_char_P1__unsigned_int_R1, + "", + ""); + I_Method2(bool, readSequence, IN, const char *, keyword, IN, int &, value, + __bool__readSequence__C5_char_P1__int_R1, + "", + ""); + I_Method2(bool, readSequence, IN, const char *, keyword, IN, float &, value, + __bool__readSequence__C5_char_P1__float_R1, + "", + ""); + I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec2f &, value, + __bool__readSequence__C5_char_P1__osg_Vec2f_R1, + "", + ""); + I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec3f &, value, + __bool__readSequence__C5_char_P1__osg_Vec3f_R1, + "", + ""); + I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec4f &, value, + __bool__readSequence__C5_char_P1__osg_Vec4f_R1, + "", + ""); + I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec2d &, value, + __bool__readSequence__C5_char_P1__osg_Vec2d_R1, + "", + ""); + I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec3d &, value, + __bool__readSequence__C5_char_P1__osg_Vec3d_R1, + "", + ""); + I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec4d &, value, + __bool__readSequence__C5_char_P1__osg_Vec4d_R1, + "", + ""); + I_Method1(bool, readSequence, IN, std::string &, value, + __bool__readSequence__std_string_R1, + "", + ""); + I_Method1(bool, readSequence, IN, unsigned int &, value, + __bool__readSequence__unsigned_int_R1, + "", + ""); + I_Method1(bool, readSequence, IN, int &, value, + __bool__readSequence__int_R1, + "", + ""); + I_Method1(bool, readSequence, IN, float &, value, + __bool__readSequence__float_R1, + "", + ""); + I_Method1(bool, readSequence, IN, osg::Vec2f &, value, + __bool__readSequence__osg_Vec2f_R1, + "", + ""); + I_Method1(bool, readSequence, IN, osg::Vec3f &, value, + __bool__readSequence__osg_Vec3f_R1, + "", + ""); + I_Method1(bool, readSequence, IN, osg::Vec4f &, value, + __bool__readSequence__osg_Vec4f_R1, + "", + ""); + I_Method1(bool, readSequence, IN, osg::Vec2d &, value, + __bool__readSequence__osg_Vec2d_R1, + "", + ""); + I_Method1(bool, readSequence, IN, osg::Vec3d &, value, + __bool__readSequence__osg_Vec3d_R1, + "", + ""); + I_Method1(bool, readSequence, IN, osg::Vec4d &, value, + __bool__readSequence__osg_Vec4d_R1, + "", + ""); + I_SimpleProperty(osgDB::FieldReader &, FieldReader, + __FieldReader_R1__getFieldReader, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgDB/ImageOptions.cpp b/src/osgWrappers/osgDB/ImageOptions.cpp index c020e012f..72ef57409 100644 --- a/src/osgWrappers/osgDB/ImageOptions.cpp +++ b/src/osgWrappers/osgDB/ImageOptions.cpp @@ -36,15 +36,41 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgDB::ImageOptions) I_BaseType(osgDB::ReaderWriter::Options); - I_Constructor0(); - I_Constructor1(IN, const std::string &, str); - I_ConstructorWithDefaults2(IN, const osgDB::ImageOptions &, options, , IN, const osg::CopyOp, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(void, init); + I_Constructor0(____ImageOptions, + "", + ""); + I_Constructor1(IN, const std::string &, str, + ____ImageOptions__C5_std_string_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgDB::ImageOptions &, options, , IN, const osg::CopyOp, copyop, osg::CopyOp::SHALLOW_COPY, + ____ImageOptions__C5_ImageOptions_R1__C5_osg_CopyOp, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(void, init, + __void__init, + "", + ""); I_PublicMemberProperty(osgDB::ImageOptions::ImageSamplingMode, _sourceImageSamplingMode); I_PublicMemberProperty(osgDB::ImageOptions::ImageWindowMode, _sourceImageWindowMode); I_PublicMemberProperty(osgDB::ImageOptions::RatioWindow, _sourceRatioWindow); @@ -58,8 +84,13 @@ BEGIN_OBJECT_REFLECTOR(osgDB::ImageOptions) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgDB::ImageOptions::PixelWindow) - I_Constructor0(); - I_Method4(void, set, IN, unsigned int, x, IN, unsigned int, y, IN, unsigned int, w, IN, unsigned int, h); + I_Constructor0(____PixelWindow, + "", + ""); + I_Method4(void, set, IN, unsigned int, x, IN, unsigned int, y, IN, unsigned int, w, IN, unsigned int, h, + __void__set__unsigned_int__unsigned_int__unsigned_int__unsigned_int, + "", + ""); I_PublicMemberProperty(unsigned int, windowX); I_PublicMemberProperty(unsigned int, windowY); I_PublicMemberProperty(unsigned int, windowWidth); @@ -67,8 +98,13 @@ BEGIN_VALUE_REFLECTOR(osgDB::ImageOptions::PixelWindow) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgDB::ImageOptions::RatioWindow) - I_Constructor0(); - I_Method4(void, set, IN, double, x, IN, double, y, IN, double, w, IN, double, h); + I_Constructor0(____RatioWindow, + "", + ""); + I_Method4(void, set, IN, double, x, IN, double, y, IN, double, w, IN, double, h, + __void__set__double__double__double__double, + "", + ""); I_PublicMemberProperty(double, windowX); I_PublicMemberProperty(double, windowY); I_PublicMemberProperty(double, windowWidth); @@ -77,8 +113,13 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgDB::ImageOptions::TexCoordRange) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method4(void, set, IN, double, x, IN, double, y, IN, double, w, IN, double, h); + I_Constructor0(____TexCoordRange, + "", + ""); + I_Method4(void, set, IN, double, x, IN, double, y, IN, double, w, IN, double, h, + __void__set__double__double__double__double, + "", + ""); I_PublicMemberProperty(double, _x); I_PublicMemberProperty(double, _y); I_PublicMemberProperty(double, _w); diff --git a/src/osgWrappers/osgDB/Input.cpp b/src/osgWrappers/osgDB/Input.cpp index 48c0c7681..ee820162f 100644 --- a/src/osgWrappers/osgDB/Input.cpp +++ b/src/osgWrappers/osgDB/Input.cpp @@ -30,22 +30,71 @@ BEGIN_OBJECT_REFLECTOR(osgDB::Input) I_BaseType(osgDB::FieldReaderIterator); - I_Constructor0(); - I_Method1(void, setOptions, IN, const osgDB::ReaderWriter::Options *, options); - I_Method0(const osgDB::ReaderWriter::Options *, getOptions); - I_Method1(osg::Object *, readObjectOfType, IN, const osg::Object &, compObj); - I_Method1(osg::Object *, readObjectOfType, IN, const osgDB::basic_type_wrapper &, btw); - I_Method0(osg::Object *, readObject); - I_Method0(osg::Image *, readImage); - I_Method0(osg::Drawable *, readDrawable); - I_Method0(osg::StateAttribute *, readStateAttribute); - I_Method0(osg::Uniform *, readUniform); - I_Method0(osg::Node *, readNode); - I_Method1(osg::Object *, readObject, IN, const std::string &, fileName); - I_Method1(osg::Image *, readImage, IN, const std::string &, fileName); - I_Method1(osg::Node *, readNode, IN, const std::string &, fileName); - I_Method1(osg::Object *, getObjectForUniqueID, IN, const std::string &, uniqueID); - I_Method2(void, regisiterUniqueIDForObject, IN, const std::string &, uniqueID, IN, osg::Object *, obj); - I_Property(const osgDB::ReaderWriter::Options *, Options); + I_Constructor0(____Input, + "", + ""); + I_Method1(void, setOptions, IN, const osgDB::ReaderWriter::Options *, options, + __void__setOptions__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method0(const osgDB::ReaderWriter::Options *, getOptions, + __C5_ReaderWriter_Options_P1__getOptions, + "", + ""); + I_Method1(osg::Object *, readObjectOfType, IN, const osg::Object &, compObj, + __osg_Object_P1__readObjectOfType__C5_osg_Object_R1, + "", + ""); + I_Method1(osg::Object *, readObjectOfType, IN, const osgDB::basic_type_wrapper &, btw, + __osg_Object_P1__readObjectOfType__C5_basic_type_wrapper_R1, + "", + ""); + I_Method0(osg::Object *, readObject, + __osg_Object_P1__readObject, + "", + ""); + I_Method0(osg::Image *, readImage, + __osg_Image_P1__readImage, + "", + ""); + I_Method0(osg::Drawable *, readDrawable, + __osg_Drawable_P1__readDrawable, + "", + ""); + I_Method0(osg::StateAttribute *, readStateAttribute, + __osg_StateAttribute_P1__readStateAttribute, + "", + ""); + I_Method0(osg::Uniform *, readUniform, + __osg_Uniform_P1__readUniform, + "", + ""); + I_Method0(osg::Node *, readNode, + __osg_Node_P1__readNode, + "", + ""); + I_Method1(osg::Object *, readObject, IN, const std::string &, fileName, + __osg_Object_P1__readObject__C5_std_string_R1, + "", + ""); + I_Method1(osg::Image *, readImage, IN, const std::string &, fileName, + __osg_Image_P1__readImage__C5_std_string_R1, + "", + ""); + I_Method1(osg::Node *, readNode, IN, const std::string &, fileName, + __osg_Node_P1__readNode__C5_std_string_R1, + "", + ""); + I_Method1(osg::Object *, getObjectForUniqueID, IN, const std::string &, uniqueID, + __osg_Object_P1__getObjectForUniqueID__C5_std_string_R1, + "", + ""); + I_Method2(void, regisiterUniqueIDForObject, IN, const std::string &, uniqueID, IN, osg::Object *, obj, + __void__regisiterUniqueIDForObject__C5_std_string_R1__osg_Object_P1, + "", + ""); + I_SimpleProperty(const osgDB::ReaderWriter::Options *, Options, + __C5_ReaderWriter_Options_P1__getOptions, + __void__setOptions__C5_ReaderWriter_Options_P1); END_REFLECTOR diff --git a/src/osgWrappers/osgDB/ParameterOutput.cpp b/src/osgWrappers/osgDB/ParameterOutput.cpp index 74c8f107a..bfeb8f8b3 100644 --- a/src/osgWrappers/osgDB/ParameterOutput.cpp +++ b/src/osgWrappers/osgDB/ParameterOutput.cpp @@ -22,10 +22,25 @@ #endif BEGIN_VALUE_REFLECTOR(osgDB::ParameterOutput) - I_Constructor1(IN, osgDB::Output &, fw); - I_Constructor2(IN, osgDB::Output &, fw, IN, int, numItemsPerLine); - I_Method0(void, begin); - I_Method0(void, newLine); - I_Method0(void, end); + I_Constructor1(IN, osgDB::Output &, fw, + ____ParameterOutput__Output_R1, + "", + ""); + I_Constructor2(IN, osgDB::Output &, fw, IN, int, numItemsPerLine, + ____ParameterOutput__Output_R1__int, + "", + ""); + I_Method0(void, begin, + __void__begin, + "", + ""); + I_Method0(void, newLine, + __void__newLine, + "", + ""); + I_Method0(void, end, + __void__end, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgDB/ReaderWriter.cpp b/src/osgWrappers/osgDB/ReaderWriter.cpp index 6d66d2f63..24caf90c6 100644 --- a/src/osgWrappers/osgDB/ReaderWriter.cpp +++ b/src/osgWrappers/osgDB/ReaderWriter.cpp @@ -34,32 +34,109 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgDB::ReaderWriter) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgDB::ReaderWriter &, rw, , IN, const osg::CopyOp, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, acceptsExtension, IN, const std::string &, x); - I_MethodWithDefaults4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, x, , IN, osgDB::ReaderWriter::ArchiveStatus, x, , IN, unsigned, int, 4096, IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, openArchive, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readObject, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readImage, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readNode, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); - I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + I_Constructor0(____ReaderWriter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgDB::ReaderWriter &, rw, , IN, const osg::CopyOp, copyop, osg::CopyOp::SHALLOW_COPY, + ____ReaderWriter__C5_ReaderWriter_R1__C5_osg_CopyOp, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(bool, acceptsExtension, IN, const std::string &, x, + __bool__acceptsExtension__C5_std_string_R1, + "", + ""); + I_MethodWithDefaults4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, x, , IN, osgDB::ReaderWriter::ArchiveStatus, x, , IN, unsigned, int, 4096, IN, const osgDB::ReaderWriter::Options *, x, NULL, + __ReadResult__openArchive__C5_std_string_R1__ArchiveStatus__unsigned__C5_Options_P1, + "open an archive for reading, writing or or to create an empty archive for writing to. ", + ""); + I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, openArchive, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __ReadResult__openArchive__std_istream_R1__C5_Options_P1, + "open an archive for reading. ", + ""); + I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __ReadResult__readObject__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __ReadResult__readImage__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __ReadResult__readHeightField__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __ReadResult__readNode__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readObject, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __ReadResult__readObject__std_istream_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readImage, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __ReadResult__readImage__std_istream_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __ReadResult__readHeightField__std_istream_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readNode, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __ReadResult__readNode__std_istream_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __WriteResult__writeObject__C5_osg_Object_R1__std_ostream_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __WriteResult__writeImage__C5_osg_Image_R1__std_ostream_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __WriteResult__writeHeightField__C5_osg_HeightField_R1__std_ostream_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + __WriteResult__writeNode__C5_osg_Node_R1__std_ostream_R1__C5_Options_P1, + "", + ""); END_REFLECTOR BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::Options::CacheHintOptions) @@ -74,25 +151,77 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgDB::ReaderWriter::Options) I_BaseType(osg::Object); - I_Constructor0(); - I_Constructor1(IN, const std::string &, str); - I_ConstructorWithDefaults2(IN, const osgDB::ReaderWriter::Options &, options, , IN, const osg::CopyOp, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, setOptionString, IN, const std::string &, str); - I_Method0(const std::string &, getOptionString); - I_Method1(void, setDatabasePath, IN, const std::string &, str); - I_Method0(osgDB::FilePathList &, getDatabasePathList); - I_Method0(const osgDB::FilePathList &, getDatabasePathList); - I_Method1(void, setObjectCacheHint, IN, osgDB::ReaderWriter::Options::CacheHintOptions, useObjectCache); - I_Method0(osgDB::ReaderWriter::Options::CacheHintOptions, getObjectCacheHint); - I_WriteOnlyProperty(const std::string &, DatabasePath); - I_ReadOnlyProperty(osgDB::FilePathList &, DatabasePathList); - I_Property(osgDB::ReaderWriter::Options::CacheHintOptions, ObjectCacheHint); - I_Property(const std::string &, OptionString); + I_Constructor0(____Options, + "", + ""); + I_Constructor1(IN, const std::string &, str, + ____Options__C5_std_string_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgDB::ReaderWriter::Options &, options, , IN, const osg::CopyOp, copyop, osg::CopyOp::SHALLOW_COPY, + ____Options__C5_Options_R1__C5_osg_CopyOp, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setOptionString, IN, const std::string &, str, + __void__setOptionString__C5_std_string_R1, + "Set the general Options string. ", + ""); + I_Method0(const std::string &, getOptionString, + __C5_std_string_R1__getOptionString, + "Get the general Options string. ", + ""); + I_Method1(void, setDatabasePath, IN, const std::string &, str, + __void__setDatabasePath__C5_std_string_R1, + "Set the database path to use a hint of where to look when loading models. ", + ""); + I_Method0(osgDB::FilePathList &, getDatabasePathList, + __FilePathList_R1__getDatabasePathList, + "Get the database path which is used a hint of where to look when loading models. ", + ""); + I_Method0(const osgDB::FilePathList &, getDatabasePathList, + __C5_FilePathList_R1__getDatabasePathList, + "Get the const database path which is used a hint of where to look when loading models. ", + ""); + I_Method1(void, setObjectCacheHint, IN, osgDB::ReaderWriter::Options::CacheHintOptions, useObjectCache, + __void__setObjectCacheHint__CacheHintOptions, + "Set whether the Registry::ObjectCache should be used by default. ", + ""); + I_Method0(osgDB::ReaderWriter::Options::CacheHintOptions, getObjectCacheHint, + __CacheHintOptions__getObjectCacheHint, + "Get whether the Registry::ObjectCache should be used by default. ", + ""); + I_SimpleProperty(const std::string &, DatabasePath, + 0, + __void__setDatabasePath__C5_std_string_R1); + I_SimpleProperty(osgDB::FilePathList &, DatabasePathList, + __FilePathList_R1__getDatabasePathList, + 0); + I_SimpleProperty(osgDB::ReaderWriter::Options::CacheHintOptions, ObjectCacheHint, + __CacheHintOptions__getObjectCacheHint, + __void__setObjectCacheHint__CacheHintOptions); + I_SimpleProperty(const std::string &, OptionString, + __C5_std_string_R1__getOptionString, + __void__setOptionString__C5_std_string_R1); END_REFLECTOR BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::ReadResult::ReadStatus) @@ -104,37 +233,125 @@ BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::ReadResult::ReadStatus) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgDB::ReaderWriter::ReadResult) - I_ConstructorWithDefaults1(IN, osgDB::ReaderWriter::ReadResult::ReadStatus, status, osgDB::ReaderWriter::ReadResult::FILE_NOT_HANDLED); - I_Constructor1(IN, const std::string &, m); - I_ConstructorWithDefaults2(IN, osg::Object *, obj, , IN, osgDB::ReaderWriter::ReadResult::ReadStatus, status, osgDB::ReaderWriter::ReadResult::FILE_LOADED); - I_Constructor1(IN, const osgDB::ReaderWriter::ReadResult &, rr); - I_Method0(osg::Object *, getObject); - I_Method0(osg::Image *, getImage); - I_Method0(osg::HeightField *, getHeightField); - I_Method0(osg::Node *, getNode); - I_Method0(osgDB::Archive *, getArchive); - I_Method0(bool, validObject); - I_Method0(bool, validImage); - I_Method0(bool, validHeightField); - I_Method0(bool, validNode); - I_Method0(bool, validArchive); - I_Method0(osg::Object *, takeObject); - I_Method0(osg::Image *, takeImage); - I_Method0(osg::HeightField *, takeHeightField); - I_Method0(osg::Node *, takeNode); - I_Method0(osgDB::Archive *, takeArchive); - I_Method0(const std::string &, message); - I_Method0(osgDB::ReaderWriter::ReadResult::ReadStatus, status); - I_Method0(bool, success); - I_Method0(bool, loadedFromCache); - I_Method0(bool, error); - I_Method0(bool, notHandled); - I_Method0(bool, notFound); - I_ReadOnlyProperty(osgDB::Archive *, Archive); - I_ReadOnlyProperty(osg::HeightField *, HeightField); - I_ReadOnlyProperty(osg::Image *, Image); - I_ReadOnlyProperty(osg::Node *, Node); - I_ReadOnlyProperty(osg::Object *, Object); + I_ConstructorWithDefaults1(IN, osgDB::ReaderWriter::ReadResult::ReadStatus, status, osgDB::ReaderWriter::ReadResult::FILE_NOT_HANDLED, + ____ReadResult__ReadStatus, + "", + ""); + I_Constructor1(IN, const std::string &, m, + ____ReadResult__C5_std_string_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, osg::Object *, obj, , IN, osgDB::ReaderWriter::ReadResult::ReadStatus, status, osgDB::ReaderWriter::ReadResult::FILE_LOADED, + ____ReadResult__osg_Object_P1__ReadStatus, + "", + ""); + I_Constructor1(IN, const osgDB::ReaderWriter::ReadResult &, rr, + ____ReadResult__C5_ReadResult_R1, + "", + ""); + I_Method0(osg::Object *, getObject, + __osg_Object_P1__getObject, + "", + ""); + I_Method0(osg::Image *, getImage, + __osg_Image_P1__getImage, + "", + ""); + I_Method0(osg::HeightField *, getHeightField, + __osg_HeightField_P1__getHeightField, + "", + ""); + I_Method0(osg::Node *, getNode, + __osg_Node_P1__getNode, + "", + ""); + I_Method0(osgDB::Archive *, getArchive, + __osgDB_Archive_P1__getArchive, + "", + ""); + I_Method0(bool, validObject, + __bool__validObject, + "", + ""); + I_Method0(bool, validImage, + __bool__validImage, + "", + ""); + I_Method0(bool, validHeightField, + __bool__validHeightField, + "", + ""); + I_Method0(bool, validNode, + __bool__validNode, + "", + ""); + I_Method0(bool, validArchive, + __bool__validArchive, + "", + ""); + I_Method0(osg::Object *, takeObject, + __osg_Object_P1__takeObject, + "", + ""); + I_Method0(osg::Image *, takeImage, + __osg_Image_P1__takeImage, + "", + ""); + I_Method0(osg::HeightField *, takeHeightField, + __osg_HeightField_P1__takeHeightField, + "", + ""); + I_Method0(osg::Node *, takeNode, + __osg_Node_P1__takeNode, + "", + ""); + I_Method0(osgDB::Archive *, takeArchive, + __osgDB_Archive_P1__takeArchive, + "", + ""); + I_Method0(const std::string &, message, + __C5_std_string_R1__message, + "", + ""); + I_Method0(osgDB::ReaderWriter::ReadResult::ReadStatus, status, + __ReadStatus__status, + "", + ""); + I_Method0(bool, success, + __bool__success, + "", + ""); + I_Method0(bool, loadedFromCache, + __bool__loadedFromCache, + "", + ""); + I_Method0(bool, error, + __bool__error, + "", + ""); + I_Method0(bool, notHandled, + __bool__notHandled, + "", + ""); + I_Method0(bool, notFound, + __bool__notFound, + "", + ""); + I_SimpleProperty(osgDB::Archive *, Archive, + __osgDB_Archive_P1__getArchive, + 0); + I_SimpleProperty(osg::HeightField *, HeightField, + __osg_HeightField_P1__getHeightField, + 0); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + 0); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + 0); + I_SimpleProperty(osg::Object *, Object, + __osg_Object_P1__getObject, + 0); END_REFLECTOR BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::WriteResult::WriteStatus) @@ -144,14 +361,38 @@ BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::WriteResult::WriteStatus) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgDB::ReaderWriter::WriteResult) - I_ConstructorWithDefaults1(IN, osgDB::ReaderWriter::WriteResult::WriteStatus, status, osgDB::ReaderWriter::WriteResult::FILE_NOT_HANDLED); - I_Constructor1(IN, const std::string &, m); - I_Constructor1(IN, const osgDB::ReaderWriter::WriteResult &, rr); - I_Method0(const std::string &, message); - I_Method0(osgDB::ReaderWriter::WriteResult::WriteStatus, status); - I_Method0(bool, success); - I_Method0(bool, error); - I_Method0(bool, notHandled); + I_ConstructorWithDefaults1(IN, osgDB::ReaderWriter::WriteResult::WriteStatus, status, osgDB::ReaderWriter::WriteResult::FILE_NOT_HANDLED, + ____WriteResult__WriteStatus, + "", + ""); + I_Constructor1(IN, const std::string &, m, + ____WriteResult__C5_std_string_R1, + "", + ""); + I_Constructor1(IN, const osgDB::ReaderWriter::WriteResult &, rr, + ____WriteResult__C5_WriteResult_R1, + "", + ""); + I_Method0(const std::string &, message, + __C5_std_string_R1__message, + "", + ""); + I_Method0(osgDB::ReaderWriter::WriteResult::WriteStatus, status, + __WriteStatus__status, + "", + ""); + I_Method0(bool, success, + __bool__success, + "", + ""); + I_Method0(bool, error, + __bool__error, + "", + ""); + I_Method0(bool, notHandled, + __bool__notHandled, + "", + ""); END_REFLECTOR TYPE_NAME_ALIAS(std::deque< std::string >, osgDB::FilePathList); diff --git a/src/osgWrappers/osgDB/ReentrantMutex.cpp b/src/osgWrappers/osgDB/ReentrantMutex.cpp index 27cda2cea..420bf70d2 100644 --- a/src/osgWrappers/osgDB/ReentrantMutex.cpp +++ b/src/osgWrappers/osgDB/ReentrantMutex.cpp @@ -21,9 +21,20 @@ #endif BEGIN_OBJECT_REFLECTOR(osgDB::ReentrantMutex) - I_Constructor0(); - I_Method0(int, lock); - I_Method0(int, unlock); - I_Method0(int, trylock); + I_Constructor0(____ReentrantMutex, + "", + ""); + I_Method0(int, lock, + __int__lock, + "", + ""); + I_Method0(int, unlock, + __int__unlock, + "", + ""); + I_Method0(int, trylock, + __int__trylock, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgDB/Registry.cpp b/src/osgWrappers/osgDB/Registry.cpp index 82b0a6ae5..b19892508 100644 --- a/src/osgWrappers/osgDB/Registry.cpp +++ b/src/osgWrappers/osgDB/Registry.cpp @@ -38,130 +38,437 @@ #endif BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::basic_type_wrapper) - I_Constructor0(); - I_Method1(bool, matches, IN, const osg::Object *, proto); + I_Constructor0(____basic_type_wrapper, + "", + ""); + I_Method1(bool, matches, IN, const osg::Object *, proto, + __bool__matches__C5_osg_Object_P1, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgDB::RegisterDotOsgWrapperProxy) - I_ConstructorWithDefaults6(IN, osg::Object *, proto, , IN, const std::string &, name, , IN, const std::string &, associates, , IN, osgDB::DotOsgWrapper::ReadFunc, readFunc, , IN, osgDB::DotOsgWrapper::WriteFunc, writeFunc, , IN, osgDB::DotOsgWrapper::ReadWriteMode, readWriteMode, osgDB::DotOsgWrapper::READ_AND_WRITE); + I_ConstructorWithDefaults6(IN, osg::Object *, proto, , IN, const std::string &, name, , IN, const std::string &, associates, , IN, osgDB::DotOsgWrapper::ReadFunc, readFunc, , IN, osgDB::DotOsgWrapper::WriteFunc, writeFunc, , IN, osgDB::DotOsgWrapper::ReadWriteMode, readWriteMode, osgDB::DotOsgWrapper::READ_AND_WRITE, + ____RegisterDotOsgWrapperProxy__osg_Object_P1__C5_std_string_R1__C5_std_string_R1__DotOsgWrapper_ReadFunc__DotOsgWrapper_WriteFunc__DotOsgWrapper_ReadWriteMode, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgDB::Registry) I_BaseType(osg::Referenced); - I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, commandLine); - I_Method2(void, addFileExtensionAlias, IN, const std::string, mapExt, IN, const std::string, toExt); - I_Method1(void, addDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper); - I_Method1(void, removeDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper); - I_Method1(void, addReaderWriter, IN, osgDB::ReaderWriter *, rw); - I_Method1(void, removeReaderWriter, IN, osgDB::ReaderWriter *, rw); - I_Method1(std::string, createLibraryNameForFile, IN, const std::string &, fileName); - I_Method1(std::string, createLibraryNameForExtension, IN, const std::string &, ext); - I_Method1(std::string, createLibraryNameForNodeKit, IN, const std::string &, name); - I_Method1(bool, loadLibrary, IN, const std::string &, fileName); - I_Method1(bool, closeLibrary, IN, const std::string &, fileName); - I_Method0(void, closeAllLibraries); - I_Method1(osgDB::ReaderWriter *, getReaderWriterForExtension, IN, const std::string &, ext); - I_Method2(osg::Object *, readObjectOfType, IN, const osg::Object &, compObj, IN, osgDB::Input &, fr); - I_Method2(osg::Object *, readObjectOfType, IN, const osgDB::basic_type_wrapper &, btw, IN, osgDB::Input &, fr); - I_Method1(osg::Object *, readObject, IN, osgDB::Input &, fr); - I_Method1(osg::Image *, readImage, IN, osgDB::Input &, fr); - I_Method1(osg::Drawable *, readDrawable, IN, osgDB::Input &, fr); - I_Method1(osg::Uniform *, readUniform, IN, osgDB::Input &, fr); - I_Method1(osg::StateAttribute *, readStateAttribute, IN, osgDB::Input &, fr); - I_Method1(osg::Node *, readNode, IN, osgDB::Input &, fr); - I_Method2(bool, writeObject, IN, const osg::Object &, obj, IN, osgDB::Output &, fw); - I_Method1(void, setReadFileCallback, IN, osgDB::Registry::ReadFileCallback *, cb); - I_Method0(osgDB::Registry::ReadFileCallback *, getReadFileCallback); - I_Method0(const osgDB::Registry::ReadFileCallback *, getReadFileCallback); - I_Method4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options); - I_Method4(osgDB::ReaderWriter::ReadResult, openArchiveImplementation, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options); - I_Method2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); - I_Method2(osgDB::ReaderWriter::ReadResult, readObjectImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); - I_Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); - I_Method2(osgDB::ReaderWriter::ReadResult, readImageImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); - I_Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); - I_Method2(osgDB::ReaderWriter::ReadResult, readHeightFieldImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); - I_Method2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); - I_Method2(osgDB::ReaderWriter::ReadResult, readNodeImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); - I_Method1(void, setWriteFileCallback, IN, osgDB::Registry::WriteFileCallback *, cb); - I_Method0(osgDB::Registry::WriteFileCallback *, getWriteFileCallback); - I_Method0(const osgDB::Registry::WriteFileCallback *, getWriteFileCallback); - I_Method2(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName); - I_Method2(osgDB::ReaderWriter::WriteResult, writeObjectImplementation, IN, const osg::Object &, obj, IN, const std::string &, fileName); - I_Method2(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, obj, IN, const std::string &, fileName); - I_Method2(osgDB::ReaderWriter::WriteResult, writeImageImplementation, IN, const osg::Image &, obj, IN, const std::string &, fileName); - I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, obj, IN, const std::string &, fileName); - I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightFieldImplementation, IN, const osg::HeightField &, obj, IN, const std::string &, fileName); - I_Method2(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, node, IN, const std::string &, fileName); - I_Method2(osgDB::ReaderWriter::WriteResult, writeNodeImplementation, IN, const osg::Node &, node, IN, const std::string &, fileName); - I_Method1(void, setCreateNodeFromImage, IN, bool, flag); - I_Method0(bool, getCreateNodeFromImage); - I_Method1(void, setOptions, IN, osgDB::ReaderWriter::Options *, opt); - I_Method0(osgDB::ReaderWriter::Options *, getOptions); - I_Method0(const osgDB::ReaderWriter::Options *, getOptions); - I_Method0(void, initFilePathLists); - I_Method0(void, initDataFilePathList); - I_Method1(void, setDataFilePathList, IN, const osgDB::FilePathList &, filepath); - I_Method1(void, setDataFilePathList, IN, const std::string &, paths); - I_Method0(osgDB::FilePathList &, getDataFilePathList); - I_Method0(const osgDB::FilePathList &, getDataFilePathList); - I_Method0(void, initLibraryFilePathList); - I_Method1(void, setLibraryFilePathList, IN, const osgDB::FilePathList &, filepath); - I_Method1(void, setLibraryFilePathList, IN, const std::string &, paths); - I_Method0(osgDB::FilePathList &, getLibraryFilePathList); - I_Method0(const osgDB::FilePathList &, getLibraryFilePathList); - I_Method1(void, updateTimeStampOfObjectsInCacheWithExtenalReferences, IN, double, currentTime); - I_Method1(void, removeExpiredObjectsInCache, IN, double, expiryTime); - I_Method0(void, clearObjectCache); - I_MethodWithDefaults3(void, addEntryToObjectCache, IN, const std::string &, filename, , IN, osg::Object *, object, , IN, double, timestamp, 0.0); - I_Method1(osg::Object *, getFromObjectCache, IN, const std::string &, fileName); - I_Method2(void, addToArchiveCache, IN, const std::string &, fileName, IN, osgDB::Archive *, archive); - I_Method1(void, removeFromArchiveCache, IN, const std::string &, fileName); - I_Method1(osgDB::Archive *, getFromArchiveCache, IN, const std::string &, fileName); - I_Method0(void, clearArchiveCache); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); - I_Method1(osgDB::DynamicLibrary *, getLibrary, IN, const std::string &, fileName); - I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, databasePager); - I_Method0(osgDB::DatabasePager *, getOrCreateDatabasePager); - I_Method0(osgDB::DatabasePager *, getDatabasePager); - I_Method1(void, setSharedStateManager, IN, osgDB::SharedStateManager *, SharedStateManager); - I_Method0(osgDB::SharedStateManager *, getOrCreateSharedStateManager); - I_Method0(osgDB::SharedStateManager *, getSharedStateManager); - I_StaticMethodWithDefaults1(osgDB::Registry *, instance, IN, bool, erase, false); - I_Property(bool, CreateNodeFromImage); - I_Property(const osgDB::FilePathList &, DataFilePathList); - I_Property(osgDB::DatabasePager *, DatabasePager); - I_Property(const osgDB::FilePathList &, LibraryFilePathList); - I_Property(osgDB::ReaderWriter::Options *, Options); - I_Property(osgDB::Registry::ReadFileCallback *, ReadFileCallback); - I_Property(osgDB::SharedStateManager *, SharedStateManager); - I_Property(osgDB::Registry::WriteFileCallback *, WriteFileCallback); + I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, commandLine, + __void__readCommandLine__osg_ArgumentParser_R1, + "read the command line arguments. ", + ""); + I_Method2(void, addFileExtensionAlias, IN, const std::string, mapExt, IN, const std::string, toExt, + __void__addFileExtensionAlias__C5_std_string__C5_std_string, + "register an .fileextension alias to mapExt toExt, the later should the the extension name of the readerwriter plugin library. ", + "For example to map .tif files to the tiff loader, use addExtAlias(\"tif\",\"tiff\") which will enable .tif to be read by the libdb_tiff readerwriter plugin. "); + I_Method1(void, addDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, + __void__addDotOsgWrapper__DotOsgWrapper_P1, + "", + ""); + I_Method1(void, removeDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, + __void__removeDotOsgWrapper__DotOsgWrapper_P1, + "", + ""); + I_Method1(void, addReaderWriter, IN, osgDB::ReaderWriter *, rw, + __void__addReaderWriter__ReaderWriter_P1, + "", + ""); + I_Method1(void, removeReaderWriter, IN, osgDB::ReaderWriter *, rw, + __void__removeReaderWriter__ReaderWriter_P1, + "", + ""); + I_Method1(std::string, createLibraryNameForFile, IN, const std::string &, fileName, + __std_string__createLibraryNameForFile__C5_std_string_R1, + "create the platform specific library name associated with file. ", + ""); + I_Method1(std::string, createLibraryNameForExtension, IN, const std::string &, ext, + __std_string__createLibraryNameForExtension__C5_std_string_R1, + "create the platform specific library name associated with file extension. ", + ""); + I_Method1(std::string, createLibraryNameForNodeKit, IN, const std::string &, name, + __std_string__createLibraryNameForNodeKit__C5_std_string_R1, + "create the platform specific library name associated with nodekit library name. ", + ""); + I_Method1(bool, loadLibrary, IN, const std::string &, fileName, + __bool__loadLibrary__C5_std_string_R1, + "find the library in the SG_LIBRARY_PATH and load it. ", + ""); + I_Method1(bool, closeLibrary, IN, const std::string &, fileName, + __bool__closeLibrary__C5_std_string_R1, + "close the attached library with specified name. ", + ""); + I_Method0(void, closeAllLibraries, + __void__closeAllLibraries, + "close all libraries. ", + ""); + I_Method1(osgDB::ReaderWriter *, getReaderWriterForExtension, IN, const std::string &, ext, + __ReaderWriter_P1__getReaderWriterForExtension__C5_std_string_R1, + "get a reader writer which handles specified extension. ", + ""); + I_Method2(osg::Object *, readObjectOfType, IN, const osg::Object &, compObj, IN, osgDB::Input &, fr, + __osg_Object_P1__readObjectOfType__C5_osg_Object_R1__Input_R1, + "", + ""); + I_Method2(osg::Object *, readObjectOfType, IN, const osgDB::basic_type_wrapper &, btw, IN, osgDB::Input &, fr, + __osg_Object_P1__readObjectOfType__C5_basic_type_wrapper_R1__Input_R1, + "", + ""); + I_Method1(osg::Object *, readObject, IN, osgDB::Input &, fr, + __osg_Object_P1__readObject__Input_R1, + "", + ""); + I_Method1(osg::Image *, readImage, IN, osgDB::Input &, fr, + __osg_Image_P1__readImage__Input_R1, + "", + ""); + I_Method1(osg::Drawable *, readDrawable, IN, osgDB::Input &, fr, + __osg_Drawable_P1__readDrawable__Input_R1, + "", + ""); + I_Method1(osg::Uniform *, readUniform, IN, osgDB::Input &, fr, + __osg_Uniform_P1__readUniform__Input_R1, + "", + ""); + I_Method1(osg::StateAttribute *, readStateAttribute, IN, osgDB::Input &, fr, + __osg_StateAttribute_P1__readStateAttribute__Input_R1, + "", + ""); + I_Method1(osg::Node *, readNode, IN, osgDB::Input &, fr, + __osg_Node_P1__readNode__Input_R1, + "", + ""); + I_Method2(bool, writeObject, IN, const osg::Object &, obj, IN, osgDB::Output &, fw, + __bool__writeObject__C5_osg_Object_R1__Output_R1, + "", + ""); + I_Method1(void, setReadFileCallback, IN, osgDB::Registry::ReadFileCallback *, cb, + __void__setReadFileCallback__ReadFileCallback_P1, + "Set the Registry callback to use in place of the default readFile calls. ", + ""); + I_Method0(osgDB::Registry::ReadFileCallback *, getReadFileCallback, + __ReadFileCallback_P1__getReadFileCallback, + "Get the readFile callback. ", + ""); + I_Method0(const osgDB::Registry::ReadFileCallback *, getReadFileCallback, + __C5_ReadFileCallback_P1__getReadFileCallback, + "Get the const readFile callback. ", + ""); + I_Method4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options, + __ReaderWriter_ReadResult__openArchive__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method4(osgDB::ReaderWriter::ReadResult, openArchiveImplementation, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options, + __ReaderWriter_ReadResult__openArchiveImplementation__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + __ReaderWriter_ReadResult__readObject__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readObjectImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + __ReaderWriter_ReadResult__readObjectImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + __ReaderWriter_ReadResult__readImage__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readImageImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + __ReaderWriter_ReadResult__readImageImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + __ReaderWriter_ReadResult__readHeightField__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readHeightFieldImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + __ReaderWriter_ReadResult__readHeightFieldImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + __ReaderWriter_ReadResult__readNode__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readNodeImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + __ReaderWriter_ReadResult__readNodeImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method1(void, setWriteFileCallback, IN, osgDB::Registry::WriteFileCallback *, cb, + __void__setWriteFileCallback__WriteFileCallback_P1, + "Set the Registry callback to use in place of the default writeFile calls. ", + ""); + I_Method0(osgDB::Registry::WriteFileCallback *, getWriteFileCallback, + __WriteFileCallback_P1__getWriteFileCallback, + "Get the writeFile callback. ", + ""); + I_Method0(const osgDB::Registry::WriteFileCallback *, getWriteFileCallback, + __C5_WriteFileCallback_P1__getWriteFileCallback, + "Get the const writeFile callback. ", + ""); + I_Method2(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName, + __ReaderWriter_WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1, + "", + ""); + I_Method2(osgDB::ReaderWriter::WriteResult, writeObjectImplementation, IN, const osg::Object &, obj, IN, const std::string &, fileName, + __ReaderWriter_WriteResult__writeObjectImplementation__C5_osg_Object_R1__C5_std_string_R1, + "", + ""); + I_Method2(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, obj, IN, const std::string &, fileName, + __ReaderWriter_WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1, + "", + ""); + I_Method2(osgDB::ReaderWriter::WriteResult, writeImageImplementation, IN, const osg::Image &, obj, IN, const std::string &, fileName, + __ReaderWriter_WriteResult__writeImageImplementation__C5_osg_Image_R1__C5_std_string_R1, + "", + ""); + I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, + __ReaderWriter_WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1, + "", + ""); + I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightFieldImplementation, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, + __ReaderWriter_WriteResult__writeHeightFieldImplementation__C5_osg_HeightField_R1__C5_std_string_R1, + "", + ""); + I_Method2(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, node, IN, const std::string &, fileName, + __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1, + "", + ""); + I_Method2(osgDB::ReaderWriter::WriteResult, writeNodeImplementation, IN, const osg::Node &, node, IN, const std::string &, fileName, + __ReaderWriter_WriteResult__writeNodeImplementation__C5_osg_Node_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setCreateNodeFromImage, IN, bool, flag, + __void__setCreateNodeFromImage__bool, + "", + ""); + I_Method0(bool, getCreateNodeFromImage, + __bool__getCreateNodeFromImage, + "", + ""); + I_Method1(void, setOptions, IN, osgDB::ReaderWriter::Options *, opt, + __void__setOptions__ReaderWriter_Options_P1, + "", + ""); + I_Method0(osgDB::ReaderWriter::Options *, getOptions, + __ReaderWriter_Options_P1__getOptions, + "", + ""); + I_Method0(const osgDB::ReaderWriter::Options *, getOptions, + __C5_ReaderWriter_Options_P1__getOptions, + "", + ""); + I_Method0(void, initFilePathLists, + __void__initFilePathLists, + "initilize both the Data and Library FilePaths, by default called by the constructor, so it should only be required if you want to force the re-reading of environmental variables. ", + ""); + I_Method0(void, initDataFilePathList, + __void__initDataFilePathList, + "initilize the Data FilePath by reading the OSG_FILE_PATH environmental variable. ", + ""); + I_Method1(void, setDataFilePathList, IN, const osgDB::FilePathList &, filepath, + __void__setDataFilePathList__C5_FilePathList_R1, + "Set the data file path using a list of paths stored in a FilePath, which is used when search for data files. ", + ""); + I_Method1(void, setDataFilePathList, IN, const std::string &, paths, + __void__setDataFilePathList__C5_std_string_R1, + "Set the data file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. ", + ""); + I_Method0(osgDB::FilePathList &, getDataFilePathList, + __FilePathList_R1__getDataFilePathList, + "get the data file path which is used when search for data files. ", + ""); + I_Method0(const osgDB::FilePathList &, getDataFilePathList, + __C5_FilePathList_R1__getDataFilePathList, + "get the const data file path which is used when search for data files. ", + ""); + I_Method0(void, initLibraryFilePathList, + __void__initLibraryFilePathList, + "initilize the Library FilePath by reading the OSG_LIBRARY_PATH and the appropriate system environmental variables ", + ""); + I_Method1(void, setLibraryFilePathList, IN, const osgDB::FilePathList &, filepath, + __void__setLibraryFilePathList__C5_FilePathList_R1, + "Set the library file path using a list of paths stored in a FilePath, which is used when search for data files. ", + ""); + I_Method1(void, setLibraryFilePathList, IN, const std::string &, paths, + __void__setLibraryFilePathList__C5_std_string_R1, + "Set the library file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. ", + ""); + I_Method0(osgDB::FilePathList &, getLibraryFilePathList, + __FilePathList_R1__getLibraryFilePathList, + "get the library file path which is used when search for library (dso/dll's) files. ", + ""); + I_Method0(const osgDB::FilePathList &, getLibraryFilePathList, + __C5_FilePathList_R1__getLibraryFilePathList, + "get the const library file path which is used when search for library (dso/dll's) files. ", + ""); + I_Method1(void, updateTimeStampOfObjectsInCacheWithExtenalReferences, IN, double, currentTime, + __void__updateTimeStampOfObjectsInCacheWithExtenalReferences__double, + "For each object in the cache which has an reference count greater than 1 (and therefore referenced by elsewhere in the application) set the time stamp for that object in the cache to specified time. ", + "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required. Time value is time in sceonds. "); + I_Method1(void, removeExpiredObjectsInCache, IN, double, expiryTime, + __void__removeExpiredObjectsInCache__double, + "Removed object in the cache which have a time stamp at or before the specified expiry time. ", + "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required, and called after the a called after the call to updateTimeStampOfObjectsInCacheWithExtenalReferences(currentTime). Note, the currentTime is not the expiryTime, one would typically set the expiry time to a fixed amount of time before currentTime, such as expiryTime = currentTime-10.0. Time value is time in sceonds. "); + I_Method0(void, clearObjectCache, + __void__clearObjectCache, + "Remove all objects in the cache regardless of having external references or expiry times. ", + ""); + I_MethodWithDefaults3(void, addEntryToObjectCache, IN, const std::string &, filename, , IN, osg::Object *, object, , IN, double, timestamp, 0.0, + __void__addEntryToObjectCache__C5_std_string_R1__osg_Object_P1__double, + "Add a filename,object,timestamp tripple to the Registry::ObjectCache. ", + ""); + I_Method1(osg::Object *, getFromObjectCache, IN, const std::string &, fileName, + __osg_Object_P1__getFromObjectCache__C5_std_string_R1, + "Get an object from the object cache. ", + ""); + I_Method2(void, addToArchiveCache, IN, const std::string &, fileName, IN, osgDB::Archive *, archive, + __void__addToArchiveCache__C5_std_string_R1__osgDB_Archive_P1, + "Add archive to archive cache so that future calls reference this archive. ", + ""); + I_Method1(void, removeFromArchiveCache, IN, const std::string &, fileName, + __void__removeFromArchiveCache__C5_std_string_R1, + "Remove archive from cache. ", + ""); + I_Method1(osgDB::Archive *, getFromArchiveCache, IN, const std::string &, fileName, + __osgDB_Archive_P1__getFromArchiveCache__C5_std_string_R1, + "Get an archive from the archive cache. ", + ""); + I_Method0(void, clearArchiveCache, + __void__clearArchiveCache, + "Remove all archives from the archive cache. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + __void__releaseGLObjects__osg_State_P1, + "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objexts for all graphics contexts. "); + I_Method1(osgDB::DynamicLibrary *, getLibrary, IN, const std::string &, fileName, + __DynamicLibrary_P1__getLibrary__C5_std_string_R1, + "get the attached library with specified name. ", + ""); + I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, databasePager, + __void__setDatabasePager__DatabasePager_P1, + "Set the DatabasePager. ", + ""); + I_Method0(osgDB::DatabasePager *, getOrCreateDatabasePager, + __DatabasePager_P1__getOrCreateDatabasePager, + "Get the DatabasePager, creating one if one is not already created. ", + ""); + I_Method0(osgDB::DatabasePager *, getDatabasePager, + __DatabasePager_P1__getDatabasePager, + "Get the DatabasePager. ", + "Return 0 if no DatabasePager has been assigned. "); + I_Method1(void, setSharedStateManager, IN, osgDB::SharedStateManager *, SharedStateManager, + __void__setSharedStateManager__SharedStateManager_P1, + "Set the SharedStateManager. ", + ""); + I_Method0(osgDB::SharedStateManager *, getOrCreateSharedStateManager, + __SharedStateManager_P1__getOrCreateSharedStateManager, + "Get the SharedStateManager, creating one if one is not already created. ", + ""); + I_Method0(osgDB::SharedStateManager *, getSharedStateManager, + __SharedStateManager_P1__getSharedStateManager, + "Get the SharedStateManager. ", + "Return 0 if no SharedStateManager has been assigned. "); + I_StaticMethodWithDefaults1(osgDB::Registry *, instance, IN, bool, erase, false, + __Registry_P1__instance__bool_S, + "", + ""); + I_SimpleProperty(bool, CreateNodeFromImage, + __bool__getCreateNodeFromImage, + __void__setCreateNodeFromImage__bool); + I_SimpleProperty(const osgDB::FilePathList &, DataFilePathList, + __C5_FilePathList_R1__getDataFilePathList, + __void__setDataFilePathList__C5_FilePathList_R1); + I_SimpleProperty(osgDB::DatabasePager *, DatabasePager, + __DatabasePager_P1__getDatabasePager, + __void__setDatabasePager__DatabasePager_P1); + I_SimpleProperty(const osgDB::FilePathList &, LibraryFilePathList, + __C5_FilePathList_R1__getLibraryFilePathList, + __void__setLibraryFilePathList__C5_FilePathList_R1); + I_SimpleProperty(osgDB::ReaderWriter::Options *, Options, + __ReaderWriter_Options_P1__getOptions, + __void__setOptions__ReaderWriter_Options_P1); + I_SimpleProperty(osgDB::Registry::ReadFileCallback *, ReadFileCallback, + __ReadFileCallback_P1__getReadFileCallback, + __void__setReadFileCallback__ReadFileCallback_P1); + I_SimpleProperty(osgDB::SharedStateManager *, SharedStateManager, + __SharedStateManager_P1__getSharedStateManager, + __void__setSharedStateManager__SharedStateManager_P1); + I_SimpleProperty(osgDB::Registry::WriteFileCallback *, WriteFileCallback, + __WriteFileCallback_P1__getWriteFileCallback, + __void__setWriteFileCallback__WriteFileCallback_P1); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgDB::Registry::ReadFileCallback) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, filename, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, useObjectCache); - I_Method2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options); - I_Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options); - I_Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options); - I_Method2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options); + I_Constructor0(____ReadFileCallback, + "", + ""); + I_Method4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, filename, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, useObjectCache, + __ReaderWriter_ReadResult__openArchive__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options, + __ReaderWriter_ReadResult__readObject__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options, + __ReaderWriter_ReadResult__readImage__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options, + __ReaderWriter_ReadResult__readHeightField__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options, + __ReaderWriter_ReadResult__readNode__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Registry::ReadFunctor) - I_Constructor2(IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options); - I_Method1(osgDB::ReaderWriter::ReadResult, doRead, IN, osgDB::ReaderWriter &, rw); - I_Method1(bool, isValid, IN, osgDB::ReaderWriter::ReadResult &, readResult); - I_Method1(bool, isValid, IN, osg::Object *, object); + I_Constructor2(IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options, + ____ReadFunctor__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method1(osgDB::ReaderWriter::ReadResult, doRead, IN, osgDB::ReaderWriter &, rw, + __ReaderWriter_ReadResult__doRead__ReaderWriter_R1, + "", + ""); + I_Method1(bool, isValid, IN, osgDB::ReaderWriter::ReadResult &, readResult, + __bool__isValid__ReaderWriter_ReadResult_R1, + "", + ""); + I_Method1(bool, isValid, IN, osg::Object *, object, + __bool__isValid__osg_Object_P1, + "", + ""); I_PublicMemberProperty(std::string, _filename); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgDB::Registry::WriteFileCallback) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method2(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName); - I_Method2(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, obj, IN, const std::string &, fileName); - I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, obj, IN, const std::string &, fileName); - I_Method2(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, obj, IN, const std::string &, fileName); + I_Constructor0(____WriteFileCallback, + "", + ""); + I_Method2(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName, + __ReaderWriter_WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1, + "", + ""); + I_Method2(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, obj, IN, const std::string &, fileName, + __ReaderWriter_WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1, + "", + ""); + I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, + __ReaderWriter_WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1, + "", + ""); + I_Method2(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, obj, IN, const std::string &, fileName, + __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgDB/SharedStateManager.cpp b/src/osgWrappers/osgDB/SharedStateManager.cpp index 66e410fa4..c511df91a 100644 --- a/src/osgWrappers/osgDB/SharedStateManager.cpp +++ b/src/osgWrappers/osgDB/SharedStateManager.cpp @@ -31,13 +31,35 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgDB::SharedStateManager) I_BaseType(osg::NodeVisitor); - I_Constructor0(); - I_Method1(void, setShareMode, IN, unsigned int, mode); - I_Method0(unsigned int, getShareMode); - I_Method0(void, prune); - I_MethodWithDefaults2(void, share, IN, osg::Node *, node, , IN, OpenThreads::Mutex *, mt, 0); - I_Method1(void, apply, IN, osg::Node &, node); - I_Method1(void, apply, IN, osg::Geode &, geode); - I_Property(unsigned int, ShareMode); + I_Constructor0(____SharedStateManager, + "", + ""); + I_Method1(void, setShareMode, IN, unsigned int, mode, + __void__setShareMode__unsigned_int, + "", + ""); + I_Method0(unsigned int, getShareMode, + __unsigned_int__getShareMode, + "", + ""); + I_Method0(void, prune, + __void__prune, + "", + ""); + I_MethodWithDefaults2(void, share, IN, osg::Node *, node, , IN, OpenThreads::Mutex *, mt, 0, + __void__share__osg_Node_P1__OpenThreads_Mutex_P1, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + __void__apply__osg_Geode_R1, + "", + ""); + I_SimpleProperty(unsigned int, ShareMode, + __unsigned_int__getShareMode, + __void__setShareMode__unsigned_int); END_REFLECTOR diff --git a/src/osgWrappers/osgFX/AnisotropicLighting.cpp b/src/osgWrappers/osgFX/AnisotropicLighting.cpp index 50dedbf4b..ced8a30b5 100644 --- a/src/osgWrappers/osgFX/AnisotropicLighting.cpp +++ b/src/osgWrappers/osgFX/AnisotropicLighting.cpp @@ -26,23 +26,74 @@ BEGIN_OBJECT_REFLECTOR(osgFX::AnisotropicLighting) I_BaseType(osgFX::Effect); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgFX::AnisotropicLighting &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(const char *, effectName); - I_Method0(const char *, effectDescription); - I_Method0(const char *, effectAuthor); - I_Method0(osg::Image *, getLightingMap); - I_Method0(const osg::Image *, getLightingMap); - I_Method1(void, setLightingMap, IN, osg::Image *, image); - I_Method0(int, getLightNumber); - I_Method1(void, setLightNumber, IN, int, n); - I_Property(int, LightNumber); - I_Property(osg::Image *, LightingMap); + I_Constructor0(____AnisotropicLighting, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::AnisotropicLighting &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AnisotropicLighting__C5_AnisotropicLighting_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(const char *, effectName, + __C5_char_P1__effectName, + "get the name of this Effect ", + ""); + I_Method0(const char *, effectDescription, + __C5_char_P1__effectDescription, + "get a brief description of this Effect ", + ""); + I_Method0(const char *, effectAuthor, + __C5_char_P1__effectAuthor, + "get the effect author's name ", + ""); + I_Method0(osg::Image *, getLightingMap, + __osg_Image_P1__getLightingMap, + "get the lighting map ", + ""); + I_Method0(const osg::Image *, getLightingMap, + __C5_osg_Image_P1__getLightingMap, + "get the const lighting map ", + ""); + I_Method1(void, setLightingMap, IN, osg::Image *, image, + __void__setLightingMap__osg_Image_P1, + "set the lighting map ", + ""); + I_Method0(int, getLightNumber, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + __void__setLightNumber__int, + "set the OpenGL light number that will be used in lighting computations ", + ""); + I_SimpleProperty(int, LightNumber, + __int__getLightNumber, + __void__setLightNumber__int); + I_SimpleProperty(osg::Image *, LightingMap, + __osg_Image_P1__getLightingMap, + __void__setLightingMap__osg_Image_P1); END_REFLECTOR diff --git a/src/osgWrappers/osgFX/BumpMapping.cpp b/src/osgWrappers/osgFX/BumpMapping.cpp index b56f5930c..edcd04c6d 100644 --- a/src/osgWrappers/osgFX/BumpMapping.cpp +++ b/src/osgWrappers/osgFX/BumpMapping.cpp @@ -28,37 +28,127 @@ BEGIN_OBJECT_REFLECTOR(osgFX::BumpMapping) I_BaseType(osgFX::Effect); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgFX::BumpMapping &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(const char *, effectName); - I_Method0(const char *, effectDescription); - I_Method0(const char *, effectAuthor); - I_Method0(int, getLightNumber); - I_Method1(void, setLightNumber, IN, int, n); - I_Method0(int, getDiffuseTextureUnit); - I_Method1(void, setDiffuseTextureUnit, IN, int, n); - I_Method0(int, getNormalMapTextureUnit); - I_Method1(void, setNormalMapTextureUnit, IN, int, n); - I_Method0(osg::Texture2D *, getOverrideDiffuseTexture); - I_Method0(const osg::Texture2D *, getOverrideDiffuseTexture); - I_Method1(void, setOverrideDiffuseTexture, IN, osg::Texture2D *, texture); - I_Method0(osg::Texture2D *, getOverrideNormalMapTexture); - I_Method0(const osg::Texture2D *, getOverrideNormalMapTexture); - I_Method1(void, setOverrideNormalMapTexture, IN, osg::Texture2D *, texture); - I_Method1(void, prepareGeometry, IN, osg::Geometry *, geo); - I_Method1(void, prepareNode, IN, osg::Node *, node); - I_Method0(void, prepareChildren); - I_Method0(void, setUpDemo); - I_Property(int, DiffuseTextureUnit); - I_Property(int, LightNumber); - I_Property(int, NormalMapTextureUnit); - I_Property(osg::Texture2D *, OverrideDiffuseTexture); - I_Property(osg::Texture2D *, OverrideNormalMapTexture); + I_Constructor0(____BumpMapping, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::BumpMapping &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BumpMapping__C5_BumpMapping_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(const char *, effectName, + __C5_char_P1__effectName, + "get the name of this Effect ", + ""); + I_Method0(const char *, effectDescription, + __C5_char_P1__effectDescription, + "get a brief description of this Effect ", + ""); + I_Method0(const char *, effectAuthor, + __C5_char_P1__effectAuthor, + "get the effect author's name ", + ""); + I_Method0(int, getLightNumber, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + __void__setLightNumber__int, + "set the OpenGL light number that will be used in lighting computations ", + ""); + I_Method0(int, getDiffuseTextureUnit, + __int__getDiffuseTextureUnit, + "get the texture unit that contains diffuse color texture. ", + "Default is 1 "); + I_Method1(void, setDiffuseTextureUnit, IN, int, n, + __void__setDiffuseTextureUnit__int, + "set the texture unit that contains diffuse color texture. ", + "Default is 1 "); + I_Method0(int, getNormalMapTextureUnit, + __int__getNormalMapTextureUnit, + "get the texture unit that contains normal map texture. ", + "Default is 0 "); + I_Method1(void, setNormalMapTextureUnit, IN, int, n, + __void__setNormalMapTextureUnit__int, + "set the texture unit that contains normal map texture. ", + "Default is 0 "); + I_Method0(osg::Texture2D *, getOverrideDiffuseTexture, + __osg_Texture2D_P1__getOverrideDiffuseTexture, + "get the diffuse color texture that overrides children's texture ", + ""); + I_Method0(const osg::Texture2D *, getOverrideDiffuseTexture, + __C5_osg_Texture2D_P1__getOverrideDiffuseTexture, + "get the const diffuse color texture that overrides children's texture ", + ""); + I_Method1(void, setOverrideDiffuseTexture, IN, osg::Texture2D *, texture, + __void__setOverrideDiffuseTexture__osg_Texture2D_P1, + "set the diffuse color texture that overrides children's texture ", + ""); + I_Method0(osg::Texture2D *, getOverrideNormalMapTexture, + __osg_Texture2D_P1__getOverrideNormalMapTexture, + "get the normal map texture that overrides children's texture ", + ""); + I_Method0(const osg::Texture2D *, getOverrideNormalMapTexture, + __C5_osg_Texture2D_P1__getOverrideNormalMapTexture, + "get the const normal map texture that overrides children's texture ", + ""); + I_Method1(void, setOverrideNormalMapTexture, IN, osg::Texture2D *, texture, + __void__setOverrideNormalMapTexture__osg_Texture2D_P1, + "set the normal map texture that overrides children's texture ", + ""); + I_Method1(void, prepareGeometry, IN, osg::Geometry *, geo, + __void__prepareGeometry__osg_Geometry_P1, + "prepare a Geometry for bump lighting. ", + "Tangent-space basis vectors are generated and attached to the geometry as vertex attribute arrays."); + I_Method1(void, prepareNode, IN, osg::Node *, node, + __void__prepareNode__osg_Node_P1, + "prepare a Node for bump lighting, calling prepareGeometry() for each Geometry ", + ""); + I_Method0(void, prepareChildren, + __void__prepareChildren, + "prepare children for bump lighting. ", + "Actually calls prepareNode() for each child "); + I_Method0(void, setUpDemo, + __void__setUpDemo, + "set up a demo environment with predefined diffuse and normal maps, as well as texture coordinates ", + ""); + I_SimpleProperty(int, DiffuseTextureUnit, + __int__getDiffuseTextureUnit, + __void__setDiffuseTextureUnit__int); + I_SimpleProperty(int, LightNumber, + __int__getLightNumber, + __void__setLightNumber__int); + I_SimpleProperty(int, NormalMapTextureUnit, + __int__getNormalMapTextureUnit, + __void__setNormalMapTextureUnit__int); + I_SimpleProperty(osg::Texture2D *, OverrideDiffuseTexture, + __osg_Texture2D_P1__getOverrideDiffuseTexture, + __void__setOverrideDiffuseTexture__osg_Texture2D_P1); + I_SimpleProperty(osg::Texture2D *, OverrideNormalMapTexture, + __osg_Texture2D_P1__getOverrideNormalMapTexture, + __void__setOverrideNormalMapTexture__osg_Texture2D_P1); END_REFLECTOR diff --git a/src/osgWrappers/osgFX/Cartoon.cpp b/src/osgWrappers/osgFX/Cartoon.cpp index e10533506..a39482443 100644 --- a/src/osgWrappers/osgFX/Cartoon.cpp +++ b/src/osgWrappers/osgFX/Cartoon.cpp @@ -26,25 +26,81 @@ BEGIN_OBJECT_REFLECTOR(osgFX::Cartoon) I_BaseType(osgFX::Effect); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgFX::Cartoon &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(const char *, effectName); - I_Method0(const char *, effectDescription); - I_Method0(const char *, effectAuthor); - I_Method0(const osg::Vec4 &, getOutlineColor); - I_Method1(void, setOutlineColor, IN, const osg::Vec4 &, color); - I_Method0(float, getOutlineLineWidth); - I_Method1(void, setOutlineLineWidth, IN, float, w); - I_Method0(int, getLightNumber); - I_Method1(void, setLightNumber, IN, int, n); - I_Property(int, LightNumber); - I_Property(const osg::Vec4 &, OutlineColor); - I_Property(float, OutlineLineWidth); + I_Constructor0(____Cartoon, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::Cartoon &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Cartoon__C5_Cartoon_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(const char *, effectName, + __C5_char_P1__effectName, + "get the name of this Effect ", + ""); + I_Method0(const char *, effectDescription, + __C5_char_P1__effectDescription, + "get a brief description of this Effect ", + ""); + I_Method0(const char *, effectAuthor, + __C5_char_P1__effectAuthor, + "get the effect author's name ", + ""); + I_Method0(const osg::Vec4 &, getOutlineColor, + __C5_osg_Vec4_R1__getOutlineColor, + "get the outline color ", + ""); + I_Method1(void, setOutlineColor, IN, const osg::Vec4 &, color, + __void__setOutlineColor__C5_osg_Vec4_R1, + "set the outline color ", + ""); + I_Method0(float, getOutlineLineWidth, + __float__getOutlineLineWidth, + "get the outline line width ", + ""); + I_Method1(void, setOutlineLineWidth, IN, float, w, + __void__setOutlineLineWidth__float, + "set the outline line width ", + ""); + I_Method0(int, getLightNumber, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + __void__setLightNumber__int, + "set the OpenGL light number that will be used in lighting computations ", + ""); + I_SimpleProperty(int, LightNumber, + __int__getLightNumber, + __void__setLightNumber__int); + I_SimpleProperty(const osg::Vec4 &, OutlineColor, + __C5_osg_Vec4_R1__getOutlineColor, + __void__setOutlineColor__C5_osg_Vec4_R1); + I_SimpleProperty(float, OutlineLineWidth, + __float__getOutlineLineWidth, + __void__setOutlineLineWidth__float); END_REFLECTOR diff --git a/src/osgWrappers/osgFX/Effect.cpp b/src/osgWrappers/osgFX/Effect.cpp index 88f9edd25..c23e5d711 100644 --- a/src/osgWrappers/osgFX/Effect.cpp +++ b/src/osgWrappers/osgFX/Effect.cpp @@ -30,26 +30,89 @@ END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Effect) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgFX::Effect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(const char *, effectName); - I_Method0(const char *, effectDescription); - I_Method0(const char *, effectAuthor); - I_Method0(bool, getEnabled); - I_Method1(void, setEnabled, IN, bool, v); - I_Method0(void, setUpDemo); - I_Method0(int, getNumTechniques); - I_Method1(osgFX::Technique *, getTechnique, IN, int, i); - I_Method1(const osgFX::Technique *, getTechnique, IN, int, i); - I_Method0(int, getSelectedTechnique); - I_MethodWithDefaults1(void, selectTechnique, IN, int, i, osgFX::Effect::AUTO_DETECT); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method1(void, inherited_traverse, IN, osg::NodeVisitor &, nv); - I_Property(bool, Enabled); - I_ReadOnlyProperty(int, SelectedTechnique); - I_ArrayProperty_G(osgFX::Technique *, Technique, Techniques, int, void); + I_Constructor0(____Effect, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::Effect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Effect__C5_Effect_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, effectName, + __C5_char_P1__effectName, + "get the name of this Effect ", + ""); + I_Method0(const char *, effectDescription, + __C5_char_P1__effectDescription, + "get a brief description of this Effect ", + ""); + I_Method0(const char *, effectAuthor, + __C5_char_P1__effectAuthor, + "get the effect author's name ", + ""); + I_Method0(bool, getEnabled, + __bool__getEnabled, + "get whether the effect is enabled or not ", + ""); + I_Method1(void, setEnabled, IN, bool, v, + __void__setEnabled__bool, + "set whether the effect is enabled or not ", + ""); + I_Method0(void, setUpDemo, + __void__setUpDemo, + "optional: set effect parameters to produce a visually significant result to be used in demo applications like osgfxbrowser. ", + "Default is to do nothing."); + I_Method0(int, getNumTechniques, + __int__getNumTechniques, + "get the number of techniques defined for this Effect ", + ""); + I_Method1(osgFX::Technique *, getTechnique, IN, int, i, + __Technique_P1__getTechnique__int, + "get the i-th Technique ", + ""); + I_Method1(const osgFX::Technique *, getTechnique, IN, int, i, + __C5_Technique_P1__getTechnique__int, + "get the i-th const Technique ", + ""); + I_Method0(int, getSelectedTechnique, + __int__getSelectedTechnique, + "get the index of the currently selected Technique ", + ""); + I_MethodWithDefaults1(void, selectTechnique, IN, int, i, osgFX::Effect::AUTO_DETECT, + __void__selectTechnique__int, + "select a technique or enable automatic detection ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__osg_NodeVisitor_R1, + "custom traversal ", + ""); + I_Method1(void, inherited_traverse, IN, osg::NodeVisitor &, nv, + __void__inherited_traverse__osg_NodeVisitor_R1, + "default traversal ", + ""); + I_SimpleProperty(bool, Enabled, + __bool__getEnabled, + __void__setEnabled__bool); + I_SimpleProperty(int, SelectedTechnique, + __int__getSelectedTechnique, + 0); + I_ArrayProperty(osgFX::Technique *, Technique, + __Technique_P1__getTechnique__int, + 0, + __int__getNumTechniques, + 0, + 0, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgFX/MultiTextureControl.cpp b/src/osgWrappers/osgFX/MultiTextureControl.cpp index 06e9c7e56..bf251db35 100644 --- a/src/osgWrappers/osgFX/MultiTextureControl.cpp +++ b/src/osgWrappers/osgFX/MultiTextureControl.cpp @@ -25,17 +25,55 @@ BEGIN_OBJECT_REFLECTOR(osgFX::MultiTextureControl) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgFX::MultiTextureControl &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method2(void, setTextureWeight, IN, unsigned int, unit, IN, float, weight); - I_Method1(float, getTextureWeight, IN, unsigned int, unit); - I_Method0(unsigned int, getNumTextureWeights); - I_ArrayProperty_G(float, TextureWeight, TextureWeights, unsigned int, void); + I_Constructor0(____MultiTextureControl, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::MultiTextureControl &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____MultiTextureControl__C5_MultiTextureControl_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method2(void, setTextureWeight, IN, unsigned int, unit, IN, float, weight, + __void__setTextureWeight__unsigned_int__float, + "", + ""); + I_Method1(float, getTextureWeight, IN, unsigned int, unit, + __float__getTextureWeight__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumTextureWeights, + __unsigned_int__getNumTextureWeights, + "", + ""); + I_ArrayProperty(float, TextureWeight, + __float__getTextureWeight__unsigned_int, + __void__setTextureWeight__unsigned_int__float, + __unsigned_int__getNumTextureWeights, + 0, + 0, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgFX/Registry.cpp b/src/osgWrappers/osgFX/Registry.cpp index 068cce8ac..eaec498ff 100644 --- a/src/osgWrappers/osgFX/Registry.cpp +++ b/src/osgWrappers/osgFX/Registry.cpp @@ -25,14 +25,28 @@ TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ref_ptr< const osgFX::Effect > BEGIN_OBJECT_REFLECTOR(osgFX::Registry) I_BaseType(osg::Referenced); - I_Method1(void, registerEffect, IN, const osgFX::Effect *, effect); - I_Method0(const osgFX::Registry::EffectMap &, getEffectMap); - I_StaticMethod0(osgFX::Registry *, instance); - I_ReadOnlyProperty(const osgFX::Registry::EffectMap &, EffectMap); + I_Method1(void, registerEffect, IN, const osgFX::Effect *, effect, + __void__registerEffect__C5_Effect_P1, + "", + ""); + I_Method0(const osgFX::Registry::EffectMap &, getEffectMap, + __C5_EffectMap_R1__getEffectMap, + "", + ""); + I_StaticMethod0(osgFX::Registry *, instance, + __Registry_P1__instance_S, + "", + ""); + I_SimpleProperty(const osgFX::Registry::EffectMap &, EffectMap, + __C5_EffectMap_R1__getEffectMap, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgFX::Registry::Proxy) - I_Constructor1(IN, const osgFX::Effect *, effect); + I_Constructor1(IN, const osgFX::Effect *, effect, + ____Proxy__C5_Effect_P1, + "", + ""); END_REFLECTOR STD_MAP_REFLECTOR(std::map< std::string COMMA osg::ref_ptr< const osgFX::Effect > >); diff --git a/src/osgWrappers/osgFX/Scribe.cpp b/src/osgWrappers/osgFX/Scribe.cpp index a785ca4fd..29abdf5e5 100644 --- a/src/osgWrappers/osgFX/Scribe.cpp +++ b/src/osgWrappers/osgFX/Scribe.cpp @@ -26,22 +26,70 @@ BEGIN_OBJECT_REFLECTOR(osgFX::Scribe) I_BaseType(osgFX::Effect); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgFX::Scribe &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(const char *, effectName); - I_Method0(const char *, effectDescription); - I_Method0(const char *, effectAuthor); - I_Method0(const osg::Vec4 &, getWireframeColor); - I_Method1(void, setWireframeColor, IN, const osg::Vec4 &, color); - I_Method0(float, getWireframeLineWidth); - I_Method1(void, setWireframeLineWidth, IN, float, w); - I_Property(const osg::Vec4 &, WireframeColor); - I_Property(float, WireframeLineWidth); + I_Constructor0(____Scribe, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::Scribe &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Scribe__C5_Scribe_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(const char *, effectName, + __C5_char_P1__effectName, + "get the name of this Effect ", + ""); + I_Method0(const char *, effectDescription, + __C5_char_P1__effectDescription, + "get a brief description of this Effect ", + ""); + I_Method0(const char *, effectAuthor, + __C5_char_P1__effectAuthor, + "get the effect author's name ", + ""); + I_Method0(const osg::Vec4 &, getWireframeColor, + __C5_osg_Vec4_R1__getWireframeColor, + "get the wireframe color ", + ""); + I_Method1(void, setWireframeColor, IN, const osg::Vec4 &, color, + __void__setWireframeColor__C5_osg_Vec4_R1, + "set the wireframe color ", + ""); + I_Method0(float, getWireframeLineWidth, + __float__getWireframeLineWidth, + "get the wireframe line width ", + ""); + I_Method1(void, setWireframeLineWidth, IN, float, w, + __void__setWireframeLineWidth__float, + "set the wireframe line width ", + ""); + I_SimpleProperty(const osg::Vec4 &, WireframeColor, + __C5_osg_Vec4_R1__getWireframeColor, + __void__setWireframeColor__C5_osg_Vec4_R1); + I_SimpleProperty(float, WireframeLineWidth, + __float__getWireframeLineWidth, + __void__setWireframeLineWidth__float); END_REFLECTOR diff --git a/src/osgWrappers/osgFX/SpecularHighlights.cpp b/src/osgWrappers/osgFX/SpecularHighlights.cpp index 23ac35791..2e11044b7 100644 --- a/src/osgWrappers/osgFX/SpecularHighlights.cpp +++ b/src/osgWrappers/osgFX/SpecularHighlights.cpp @@ -26,28 +26,92 @@ BEGIN_OBJECT_REFLECTOR(osgFX::SpecularHighlights) I_BaseType(osgFX::Effect); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgFX::SpecularHighlights &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(const char *, effectName); - I_Method0(const char *, effectDescription); - I_Method0(const char *, effectAuthor); - I_Method0(int, getLightNumber); - I_Method1(void, setLightNumber, IN, int, n); - I_Method0(int, getTextureUnit); - I_Method1(void, setTextureUnit, IN, int, n); - I_Method0(const osg::Vec4 &, getSpecularColor); - I_Method1(void, setSpecularColor, IN, const osg::Vec4 &, color); - I_Method0(float, getSpecularExponent); - I_Method1(void, setSpecularExponent, IN, float, e); - I_Property(int, LightNumber); - I_Property(const osg::Vec4 &, SpecularColor); - I_Property(float, SpecularExponent); - I_Property(int, TextureUnit); + I_Constructor0(____SpecularHighlights, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::SpecularHighlights &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SpecularHighlights__C5_SpecularHighlights_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(const char *, effectName, + __C5_char_P1__effectName, + "get the name of this Effect ", + ""); + I_Method0(const char *, effectDescription, + __C5_char_P1__effectDescription, + "get a brief description of this Effect ", + ""); + I_Method0(const char *, effectAuthor, + __C5_char_P1__effectAuthor, + "get the effect author's name ", + ""); + I_Method0(int, getLightNumber, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + __void__setLightNumber__int, + "set the OpenGL light number that will be used in lighting computations ", + ""); + I_Method0(int, getTextureUnit, + __int__getTextureUnit, + "get the texture unit number ", + ""); + I_Method1(void, setTextureUnit, IN, int, n, + __void__setTextureUnit__int, + "set the texture unit that will be used to apply the cube map ", + ""); + I_Method0(const osg::Vec4 &, getSpecularColor, + __C5_osg_Vec4_R1__getSpecularColor, + "get the specular color ", + ""); + I_Method1(void, setSpecularColor, IN, const osg::Vec4 &, color, + __void__setSpecularColor__C5_osg_Vec4_R1, + "set the specular color ", + ""); + I_Method0(float, getSpecularExponent, + __float__getSpecularExponent, + "get the specular exponent ", + ""); + I_Method1(void, setSpecularExponent, IN, float, e, + __void__setSpecularExponent__float, + "set the specular exponent ", + ""); + I_SimpleProperty(int, LightNumber, + __int__getLightNumber, + __void__setLightNumber__int); + I_SimpleProperty(const osg::Vec4 &, SpecularColor, + __C5_osg_Vec4_R1__getSpecularColor, + __void__setSpecularColor__C5_osg_Vec4_R1); + I_SimpleProperty(float, SpecularExponent, + __float__getSpecularExponent, + __void__setSpecularExponent__float); + I_SimpleProperty(int, TextureUnit, + __int__getTextureUnit, + __void__setTextureUnit__int); END_REFLECTOR diff --git a/src/osgWrappers/osgFX/Technique.cpp b/src/osgWrappers/osgFX/Technique.cpp index f59ab39a8..cc875b440 100644 --- a/src/osgWrappers/osgFX/Technique.cpp +++ b/src/osgWrappers/osgFX/Technique.cpp @@ -26,14 +26,40 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Technique) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method0(const char *, techniqueName); - I_Method0(const char *, techniqueDescription); - I_Method1(void, getRequiredExtensions, IN, std::vector< std::string > &, x); - I_Method1(bool, validate, IN, osg::State &, x); - I_Method0(int, getNumPasses); - I_Method1(osg::StateSet *, getPassStateSet, IN, int, i); - I_Method1(const osg::StateSet *, getPassStateSet, IN, int, i); - I_Method2(void, traverse, IN, osg::NodeVisitor &, nv, IN, osgFX::Effect *, fx); + I_Constructor0(____Technique, + "", + ""); + I_Method0(const char *, techniqueName, + __C5_char_P1__techniqueName, + "get the name of this Technique ", + ""); + I_Method0(const char *, techniqueDescription, + __C5_char_P1__techniqueDescription, + "get a brief description of this Technique ", + ""); + I_Method1(void, getRequiredExtensions, IN, std::vector< std::string > &, x, + __void__getRequiredExtensions__std_vectorT1_std_string__R1, + "collect the GL extension strings which are required for this technique to work properly. ", + "This method is called from the default implementation of validate()."); + I_Method1(bool, validate, IN, osg::State &, x, + __bool__validate__osg_State_R1, + "tests whether this technique is valid for the current rendering context. ", + "The default behavior is to call getRequiredExtensions() and check for extension availability."); + I_Method0(int, getNumPasses, + __int__getNumPasses, + "get the number of rendering passes defined in this Technique ", + ""); + I_Method1(osg::StateSet *, getPassStateSet, IN, int, i, + __osg_StateSet_P1__getPassStateSet__int, + "get the StateSet object associated to the i-th pass ", + ""); + I_Method1(const osg::StateSet *, getPassStateSet, IN, int, i, + __C5_osg_StateSet_P1__getPassStateSet__int, + "get the const StateSet object associated to the i-th pass ", + ""); + I_Method2(void, traverse, IN, osg::NodeVisitor &, nv, IN, osgFX::Effect *, fx, + __void__traverse__osg_NodeVisitor_R1__Effect_P1, + "traverse children with multipass if necessary. ", + "By default this method simply calls the protected method traverse_implementation(); you can override it to change the default behavior. Don't call this method directly as it is called by osgFX::Effect"); END_REFLECTOR diff --git a/src/osgWrappers/osgFX/Validator.cpp b/src/osgWrappers/osgFX/Validator.cpp index e0d8f0e54..5bb8e1627 100644 --- a/src/osgWrappers/osgFX/Validator.cpp +++ b/src/osgWrappers/osgFX/Validator.cpp @@ -27,19 +27,59 @@ BEGIN_OBJECT_REFLECTOR(osgFX::Validator) I_BaseType(osg::StateAttribute); - I_Constructor0(); - I_Constructor1(IN, osgFX::Effect *, effect); - I_ConstructorWithDefaults2(IN, const osgFX::Validator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osg::StateAttribute::Type, getType); - I_Method1(void, apply, IN, osg::State &, state); - I_Method1(void, compileGLObjects, IN, osg::State &, state); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa); - I_Method0(void, disable); - I_ReadOnlyProperty(osg::StateAttribute::Type, Type); + I_Constructor0(____Validator, + "", + ""); + I_Constructor1(IN, osgFX::Effect *, effect, + ____Validator__Effect_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::Validator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Validator__C5_Validator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__osg_State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + __void__compileGLObjects__osg_State_R1, + "default to nothing to compile - all state is applied immediately. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + __int__compare__C5_osg_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(void, disable, + __void__disable, + "", + ""); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgGA/AnimationPathManipulator.cpp b/src/osgWrappers/osgGA/AnimationPathManipulator.cpp index f6ae3bd31..ce66e334d 100644 --- a/src/osgWrappers/osgGA/AnimationPathManipulator.cpp +++ b/src/osgWrappers/osgGA/AnimationPathManipulator.cpp @@ -27,29 +27,95 @@ BEGIN_OBJECT_REFLECTOR(osgGA::AnimationPathManipulator) I_BaseType(osgGA::MatrixManipulator); - I_ConstructorWithDefaults1(IN, osg::AnimationPath *, animationPath, 0); - I_Constructor1(IN, const std::string &, filename); - I_Method0(const char *, className); - I_Method1(void, setPrintOutTimingInfo, IN, bool, printOutTiminInfo); - I_Method0(bool, getPrintOutTimingInfo); - I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); - I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); - I_Method0(osg::Matrixd, getMatrix); - I_Method0(osg::Matrixd, getInverseMatrix); - I_Method1(void, setAnimationPath, IN, osg::AnimationPath *, animationPath); - I_Method0(osg::AnimationPath *, getAnimationPath); - I_Method0(const osg::AnimationPath *, getAnimationPath); - I_Method0(bool, valid); - I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method1(void, home, IN, double, currentTime); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); - I_Property(osg::AnimationPath *, AnimationPath); - I_WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); - I_WriteOnlyProperty(const osg::Matrixd &, ByMatrix); - I_ReadOnlyProperty(osg::Matrixd, InverseMatrix); - I_ReadOnlyProperty(osg::Matrixd, Matrix); - I_Property(bool, PrintOutTimingInfo); + I_ConstructorWithDefaults1(IN, osg::AnimationPath *, animationPath, 0, + ____AnimationPathManipulator__osg_AnimationPath_P1, + "", + ""); + I_Constructor1(IN, const std::string &, filename, + ____AnimationPathManipulator__C5_std_string_R1, + "", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setPrintOutTimingInfo, IN, bool, printOutTiminInfo, + __void__setPrintOutTimingInfo__bool, + "", + ""); + I_Method0(bool, getPrintOutTimingInfo, + __bool__getPrintOutTimingInfo, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + __void__setByMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + __osg_Matrixd__getInverseMatrix, + "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", + ""); + I_Method1(void, setAnimationPath, IN, osg::AnimationPath *, animationPath, + __void__setAnimationPath__osg_AnimationPath_P1, + "", + ""); + I_Method0(osg::AnimationPath *, getAnimationPath, + __osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const osg::AnimationPath *, getAnimationPath, + __C5_osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Start/restart the manipulator. ", + "FIXME: what does this actually mean? Provide examples."); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Move the camera to the default position. ", + "May be ignored by manipulators if home functionality is not appropriate."); + I_Method1(void, home, IN, double, currentTime, + __void__home__double, + "Move the camera to the default position. ", + "This version does not require GUIEventAdapter and GUIActionAdapter so may be called from somewhere other than a handle() method in GUIEventHandler. Application must be aware of implications."); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_SimpleProperty(osg::AnimationPath *, AnimationPath, + __osg_AnimationPath_P1__getAnimationPath, + __void__setAnimationPath__osg_AnimationPath_P1); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(bool, PrintOutTimingInfo, + __bool__getPrintOutTimingInfo, + __void__setPrintOutTimingInfo__bool); END_REFLECTOR diff --git a/src/osgWrappers/osgGA/DriveManipulator.cpp b/src/osgWrappers/osgGA/DriveManipulator.cpp index c7016c2e3..72de9dbdf 100644 --- a/src/osgWrappers/osgGA/DriveManipulator.cpp +++ b/src/osgWrappers/osgGA/DriveManipulator.cpp @@ -27,33 +27,108 @@ BEGIN_OBJECT_REFLECTOR(osgGA::DriveManipulator) I_BaseType(osgGA::MatrixManipulator); - I_Constructor0(); - I_Method0(const char *, className); - I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); - I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); - I_Method0(osg::Matrixd, getMatrix); - I_Method0(osg::Matrixd, getInverseMatrix); - I_Method1(void, setNode, IN, osg::Node *, x); - I_Method0(const osg::Node *, getNode); - I_Method0(osg::Node *, getNode); - I_Method0(void, computeHomePosition); - I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); - I_Method1(void, setModelScale, IN, double, in_ms); - I_Method0(double, getModelScale); - I_Method1(void, setVelocity, IN, double, in_vel); - I_Method0(double, getVelocity); - I_Method1(void, setHeight, IN, double, in_h); - I_Method0(double, getHeight); - I_WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); - I_WriteOnlyProperty(const osg::Matrixd &, ByMatrix); - I_Property(double, Height); - I_ReadOnlyProperty(osg::Matrixd, InverseMatrix); - I_ReadOnlyProperty(osg::Matrixd, Matrix); - I_Property(double, ModelScale); - I_Property(osg::Node *, Node); - I_Property(double, Velocity); + I_Constructor0(____DriveManipulator, + "", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + __void__setByMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + __osg_Matrixd__getInverseMatrix, + "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", + ""); + I_Method1(void, setNode, IN, osg::Node *, x, + __void__setNode__osg_Node_P1, + "Attach a node to the manipulator, automatically detaching any previously attached node. ", + "setNode(NULL) detaches previous nodes. May be ignored by manipulators which do not require a reference model."); + I_Method0(const osg::Node *, getNode, + __C5_osg_Node_P1__getNode, + "Return const node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + __osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method0(void, computeHomePosition, + __void__computeHomePosition, + "Compute the home position. ", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Move the camera to the default position. ", + "May be ignored by manipulators if home functionality is not appropriate."); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Start/restart the manipulator. ", + "FIXME: what does this actually mean? Provide examples."); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setModelScale, IN, double, in_ms, + __void__setModelScale__double, + "", + ""); + I_Method0(double, getModelScale, + __double__getModelScale, + "", + ""); + I_Method1(void, setVelocity, IN, double, in_vel, + __void__setVelocity__double, + "", + ""); + I_Method0(double, getVelocity, + __double__getVelocity, + "", + ""); + I_Method1(void, setHeight, IN, double, in_h, + __void__setHeight__double, + "", + ""); + I_Method0(double, getHeight, + __double__getHeight, + "", + ""); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(double, Height, + __double__getHeight, + __void__setHeight__double); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(double, ModelScale, + __double__getModelScale, + __void__setModelScale__double); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); + I_SimpleProperty(double, Velocity, + __double__getVelocity, + __void__setVelocity__double); END_REFLECTOR diff --git a/src/osgWrappers/osgGA/EventQueue.cpp b/src/osgWrappers/osgGA/EventQueue.cpp index 1d04fd1d0..43f8a7354 100644 --- a/src/osgWrappers/osgGA/EventQueue.cpp +++ b/src/osgWrappers/osgGA/EventQueue.cpp @@ -26,46 +26,151 @@ TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventAdapter > >, osgGA::Even BEGIN_OBJECT_REFLECTOR(osgGA::EventQueue) I_BaseType(osg::Referenced); - I_ConstructorWithDefaults1(IN, osgGA::GUIEventAdapter::MouseYOrientation, mouseYOrientation, osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS); - I_Method1(void, setEvents, IN, osgGA::EventQueue::Events &, events); - I_Method1(bool, takeEvents, IN, osgGA::EventQueue::Events &, events); - I_Method1(bool, copyEvents, IN, osgGA::EventQueue::Events &, events); - I_Method1(void, appendEvents, IN, osgGA::EventQueue::Events &, events); - I_Method1(void, addEvent, IN, osgGA::GUIEventAdapter *, event); - I_MethodWithDefaults5(void, windowResize, IN, int, x, , IN, int, y, , IN, unsigned int, width, , IN, unsigned int, height, , IN, bool, updateMouseRange, true); - I_Method1(void, mouseScroll, IN, osgGA::GUIEventAdapter::ScrollingMotion, sm); - I_Method2(void, mouseScroll2D, IN, float, x, IN, float, y); - I_Method1(void, penPressure, IN, float, pressure); - I_Method2(void, penProximity, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, IN, bool, isEntering); - I_Method2(void, mouseWarp, IN, float, x, IN, float, y); - I_Method2(void, mouseMotion, IN, float, x, IN, float, y); - I_Method3(void, mouseButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button); - I_Method3(void, mouseDoubleButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button); - I_Method3(void, mouseButtonRelease, IN, float, x, IN, float, y, IN, unsigned int, button); - I_Method1(void, keyPress, IN, osgGA::GUIEventAdapter::KeySymbol, key); - I_Method1(void, keyRelease, IN, osgGA::GUIEventAdapter::KeySymbol, key); - I_Method1(void, frame, IN, double, t); - I_Method1(void, setStartTick, IN, osg::Timer_t, tick); - I_Method0(osg::Timer_t, getStartTick); - I_Method0(double, getTime); - I_Method0(osgGA::GUIEventAdapter *, createEvent); - I_Method0(osgGA::GUIEventAdapter *, getCurrentEventState); - I_Method0(const osgGA::GUIEventAdapter *, getCurrentEventState); - I_ReadOnlyProperty(osgGA::GUIEventAdapter *, CurrentEventState); - I_WriteOnlyProperty(osgGA::EventQueue::Events &, Events); - I_Property(osg::Timer_t, StartTick); - I_ReadOnlyProperty(double, Time); + I_ConstructorWithDefaults1(IN, osgGA::GUIEventAdapter::MouseYOrientation, mouseYOrientation, osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS, + ____EventQueue__GUIEventAdapter_MouseYOrientation, + "", + ""); + I_Method1(void, setEvents, IN, osgGA::EventQueue::Events &, events, + __void__setEvents__Events_R1, + "Set events. ", + ""); + I_Method1(bool, takeEvents, IN, osgGA::EventQueue::Events &, events, + __bool__takeEvents__Events_R1, + "Take the entire event queue leaving the EventQueue' event queue empty. ", + ""); + I_Method1(bool, copyEvents, IN, osgGA::EventQueue::Events &, events, + __bool__copyEvents__Events_R1, + "Take a copy the entire event queue leaving the EventQueue' event queue intact. ", + ""); + I_Method1(void, appendEvents, IN, osgGA::EventQueue::Events &, events, + __void__appendEvents__Events_R1, + "Add events to end of event queue. ", + ""); + I_Method1(void, addEvent, IN, osgGA::GUIEventAdapter *, event, + __void__addEvent__GUIEventAdapter_P1, + "Add an event to the end of the event queue. ", + ""); + I_MethodWithDefaults5(void, windowResize, IN, int, x, , IN, int, y, , IN, unsigned int, width, , IN, unsigned int, height, , IN, bool, updateMouseRange, true, + __void__windowResize__int__int__unsigned_int__unsigned_int__bool, + "Method for adapting window resize event, placing this event on the back of the event queue. ", + ""); + I_Method1(void, mouseScroll, IN, osgGA::GUIEventAdapter::ScrollingMotion, sm, + __void__mouseScroll__GUIEventAdapter_ScrollingMotion, + "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. ", + ""); + I_Method2(void, mouseScroll2D, IN, float, x, IN, float, y, + __void__mouseScroll2D__float__float, + "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. ", + ""); + I_Method1(void, penPressure, IN, float, pressure, + __void__penPressure__float, + "Method for adapting pen pressure events, placing this event on the back og the event queue. ", + ""); + I_Method2(void, penProximity, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, IN, bool, isEntering, + __void__penProximity__GUIEventAdapter_TabletPointerType__bool, + "Method for adapting pen proximity events, placing this event on the back og the event queue. ", + ""); + I_Method2(void, mouseWarp, IN, float, x, IN, float, y, + __void__mouseWarp__float__float, + "Method for updating in response to a mouse warp. ", + "Note, just moves the mouse position without creating a new event for it. "); + I_Method2(void, mouseMotion, IN, float, x, IN, float, y, + __void__mouseMotion__float__float, + "Method for adapting mouse motion events whilst mouse buttons are pressed, placing this event on the back of the event queue. ", + ""); + I_Method3(void, mouseButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button, + __void__mouseButtonPress__float__float__unsigned_int, + "Method for adapting mouse button pressed events, placing this event on the back of the event queue. ", + "Button numbering is 1 for left mouse button, 2 for middle, 3 for right. "); + I_Method3(void, mouseDoubleButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button, + __void__mouseDoubleButtonPress__float__float__unsigned_int, + "Method for adapting mouse button pressed events, placing this event on the back of the event queue. ", + "Button numbering is 1 for left mouse button, 2 for middle, 3 for right. "); + I_Method3(void, mouseButtonRelease, IN, float, x, IN, float, y, IN, unsigned int, button, + __void__mouseButtonRelease__float__float__unsigned_int, + "Method for adapting mouse button release events, placing this event on the back of the event queue. ", + "Button numbering is 1 for left mouse button, 2 for middle, 3 for right. "); + I_Method1(void, keyPress, IN, osgGA::GUIEventAdapter::KeySymbol, key, + __void__keyPress__GUIEventAdapter_KeySymbol, + "Method for adapting keyboard press events. ", + ""); + I_Method1(void, keyRelease, IN, osgGA::GUIEventAdapter::KeySymbol, key, + __void__keyRelease__GUIEventAdapter_KeySymbol, + "Method for adapting keyboard press events. ", + ""); + I_Method1(void, frame, IN, double, t, + __void__frame__double, + "Method for adapting frame events. ", + ""); + I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + __void__setStartTick__osg_Timer_t, + "", + ""); + I_Method0(osg::Timer_t, getStartTick, + __osg_Timer_t__getStartTick, + "", + ""); + I_Method0(double, getTime, + __double__getTime, + "", + ""); + I_Method0(osgGA::GUIEventAdapter *, createEvent, + __GUIEventAdapter_P1__createEvent, + "convinience method for create an event ready to fill in. ", + "Clones the getCurrentEventState() to produce a up to date event state. "); + I_Method0(osgGA::GUIEventAdapter *, getCurrentEventState, + __GUIEventAdapter_P1__getCurrentEventState, + "", + ""); + I_Method0(const osgGA::GUIEventAdapter *, getCurrentEventState, + __C5_GUIEventAdapter_P1__getCurrentEventState, + "", + ""); + I_SimpleProperty(osgGA::GUIEventAdapter *, CurrentEventState, + __GUIEventAdapter_P1__getCurrentEventState, + 0); + I_SimpleProperty(osgGA::EventQueue::Events &, Events, + 0, + __void__setEvents__Events_R1); + I_SimpleProperty(osg::Timer_t, StartTick, + __osg_Timer_t__getStartTick, + __void__setStartTick__osg_Timer_t); + I_SimpleProperty(double, Time, + __double__getTime, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::GUIEventAdapter >) - I_Constructor0(); - I_Constructor1(IN, osgGA::GUIEventAdapter *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osgGA::GUIEventAdapter > &, rp); - I_Method0(osgGA::GUIEventAdapter *, get); - I_Method0(bool, valid); - I_Method0(osgGA::GUIEventAdapter *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osgGA::GUIEventAdapter > &, rp); - I_ReadOnlyProperty(osgGA::GUIEventAdapter *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgGA::GUIEventAdapter *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgGA::GUIEventAdapter > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgGA::GUIEventAdapter *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osgGA::GUIEventAdapter *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgGA::GUIEventAdapter > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgGA::GUIEventAdapter *, , + __T_P1__get, + 0); END_REFLECTOR STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgGA::GUIEventAdapter > >); diff --git a/src/osgWrappers/osgGA/EventVisitor.cpp b/src/osgWrappers/osgGA/EventVisitor.cpp index 109f3dfb3..9734a673c 100644 --- a/src/osgWrappers/osgGA/EventVisitor.cpp +++ b/src/osgWrappers/osgGA/EventVisitor.cpp @@ -37,30 +37,101 @@ TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventAdapter > >, osgGA::Even BEGIN_OBJECT_REFLECTOR(osgGA::EventVisitor) I_BaseType(osg::NodeVisitor); - I_Constructor0(); - I_Method1(void, setActionAdapter, IN, osgGA::GUIActionAdapter *, actionAdapter); - I_Method0(osgGA::GUIActionAdapter *, getActionAdapter); - I_Method0(const osgGA::GUIActionAdapter *, getActionAdapter); - I_Method1(void, addEvent, IN, osgGA::GUIEventAdapter *, event); - I_Method1(void, removeEvent, IN, osgGA::GUIEventAdapter *, event); - I_Method1(void, setEventHandled, IN, bool, handled); - I_Method0(bool, getEventHandled); - I_Method1(void, setEvents, IN, const osgGA::EventQueue::Events &, events); - I_Method0(osgGA::EventQueue::Events &, getEvents); - I_Method0(const osgGA::EventQueue::Events &, getEvents); - I_Method0(void, reset); - I_Method1(void, apply, IN, osg::Node &, node); - I_Method1(void, apply, IN, osg::Geode &, node); - I_Method1(void, apply, IN, osg::Billboard &, node); - I_Method1(void, apply, IN, osg::LightSource &, node); - I_Method1(void, apply, IN, osg::Group &, node); - I_Method1(void, apply, IN, osg::Transform &, node); - I_Method1(void, apply, IN, osg::Projection &, node); - I_Method1(void, apply, IN, osg::Switch &, node); - I_Method1(void, apply, IN, osg::LOD &, node); - I_Method1(void, apply, IN, osg::OccluderNode &, node); - I_Property(osgGA::GUIActionAdapter *, ActionAdapter); - I_Property(bool, EventHandled); - I_Property(const osgGA::EventQueue::Events &, Events); + I_Constructor0(____EventVisitor, + "", + ""); + I_Method1(void, setActionAdapter, IN, osgGA::GUIActionAdapter *, actionAdapter, + __void__setActionAdapter__osgGA_GUIActionAdapter_P1, + "", + ""); + I_Method0(osgGA::GUIActionAdapter *, getActionAdapter, + __osgGA_GUIActionAdapter_P1__getActionAdapter, + "", + ""); + I_Method0(const osgGA::GUIActionAdapter *, getActionAdapter, + __C5_osgGA_GUIActionAdapter_P1__getActionAdapter, + "", + ""); + I_Method1(void, addEvent, IN, osgGA::GUIEventAdapter *, event, + __void__addEvent__GUIEventAdapter_P1, + "", + ""); + I_Method1(void, removeEvent, IN, osgGA::GUIEventAdapter *, event, + __void__removeEvent__GUIEventAdapter_P1, + "", + ""); + I_Method1(void, setEventHandled, IN, bool, handled, + __void__setEventHandled__bool, + "", + ""); + I_Method0(bool, getEventHandled, + __bool__getEventHandled, + "", + ""); + I_Method1(void, setEvents, IN, const osgGA::EventQueue::Events &, events, + __void__setEvents__C5_EventQueue_Events_R1, + "", + ""); + I_Method0(osgGA::EventQueue::Events &, getEvents, + __EventQueue_Events_R1__getEvents, + "", + ""); + I_Method0(const osgGA::EventQueue::Events &, getEvents, + __C5_EventQueue_Events_R1__getEvents, + "", + ""); + I_Method0(void, reset, + __void__reset, + "Method to call to reset visitor. ", + "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); + I_Method1(void, apply, IN, osg::Node &, node, + __void__apply__osg_Node_R1, + "During traversal each type of node calls its callbacks and its children traversed. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LightSource &, node, + __void__apply__osg_LightSource_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, node, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::OccluderNode &, node, + __void__apply__osg_OccluderNode_R1, + "", + ""); + I_SimpleProperty(osgGA::GUIActionAdapter *, ActionAdapter, + __osgGA_GUIActionAdapter_P1__getActionAdapter, + __void__setActionAdapter__osgGA_GUIActionAdapter_P1); + I_SimpleProperty(bool, EventHandled, + __bool__getEventHandled, + __void__setEventHandled__bool); + I_SimpleProperty(const osgGA::EventQueue::Events &, Events, + __C5_EventQueue_Events_R1__getEvents, + __void__setEvents__C5_EventQueue_Events_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgGA/FlightManipulator.cpp b/src/osgWrappers/osgGA/FlightManipulator.cpp index 3e63cae51..b9333a9dc 100644 --- a/src/osgWrappers/osgGA/FlightManipulator.cpp +++ b/src/osgWrappers/osgGA/FlightManipulator.cpp @@ -32,34 +32,111 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgGA::FlightManipulator) I_BaseType(osgGA::MatrixManipulator); - I_Constructor0(); - I_Method0(const char *, className); - I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); - I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); - I_Method0(osg::Matrixd, getMatrix); - I_Method0(osg::Matrixd, getInverseMatrix); - I_Method1(void, setNode, IN, osg::Node *, x); - I_Method0(const osg::Node *, getNode); - I_Method0(osg::Node *, getNode); - I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); - I_Method1(void, setYawControlMode, IN, osgGA::FlightManipulator::YawControlMode, ycm); - I_Method1(void, setModelScale, IN, double, in_ms); - I_Method0(double, getModelScale); - I_Method1(void, setAcceleration, IN, double, in_acc); - I_Method0(double, getAcceleration); - I_Method1(void, setVelocity, IN, double, in_vel); - I_Method0(double, getVelocity); - I_Property(double, Acceleration); - I_WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); - I_WriteOnlyProperty(const osg::Matrixd &, ByMatrix); - I_ReadOnlyProperty(osg::Matrixd, InverseMatrix); - I_ReadOnlyProperty(osg::Matrixd, Matrix); - I_Property(double, ModelScale); - I_Property(osg::Node *, Node); - I_Property(double, Velocity); - I_WriteOnlyProperty(osgGA::FlightManipulator::YawControlMode, YawControlMode); + I_Constructor0(____FlightManipulator, + "", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + __void__setByMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + __osg_Matrixd__getInverseMatrix, + "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", + ""); + I_Method1(void, setNode, IN, osg::Node *, x, + __void__setNode__osg_Node_P1, + "Attach a node to the manipulator, automatically detaching any previously attached node. ", + "setNode(NULL) detaches previous nodes. May be ignored by manipulators which do not require a reference model."); + I_Method0(const osg::Node *, getNode, + __C5_osg_Node_P1__getNode, + "Return const node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + __osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Move the camera to the default position. ", + "May be ignored by manipulators if home functionality is not appropriate."); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Start/restart the manipulator. ", + "FIXME: what does this actually mean? Provide examples."); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setYawControlMode, IN, osgGA::FlightManipulator::YawControlMode, ycm, + __void__setYawControlMode__YawControlMode, + "Configure the Yaw control for the flight model. ", + ""); + I_Method1(void, setModelScale, IN, double, in_ms, + __void__setModelScale__double, + "", + ""); + I_Method0(double, getModelScale, + __double__getModelScale, + "", + ""); + I_Method1(void, setAcceleration, IN, double, in_acc, + __void__setAcceleration__double, + "", + ""); + I_Method0(double, getAcceleration, + __double__getAcceleration, + "", + ""); + I_Method1(void, setVelocity, IN, double, in_vel, + __void__setVelocity__double, + "", + ""); + I_Method0(double, getVelocity, + __double__getVelocity, + "", + ""); + I_SimpleProperty(double, Acceleration, + __double__getAcceleration, + __void__setAcceleration__double); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(double, ModelScale, + __double__getModelScale, + __void__setModelScale__double); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); + I_SimpleProperty(double, Velocity, + __double__getVelocity, + __void__setVelocity__double); + I_SimpleProperty(osgGA::FlightManipulator::YawControlMode, YawControlMode, + 0, + __void__setYawControlMode__YawControlMode); END_REFLECTOR diff --git a/src/osgWrappers/osgGA/GNUmakefile b/src/osgWrappers/osgGA/GNUmakefile index 7436037d1..3c69ce4fd 100644 --- a/src/osgWrappers/osgGA/GNUmakefile +++ b/src/osgWrappers/osgGA/GNUmakefile @@ -10,7 +10,6 @@ CXXFILES =\ GUIActionAdapter.cpp\ GUIEventAdapter.cpp\ GUIEventHandler.cpp\ - GraphicsWindow.cpp\ KeySwitchMatrixManipulator.cpp\ MatrixManipulator.cpp\ NodeTrackerManipulator.cpp\ diff --git a/src/osgWrappers/osgGA/GUIActionAdapter.cpp b/src/osgWrappers/osgGA/GUIActionAdapter.cpp index 6b3124308..4b94da971 100644 --- a/src/osgWrappers/osgGA/GUIActionAdapter.cpp +++ b/src/osgWrappers/osgGA/GUIActionAdapter.cpp @@ -21,9 +21,20 @@ #endif BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::GUIActionAdapter) - I_Constructor0(); - I_Method0(void, requestRedraw); - I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true); - I_Method2(void, requestWarpPointer, IN, float, x, IN, float, y); + I_Constructor0(____GUIActionAdapter, + "", + ""); + I_Method0(void, requestRedraw, + __void__requestRedraw, + "requestRedraw() requests a single redraw. ", + ""); + I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true, + __void__requestContinuousUpdate__bool, + "requestContinousUpdate(bool) is for en/disabling a throw or idle callback to be requested by a GUIEventHandler (typically a MatrixManipulator, though other GUIEventHandler's may also provide functionality). ", + "GUI toolkits can respond to this immediately by registering an idle/timed callback, or can delay setting the callback and update at their own leisure."); + I_Method2(void, requestWarpPointer, IN, float, x, IN, float, y, + __void__requestWarpPointer__float__float, + "requestWarpPointer(int,int) is requesting a repositioning of the mouse pointer to a specified x,y location on the window. ", + "This is used by some camera manipulators to initialise the mouse pointer when mouse position relative to a controls neutral mouse position is required, i.e when mimicking a aircrafts joystick."); END_REFLECTOR diff --git a/src/osgWrappers/osgGA/GUIEventAdapter.cpp b/src/osgWrappers/osgGA/GUIEventAdapter.cpp index 593ac8af6..7a5c28447 100644 --- a/src/osgWrappers/osgGA/GUIEventAdapter.cpp +++ b/src/osgWrappers/osgGA/GUIEventAdapter.cpp @@ -208,71 +208,244 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventAdapter) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Constructor1(IN, const osgGA::GUIEventAdapter &, rhs); - I_Method1(void, setEventType, IN, osgGA::GUIEventAdapter::EventType, Type); - I_Method0(osgGA::GUIEventAdapter::EventType, getEventType); - I_Method1(void, setTime, IN, double, time); - I_Method0(double, getTime); - I_Method0(double, time); - I_MethodWithDefaults5(void, setWindowRectangle, IN, int, x, , IN, int, y, , IN, unsigned int, width, , IN, unsigned int, height, , IN, bool, updateMouseRange, true); - I_Method0(int, getWindowX); - I_Method0(int, getWindowY); - I_Method0(unsigned int, getWindowWidth); - I_Method0(unsigned int, getWindowHeight); - I_Method1(void, setKey, IN, int, key); - I_Method0(int, getKey); - I_Method1(void, setButton, IN, int, button); - I_Method0(int, getButton); - I_Method4(void, setInputRange, IN, float, Xmin, IN, float, Ymin, IN, float, Xmax, IN, float, Ymax); - I_Method0(float, getXmin); - I_Method0(float, getXmax); - I_Method0(float, getYmin); - I_Method0(float, getYmax); - I_Method1(void, setX, IN, float, x); - I_Method0(float, getX); - I_Method1(void, setY, IN, float, y); - I_Method0(float, getY); - I_Method1(void, setButtonMask, IN, unsigned int, mask); - I_Method0(unsigned int, getButtonMask); - I_Method1(void, setModKeyMask, IN, unsigned int, mask); - I_Method0(unsigned int, getModKeyMask); - I_Method0(float, getPenPressure); - I_Method1(void, setPenPressure, IN, float, pressure); - I_Method0(osgGA::GUIEventAdapter::TabletPointerType, getTabletPointerType); - I_Method1(void, setTabletPointerType, IN, osgGA::GUIEventAdapter::TabletPointerType, pt); - I_Method1(void, setScrollingMotion, IN, osgGA::GUIEventAdapter::ScrollingMotion, motion); - I_Method0(float, getScrollingDeltaX); - I_Method0(float, getScrollingDeltaY); - I_Method2(void, setScrollingMotionDelta, IN, float, x, IN, float, y); - I_Method0(osgGA::GUIEventAdapter::ScrollingMotion, getScrollingMotion); - I_Method0(float, getXnormalized); - I_Method0(float, getYnormalized); - I_Method1(void, setMouseYOrientation, IN, osgGA::GUIEventAdapter::MouseYOrientation, myo); - I_Method0(osgGA::GUIEventAdapter::MouseYOrientation, getMouseYOrientation); - I_Property(int, Button); - I_Property(unsigned int, ButtonMask); - I_Property(osgGA::GUIEventAdapter::EventType, EventType); - I_Property(int, Key); - I_Property(unsigned int, ModKeyMask); - I_Property(osgGA::GUIEventAdapter::MouseYOrientation, MouseYOrientation); - I_Property(float, PenPressure); - I_ReadOnlyProperty(float, ScrollingDeltaX); - I_ReadOnlyProperty(float, ScrollingDeltaY); - I_Property(osgGA::GUIEventAdapter::ScrollingMotion, ScrollingMotion); - I_Property(osgGA::GUIEventAdapter::TabletPointerType, TabletPointerType); - I_Property(double, Time); - I_ReadOnlyProperty(unsigned int, WindowHeight); - I_ReadOnlyProperty(unsigned int, WindowWidth); - I_ReadOnlyProperty(int, WindowX); - I_ReadOnlyProperty(int, WindowY); - I_Property(float, X); - I_ReadOnlyProperty(float, Xmax); - I_ReadOnlyProperty(float, Xmin); - I_ReadOnlyProperty(float, Xnormalized); - I_Property(float, Y); - I_ReadOnlyProperty(float, Ymax); - I_ReadOnlyProperty(float, Ymin); - I_ReadOnlyProperty(float, Ynormalized); + I_Constructor0(____GUIEventAdapter, + "", + ""); + I_Constructor1(IN, const osgGA::GUIEventAdapter &, rhs, + ____GUIEventAdapter__C5_GUIEventAdapter_R1, + "", + ""); + I_Method1(void, setEventType, IN, osgGA::GUIEventAdapter::EventType, Type, + __void__setEventType__EventType, + "Get the Type of the GUI GUIEventAdapter. ", + ""); + I_Method0(osgGA::GUIEventAdapter::EventType, getEventType, + __EventType__getEventType, + "Get the Type of the GUI GUIEventAdapter. ", + ""); + I_Method1(void, setTime, IN, double, time, + __void__setTime__double, + "set time in seconds of event. ", + ""); + I_Method0(double, getTime, + __double__getTime, + "get time in seconds of event. ", + ""); + I_Method0(double, time, + __double__time, + "deprecated function for getting time of event. ", + ""); + I_MethodWithDefaults5(void, setWindowRectangle, IN, int, x, , IN, int, y, , IN, unsigned int, width, , IN, unsigned int, height, , IN, bool, updateMouseRange, true, + __void__setWindowRectangle__int__int__unsigned_int__unsigned_int__bool, + "set window rectangle. ", + ""); + I_Method0(int, getWindowX, + __int__getWindowX, + "get window x origin. ", + ""); + I_Method0(int, getWindowY, + __int__getWindowY, + "get window y origin. ", + ""); + I_Method0(unsigned int, getWindowWidth, + __unsigned_int__getWindowWidth, + "get window width. ", + ""); + I_Method0(unsigned int, getWindowHeight, + __unsigned_int__getWindowHeight, + "get window height. ", + ""); + I_Method1(void, setKey, IN, int, key, + __void__setKey__int, + "set key pressed. ", + ""); + I_Method0(int, getKey, + __int__getKey, + "get key pressed, return -1 if inappropriate for this GUIEventAdapter. ", + ""); + I_Method1(void, setButton, IN, int, button, + __void__setButton__int, + "set button pressed/released. ", + ""); + I_Method0(int, getButton, + __int__getButton, + "button pressed/released, return -1 if inappropriate for this GUIEventAdapter. ", + ""); + I_Method4(void, setInputRange, IN, float, Xmin, IN, float, Ymin, IN, float, Xmax, IN, float, Ymax, + __void__setInputRange__float__float__float__float, + "set mouse input range. ", + ""); + I_Method0(float, getXmin, + __float__getXmin, + "get mouse minimum x. ", + ""); + I_Method0(float, getXmax, + __float__getXmax, + "get mouse maximum x. ", + ""); + I_Method0(float, getYmin, + __float__getYmin, + "get mmouse minimum y. ", + ""); + I_Method0(float, getYmax, + __float__getYmax, + "get mouse maYimum y. ", + ""); + I_Method1(void, setX, IN, float, x, + __void__setX__float, + "set current mouse x position. ", + ""); + I_Method0(float, getX, + __float__getX, + "get current mouse x position. ", + ""); + I_Method1(void, setY, IN, float, y, + __void__setY__float, + "set current mouse y position. ", + ""); + I_Method0(float, getY, + __float__getY, + "get current mouse y position. ", + ""); + I_Method1(void, setButtonMask, IN, unsigned int, mask, + __void__setButtonMask__unsigned_int, + "set current mouse button state ", + ""); + I_Method0(unsigned int, getButtonMask, + __unsigned_int__getButtonMask, + "get current mouse button state ", + ""); + I_Method1(void, setModKeyMask, IN, unsigned int, mask, + __void__setModKeyMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getModKeyMask, + __unsigned_int__getModKeyMask, + "", + ""); + I_Method0(float, getPenPressure, + __float__getPenPressure, + "get the pressure, from a tablet input device (range 0 - 1) ", + ""); + I_Method1(void, setPenPressure, IN, float, pressure, + __void__setPenPressure__float, + "sets the pressure from a tablet ", + ""); + I_Method0(osgGA::GUIEventAdapter::TabletPointerType, getTabletPointerType, + __TabletPointerType__getTabletPointerType, + "get the current used tablet pointer type ", + ""); + I_Method1(void, setTabletPointerType, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, + __void__setTabletPointerType__TabletPointerType, + "set the current used tablet pointer type ", + ""); + I_Method1(void, setScrollingMotion, IN, osgGA::GUIEventAdapter::ScrollingMotion, motion, + __void__setScrollingMotion__ScrollingMotion, + "", + ""); + I_Method0(float, getScrollingDeltaX, + __float__getScrollingDeltaX, + "get the scrolling x-delta ", + ""); + I_Method0(float, getScrollingDeltaY, + __float__getScrollingDeltaY, + "get the scrolling y-delta ", + ""); + I_Method2(void, setScrollingMotionDelta, IN, float, x, IN, float, y, + __void__setScrollingMotionDelta__float__float, + "sets the scrolling delta to x,y and the type of scrolling to SCROLL_2D ", + ""); + I_Method0(osgGA::GUIEventAdapter::ScrollingMotion, getScrollingMotion, + __ScrollingMotion__getScrollingMotion, + "", + ""); + I_Method0(float, getXnormalized, + __float__getXnormalized, + "return the getX() value normalised to the range of -1 to 1. ", + "-1 would be the left hand side of the window. 0.0 would be the middle of the window. +1 would be the right hand side of the window. "); + I_Method0(float, getYnormalized, + __float__getYnormalized, + "return the getY() value normalised to the range of -1 to 1. ", + "-1 would be the bottom of the window. 0.0 would be the middle of the window. +1 would be the top of the window. "); + I_Method1(void, setMouseYOrientation, IN, osgGA::GUIEventAdapter::MouseYOrientation, myo, + __void__setMouseYOrientation__MouseYOrientation, + "", + ""); + I_Method0(osgGA::GUIEventAdapter::MouseYOrientation, getMouseYOrientation, + __MouseYOrientation__getMouseYOrientation, + "", + ""); + I_SimpleProperty(int, Button, + __int__getButton, + __void__setButton__int); + I_SimpleProperty(unsigned int, ButtonMask, + __unsigned_int__getButtonMask, + __void__setButtonMask__unsigned_int); + I_SimpleProperty(osgGA::GUIEventAdapter::EventType, EventType, + __EventType__getEventType, + __void__setEventType__EventType); + I_SimpleProperty(int, Key, + __int__getKey, + __void__setKey__int); + I_SimpleProperty(unsigned int, ModKeyMask, + __unsigned_int__getModKeyMask, + __void__setModKeyMask__unsigned_int); + I_SimpleProperty(osgGA::GUIEventAdapter::MouseYOrientation, MouseYOrientation, + __MouseYOrientation__getMouseYOrientation, + __void__setMouseYOrientation__MouseYOrientation); + I_SimpleProperty(float, PenPressure, + __float__getPenPressure, + __void__setPenPressure__float); + I_SimpleProperty(float, ScrollingDeltaX, + __float__getScrollingDeltaX, + 0); + I_SimpleProperty(float, ScrollingDeltaY, + __float__getScrollingDeltaY, + 0); + I_SimpleProperty(osgGA::GUIEventAdapter::ScrollingMotion, ScrollingMotion, + __ScrollingMotion__getScrollingMotion, + __void__setScrollingMotion__ScrollingMotion); + I_SimpleProperty(osgGA::GUIEventAdapter::TabletPointerType, TabletPointerType, + __TabletPointerType__getTabletPointerType, + __void__setTabletPointerType__TabletPointerType); + I_SimpleProperty(double, Time, + __double__getTime, + __void__setTime__double); + I_SimpleProperty(unsigned int, WindowHeight, + __unsigned_int__getWindowHeight, + 0); + I_SimpleProperty(unsigned int, WindowWidth, + __unsigned_int__getWindowWidth, + 0); + I_SimpleProperty(int, WindowX, + __int__getWindowX, + 0); + I_SimpleProperty(int, WindowY, + __int__getWindowY, + 0); + I_SimpleProperty(float, X, + __float__getX, + __void__setX__float); + I_SimpleProperty(float, Xmax, + __float__getXmax, + 0); + I_SimpleProperty(float, Xmin, + __float__getXmin, + 0); + I_SimpleProperty(float, Xnormalized, + __float__getXnormalized, + 0); + I_SimpleProperty(float, Y, + __float__getY, + __void__setY__float); + I_SimpleProperty(float, Ymax, + __float__getYmax, + 0); + I_SimpleProperty(float, Ymin, + __float__getYmin, + 0); + I_SimpleProperty(float, Ynormalized, + __float__getYnormalized, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgGA/GUIEventHandler.cpp b/src/osgWrappers/osgGA/GUIEventHandler.cpp index da1e6391a..9066e02cd 100644 --- a/src/osgWrappers/osgGA/GUIEventHandler.cpp +++ b/src/osgWrappers/osgGA/GUIEventHandler.cpp @@ -31,21 +31,58 @@ BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventHandler) I_BaseType(osg::NodeCallback); I_BaseType(osg::Drawable::EventCallback); - I_Constructor0(); - I_Constructor2(IN, const osgGA::GUIEventHandler &, x, IN, const osg::CopyOp &, x); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method2(void, event, IN, osg::NodeVisitor *, nv, IN, osg::Drawable *, drawable); - I_Method4(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, IN, osg::Object *, x, IN, osg::NodeVisitor *, x); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, x); + I_Constructor0(____GUIEventHandler, + "", + ""); + I_Constructor2(IN, const osgGA::GUIEventHandler &, x, IN, const osg::CopyOp &, x, + ____GUIEventHandler__C5_GUIEventHandler_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method2(void, event, IN, osg::NodeVisitor *, nv, IN, osg::Drawable *, drawable, + __void__event__osg_NodeVisitor_P1__osg_Drawable_P1, + "Event traversal drawable callback method. ", + ""); + I_Method4(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, IN, osg::Object *, x, IN, osg::NodeVisitor *, x, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, x, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgGA::GUIEventHandlerVisitor) - I_Constructor0(); - I_Method1(void, visit, IN, osgGA::GUIEventHandler &, x); + I_Constructor0(____GUIEventHandlerVisitor, + "", + ""); + I_Method1(void, visit, IN, osgGA::GUIEventHandler &, x, + __void__visit__GUIEventHandler_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp b/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp index fdb4e50c1..303876c1b 100644 --- a/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp +++ b/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp @@ -34,61 +34,202 @@ TYPE_NAME_ALIAS(std::map< int COMMA osgGA::KeySwitchMatrixManipulator::NamedMan BEGIN_OBJECT_REFLECTOR(osgGA::KeySwitchMatrixManipulator) I_BaseType(osgGA::MatrixManipulator); - I_Constructor0(); - I_Method0(const char *, className); - I_Method3(void, addMatrixManipulator, IN, int, key, IN, std::string, name, IN, osgGA::MatrixManipulator *, cm); - I_Method1(void, addNumberedMatrixManipulator, IN, osgGA::MatrixManipulator *, cm); - I_Method0(unsigned int, getNumMatrixManipulators); - I_Method1(void, selectMatrixManipulator, IN, unsigned int, num); - I_Method0(osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap); - I_Method0(const osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap); - I_Method0(osgGA::MatrixManipulator *, getCurrentMatrixManipulator); - I_Method0(const osgGA::MatrixManipulator *, getCurrentMatrixManipulator); - I_Method1(osgGA::MatrixManipulator *, getMatrixManipulatorWithIndex, IN, unsigned int, key); - I_Method1(const osgGA::MatrixManipulator *, getMatrixManipulatorWithIndex, IN, unsigned int, key); - I_Method1(osgGA::MatrixManipulator *, getMatrixManipulatorWithKey, IN, unsigned int, key); - I_Method1(const osgGA::MatrixManipulator *, getMatrixManipulatorWithKey, IN, unsigned int, key); - I_Method1(void, setMinimumDistance, IN, float, minimumDistance); - I_Method1(void, setCoordinateFrameCallback, IN, osgGA::MatrixManipulator::CoordinateFrameCallback *, cb); - I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); - I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); - I_Method0(osg::Matrixd, getMatrix); - I_Method0(osg::Matrixd, getInverseMatrix); - I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode); - I_Method0(float, getFusionDistanceValue); - I_Method1(void, setNode, IN, osg::Node *, n); - I_Method0(const osg::Node *, getNode); - I_Method0(osg::Node *, getNode); - I_MethodWithDefaults4(void, setHomePosition, IN, const osg::Vec3d &, eye, , IN, const osg::Vec3d &, center, , IN, const osg::Vec3d &, up, , IN, bool, autoComputeHomePosition, false); - I_Method1(void, setAutoComputeHomePosition, IN, bool, flag); - I_Method0(void, computeHomePosition); - I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa); - I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); - I_WriteOnlyProperty(bool, AutoComputeHomePosition); - I_WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); - I_WriteOnlyProperty(const osg::Matrixd &, ByMatrix); - I_WriteOnlyProperty(osgGA::MatrixManipulator::CoordinateFrameCallback *, CoordinateFrameCallback); - I_ReadOnlyProperty(osgGA::MatrixManipulator *, CurrentMatrixManipulator); - I_ReadOnlyProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode); - I_ReadOnlyProperty(float, FusionDistanceValue); - I_ReadOnlyProperty(osg::Matrixd, InverseMatrix); - I_ReadOnlyProperty(osgGA::KeySwitchMatrixManipulator::KeyManipMap &, KeyManipMap); - I_ReadOnlyProperty(osg::Matrixd, Matrix); - I_WriteOnlyProperty(float, MinimumDistance); - I_Property(osg::Node *, Node); + I_Constructor0(____KeySwitchMatrixManipulator, + "", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method3(void, addMatrixManipulator, IN, int, key, IN, std::string, name, IN, osgGA::MatrixManipulator *, cm, + __void__addMatrixManipulator__int__std_string__MatrixManipulator_P1, + "Add a camera manipulator with an associated name, and a key to trigger the switch,. ", + ""); + I_Method1(void, addNumberedMatrixManipulator, IN, osgGA::MatrixManipulator *, cm, + __void__addNumberedMatrixManipulator__MatrixManipulator_P1, + "Add a camera manipulator with an autogenerated keybinding which is '1' + previous number of camera's registerd. ", + ""); + I_Method0(unsigned int, getNumMatrixManipulators, + __unsigned_int__getNumMatrixManipulators, + "", + ""); + I_Method1(void, selectMatrixManipulator, IN, unsigned int, num, + __void__selectMatrixManipulator__unsigned_int, + "", + ""); + I_Method0(osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap, + __KeyManipMap_R1__getKeyManipMap, + "Get the complete list of manipulators attached to this keyswitch manipulator. ", + ""); + I_Method0(const osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap, + __C5_KeyManipMap_R1__getKeyManipMap, + "Get the const complete list of manipulators attached to this keyswitch manipulator. ", + ""); + I_Method0(osgGA::MatrixManipulator *, getCurrentMatrixManipulator, + __MatrixManipulator_P1__getCurrentMatrixManipulator, + "Get the current active manipulators. ", + ""); + I_Method0(const osgGA::MatrixManipulator *, getCurrentMatrixManipulator, + __C5_MatrixManipulator_P1__getCurrentMatrixManipulator, + "Get the const current active manipulators. ", + ""); + I_Method1(osgGA::MatrixManipulator *, getMatrixManipulatorWithIndex, IN, unsigned int, key, + __MatrixManipulator_P1__getMatrixManipulatorWithIndex__unsigned_int, + "Get manipulator assigned to a specified index. ", + ""); + I_Method1(const osgGA::MatrixManipulator *, getMatrixManipulatorWithIndex, IN, unsigned int, key, + __C5_MatrixManipulator_P1__getMatrixManipulatorWithIndex__unsigned_int, + "Get const manipulator assigned to a specified index. ", + ""); + I_Method1(osgGA::MatrixManipulator *, getMatrixManipulatorWithKey, IN, unsigned int, key, + __MatrixManipulator_P1__getMatrixManipulatorWithKey__unsigned_int, + "Get manipulator assigned to a specified key. ", + ""); + I_Method1(const osgGA::MatrixManipulator *, getMatrixManipulatorWithKey, IN, unsigned int, key, + __C5_MatrixManipulator_P1__getMatrixManipulatorWithKey__unsigned_int, + "Get const manipulator assigned to a specified key. ", + ""); + I_Method1(void, setMinimumDistance, IN, float, minimumDistance, + __void__setMinimumDistance__float, + "set the minimum distance (as ratio) the eye point can be zoomed in towards the center before the center is pushed forward. ", + ""); + I_Method1(void, setCoordinateFrameCallback, IN, osgGA::MatrixManipulator::CoordinateFrameCallback *, cb, + __void__setCoordinateFrameCallback__CoordinateFrameCallback_P1, + "set the coordinate frame which callback tells the manipulator which way is up, east and north. ", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + __void__setByMatrix__C5_osg_Matrixd_R1, + "Set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + __osg_Matrixd__getInverseMatrix, + "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", + ""); + I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setNode, IN, osg::Node *, n, + __void__setNode__osg_Node_P1, + "Attach a node to the manipulator, automatically detaching any previously attached node. ", + "setNode(NULL) detaches previous nodes. May be ignored by manipulators which do not require a reference model."); + I_Method0(const osg::Node *, getNode, + __C5_osg_Node_P1__getNode, + "Return const node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + __osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_MethodWithDefaults4(void, setHomePosition, IN, const osg::Vec3d &, eye, , IN, const osg::Vec3d &, center, , IN, const osg::Vec3d &, up, , IN, bool, autoComputeHomePosition, false, + __void__setHomePosition__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__bool, + "Manually set the home position, and set the automatic compute of home position. ", + ""); + I_Method1(void, setAutoComputeHomePosition, IN, bool, flag, + __void__setAutoComputeHomePosition__bool, + "Set whether the automatic compute of the home position is enabled. ", + ""); + I_Method0(void, computeHomePosition, + __void__computeHomePosition, + "Compute the home position. ", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Move the camera to the default position. ", + "May be ignored by manipulators if home functionality is not appropriate."); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Start/restart the manipulator. ", + "FIXME: what does this actually mean? Provide examples."); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_SimpleProperty(bool, AutoComputeHomePosition, + 0, + __void__setAutoComputeHomePosition__bool); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osgGA::MatrixManipulator::CoordinateFrameCallback *, CoordinateFrameCallback, + 0, + __void__setCoordinateFrameCallback__CoordinateFrameCallback_P1); + I_SimpleProperty(osgGA::MatrixManipulator *, CurrentMatrixManipulator, + __MatrixManipulator_P1__getCurrentMatrixManipulator, + 0); + I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + 0); + I_SimpleProperty(float, FusionDistanceValue, + __float__getFusionDistanceValue, + 0); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osgGA::KeySwitchMatrixManipulator::KeyManipMap &, KeyManipMap, + __KeyManipMap_R1__getKeyManipMap, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(float, MinimumDistance, + 0, + __void__setMinimumDistance__float); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::MatrixManipulator >) - I_Constructor0(); - I_Constructor1(IN, osgGA::MatrixManipulator *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osgGA::MatrixManipulator > &, rp); - I_Method0(osgGA::MatrixManipulator *, get); - I_Method0(bool, valid); - I_Method0(osgGA::MatrixManipulator *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osgGA::MatrixManipulator > &, rp); - I_ReadOnlyProperty(osgGA::MatrixManipulator *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgGA::MatrixManipulator *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgGA::MatrixManipulator > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgGA::MatrixManipulator *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osgGA::MatrixManipulator *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgGA::MatrixManipulator > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgGA::MatrixManipulator *, , + __T_P1__get, + 0); END_REFLECTOR STD_MAP_REFLECTOR(std::map< int COMMA osgGA::KeySwitchMatrixManipulator::NamedManipulator >); diff --git a/src/osgWrappers/osgGA/MatrixManipulator.cpp b/src/osgWrappers/osgGA/MatrixManipulator.cpp index cf4742263..75875ef46 100644 --- a/src/osgWrappers/osgGA/MatrixManipulator.cpp +++ b/src/osgWrappers/osgGA/MatrixManipulator.cpp @@ -29,52 +29,169 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator) I_BaseType(osgGA::GUIEventHandler); - I_Method0(const char *, className); - I_Method1(void, setMinimumDistance, IN, float, minimumDistance); - I_Method0(float, getMinimumDistance); - I_Method1(void, setCoordinateFrameCallback, IN, osgGA::MatrixManipulator::CoordinateFrameCallback *, cb); - I_Method0(osgGA::MatrixManipulator::CoordinateFrameCallback *, getCoordinateFrameCallback); - I_Method0(const osgGA::MatrixManipulator::CoordinateFrameCallback *, getCoordinateFrameCallback); - I_Method1(osg::CoordinateFrame, getCoordinateFrame, IN, const osg::Vec3d &, position); - I_Method1(osg::Vec3d, getSideVector, IN, const osg::CoordinateFrame &, cf); - I_Method1(osg::Vec3d, getFrontVector, IN, const osg::CoordinateFrame &, cf); - I_Method1(osg::Vec3d, getUpVector, IN, const osg::CoordinateFrame &, cf); - I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); - I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); - I_Method0(osg::Matrixd, getMatrix); - I_Method0(osg::Matrixd, getInverseMatrix); - I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode); - I_Method0(float, getFusionDistanceValue); - I_Method1(void, setIntersectTraversalMask, IN, unsigned int, mask); - I_Method0(unsigned int, getIntersectTraversalMask); - I_Method1(void, setNode, IN, osg::Node *, x); - I_Method0(const osg::Node *, getNode); - I_Method0(osg::Node *, getNode); - I_MethodWithDefaults4(void, setHomePosition, IN, const osg::Vec3d &, eye, , IN, const osg::Vec3d &, center, , IN, const osg::Vec3d &, up, , IN, bool, autoComputeHomePosition, false); - I_Method3(void, getHomePosition, IN, osg::Vec3d &, eye, IN, osg::Vec3d &, center, IN, osg::Vec3d &, up); - I_Method1(void, setAutoComputeHomePosition, IN, bool, flag); - I_Method0(bool, getAutoComputeHomePosition); - I_Method0(void, computeHomePosition); - I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x); - I_Method1(void, home, IN, double, x); - I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Property(bool, AutoComputeHomePosition); - I_WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); - I_WriteOnlyProperty(const osg::Matrixd &, ByMatrix); - I_Property(osgGA::MatrixManipulator::CoordinateFrameCallback *, CoordinateFrameCallback); - I_ReadOnlyProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode); - I_ReadOnlyProperty(float, FusionDistanceValue); - I_Property(unsigned int, IntersectTraversalMask); - I_ReadOnlyProperty(osg::Matrixd, InverseMatrix); - I_ReadOnlyProperty(osg::Matrixd, Matrix); - I_Property(float, MinimumDistance); - I_Property(osg::Node *, Node); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setMinimumDistance, IN, float, minimumDistance, + __void__setMinimumDistance__float, + "set the minimum distance (as ratio) the eye point can be zoomed in towards the center before the center is pushed forward. ", + ""); + I_Method0(float, getMinimumDistance, + __float__getMinimumDistance, + "get the minimum distance (as ratio) the eye point can be zoomed in ", + ""); + I_Method1(void, setCoordinateFrameCallback, IN, osgGA::MatrixManipulator::CoordinateFrameCallback *, cb, + __void__setCoordinateFrameCallback__CoordinateFrameCallback_P1, + "set the coordinate frame which callback tells the manipulator which way is up, east and north. ", + ""); + I_Method0(osgGA::MatrixManipulator::CoordinateFrameCallback *, getCoordinateFrameCallback, + __CoordinateFrameCallback_P1__getCoordinateFrameCallback, + "get the coordinate frame callback which tells the manipulator which way is up, east and north. ", + ""); + I_Method0(const osgGA::MatrixManipulator::CoordinateFrameCallback *, getCoordinateFrameCallback, + __C5_CoordinateFrameCallback_P1__getCoordinateFrameCallback, + "get the coordinate frame callback which tells the manipulator which way is up, east and north. ", + ""); + I_Method1(osg::CoordinateFrame, getCoordinateFrame, IN, const osg::Vec3d &, position, + __osg_CoordinateFrame__getCoordinateFrame__C5_osg_Vec3d_R1, + "get the coordinate frame. ", + ""); + I_Method1(osg::Vec3d, getSideVector, IN, const osg::CoordinateFrame &, cf, + __osg_Vec3d__getSideVector__C5_osg_CoordinateFrame_R1, + "", + ""); + I_Method1(osg::Vec3d, getFrontVector, IN, const osg::CoordinateFrame &, cf, + __osg_Vec3d__getFrontVector__C5_osg_CoordinateFrame_R1, + "", + ""); + I_Method1(osg::Vec3d, getUpVector, IN, const osg::CoordinateFrame &, cf, + __osg_Vec3d__getUpVector__C5_osg_CoordinateFrame_R1, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + __void__setByMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + __osg_Matrixd__getInverseMatrix, + "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", + ""); + I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setIntersectTraversalMask, IN, unsigned int, mask, + __void__setIntersectTraversalMask__unsigned_int, + "Set the mask to use when set up intersection traversal such as used in manipulators that follow terrain or have collision detection. ", + "The intersection traversal mask is useful for controlling what parts of the scene graph should be used for intersection purposes. "); + I_Method0(unsigned int, getIntersectTraversalMask, + __unsigned_int__getIntersectTraversalMask, + "Get the mask to use when set up intersection traversal such as used in manipulators that follow terrain or have collision detection. ", + ""); + I_Method1(void, setNode, IN, osg::Node *, x, + __void__setNode__osg_Node_P1, + "Attach a node to the manipulator, automatically detaching any previously attached node. ", + "setNode(NULL) detaches previous nodes. May be ignored by manipulators which do not require a reference model."); + I_Method0(const osg::Node *, getNode, + __C5_osg_Node_P1__getNode, + "Return const node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + __osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_MethodWithDefaults4(void, setHomePosition, IN, const osg::Vec3d &, eye, , IN, const osg::Vec3d &, center, , IN, const osg::Vec3d &, up, , IN, bool, autoComputeHomePosition, false, + __void__setHomePosition__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__bool, + "Manually set the home position, and set the automatic compute of home position. ", + ""); + I_Method3(void, getHomePosition, IN, osg::Vec3d &, eye, IN, osg::Vec3d &, center, IN, osg::Vec3d &, up, + __void__getHomePosition__osg_Vec3d_R1__osg_Vec3d_R1__osg_Vec3d_R1, + "Get the mnaully set home position. ", + ""); + I_Method1(void, setAutoComputeHomePosition, IN, bool, flag, + __void__setAutoComputeHomePosition__bool, + "Set whether the automatic compute of the home position is enabled. ", + ""); + I_Method0(bool, getAutoComputeHomePosition, + __bool__getAutoComputeHomePosition, + "Get whether the automatic compute of the home position is enabled. ", + ""); + I_Method0(void, computeHomePosition, + __void__computeHomePosition, + "Compute the home position. ", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Move the camera to the default position. ", + "May be ignored by manipulators if home functionality is not appropriate."); + I_Method1(void, home, IN, double, x, + __void__home__double, + "Move the camera to the default position. ", + "This version does not require GUIEventAdapter and GUIActionAdapter so may be called from somewhere other than a handle() method in GUIEventHandler. Application must be aware of implications."); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Start/restart the manipulator. ", + "FIXME: what does this actually mean? Provide examples."); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_SimpleProperty(bool, AutoComputeHomePosition, + __bool__getAutoComputeHomePosition, + __void__setAutoComputeHomePosition__bool); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osgGA::MatrixManipulator::CoordinateFrameCallback *, CoordinateFrameCallback, + __CoordinateFrameCallback_P1__getCoordinateFrameCallback, + __void__setCoordinateFrameCallback__CoordinateFrameCallback_P1); + I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + 0); + I_SimpleProperty(float, FusionDistanceValue, + __float__getFusionDistanceValue, + 0); + I_SimpleProperty(unsigned int, IntersectTraversalMask, + __unsigned_int__getIntersectTraversalMask, + __void__setIntersectTraversalMask__unsigned_int); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(float, MinimumDistance, + __float__getMinimumDistance, + __void__setMinimumDistance__float); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator::CoordinateFrameCallback) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method1(osg::CoordinateFrame, getCoordinateFrame, IN, const osg::Vec3d &, position); + I_Constructor0(____CoordinateFrameCallback, + "", + ""); + I_Method1(osg::CoordinateFrame, getCoordinateFrame, IN, const osg::Vec3d &, position, + __osg_CoordinateFrame__getCoordinateFrame__C5_osg_Vec3d_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp b/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp index b62f899e5..8a366fcb5 100644 --- a/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp +++ b/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp @@ -41,42 +41,141 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgGA::NodeTrackerManipulator) I_BaseType(osgGA::MatrixManipulator); - I_Constructor0(); - I_Method0(const char *, className); - I_Method1(void, setTrackNodePath, IN, const osg::NodePath &, nodePath); - I_Method1(void, setTrackNodePath, IN, const osgGA::NodeTrackerManipulator::ObserveredNodePath &, nodePath); - I_Method0(osgGA::NodeTrackerManipulator::ObserveredNodePath &, getTrackNodePath); - I_Method1(void, setTrackNode, IN, osg::Node *, node); - I_Method0(osg::Node *, getTrackNode); - I_Method0(const osg::Node *, getTrackNode); - I_Method1(void, setTrackerMode, IN, osgGA::NodeTrackerManipulator::TrackerMode, mode); - I_Method0(osgGA::NodeTrackerManipulator::TrackerMode, getTrackerMode); - I_Method1(void, setRotationMode, IN, osgGA::NodeTrackerManipulator::RotationMode, mode); - I_Method0(osgGA::NodeTrackerManipulator::RotationMode, getRotationMode); - I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); - I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); - I_Method0(osg::Matrixd, getMatrix); - I_Method0(osg::Matrixd, getInverseMatrix); - I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode); - I_Method0(float, getFusionDistanceValue); - I_Method1(void, setNode, IN, osg::Node *, x); - I_Method0(const osg::Node *, getNode); - I_Method0(osg::Node *, getNode); - I_Method0(void, computeHomePosition); - I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); - I_WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); - I_WriteOnlyProperty(const osg::Matrixd &, ByMatrix); - I_ReadOnlyProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode); - I_ReadOnlyProperty(float, FusionDistanceValue); - I_ReadOnlyProperty(osg::Matrixd, InverseMatrix); - I_ReadOnlyProperty(osg::Matrixd, Matrix); - I_Property(osg::Node *, Node); - I_Property(osgGA::NodeTrackerManipulator::RotationMode, RotationMode); - I_Property(osg::Node *, TrackNode); - I_ReadOnlyProperty(osgGA::NodeTrackerManipulator::ObserveredNodePath &, TrackNodePath); - I_Property(osgGA::NodeTrackerManipulator::TrackerMode, TrackerMode); + I_Constructor0(____NodeTrackerManipulator, + "", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setTrackNodePath, IN, const osg::NodePath &, nodePath, + __void__setTrackNodePath__C5_osg_NodePath_R1, + "", + ""); + I_Method1(void, setTrackNodePath, IN, const osgGA::NodeTrackerManipulator::ObserveredNodePath &, nodePath, + __void__setTrackNodePath__C5_ObserveredNodePath_R1, + "", + ""); + I_Method0(osgGA::NodeTrackerManipulator::ObserveredNodePath &, getTrackNodePath, + __ObserveredNodePath_R1__getTrackNodePath, + "", + ""); + I_Method1(void, setTrackNode, IN, osg::Node *, node, + __void__setTrackNode__osg_Node_P1, + "", + ""); + I_Method0(osg::Node *, getTrackNode, + __osg_Node_P1__getTrackNode, + "", + ""); + I_Method0(const osg::Node *, getTrackNode, + __C5_osg_Node_P1__getTrackNode, + "", + ""); + I_Method1(void, setTrackerMode, IN, osgGA::NodeTrackerManipulator::TrackerMode, mode, + __void__setTrackerMode__TrackerMode, + "", + ""); + I_Method0(osgGA::NodeTrackerManipulator::TrackerMode, getTrackerMode, + __TrackerMode__getTrackerMode, + "", + ""); + I_Method1(void, setRotationMode, IN, osgGA::NodeTrackerManipulator::RotationMode, mode, + __void__setRotationMode__RotationMode, + "", + ""); + I_Method0(osgGA::NodeTrackerManipulator::RotationMode, getRotationMode, + __RotationMode__getRotationMode, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + __void__setByMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + __osg_Matrixd__getInverseMatrix, + "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", + ""); + I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setNode, IN, osg::Node *, x, + __void__setNode__osg_Node_P1, + "Attach a node to the manipulator. ", + "Automatically detaches previously attached node. setNode(NULL) detaches previously nodes. Is ignored by manipulators which do not require a reference model. "); + I_Method0(const osg::Node *, getNode, + __C5_osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + __osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method0(void, computeHomePosition, + __void__computeHomePosition, + "Compute the home position. ", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Move the camera to the default position. ", + "May be ignored by manipulators if home functionality is not appropriate. "); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Start/restart the manipulator. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + 0); + I_SimpleProperty(float, FusionDistanceValue, + __float__getFusionDistanceValue, + 0); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); + I_SimpleProperty(osgGA::NodeTrackerManipulator::RotationMode, RotationMode, + __RotationMode__getRotationMode, + __void__setRotationMode__RotationMode); + I_SimpleProperty(osg::Node *, TrackNode, + __osg_Node_P1__getTrackNode, + __void__setTrackNode__osg_Node_P1); + I_SimpleProperty(osgGA::NodeTrackerManipulator::ObserveredNodePath &, TrackNodePath, + __ObserveredNodePath_R1__getTrackNodePath, + 0); + I_SimpleProperty(osgGA::NodeTrackerManipulator::TrackerMode, TrackerMode, + __TrackerMode__getTrackerMode, + __void__setTrackerMode__TrackerMode); END_REFLECTOR diff --git a/src/osgWrappers/osgGA/SimpleViewer.cpp b/src/osgWrappers/osgGA/SimpleViewer.cpp index 52ec33051..4cc24cee3 100644 --- a/src/osgWrappers/osgGA/SimpleViewer.cpp +++ b/src/osgWrappers/osgGA/SimpleViewer.cpp @@ -30,49 +30,160 @@ TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >, osgGA::Simp BEGIN_OBJECT_REFLECTOR(osgGA::SimpleViewer) I_VirtualBaseType(osgGA::GraphicsWindow); - I_Constructor0(); - I_Method1(void, setSceneData, IN, osg::Node *, node); - I_Method0(osg::Node *, getSceneData); - I_Method0(const osg::Node *, getSceneData); - I_Method0(osg::CameraNode *, getCamera); - I_Method0(const osg::CameraNode *, getCamera); - I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator); - I_Method0(osgGA::MatrixManipulator *, getCameraManipulator); - I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator); - I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler); - I_Method0(osgGA::SimpleViewer::EventHandlers &, getEventHandlers); - I_Method0(const osgGA::SimpleViewer::EventHandlers &, getEventHandlers); - I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, dp); - I_Method0(osgDB::DatabasePager *, getDatabasePager); - I_Method0(const osgDB::DatabasePager *, getDatabasePager); - I_Method0(void, frame); - I_Method0(void, frameAdvance); - I_Method0(void, frameEventTraversal); - I_Method0(void, frameUpdateTraversal); - I_Method0(void, frameCullTraversal); - I_Method0(void, frameDrawTraversal); - I_Method0(void, releaseAllGLObjects); - I_Method0(void, cleanup); - I_Method0(osgUtil::SceneView *, getSceneView); - I_Method0(const osgUtil::SceneView *, getSceneView); - I_Method0(void, init); - I_ReadOnlyProperty(osg::CameraNode *, Camera); - I_Property(osgGA::MatrixManipulator *, CameraManipulator); - I_Property(osgDB::DatabasePager *, DatabasePager); - I_ReadOnlyProperty(osgGA::SimpleViewer::EventHandlers &, EventHandlers); - I_Property(osg::Node *, SceneData); - I_ReadOnlyProperty(osgUtil::SceneView *, SceneView); + I_Constructor0(____SimpleViewer, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + __void__setSceneData__osg_Node_P1, + "", + ""); + I_Method0(osg::Node *, getSceneData, + __osg_Node_P1__getSceneData, + "", + ""); + I_Method0(const osg::Node *, getSceneData, + __C5_osg_Node_P1__getSceneData, + "", + ""); + I_Method0(osg::CameraNode *, getCamera, + __osg_CameraNode_P1__getCamera, + "", + ""); + I_Method0(const osg::CameraNode *, getCamera, + __C5_osg_CameraNode_P1__getCamera, + "", + ""); + I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator, + __void__setCameraManipulator__MatrixManipulator_P1, + "", + ""); + I_Method0(osgGA::MatrixManipulator *, getCameraManipulator, + __MatrixManipulator_P1__getCameraManipulator, + "", + ""); + I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator, + __C5_MatrixManipulator_P1__getCameraManipulator, + "", + ""); + I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler, + __void__addEventHandler__GUIEventHandler_P1, + "", + ""); + I_Method0(osgGA::SimpleViewer::EventHandlers &, getEventHandlers, + __EventHandlers_R1__getEventHandlers, + "", + ""); + I_Method0(const osgGA::SimpleViewer::EventHandlers &, getEventHandlers, + __C5_EventHandlers_R1__getEventHandlers, + "", + ""); + I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, dp, + __void__setDatabasePager__osgDB_DatabasePager_P1, + "", + ""); + I_Method0(osgDB::DatabasePager *, getDatabasePager, + __osgDB_DatabasePager_P1__getDatabasePager, + "", + ""); + I_Method0(const osgDB::DatabasePager *, getDatabasePager, + __C5_osgDB_DatabasePager_P1__getDatabasePager, + "", + ""); + I_Method0(void, frame, + __void__frame, + "Render a complete new frame. ", + "Calls frameAdvance(), frameEventTraversal(), frameUpateTraversal(), frameCullTraversal() and frameDrawTraversal(). Note, no internal makeCurrent() is issued before, or swap buffers called after frame(), these operations are the responsibility of the calling code. "); + I_Method0(void, frameAdvance, + __void__frameAdvance, + "", + ""); + I_Method0(void, frameEventTraversal, + __void__frameEventTraversal, + "", + ""); + I_Method0(void, frameUpdateTraversal, + __void__frameUpdateTraversal, + "", + ""); + I_Method0(void, frameCullTraversal, + __void__frameCullTraversal, + "", + ""); + I_Method0(void, frameDrawTraversal, + __void__frameDrawTraversal, + "", + ""); + I_Method0(void, releaseAllGLObjects, + __void__releaseAllGLObjects, + "Release all OpenGL objects associated with this viewer's scenegraph. ", + "Note, does not deleted the actual OpenGL objects, it just releases them to the pending GL object delete lists which will need flushing once a valid graphics context is obtained. "); + I_Method0(void, cleanup, + __void__cleanup, + "Clean up all OpenGL objects associated with this viewer's scenegraph. ", + "Note, must only be called from the graphics context associated with this viewer. "); + I_Method0(osgUtil::SceneView *, getSceneView, + __osgUtil_SceneView_P1__getSceneView, + "", + ""); + I_Method0(const osgUtil::SceneView *, getSceneView, + __C5_osgUtil_SceneView_P1__getSceneView, + "", + ""); + I_Method0(void, init, + __void__init, + "", + ""); + I_SimpleProperty(osg::CameraNode *, Camera, + __osg_CameraNode_P1__getCamera, + 0); + I_SimpleProperty(osgGA::MatrixManipulator *, CameraManipulator, + __MatrixManipulator_P1__getCameraManipulator, + __void__setCameraManipulator__MatrixManipulator_P1); + I_SimpleProperty(osgDB::DatabasePager *, DatabasePager, + __osgDB_DatabasePager_P1__getDatabasePager, + __void__setDatabasePager__osgDB_DatabasePager_P1); + I_SimpleProperty(osgGA::SimpleViewer::EventHandlers &, EventHandlers, + __EventHandlers_R1__getEventHandlers, + 0); + I_SimpleProperty(osg::Node *, SceneData, + __osg_Node_P1__getSceneData, + __void__setSceneData__osg_Node_P1); + I_SimpleProperty(osgUtil::SceneView *, SceneView, + __osgUtil_SceneView_P1__getSceneView, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::GUIEventHandler >) - I_Constructor0(); - I_Constructor1(IN, osgGA::GUIEventHandler *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osgGA::GUIEventHandler > &, rp); - I_Method0(osgGA::GUIEventHandler *, get); - I_Method0(bool, valid); - I_Method0(osgGA::GUIEventHandler *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osgGA::GUIEventHandler > &, rp); - I_ReadOnlyProperty(osgGA::GUIEventHandler *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgGA::GUIEventHandler *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgGA::GUIEventHandler > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgGA::GUIEventHandler *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osgGA::GUIEventHandler *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgGA::GUIEventHandler > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgGA::GUIEventHandler *, , + __T_P1__get, + 0); END_REFLECTOR STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >); diff --git a/src/osgWrappers/osgGA/StateSetManipulator.cpp b/src/osgWrappers/osgGA/StateSetManipulator.cpp index 3daca7468..a730ce475 100644 --- a/src/osgWrappers/osgGA/StateSetManipulator.cpp +++ b/src/osgWrappers/osgGA/StateSetManipulator.cpp @@ -27,29 +27,94 @@ BEGIN_OBJECT_REFLECTOR(osgGA::StateSetManipulator) I_BaseType(osgGA::GUIEventHandler); - I_Constructor0(); - I_Method0(const char *, className); - I_Method1(void, setStateSet, IN, osg::StateSet *, x); - I_Method0(osg::StateSet *, getStateSet); - I_Method0(const osg::StateSet *, getStateSet); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); - I_Method1(void, setMaximumNumOfTextureUnits, IN, unsigned int, i); - I_Method0(unsigned int, getMaximumNumOfTextureUnits); - I_Method1(void, setBackfaceEnabled, IN, bool, newbackface); - I_Method0(bool, getBackfaceEnabled); - I_Method1(void, setLightingEnabled, IN, bool, newlighting); - I_Method0(bool, getLightingEnabled); - I_Method1(void, setTextureEnabled, IN, bool, newtexture); - I_Method0(bool, getTextureEnabled); - I_Method1(void, setPolygonMode, IN, osg::PolygonMode::Mode, newpolygonmode); - I_Method0(osg::PolygonMode::Mode, getPolygonMode); - I_Method0(void, cyclePolygonMode); - I_Property(bool, BackfaceEnabled); - I_Property(bool, LightingEnabled); - I_Property(unsigned int, MaximumNumOfTextureUnits); - I_Property(osg::PolygonMode::Mode, PolygonMode); - I_Property(osg::StateSet *, StateSet); - I_Property(bool, TextureEnabled); + I_Constructor0(____StateSetManipulator, + "", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setStateSet, IN, osg::StateSet *, x, + __void__setStateSet__osg_StateSet_P1, + "attach a STATESTATE to the manipulator to be used for specifying view. ", + ""); + I_Method0(osg::StateSet *, getStateSet, + __osg_StateSet_P1__getStateSet, + "get the attached a STATESTATE. ", + ""); + I_Method0(const osg::StateSet *, getStateSet, + __C5_osg_StateSet_P1__getStateSet, + "get the attached a STATESTATE. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setMaximumNumOfTextureUnits, IN, unsigned int, i, + __void__setMaximumNumOfTextureUnits__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumNumOfTextureUnits, + __unsigned_int__getMaximumNumOfTextureUnits, + "", + ""); + I_Method1(void, setBackfaceEnabled, IN, bool, newbackface, + __void__setBackfaceEnabled__bool, + "", + ""); + I_Method0(bool, getBackfaceEnabled, + __bool__getBackfaceEnabled, + "", + ""); + I_Method1(void, setLightingEnabled, IN, bool, newlighting, + __void__setLightingEnabled__bool, + "", + ""); + I_Method0(bool, getLightingEnabled, + __bool__getLightingEnabled, + "", + ""); + I_Method1(void, setTextureEnabled, IN, bool, newtexture, + __void__setTextureEnabled__bool, + "", + ""); + I_Method0(bool, getTextureEnabled, + __bool__getTextureEnabled, + "", + ""); + I_Method1(void, setPolygonMode, IN, osg::PolygonMode::Mode, newpolygonmode, + __void__setPolygonMode__osg_PolygonMode_Mode, + "", + ""); + I_Method0(osg::PolygonMode::Mode, getPolygonMode, + __osg_PolygonMode_Mode__getPolygonMode, + "", + ""); + I_Method0(void, cyclePolygonMode, + __void__cyclePolygonMode, + "", + ""); + I_SimpleProperty(bool, BackfaceEnabled, + __bool__getBackfaceEnabled, + __void__setBackfaceEnabled__bool); + I_SimpleProperty(bool, LightingEnabled, + __bool__getLightingEnabled, + __void__setLightingEnabled__bool); + I_SimpleProperty(unsigned int, MaximumNumOfTextureUnits, + __unsigned_int__getMaximumNumOfTextureUnits, + __void__setMaximumNumOfTextureUnits__unsigned_int); + I_SimpleProperty(osg::PolygonMode::Mode, PolygonMode, + __osg_PolygonMode_Mode__getPolygonMode, + __void__setPolygonMode__osg_PolygonMode_Mode); + I_SimpleProperty(osg::StateSet *, StateSet, + __osg_StateSet_P1__getStateSet, + __void__setStateSet__osg_StateSet_P1); + I_SimpleProperty(bool, TextureEnabled, + __bool__getTextureEnabled, + __void__setTextureEnabled__bool); END_REFLECTOR diff --git a/src/osgWrappers/osgGA/TerrainManipulator.cpp b/src/osgWrappers/osgGA/TerrainManipulator.cpp index 5d605ce5c..26694fdf5 100644 --- a/src/osgWrappers/osgGA/TerrainManipulator.cpp +++ b/src/osgWrappers/osgGA/TerrainManipulator.cpp @@ -33,30 +33,96 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgGA::TerrainManipulator) I_BaseType(osgGA::MatrixManipulator); - I_Constructor0(); - I_Method0(const char *, className); - I_Method1(void, setRotationMode, IN, osgGA::TerrainManipulator::RotationMode, mode); - I_Method0(osgGA::TerrainManipulator::RotationMode, getRotationMode); - I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); - I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); - I_Method0(osg::Matrixd, getMatrix); - I_Method0(osg::Matrixd, getInverseMatrix); - I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode); - I_Method0(float, getFusionDistanceValue); - I_Method1(void, setNode, IN, osg::Node *, x); - I_Method0(const osg::Node *, getNode); - I_Method0(osg::Node *, getNode); - I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); - I_WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); - I_WriteOnlyProperty(const osg::Matrixd &, ByMatrix); - I_ReadOnlyProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode); - I_ReadOnlyProperty(float, FusionDistanceValue); - I_ReadOnlyProperty(osg::Matrixd, InverseMatrix); - I_ReadOnlyProperty(osg::Matrixd, Matrix); - I_Property(osg::Node *, Node); - I_Property(osgGA::TerrainManipulator::RotationMode, RotationMode); + I_Constructor0(____TerrainManipulator, + "", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setRotationMode, IN, osgGA::TerrainManipulator::RotationMode, mode, + __void__setRotationMode__RotationMode, + "", + ""); + I_Method0(osgGA::TerrainManipulator::RotationMode, getRotationMode, + __RotationMode__getRotationMode, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + __void__setByMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + __osg_Matrixd__getInverseMatrix, + "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", + ""); + I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setNode, IN, osg::Node *, x, + __void__setNode__osg_Node_P1, + "Attach a node to the manipulator. ", + "Automatically detaches previously attached node. setNode(NULL) detaches previously nodes. Is ignored by manipulators which do not require a reference model. "); + I_Method0(const osg::Node *, getNode, + __C5_osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + __osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Move the camera to the default position. ", + "May be ignored by manipulators if home functionality is not appropriate. "); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Start/restart the manipulator. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + 0); + I_SimpleProperty(float, FusionDistanceValue, + __float__getFusionDistanceValue, + 0); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); + I_SimpleProperty(osgGA::TerrainManipulator::RotationMode, RotationMode, + __RotationMode__getRotationMode, + __void__setRotationMode__RotationMode); END_REFLECTOR diff --git a/src/osgWrappers/osgGA/TrackballManipulator.cpp b/src/osgWrappers/osgGA/TrackballManipulator.cpp index b9694c35a..fd33f0404 100644 --- a/src/osgWrappers/osgGA/TrackballManipulator.cpp +++ b/src/osgWrappers/osgGA/TrackballManipulator.cpp @@ -30,43 +30,144 @@ BEGIN_OBJECT_REFLECTOR(osgGA::TrackballManipulator) I_BaseType(osgGA::MatrixManipulator); - I_Constructor0(); - I_Method0(const char *, className); - I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); - I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); - I_Method0(osg::Matrixd, getMatrix); - I_Method0(osg::Matrixd, getInverseMatrix); - I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode); - I_Method0(float, getFusionDistanceValue); - I_Method1(void, setNode, IN, osg::Node *, x); - I_Method0(const osg::Node *, getNode); - I_Method0(osg::Node *, getNode); - I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method1(void, home, IN, double, x); - I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); - I_Method1(void, setMinimumZoomScale, IN, double, minimumZoomScale); - I_Method0(double, getMinimumZoomScale); - I_Method1(void, setCenter, IN, const osg::Vec3d &, center); - I_Method0(const osg::Vec3d &, getCenter); - I_Method1(void, setRotation, IN, const osg::Quat &, rotation); - I_Method0(const osg::Quat &, getRotation); - I_Method1(void, setDistance, IN, double, distance); - I_Method0(double, getDistance); - I_Method1(void, setTrackballSize, IN, float, size); - I_Method0(float, getTrackballSize); - I_WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); - I_WriteOnlyProperty(const osg::Matrixd &, ByMatrix); - I_Property(const osg::Vec3d &, Center); - I_Property(double, Distance); - I_ReadOnlyProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode); - I_ReadOnlyProperty(float, FusionDistanceValue); - I_ReadOnlyProperty(osg::Matrixd, InverseMatrix); - I_ReadOnlyProperty(osg::Matrixd, Matrix); - I_Property(double, MinimumZoomScale); - I_Property(osg::Node *, Node); - I_Property(const osg::Quat &, Rotation); - I_Property(float, TrackballSize); + I_Constructor0(____TrackballManipulator, + "", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + __void__setByMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + __osg_Matrixd__getInverseMatrix, + "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", + ""); + I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setNode, IN, osg::Node *, x, + __void__setNode__osg_Node_P1, + "Attach a node to the manipulator. ", + "Automatically detaches previously attached node. setNode(NULL) detaches previously nodes. Is ignored by manipulators which do not require a reference model. "); + I_Method0(const osg::Node *, getNode, + __C5_osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + __osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Move the camera to the default position. ", + "May be ignored by manipulators if home functionality is not appropriate. "); + I_Method1(void, home, IN, double, x, + __void__home__double, + "Move the camera to the default position. ", + "This version does not require GUIEventAdapter and GUIActionAdapter so may be called from somewhere other than a handle() method in GUIEventHandler. Application must be aware of implications."); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Start/restart the manipulator. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setMinimumZoomScale, IN, double, minimumZoomScale, + __void__setMinimumZoomScale__double, + "set the minimum distance (as ratio) the eye point can be zoomed in towards the center before the center is pushed forward. ", + ""); + I_Method0(double, getMinimumZoomScale, + __double__getMinimumZoomScale, + "get the minimum distance (as ratio) the eye point can be zoomed in ", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3d &, center, + __void__setCenter__C5_osg_Vec3d_R1, + "Set the center of the trackball. ", + ""); + I_Method0(const osg::Vec3d &, getCenter, + __C5_osg_Vec3d_R1__getCenter, + "Get the center of the trackball. ", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, rotation, + __void__setRotation__C5_osg_Quat_R1, + "Set the rotation of the trackball. ", + ""); + I_Method0(const osg::Quat &, getRotation, + __C5_osg_Quat_R1__getRotation, + "Get the rotation of the trackball. ", + ""); + I_Method1(void, setDistance, IN, double, distance, + __void__setDistance__double, + "Set the distance of the trackball. ", + ""); + I_Method0(double, getDistance, + __double__getDistance, + "Get the distance of the trackball. ", + ""); + I_Method1(void, setTrackballSize, IN, float, size, + __void__setTrackballSize__float, + "Set the size of the trackball. ", + ""); + I_Method0(float, getTrackballSize, + __float__getTrackballSize, + "Get the size of the trackball. ", + ""); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Vec3d &, Center, + __C5_osg_Vec3d_R1__getCenter, + __void__setCenter__C5_osg_Vec3d_R1); + I_SimpleProperty(double, Distance, + __double__getDistance, + __void__setDistance__double); + I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + 0); + I_SimpleProperty(float, FusionDistanceValue, + __float__getFusionDistanceValue, + 0); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(double, MinimumZoomScale, + __double__getMinimumZoomScale, + __void__setMinimumZoomScale__double); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_osg_Quat_R1__getRotation, + __void__setRotation__C5_osg_Quat_R1); + I_SimpleProperty(float, TrackballSize, + __float__getTrackballSize, + __void__setTrackballSize__float); END_REFLECTOR diff --git a/src/osgWrappers/osgGA/UFOManipulator.cpp b/src/osgWrappers/osgGA/UFOManipulator.cpp index afa7f00c5..a9efb03ea 100644 --- a/src/osgWrappers/osgGA/UFOManipulator.cpp +++ b/src/osgWrappers/osgGA/UFOManipulator.cpp @@ -28,41 +28,138 @@ BEGIN_OBJECT_REFLECTOR(osgGA::UFOManipulator) I_BaseType(osgGA::MatrixManipulator); - I_Constructor0(); - I_Method0(const char *, className); - I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); - I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, invmat); - I_Method0(osg::Matrixd, getMatrix); - I_Method0(osg::Matrixd, getInverseMatrix); - I_Method1(void, setNode, IN, osg::Node *, node); - I_Method0(const osg::Node *, getNode); - I_Method0(osg::Node *, getNode); - I_Method0(void, computeHomePosition); - I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x); - I_Method1(void, home, IN, double, x); - I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); - I_Method3(void, getCurrentPositionAsLookAt, IN, osg::Vec3 &, eye, IN, osg::Vec3 &, center, IN, osg::Vec3 &, up); - I_Method1(void, setMinHeight, IN, double, in_min_height); - I_Method0(double, getMinHeight); - I_Method1(void, setMinDistance, IN, double, in_min_dist); - I_Method0(double, getMinDistance); - I_Method1(void, setForwardSpeed, IN, double, in_fs); - I_Method0(double, getForwardSpeed); - I_Method1(void, setSideSpeed, IN, double, in_ss); - I_Method0(double, getSideSpeed); - I_Method1(void, setRotationSpeed, IN, double, in_rot_speed); - I_Method0(double, getRotationSpeed); - I_WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); - I_WriteOnlyProperty(const osg::Matrixd &, ByMatrix); - I_Property(double, ForwardSpeed); - I_ReadOnlyProperty(osg::Matrixd, InverseMatrix); - I_ReadOnlyProperty(osg::Matrixd, Matrix); - I_Property(double, MinDistance); - I_Property(double, MinHeight); - I_Property(osg::Node *, Node); - I_Property(double, RotationSpeed); - I_Property(double, SideSpeed); + I_Constructor0(____UFOManipulator, + "Default constructor. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return className ", + "returns constant \"UFO\" "); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + __void__setByMatrix__C5_osg_Matrixd_R1, + "Set the current position with a matrix. ", + " param matrix A viewpoint matrix. "); + I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, invmat, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "Set the current position with the invers matrix. ", + " param invmat The inverse of a viewpoint matrix "); + I_Method0(osg::Matrixd, getMatrix, + __osg_Matrixd__getMatrix, + "Get the current viewmatrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + __osg_Matrixd__getInverseMatrix, + "Get the current inverse view matrix. ", + ""); + I_Method1(void, setNode, IN, osg::Node *, node, + __void__setNode__osg_Node_P1, + "Set the subgraph this manipulator is driving the eye through. ", + " param node root of subgraph "); + I_Method0(const osg::Node *, getNode, + __C5_osg_Node_P1__getNode, + "Get the root node of the subgraph this manipulator is driving the eye through (const). ", + ""); + I_Method0(osg::Node *, getNode, + __osg_Node_P1__getNode, + "Get the root node of the subgraph this manipulator is driving the eye through. ", + ""); + I_Method0(void, computeHomePosition, + __void__computeHomePosition, + "Computes the home position based on the extents and scale of the scene graph rooted at node. ", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + __void__home__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Sets the viewpoint matrix to the home position. ", + ""); + I_Method1(void, home, IN, double, x, + __void__home__double, + "Move the camera to the default position. ", + "This version does not require GUIEventAdapter and GUIActionAdapter so may be called from somewhere other than a handle() method in GUIEventHandler. Application must be aware of implications."); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Start/restart the manipulator. ", + "FIXME: what does this actually mean? Provide examples."); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Handles incoming osgGA events. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + __void__getUsage__osg_ApplicationUsage_R1, + "Reports Usage parameters to the application. ", + ""); + I_Method3(void, getCurrentPositionAsLookAt, IN, osg::Vec3 &, eye, IN, osg::Vec3 &, center, IN, osg::Vec3 &, up, + __void__getCurrentPositionAsLookAt__osg_Vec3_R1__osg_Vec3_R1__osg_Vec3_R1, + "Report the current position as LookAt vectors. ", + ""); + I_Method1(void, setMinHeight, IN, double, in_min_height, + __void__setMinHeight__double, + "", + ""); + I_Method0(double, getMinHeight, + __double__getMinHeight, + "", + ""); + I_Method1(void, setMinDistance, IN, double, in_min_dist, + __void__setMinDistance__double, + "", + ""); + I_Method0(double, getMinDistance, + __double__getMinDistance, + "", + ""); + I_Method1(void, setForwardSpeed, IN, double, in_fs, + __void__setForwardSpeed__double, + "", + ""); + I_Method0(double, getForwardSpeed, + __double__getForwardSpeed, + "", + ""); + I_Method1(void, setSideSpeed, IN, double, in_ss, + __void__setSideSpeed__double, + "", + ""); + I_Method0(double, getSideSpeed, + __double__getSideSpeed, + "", + ""); + I_Method1(void, setRotationSpeed, IN, double, in_rot_speed, + __void__setRotationSpeed__double, + "", + ""); + I_Method0(double, getRotationSpeed, + __double__getRotationSpeed, + "", + ""); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(double, ForwardSpeed, + __double__getForwardSpeed, + __void__setForwardSpeed__double); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(double, MinDistance, + __double__getMinDistance, + __void__setMinDistance__double); + I_SimpleProperty(double, MinHeight, + __double__getMinHeight, + __void__setMinHeight__double); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); + I_SimpleProperty(double, RotationSpeed, + __double__getRotationSpeed, + __void__setRotationSpeed__double); + I_SimpleProperty(double, SideSpeed, + __double__getSideSpeed, + __void__setSideSpeed__double); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/AccelOperator.cpp b/src/osgWrappers/osgParticle/AccelOperator.cpp index 6c6ce4293..42521329d 100644 --- a/src/osgWrappers/osgParticle/AccelOperator.cpp +++ b/src/osgWrappers/osgParticle/AccelOperator.cpp @@ -27,19 +27,58 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::AccelOperator) I_BaseType(osgParticle::Operator); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::AccelOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(const osg::Vec3 &, getAcceleration); - I_Method1(void, setAcceleration, IN, const osg::Vec3 &, v); - I_MethodWithDefaults1(void, setToGravity, IN, float, scale, 1); - I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt); - I_Method1(void, beginOperate, IN, osgParticle::Program *, prg); - I_Property(const osg::Vec3 &, Acceleration); - I_WriteOnlyProperty(float, ToGravity); + I_Constructor0(____AccelOperator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::AccelOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AccelOperator__C5_AccelOperator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(const osg::Vec3 &, getAcceleration, + __C5_osg_Vec3_R1__getAcceleration, + "Get the acceleration vector. ", + ""); + I_Method1(void, setAcceleration, IN, const osg::Vec3 &, v, + __void__setAcceleration__C5_osg_Vec3_R1, + "Set the acceleration vector. ", + ""); + I_MethodWithDefaults1(void, setToGravity, IN, float, scale, 1, + __void__setToGravity__float, + "Quickly set the acceleration vector to the gravity on earth (0, 0, -9.81). ", + "The acceleration will be multiplied by the scale parameter."); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + __void__operate__Particle_P1__double, + "Apply the acceleration to a particle. Do not call this method manually. ", + ""); + I_Method1(void, beginOperate, IN, osgParticle::Program *, prg, + __void__beginOperate__Program_P1, + "Perform some initializations. Do not call this method manually. ", + ""); + I_SimpleProperty(const osg::Vec3 &, Acceleration, + __C5_osg_Vec3_R1__getAcceleration, + __void__setAcceleration__C5_osg_Vec3_R1); + I_SimpleProperty(float, ToGravity, + 0, + __void__setToGravity__float); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/AngularAccelOperator.cpp b/src/osgWrappers/osgParticle/AngularAccelOperator.cpp index a81a52b5b..a85545278 100644 --- a/src/osgWrappers/osgParticle/AngularAccelOperator.cpp +++ b/src/osgWrappers/osgParticle/AngularAccelOperator.cpp @@ -27,17 +27,51 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::AngularAccelOperator) I_BaseType(osgParticle::Operator); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::AngularAccelOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(const osg::Vec3 &, getAngularAcceleration); - I_Method1(void, setAngularAcceleration, IN, const osg::Vec3 &, v); - I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt); - I_Method1(void, beginOperate, IN, osgParticle::Program *, prg); - I_Property(const osg::Vec3 &, AngularAcceleration); + I_Constructor0(____AngularAccelOperator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::AngularAccelOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AngularAccelOperator__C5_AngularAccelOperator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(const osg::Vec3 &, getAngularAcceleration, + __C5_osg_Vec3_R1__getAngularAcceleration, + "Get the angular acceleration vector. ", + ""); + I_Method1(void, setAngularAcceleration, IN, const osg::Vec3 &, v, + __void__setAngularAcceleration__C5_osg_Vec3_R1, + "Set the angular acceleration vector. ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + __void__operate__Particle_P1__double, + "Apply the angular acceleration to a particle. Do not call this method manually. ", + ""); + I_Method1(void, beginOperate, IN, osgParticle::Program *, prg, + __void__beginOperate__Program_P1, + "Perform some initializations. Do not call this method manually. ", + ""); + I_SimpleProperty(const osg::Vec3 &, AngularAcceleration, + __C5_osg_Vec3_R1__getAngularAcceleration, + __void__setAngularAcceleration__C5_osg_Vec3_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/BoxPlacer.cpp b/src/osgWrappers/osgParticle/BoxPlacer.cpp index 7e06d376b..61a747de1 100644 --- a/src/osgWrappers/osgParticle/BoxPlacer.cpp +++ b/src/osgWrappers/osgParticle/BoxPlacer.cpp @@ -27,27 +27,88 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::BoxPlacer) I_BaseType(osgParticle::CenteredPlacer); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::BoxPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const osgParticle::rangef &, getXRange); - I_Method1(void, setXRange, IN, const osgParticle::rangef &, r); - I_Method2(void, setXRange, IN, float, r1, IN, float, r2); - I_Method0(const osgParticle::rangef &, getYRange); - I_Method1(void, setYRange, IN, const osgParticle::rangef &, r); - I_Method2(void, setYRange, IN, float, r1, IN, float, r2); - I_Method0(const osgParticle::rangef &, getZRange); - I_Method1(void, setZRange, IN, const osgParticle::rangef &, r); - I_Method2(void, setZRange, IN, float, r1, IN, float, r2); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, place, IN, osgParticle::Particle *, P); - I_Method0(osg::Vec3, getControlPosition); - I_ReadOnlyProperty(osg::Vec3, ControlPosition); - I_Property(const osgParticle::rangef &, XRange); - I_Property(const osgParticle::rangef &, YRange); - I_Property(const osgParticle::rangef &, ZRange); + I_Constructor0(____BoxPlacer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::BoxPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BoxPlacer__C5_BoxPlacer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const osgParticle::rangef &, getXRange, + __C5_rangef_R1__getXRange, + "Get the range of possible values for radius. ", + ""); + I_Method1(void, setXRange, IN, const osgParticle::rangef &, r, + __void__setXRange__C5_rangef_R1, + "Set the range of possible values for radius. ", + ""); + I_Method2(void, setXRange, IN, float, r1, IN, float, r2, + __void__setXRange__float__float, + "Set the range of possible values for radius. ", + ""); + I_Method0(const osgParticle::rangef &, getYRange, + __C5_rangef_R1__getYRange, + "Get the range of possible values for the central angle. ", + ""); + I_Method1(void, setYRange, IN, const osgParticle::rangef &, r, + __void__setYRange__C5_rangef_R1, + "Set the range of possible values for the central angle. ", + ""); + I_Method2(void, setYRange, IN, float, r1, IN, float, r2, + __void__setYRange__float__float, + "Set the range of possible values for the central angle. ", + ""); + I_Method0(const osgParticle::rangef &, getZRange, + __C5_rangef_R1__getZRange, + "Get the range of possible values for the height. ", + ""); + I_Method1(void, setZRange, IN, const osgParticle::rangef &, r, + __void__setZRange__C5_rangef_R1, + "Set the range of possible values for the height. ", + ""); + I_Method2(void, setZRange, IN, float, r1, IN, float, r2, + __void__setZRange__float__float, + "Set the range of possible values for the height. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, place, IN, osgParticle::Particle *, P, + __void__place__Particle_P1, + "Place a particle. Do not call it manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + I_SimpleProperty(osg::Vec3, ControlPosition, + __osg_Vec3__getControlPosition, + 0); + I_SimpleProperty(const osgParticle::rangef &, XRange, + __C5_rangef_R1__getXRange, + __void__setXRange__C5_rangef_R1); + I_SimpleProperty(const osgParticle::rangef &, YRange, + __C5_rangef_R1__getYRange, + __void__setYRange__C5_rangef_R1); + I_SimpleProperty(const osgParticle::rangef &, ZRange, + __C5_rangef_R1__getZRange, + __void__setZRange__C5_rangef_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/CenteredPlacer.cpp b/src/osgWrappers/osgParticle/CenteredPlacer.cpp index 76c7da8f6..0bb756214 100644 --- a/src/osgWrappers/osgParticle/CenteredPlacer.cpp +++ b/src/osgWrappers/osgParticle/CenteredPlacer.cpp @@ -25,14 +25,39 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::CenteredPlacer) I_BaseType(osgParticle::Placer); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::CenteredPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const osg::Vec3 &, getCenter); - I_Method1(void, setCenter, IN, const osg::Vec3 &, v); - I_Method3(void, setCenter, IN, float, x, IN, float, y, IN, float, z); - I_Property(const osg::Vec3 &, Center); + I_Constructor0(____CenteredPlacer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::CenteredPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CenteredPlacer__C5_CenteredPlacer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + __C5_osg_Vec3_R1__getCenter, + "Get the center point. ", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, v, + __void__setCenter__C5_osg_Vec3_R1, + "Set the center point. ", + ""); + I_Method3(void, setCenter, IN, float, x, IN, float, y, IN, float, z, + __void__setCenter__float__float__float, + "Set the center point. ", + ""); + I_SimpleProperty(const osg::Vec3 &, Center, + __C5_osg_Vec3_R1__getCenter, + __void__setCenter__C5_osg_Vec3_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp b/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp index 22f05d943..1e38fab19 100644 --- a/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp +++ b/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp @@ -26,15 +26,44 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ConnectedParticleSystem) I_BaseType(osgParticle::ParticleSystem); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::ConnectedParticleSystem &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(osgParticle::Particle *, createParticle, IN, const osgParticle::Particle *, ptemplate); - I_Method1(void, reuseParticle, IN, int, i); - I_Method1(void, drawImplementation, IN, osg::State &, state); + I_Constructor0(____ConnectedParticleSystem, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ConnectedParticleSystem &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ConnectedParticleSystem__C5_ConnectedParticleSystem_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(osgParticle::Particle *, createParticle, IN, const osgParticle::Particle *, ptemplate, + __Particle_P1__createParticle__C5_Particle_P1, + "Create a new particle from the specified template (or the default one if ptemplate is null). ", + ""); + I_Method1(void, reuseParticle, IN, int, i, + __void__reuseParticle__int, + "Reuse the i-th particle. ", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + __void__drawImplementation__osg_State_R1, + "Draw the connected particles as either a line or a quad strip, depending upon viewing distance. . ", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/ConstantRateCounter.cpp b/src/osgWrappers/osgParticle/ConstantRateCounter.cpp index 7ac37d2af..c832b5c38 100644 --- a/src/osgWrappers/osgParticle/ConstantRateCounter.cpp +++ b/src/osgWrappers/osgParticle/ConstantRateCounter.cpp @@ -24,19 +24,58 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ConstantRateCounter) I_BaseType(osgParticle::Counter); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::ConstantRateCounter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, setMinimumNumberOfParticlesToCreate, IN, int, minNumToCreate); - I_Method0(int, getMinimumNumberOfParticlesToCreate); - I_Method1(void, setNumberOfParticlesPerSecondToCreate, IN, double, numPerSecond); - I_Method0(double, getNumberOfParticlesPerSecondToCreate); - I_Method1(int, numParticlesToCreate, IN, double, dt); - I_Property(int, MinimumNumberOfParticlesToCreate); - I_Property(double, NumberOfParticlesPerSecondToCreate); + I_Constructor0(____ConstantRateCounter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ConstantRateCounter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ConstantRateCounter__C5_ConstantRateCounter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setMinimumNumberOfParticlesToCreate, IN, int, minNumToCreate, + __void__setMinimumNumberOfParticlesToCreate__int, + "", + ""); + I_Method0(int, getMinimumNumberOfParticlesToCreate, + __int__getMinimumNumberOfParticlesToCreate, + "", + ""); + I_Method1(void, setNumberOfParticlesPerSecondToCreate, IN, double, numPerSecond, + __void__setNumberOfParticlesPerSecondToCreate__double, + "", + ""); + I_Method0(double, getNumberOfParticlesPerSecondToCreate, + __double__getNumberOfParticlesPerSecondToCreate, + "", + ""); + I_Method1(int, numParticlesToCreate, IN, double, dt, + __int__numParticlesToCreate__double, + "Return the number of particles to be created in this frame. ", + ""); + I_SimpleProperty(int, MinimumNumberOfParticlesToCreate, + __int__getMinimumNumberOfParticlesToCreate, + __void__setMinimumNumberOfParticlesToCreate__int); + I_SimpleProperty(double, NumberOfParticlesPerSecondToCreate, + __double__getNumberOfParticlesPerSecondToCreate, + __void__setNumberOfParticlesPerSecondToCreate__double); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/Counter.cpp b/src/osgWrappers/osgParticle/Counter.cpp index 94334fce2..e0911c367 100644 --- a/src/osgWrappers/osgParticle/Counter.cpp +++ b/src/osgWrappers/osgParticle/Counter.cpp @@ -24,11 +24,28 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Counter) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::Counter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method1(int, numParticlesToCreate, IN, double, dt); + I_Constructor0(____Counter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Counter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Counter__C5_Counter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(int, numParticlesToCreate, IN, double, dt, + __int__numParticlesToCreate__double, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/Emitter.cpp b/src/osgWrappers/osgParticle/Emitter.cpp index 49f0027f4..bb6473388 100644 --- a/src/osgWrappers/osgParticle/Emitter.cpp +++ b/src/osgWrappers/osgParticle/Emitter.cpp @@ -26,17 +26,50 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Emitter) I_BaseType(osgParticle::ParticleProcessor); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::Emitter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(const osgParticle::Particle &, getParticleTemplate); - I_Method1(void, setParticleTemplate, IN, const osgParticle::Particle &, p); - I_Method0(bool, getUseDefaultTemplate); - I_Method1(void, setUseDefaultTemplate, IN, bool, v); - I_Property(const osgParticle::Particle &, ParticleTemplate); - I_Property(bool, UseDefaultTemplate); + I_Constructor0(____Emitter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Emitter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Emitter__C5_Emitter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(const osgParticle::Particle &, getParticleTemplate, + __C5_Particle_R1__getParticleTemplate, + "Get the particle template. ", + ""); + I_Method1(void, setParticleTemplate, IN, const osgParticle::Particle &, p, + __void__setParticleTemplate__C5_Particle_R1, + "Set the particle template (particle is copied). ", + ""); + I_Method0(bool, getUseDefaultTemplate, + __bool__getUseDefaultTemplate, + "Return whether the particle system's default template should be used. ", + ""); + I_Method1(void, setUseDefaultTemplate, IN, bool, v, + __void__setUseDefaultTemplate__bool, + "Set whether the default particle template should be used. ", + "When this flag is true, the particle template is ignored, and the particle system's default template is used instead."); + I_SimpleProperty(const osgParticle::Particle &, ParticleTemplate, + __C5_Particle_R1__getParticleTemplate, + __void__setParticleTemplate__C5_Particle_R1); + I_SimpleProperty(bool, UseDefaultTemplate, + __bool__getUseDefaultTemplate, + __void__setUseDefaultTemplate__bool); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/ExplosionDebrisEffect.cpp b/src/osgWrappers/osgParticle/ExplosionDebrisEffect.cpp index ae8e02a43..d0355d307 100644 --- a/src/osgWrappers/osgParticle/ExplosionDebrisEffect.cpp +++ b/src/osgWrappers/osgParticle/ExplosionDebrisEffect.cpp @@ -28,22 +28,71 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionDebrisEffect) I_BaseType(osgParticle::ParticleEffect); - I_ConstructorWithDefaults1(IN, bool, automaticSetup, true); - I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f); - I_ConstructorWithDefaults2(IN, const osgParticle::ExplosionDebrisEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(void, setDefaults); - I_Method0(void, setUpEmitterAndProgram); - I_Method0(osgParticle::Emitter *, getEmitter); - I_Method0(const osgParticle::Emitter *, getEmitter); - I_Method0(osgParticle::Program *, getProgram); - I_Method0(const osgParticle::Program *, getProgram); - I_ReadOnlyProperty(osgParticle::Emitter *, Emitter); - I_ReadOnlyProperty(osgParticle::Program *, Program); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + ____ExplosionDebrisEffect__bool, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f, + ____ExplosionDebrisEffect__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ExplosionDebrisEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ExplosionDebrisEffect__C5_ExplosionDebrisEffect_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(void, setDefaults, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + __C5_Program_P1__getProgram, + "", + ""); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/ExplosionEffect.cpp b/src/osgWrappers/osgParticle/ExplosionEffect.cpp index cde7d8d30..63d229f11 100644 --- a/src/osgWrappers/osgParticle/ExplosionEffect.cpp +++ b/src/osgWrappers/osgParticle/ExplosionEffect.cpp @@ -28,22 +28,71 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionEffect) I_BaseType(osgParticle::ParticleEffect); - I_ConstructorWithDefaults1(IN, bool, automaticSetup, true); - I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f); - I_ConstructorWithDefaults2(IN, const osgParticle::ExplosionEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(void, setDefaults); - I_Method0(void, setUpEmitterAndProgram); - I_Method0(osgParticle::Emitter *, getEmitter); - I_Method0(const osgParticle::Emitter *, getEmitter); - I_Method0(osgParticle::Program *, getProgram); - I_Method0(const osgParticle::Program *, getProgram); - I_ReadOnlyProperty(osgParticle::Emitter *, Emitter); - I_ReadOnlyProperty(osgParticle::Program *, Program); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + ____ExplosionEffect__bool, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f, + ____ExplosionEffect__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ExplosionEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ExplosionEffect__C5_ExplosionEffect_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(void, setDefaults, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + __C5_Program_P1__getProgram, + "", + ""); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/FireEffect.cpp b/src/osgWrappers/osgParticle/FireEffect.cpp index c587bfe4c..8da3bc6eb 100644 --- a/src/osgWrappers/osgParticle/FireEffect.cpp +++ b/src/osgWrappers/osgParticle/FireEffect.cpp @@ -28,22 +28,71 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::FireEffect) I_BaseType(osgParticle::ParticleEffect); - I_ConstructorWithDefaults1(IN, bool, automaticSetup, true); - I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f); - I_ConstructorWithDefaults2(IN, const osgParticle::FireEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(void, setDefaults); - I_Method0(void, setUpEmitterAndProgram); - I_Method0(osgParticle::Emitter *, getEmitter); - I_Method0(const osgParticle::Emitter *, getEmitter); - I_Method0(osgParticle::Program *, getProgram); - I_Method0(const osgParticle::Program *, getProgram); - I_ReadOnlyProperty(osgParticle::Emitter *, Emitter); - I_ReadOnlyProperty(osgParticle::Program *, Program); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + ____FireEffect__bool, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f, + ____FireEffect__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::FireEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____FireEffect__C5_FireEffect_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(void, setDefaults, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + __C5_Program_P1__getProgram, + "", + ""); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/FluidFrictionOperator.cpp b/src/osgWrappers/osgParticle/FluidFrictionOperator.cpp index 3f14b9060..e7d781e9c 100644 --- a/src/osgWrappers/osgParticle/FluidFrictionOperator.cpp +++ b/src/osgWrappers/osgParticle/FluidFrictionOperator.cpp @@ -27,28 +27,92 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::FluidFrictionOperator) I_BaseType(osgParticle::Operator); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::FluidFrictionOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, setFluidDensity, IN, float, d); - I_Method0(float, getFluidDensity); - I_Method1(void, setFluidViscosity, IN, float, v); - I_Method0(float, getFluidViscosity); - I_Method1(void, setWind, IN, const osg::Vec3 &, wind); - I_Method0(const osg::Vec3 &, getWind); - I_Method1(void, setOverrideRadius, IN, float, r); - I_Method0(float, getOverrideRadius); - I_Method0(void, setFluidToAir); - I_Method0(void, setFluidToWater); - I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt); - I_Method1(void, beginOperate, IN, osgParticle::Program *, prg); - I_Property(float, FluidDensity); - I_Property(float, FluidViscosity); - I_Property(float, OverrideRadius); - I_Property(const osg::Vec3 &, Wind); + I_Constructor0(____FluidFrictionOperator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::FluidFrictionOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____FluidFrictionOperator__C5_FluidFrictionOperator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setFluidDensity, IN, float, d, + __void__setFluidDensity__float, + "Set the density of the fluid. ", + ""); + I_Method0(float, getFluidDensity, + __float__getFluidDensity, + "Get the density of the fluid. ", + ""); + I_Method1(void, setFluidViscosity, IN, float, v, + __void__setFluidViscosity__float, + "Set the viscosity of the fluid. ", + ""); + I_Method0(float, getFluidViscosity, + __float__getFluidViscosity, + "Get the viscosity of the fluid. ", + ""); + I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + __void__setWind__C5_osg_Vec3_R1, + "Set the wind vector. ", + ""); + I_Method0(const osg::Vec3 &, getWind, + __C5_osg_Vec3_R1__getWind, + "Get the wind vector. ", + ""); + I_Method1(void, setOverrideRadius, IN, float, r, + __void__setOverrideRadius__float, + "Set the overriden radius value (pass 0 if you want to use particle's radius). ", + ""); + I_Method0(float, getOverrideRadius, + __float__getOverrideRadius, + "Get the overriden radius value. ", + ""); + I_Method0(void, setFluidToAir, + __void__setFluidToAir, + "Set the fluid parameters as for air (20°C temperature). ", + ""); + I_Method0(void, setFluidToWater, + __void__setFluidToWater, + "Set the fluid parameters as for pure water (20°C temperature). ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + __void__operate__Particle_P1__double, + "Apply the friction forces to a particle. Do not call this method manually. ", + ""); + I_Method1(void, beginOperate, IN, osgParticle::Program *, prg, + __void__beginOperate__Program_P1, + "Perform some initializations. Do not call this method manually. ", + ""); + I_SimpleProperty(float, FluidDensity, + __float__getFluidDensity, + __void__setFluidDensity__float); + I_SimpleProperty(float, FluidViscosity, + __float__getFluidViscosity, + __void__setFluidViscosity__float); + I_SimpleProperty(float, OverrideRadius, + __float__getOverrideRadius, + __void__setOverrideRadius__float); + I_SimpleProperty(const osg::Vec3 &, Wind, + __C5_osg_Vec3_R1__getWind, + __void__setWind__C5_osg_Vec3_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/FluidProgram.cpp b/src/osgWrappers/osgParticle/FluidProgram.cpp index 91d6edc7f..aab0868c1 100644 --- a/src/osgWrappers/osgParticle/FluidProgram.cpp +++ b/src/osgWrappers/osgParticle/FluidProgram.cpp @@ -26,29 +26,95 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::FluidProgram) I_BaseType(osgParticle::Program); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::FluidProgram &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, setFluidViscosity, IN, float, v); - I_Method0(float, getFluidViscosity); - I_Method1(void, setFluidDensity, IN, float, d); - I_Method0(float, getFluidDensity); - I_Method1(void, setWind, IN, const osg::Vec3 &, wind); - I_Method0(const osg::Vec3 &, getWind); - I_Method1(void, setAcceleration, IN, const osg::Vec3 &, v); - I_Method0(const osg::Vec3 &, getAcceleration); - I_MethodWithDefaults1(void, setToGravity, IN, float, scale, 1.0f); - I_Method0(void, setFluidToAir); - I_Method0(void, setFluidToWater); - I_Property(const osg::Vec3 &, Acceleration); - I_Property(float, FluidDensity); - I_Property(float, FluidViscosity); - I_WriteOnlyProperty(float, ToGravity); - I_Property(const osg::Vec3 &, Wind); + I_Constructor0(____FluidProgram, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::FluidProgram &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____FluidProgram__C5_FluidProgram_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, setFluidViscosity, IN, float, v, + __void__setFluidViscosity__float, + "Set the viscosity of the fluid. ", + ""); + I_Method0(float, getFluidViscosity, + __float__getFluidViscosity, + "Get the viscosity of the fluid. ", + ""); + I_Method1(void, setFluidDensity, IN, float, d, + __void__setFluidDensity__float, + "Set the density of the fluid. ", + ""); + I_Method0(float, getFluidDensity, + __float__getFluidDensity, + "Get the density of the fluid. ", + ""); + I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + __void__setWind__C5_osg_Vec3_R1, + "Set the wind vector. ", + ""); + I_Method0(const osg::Vec3 &, getWind, + __C5_osg_Vec3_R1__getWind, + "Get the wind vector. ", + ""); + I_Method1(void, setAcceleration, IN, const osg::Vec3 &, v, + __void__setAcceleration__C5_osg_Vec3_R1, + "Set the acceleration vector. ", + ""); + I_Method0(const osg::Vec3 &, getAcceleration, + __C5_osg_Vec3_R1__getAcceleration, + "Get the acceleration vector. ", + ""); + I_MethodWithDefaults1(void, setToGravity, IN, float, scale, 1.0f, + __void__setToGravity__float, + "Set the acceleration vector to the gravity on earth (0, 0, -9.81). ", + "The acceleration will be multiplied by the scale parameter."); + I_Method0(void, setFluidToAir, + __void__setFluidToAir, + "Set the fluid parameters as for air (20°C temperature). ", + ""); + I_Method0(void, setFluidToWater, + __void__setFluidToWater, + "Set the fluid parameters as for pure water (20°C temperature). ", + ""); + I_SimpleProperty(const osg::Vec3 &, Acceleration, + __C5_osg_Vec3_R1__getAcceleration, + __void__setAcceleration__C5_osg_Vec3_R1); + I_SimpleProperty(float, FluidDensity, + __float__getFluidDensity, + __void__setFluidDensity__float); + I_SimpleProperty(float, FluidViscosity, + __float__getFluidViscosity, + __void__setFluidViscosity__float); + I_SimpleProperty(float, ToGravity, + 0, + __void__setToGravity__float); + I_SimpleProperty(const osg::Vec3 &, Wind, + __C5_osg_Vec3_R1__getWind, + __void__setWind__C5_osg_Vec3_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/ForceOperator.cpp b/src/osgWrappers/osgParticle/ForceOperator.cpp index 5f6b1196d..00a07bc3f 100644 --- a/src/osgWrappers/osgParticle/ForceOperator.cpp +++ b/src/osgWrappers/osgParticle/ForceOperator.cpp @@ -27,17 +27,51 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ForceOperator) I_BaseType(osgParticle::Operator); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::ForceOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(const osg::Vec3 &, getForce); - I_Method1(void, setForce, IN, const osg::Vec3 &, f); - I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt); - I_Method1(void, beginOperate, IN, osgParticle::Program *, prg); - I_Property(const osg::Vec3 &, Force); + I_Constructor0(____ForceOperator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ForceOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ForceOperator__C5_ForceOperator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(const osg::Vec3 &, getForce, + __C5_osg_Vec3_R1__getForce, + "Get the force vector. ", + ""); + I_Method1(void, setForce, IN, const osg::Vec3 &, f, + __void__setForce__C5_osg_Vec3_R1, + "Set the force vector. ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + __void__operate__Particle_P1__double, + "Apply the force to a particle. Do not call this method manually. ", + ""); + I_Method1(void, beginOperate, IN, osgParticle::Program *, prg, + __void__beginOperate__Program_P1, + "Perform some initialization. Do not call this method manually. ", + ""); + I_SimpleProperty(const osg::Vec3 &, Force, + __C5_osg_Vec3_R1__getForce, + __void__setForce__C5_osg_Vec3_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/Interpolator.cpp b/src/osgWrappers/osgParticle/Interpolator.cpp index ab9fa488d..529586cbe 100644 --- a/src/osgWrappers/osgParticle/Interpolator.cpp +++ b/src/osgWrappers/osgParticle/Interpolator.cpp @@ -27,14 +27,40 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Interpolator) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::Interpolator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method3(float, interpolate, IN, float, t, IN, float, y1, IN, float, y2); - I_Method3(osg::Vec2, interpolate, IN, float, t, IN, const osg::Vec2 &, y1, IN, const osg::Vec2 &, y2); - I_Method3(osg::Vec3, interpolate, IN, float, t, IN, const osg::Vec3 &, y1, IN, const osg::Vec3 &, y2); - I_Method3(osg::Vec4, interpolate, IN, float, t, IN, const osg::Vec4 &, y1, IN, const osg::Vec4 &, y2); + I_Constructor0(____Interpolator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Interpolator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Interpolator__C5_Interpolator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method3(float, interpolate, IN, float, t, IN, float, y1, IN, float, y2, + __float__interpolate__float__float__float, + "Interpolate between floats. Must be overriden in descendant classes. ", + ""); + I_Method3(osg::Vec2, interpolate, IN, float, t, IN, const osg::Vec2 &, y1, IN, const osg::Vec2 &, y2, + __osg_Vec2__interpolate__float__C5_osg_Vec2_R1__C5_osg_Vec2_R1, + "Interpolate between 2-dimensional vectors. Default behavior is to interpolate each component separately. ", + ""); + I_Method3(osg::Vec3, interpolate, IN, float, t, IN, const osg::Vec3 &, y1, IN, const osg::Vec3 &, y2, + __osg_Vec3__interpolate__float__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "Interpolate between 3-dimensional vectors. Default behavior is to interpolate each component separately. ", + ""); + I_Method3(osg::Vec4, interpolate, IN, float, t, IN, const osg::Vec4 &, y1, IN, const osg::Vec4 &, y2, + __osg_Vec4__interpolate__float__C5_osg_Vec4_R1__C5_osg_Vec4_R1, + "Interpolate between 4-dimensional vectors. Default behavior is to interpolate each component separately. ", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/LinearInterpolator.cpp b/src/osgWrappers/osgParticle/LinearInterpolator.cpp index da3ba4795..abeb62cc4 100644 --- a/src/osgWrappers/osgParticle/LinearInterpolator.cpp +++ b/src/osgWrappers/osgParticle/LinearInterpolator.cpp @@ -24,13 +24,36 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::LinearInterpolator) I_BaseType(osgParticle::Interpolator); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::LinearInterpolator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method3(float, interpolate, IN, float, t, IN, float, y1, IN, float, y2); + I_Constructor0(____LinearInterpolator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::LinearInterpolator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LinearInterpolator__C5_LinearInterpolator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method3(float, interpolate, IN, float, t, IN, float, y1, IN, float, y2, + __float__interpolate__float__float__float, + "Interpolate between floats. Must be overriden in descendant classes. ", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/ModularEmitter.cpp b/src/osgWrappers/osgParticle/ModularEmitter.cpp index e69c0cc4c..517348fc5 100644 --- a/src/osgWrappers/osgParticle/ModularEmitter.cpp +++ b/src/osgWrappers/osgParticle/ModularEmitter.cpp @@ -28,28 +28,92 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ModularEmitter) I_BaseType(osgParticle::Emitter); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::ModularEmitter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(osgParticle::Counter *, getCounter); - I_Method0(const osgParticle::Counter *, getCounter); - I_Method1(void, setCounter, IN, osgParticle::Counter *, c); - I_Method0(float, getNumParticlesToCreateMovementCompenstationRatio); - I_Method1(void, setNumParticlesToCreateMovementCompenstationRatio, IN, float, r); - I_Method0(osgParticle::Placer *, getPlacer); - I_Method0(const osgParticle::Placer *, getPlacer); - I_Method1(void, setPlacer, IN, osgParticle::Placer *, p); - I_Method0(osgParticle::Shooter *, getShooter); - I_Method0(const osgParticle::Shooter *, getShooter); - I_Method1(void, setShooter, IN, osgParticle::Shooter *, s); - I_Property(osgParticle::Counter *, Counter); - I_WriteOnlyProperty(float, NumParticlesToCreateMovementCompenstationRatio); - I_Property(osgParticle::Placer *, Placer); - I_Property(osgParticle::Shooter *, Shooter); + I_Constructor0(____ModularEmitter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ModularEmitter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ModularEmitter__C5_ModularEmitter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(osgParticle::Counter *, getCounter, + __Counter_P1__getCounter, + "Get the counter object. ", + ""); + I_Method0(const osgParticle::Counter *, getCounter, + __C5_Counter_P1__getCounter, + "Get the const Counter object. ", + ""); + I_Method1(void, setCounter, IN, osgParticle::Counter *, c, + __void__setCounter__Counter_P1, + "Set the Counter object. ", + ""); + I_Method0(float, getNumParticlesToCreateMovementCompenstationRatio, + __float__getNumParticlesToCreateMovementCompenstationRatio, + "Get the ratio between number of particle to create in compenstation for movement of the emitter. ", + ""); + I_Method1(void, setNumParticlesToCreateMovementCompenstationRatio, IN, float, r, + __void__setNumParticlesToCreateMovementCompenstationRatio__float, + "Set the ratio between number of particle to create in compenstation for movement of the emitter. ", + ""); + I_Method0(osgParticle::Placer *, getPlacer, + __Placer_P1__getPlacer, + "Get the Placer object. ", + ""); + I_Method0(const osgParticle::Placer *, getPlacer, + __C5_Placer_P1__getPlacer, + "Get the const Placer object. ", + ""); + I_Method1(void, setPlacer, IN, osgParticle::Placer *, p, + __void__setPlacer__Placer_P1, + "Set the Placer object. ", + ""); + I_Method0(osgParticle::Shooter *, getShooter, + __Shooter_P1__getShooter, + "Get the Shooter object. ", + ""); + I_Method0(const osgParticle::Shooter *, getShooter, + __C5_Shooter_P1__getShooter, + "Get the const Shooter object. ", + ""); + I_Method1(void, setShooter, IN, osgParticle::Shooter *, s, + __void__setShooter__Shooter_P1, + "Set the Shooter object. ", + ""); + I_SimpleProperty(osgParticle::Counter *, Counter, + __Counter_P1__getCounter, + __void__setCounter__Counter_P1); + I_SimpleProperty(float, NumParticlesToCreateMovementCompenstationRatio, + 0, + __void__setNumParticlesToCreateMovementCompenstationRatio__float); + I_SimpleProperty(osgParticle::Placer *, Placer, + __Placer_P1__getPlacer, + __void__setPlacer__Placer_P1); + I_SimpleProperty(osgParticle::Shooter *, Shooter, + __Shooter_P1__getShooter, + __void__setShooter__Shooter_P1); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/ModularProgram.cpp b/src/osgWrappers/osgParticle/ModularProgram.cpp index 26898d95b..5e8a5d570 100644 --- a/src/osgWrappers/osgParticle/ModularProgram.cpp +++ b/src/osgWrappers/osgParticle/ModularProgram.cpp @@ -26,18 +26,56 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ModularProgram) I_BaseType(osgParticle::Program); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::ModularProgram &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(int, numOperators); - I_Method1(void, addOperator, IN, osgParticle::Operator *, o); - I_Method1(osgParticle::Operator *, getOperator, IN, int, i); - I_Method1(const osgParticle::Operator *, getOperator, IN, int, i); - I_Method1(void, removeOperator, IN, int, i); + I_Constructor0(____ModularProgram, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ModularProgram &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ModularProgram__C5_ModularProgram_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(int, numOperators, + __int__numOperators, + "Get the number of operators. ", + ""); + I_Method1(void, addOperator, IN, osgParticle::Operator *, o, + __void__addOperator__Operator_P1, + "Add an operator to the list. ", + ""); + I_Method1(osgParticle::Operator *, getOperator, IN, int, i, + __Operator_P1__getOperator__int, + "Get a pointer to an operator in the list. ", + ""); + I_Method1(const osgParticle::Operator *, getOperator, IN, int, i, + __C5_Operator_P1__getOperator__int, + "Get a const pointer to an operator in the list. ", + ""); + I_Method1(void, removeOperator, IN, int, i, + __void__removeOperator__int, + "Remove an operator from the list. ", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp b/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp index e50b820d7..84eb818a8 100644 --- a/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp +++ b/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp @@ -26,23 +26,75 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::MultiSegmentPlacer) I_BaseType(osgParticle::Placer); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::MultiSegmentPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(int, numVertices); - I_Method1(const osg::Vec3 &, getVertex, IN, int, i); - I_Method2(void, setVertex, IN, int, i, IN, const osg::Vec3 &, v); - I_Method4(void, setVertex, IN, int, i, IN, float, x, IN, float, y, IN, float, z); - I_Method1(void, addVertex, IN, const osg::Vec3 &, v); - I_Method3(void, addVertex, IN, float, x, IN, float, y, IN, float, z); - I_Method1(void, removeVertex, IN, int, i); - I_Method1(void, place, IN, osgParticle::Particle *, P); - I_Method0(osg::Vec3, getControlPosition); - I_ReadOnlyProperty(osg::Vec3, ControlPosition); - I_IndexedProperty1(const osg::Vec3 &, Vertex, int, i); + I_Constructor0(____MultiSegmentPlacer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::MultiSegmentPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____MultiSegmentPlacer__C5_MultiSegmentPlacer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(int, numVertices, + __int__numVertices, + "Get the number of vertices which define the segments. ", + ""); + I_Method1(const osg::Vec3 &, getVertex, IN, int, i, + __C5_osg_Vec3_R1__getVertex__int, + "Get a vertex. ", + ""); + I_Method2(void, setVertex, IN, int, i, IN, const osg::Vec3 &, v, + __void__setVertex__int__C5_osg_Vec3_R1, + "Set a vertex. ", + ""); + I_Method4(void, setVertex, IN, int, i, IN, float, x, IN, float, y, IN, float, z, + __void__setVertex__int__float__float__float, + "Set a vertex. ", + ""); + I_Method1(void, addVertex, IN, const osg::Vec3 &, v, + __void__addVertex__C5_osg_Vec3_R1, + "Add a vertex. ", + ""); + I_Method3(void, addVertex, IN, float, x, IN, float, y, IN, float, z, + __void__addVertex__float__float__float, + "Add a vertex. ", + ""); + I_Method1(void, removeVertex, IN, int, i, + __void__removeVertex__int, + "Remove a vertex. ", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + __void__place__Particle_P1, + "Place a partice. Called automatically by ModularEmitter, do not call this method manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + I_SimpleProperty(osg::Vec3, ControlPosition, + __osg_Vec3__getControlPosition, + 0); + I_IndexedProperty(const osg::Vec3 &, Vertex, + __C5_osg_Vec3_R1__getVertex__int, + __void__setVertex__int__C5_osg_Vec3_R1, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/Operator.cpp b/src/osgWrappers/osgParticle/Operator.cpp index 8bf3bf571..d5caab31a 100644 --- a/src/osgWrappers/osgParticle/Operator.cpp +++ b/src/osgWrappers/osgParticle/Operator.cpp @@ -26,16 +26,47 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Operator) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::Operator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(bool, isEnabled); - I_Method1(void, setEnabled, IN, bool, v); - I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt); - I_Method1(void, beginOperate, IN, osgParticle::Program *, x); - I_Method0(void, endOperate); - I_WriteOnlyProperty(bool, Enabled); + I_Constructor0(____Operator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Operator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Operator__C5_Operator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(bool, isEnabled, + __bool__isEnabled, + "Get whether this operator is enabled. ", + ""); + I_Method1(void, setEnabled, IN, bool, v, + __void__setEnabled__bool, + "Enable or disable this operator. ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + __void__operate__Particle_P1__double, + "Do something on a particle. ", + "This method is called by ModularProgram objects to perform some operations on the particles. You must override it in descendant classes. Common operations consist of modifying the particle's velocity vector. The dt parameter is the time elapsed from last operation."); + I_Method1(void, beginOperate, IN, osgParticle::Program *, x, + __void__beginOperate__Program_P1, + "Do something before processing particles via the operate() method. ", + "Overriding this method could be necessary to query the calling Program object for the current reference frame. If the reference frame is RELATIVE_RF, then your class should prepare itself to do all operations in local coordinates."); + I_Method0(void, endOperate, + __void__endOperate, + "Do something after all particles have been processed. ", + ""); + I_SimpleProperty(bool, Enabled, + 0, + __void__setEnabled__bool); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/Particle.cpp b/src/osgWrappers/osgParticle/Particle.cpp index 99c025c4c..b5914601a 100644 --- a/src/osgWrappers/osgParticle/Particle.cpp +++ b/src/osgWrappers/osgParticle/Particle.cpp @@ -35,91 +35,320 @@ BEGIN_ENUM_REFLECTOR(osgParticle::Particle::Shape) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgParticle::Particle) - I_Constructor0(); - I_Method0(osgParticle::Particle::Shape, getShape); - I_Method1(void, setShape, IN, osgParticle::Particle::Shape, s); - I_Method0(bool, isAlive); - I_Method0(double, getLifeTime); - I_Method0(double, getAge); - I_Method0(const osgParticle::rangef &, getSizeRange); - I_Method0(const osgParticle::rangef &, getAlphaRange); - I_Method0(const osgParticle::rangev4 &, getColorRange); - I_Method0(const osgParticle::Interpolator *, getSizeInterpolator); - I_Method0(const osgParticle::Interpolator *, getAlphaInterpolator); - I_Method0(const osgParticle::Interpolator *, getColorInterpolator); - I_Method0(float, getRadius); - I_Method0(float, getMass); - I_Method0(float, getMassInv); - I_Method0(const osg::Vec3 &, getPosition); - I_Method0(const osg::Vec3 &, getVelocity); - I_Method0(const osg::Vec3 &, getPreviousPosition); - I_Method0(const osg::Vec3 &, getAngle); - I_Method0(const osg::Vec3 &, getAngularVelocity); - I_Method0(const osg::Vec3 &, getPreviousAngle); - I_Method0(const osg::Vec4 &, getCurrentColor); - I_Method0(float, getCurrentAlpha); - I_Method0(const float, getSTexCoord); - I_Method0(float, getTCoord); - I_Method0(int, getTileS); - I_Method0(int, getTileT); - I_Method0(int, getNumTiles); - I_Method0(void, kill); - I_Method1(void, setLifeTime, IN, double, t); - I_Method1(void, setSizeRange, IN, const osgParticle::rangef &, r); - I_Method1(void, setAlphaRange, IN, const osgParticle::rangef &, r); - I_Method1(void, setColorRange, IN, const osgParticle::rangev4 &, r); - I_Method1(void, setSizeInterpolator, IN, osgParticle::Interpolator *, ri); - I_Method1(void, setAlphaInterpolator, IN, osgParticle::Interpolator *, ai); - I_Method1(void, setColorInterpolator, IN, osgParticle::Interpolator *, ci); - I_Method1(void, setRadius, IN, float, r); - I_Method1(void, setMass, IN, float, m); - I_Method1(void, setPosition, IN, const osg::Vec3 &, p); - I_Method1(void, setVelocity, IN, const osg::Vec3 &, v); - I_Method1(void, addVelocity, IN, const osg::Vec3 &, dv); - I_Method1(void, transformPositionVelocity, IN, const osg::Matrix &, xform); - I_Method3(void, transformPositionVelocity, IN, const osg::Matrix &, xform1, IN, const osg::Matrix &, xform2, IN, float, r); - I_Method1(void, setAngle, IN, const osg::Vec3 &, a); - I_Method1(void, setAngularVelocity, IN, const osg::Vec3 &, v); - I_Method1(void, addAngularVelocity, IN, const osg::Vec3 &, dv); - I_Method1(void, transformAngleVelocity, IN, const osg::Matrix &, xform); - I_Method1(bool, update, IN, double, dt); - I_Method0(void, beginRender); - I_MethodWithDefaults4(void, render, IN, const osg::Vec3 &, xpos, , IN, const osg::Vec3 &, px, , IN, const osg::Vec3 &, py, , IN, float, scale, 1.0f); - I_Method0(void, endRender); - I_Method0(float, getCurrentSize); - I_MethodWithDefaults3(void, setTextureTile, IN, int, sTile, , IN, int, tTile, , IN, int, numTiles, 0); - I_Method1(void, setPreviousParticle, IN, int, previous); - I_Method0(int, getPreviousParticle); - I_Method1(void, setNextParticle, IN, int, next); - I_Method0(int, getNextParticle); - I_Method1(void, setUpTexCoordsAsPartOfConnectedParticleSystem, IN, osgParticle::ParticleSystem *, ps); - I_ReadOnlyProperty(double, Age); - I_WriteOnlyProperty(osgParticle::Interpolator *, AlphaInterpolator); - I_Property(const osgParticle::rangef &, AlphaRange); - I_Property(const osg::Vec3 &, Angle); - I_Property(const osg::Vec3 &, AngularVelocity); - I_WriteOnlyProperty(osgParticle::Interpolator *, ColorInterpolator); - I_Property(const osgParticle::rangev4 &, ColorRange); - I_ReadOnlyProperty(float, CurrentAlpha); - I_ReadOnlyProperty(const osg::Vec4 &, CurrentColor); - I_ReadOnlyProperty(float, CurrentSize); - I_Property(double, LifeTime); - I_Property(float, Mass); - I_ReadOnlyProperty(float, MassInv); - I_Property(int, NextParticle); - I_Property(const osg::Vec3 &, Position); - I_ReadOnlyProperty(const osg::Vec3 &, PreviousAngle); - I_Property(int, PreviousParticle); - I_ReadOnlyProperty(const osg::Vec3 &, PreviousPosition); - I_Property(float, Radius); - I_ReadOnlyProperty(const float, STexCoord); - I_Property(osgParticle::Particle::Shape, Shape); - I_WriteOnlyProperty(osgParticle::Interpolator *, SizeInterpolator); - I_Property(const osgParticle::rangef &, SizeRange); - I_ReadOnlyProperty(float, TCoord); - I_ReadOnlyProperty(int, TileS); - I_ReadOnlyProperty(int, TileT); - I_WriteOnlyProperty(osgParticle::ParticleSystem *, UpTexCoordsAsPartOfConnectedParticleSystem); - I_Property(const osg::Vec3 &, Velocity); + I_Constructor0(____Particle, + "", + ""); + I_Method0(osgParticle::Particle::Shape, getShape, + __Shape__getShape, + "Get the shape of the particle. ", + ""); + I_Method1(void, setShape, IN, osgParticle::Particle::Shape, s, + __void__setShape__Shape, + "Set the shape of the particle. ", + ""); + I_Method0(bool, isAlive, + __bool__isAlive, + "Get whether the particle is still alive. ", + ""); + I_Method0(double, getLifeTime, + __double__getLifeTime, + "Get the life time of the particle (in seconds). ", + ""); + I_Method0(double, getAge, + __double__getAge, + "Get the age of the particle (in seconds). ", + ""); + I_Method0(const osgParticle::rangef &, getSizeRange, + __C5_rangef_R1__getSizeRange, + "Get the minimum and maximum values for polygon size. ", + ""); + I_Method0(const osgParticle::rangef &, getAlphaRange, + __C5_rangef_R1__getAlphaRange, + "Get the minimum and maximum values for alpha. ", + ""); + I_Method0(const osgParticle::rangev4 &, getColorRange, + __C5_rangev4_R1__getColorRange, + "Get the minimum and maximum values for color. ", + ""); + I_Method0(const osgParticle::Interpolator *, getSizeInterpolator, + __C5_Interpolator_P1__getSizeInterpolator, + "Get the interpolator for computing the size of polygons. ", + ""); + I_Method0(const osgParticle::Interpolator *, getAlphaInterpolator, + __C5_Interpolator_P1__getAlphaInterpolator, + "Get the interpolator for computing alpha values. ", + ""); + I_Method0(const osgParticle::Interpolator *, getColorInterpolator, + __C5_Interpolator_P1__getColorInterpolator, + "Get the interpolator for computing color values. ", + ""); + I_Method0(float, getRadius, + __float__getRadius, + "Get the physical radius of the particle. ", + "For built-in operators to work correctly, lengths must be expressed in meters."); + I_Method0(float, getMass, + __float__getMass, + "Get the mass of the particle. ", + "For built-in operators to work correctly, remember that the mass is expressed in kg."); + I_Method0(float, getMassInv, + __float__getMassInv, + "Get 1 / getMass(). ", + ""); + I_Method0(const osg::Vec3 &, getPosition, + __C5_osg_Vec3_R1__getPosition, + "Get the position vector. ", + ""); + I_Method0(const osg::Vec3 &, getVelocity, + __C5_osg_Vec3_R1__getVelocity, + "Get the velocity vector. ", + "For built-in operators to work correctly, remember that velocity components are expressed in meters per second."); + I_Method0(const osg::Vec3 &, getPreviousPosition, + __C5_osg_Vec3_R1__getPreviousPosition, + "Get the previous position (the position before last update). ", + ""); + I_Method0(const osg::Vec3 &, getAngle, + __C5_osg_Vec3_R1__getAngle, + "Get the angle vector. ", + ""); + I_Method0(const osg::Vec3 &, getAngularVelocity, + __C5_osg_Vec3_R1__getAngularVelocity, + "Get the rotational velocity vector. ", + ""); + I_Method0(const osg::Vec3 &, getPreviousAngle, + __C5_osg_Vec3_R1__getPreviousAngle, + "Get the previous angle vector. ", + ""); + I_Method0(const osg::Vec4 &, getCurrentColor, + __C5_osg_Vec4_R1__getCurrentColor, + "Get the current color. ", + ""); + I_Method0(float, getCurrentAlpha, + __float__getCurrentAlpha, + "Get the current alpha. ", + ""); + I_Method0(const float, getSTexCoord, + __C5_float__getSTexCoord, + "Get the s texture coordinate of the bottom left of the particle. ", + ""); + I_Method0(float, getTCoord, + __float__getTCoord, + "Get the t texture coordinate of the bottom left of the particle. ", + ""); + I_Method0(int, getTileS, + __int__getTileS, + "Get width of texture tile. ", + ""); + I_Method0(int, getTileT, + __int__getTileT, + "Get height of texture tile. ", + ""); + I_Method0(int, getNumTiles, + __int__getNumTiles, + "Get number of texture tiles. ", + ""); + I_Method0(void, kill, + __void__kill, + "Kill the particle on next update NOTE: after calling this function, the isAlive() method will still return true until the particle is updated again. ", + ""); + I_Method1(void, setLifeTime, IN, double, t, + __void__setLifeTime__double, + "Set the life time of the particle. ", + ""); + I_Method1(void, setSizeRange, IN, const osgParticle::rangef &, r, + __void__setSizeRange__C5_rangef_R1, + "Set the minimum and maximum values for polygon size. ", + ""); + I_Method1(void, setAlphaRange, IN, const osgParticle::rangef &, r, + __void__setAlphaRange__C5_rangef_R1, + "Set the minimum and maximum values for alpha. ", + ""); + I_Method1(void, setColorRange, IN, const osgParticle::rangev4 &, r, + __void__setColorRange__C5_rangev4_R1, + "Set the minimum and maximum values for color. ", + ""); + I_Method1(void, setSizeInterpolator, IN, osgParticle::Interpolator *, ri, + __void__setSizeInterpolator__Interpolator_P1, + "Set the interpolator for computing size values. ", + ""); + I_Method1(void, setAlphaInterpolator, IN, osgParticle::Interpolator *, ai, + __void__setAlphaInterpolator__Interpolator_P1, + "Set the interpolator for computing alpha values. ", + ""); + I_Method1(void, setColorInterpolator, IN, osgParticle::Interpolator *, ci, + __void__setColorInterpolator__Interpolator_P1, + "Set the interpolator for computing color values. ", + ""); + I_Method1(void, setRadius, IN, float, r, + __void__setRadius__float, + "Set the physical radius of the particle. ", + "For built-in operators to work correctly, lengths must be expressed in meters."); + I_Method1(void, setMass, IN, float, m, + __void__setMass__float, + "Set the mass of the particle. ", + "For built-in operators to work correctly, remember that the mass is expressed in kg."); + I_Method1(void, setPosition, IN, const osg::Vec3 &, p, + __void__setPosition__C5_osg_Vec3_R1, + "Set the position vector. ", + ""); + I_Method1(void, setVelocity, IN, const osg::Vec3 &, v, + __void__setVelocity__C5_osg_Vec3_R1, + "Set the velocity vector. ", + "For built-in operators to work correctly, remember that velocity components are expressed in meters per second."); + I_Method1(void, addVelocity, IN, const osg::Vec3 &, dv, + __void__addVelocity__C5_osg_Vec3_R1, + "Add a vector to the velocity vector. ", + ""); + I_Method1(void, transformPositionVelocity, IN, const osg::Matrix &, xform, + __void__transformPositionVelocity__C5_osg_Matrix_R1, + "Transform position and velocity vectors by a matrix. ", + ""); + I_Method3(void, transformPositionVelocity, IN, const osg::Matrix &, xform1, IN, const osg::Matrix &, xform2, IN, float, r, + __void__transformPositionVelocity__C5_osg_Matrix_R1__C5_osg_Matrix_R1__float, + "Transform position and velocity vectors by a combination of two matrices. ", + ""); + I_Method1(void, setAngle, IN, const osg::Vec3 &, a, + __void__setAngle__C5_osg_Vec3_R1, + "Set the angle vector. ", + ""); + I_Method1(void, setAngularVelocity, IN, const osg::Vec3 &, v, + __void__setAngularVelocity__C5_osg_Vec3_R1, + "Set the angular velocity vector. ", + "Components x, y and z are angles of rotation around the respective axis (in radians)."); + I_Method1(void, addAngularVelocity, IN, const osg::Vec3 &, dv, + __void__addAngularVelocity__C5_osg_Vec3_R1, + "Add a vector to the angular velocity vector. ", + ""); + I_Method1(void, transformAngleVelocity, IN, const osg::Matrix &, xform, + __void__transformAngleVelocity__C5_osg_Matrix_R1, + "Transform angle and angularVelocity vectors by a matrix. ", + ""); + I_Method1(bool, update, IN, double, dt, + __bool__update__double, + "Update the particle (don't call this method manually). ", + "This method is called automatically by ParticleSystem::update(); it updates the graphical properties of the particle for the current time, checks whether the particle is still alive, and then updates its position by computing P = P + V * dt (where P is the position and V is the velocity)."); + I_Method0(void, beginRender, + __void__beginRender, + "Perform some pre-rendering tasks. Called automatically by particle systems. ", + ""); + I_MethodWithDefaults4(void, render, IN, const osg::Vec3 &, xpos, , IN, const osg::Vec3 &, px, , IN, const osg::Vec3 &, py, , IN, float, scale, 1.0f, + __void__render__C5_osg_Vec3_R1__C5_osg_Vec3_R1__C5_osg_Vec3_R1__float, + "Render the particle. Called automatically by particle systems. ", + ""); + I_Method0(void, endRender, + __void__endRender, + "Perform some post-rendering tasks. Called automatically by particle systems. ", + ""); + I_Method0(float, getCurrentSize, + __float__getCurrentSize, + "Get the current (interpolated) polygon size. Valid only after the first call to update(). ", + ""); + I_MethodWithDefaults3(void, setTextureTile, IN, int, sTile, , IN, int, tTile, , IN, int, numTiles, 0, + __void__setTextureTile__int__int__int, + "Specify how the particle texture is tiled. ", + ""); + I_Method1(void, setPreviousParticle, IN, int, previous, + __void__setPreviousParticle__int, + "Set the previous particle. ", + ""); + I_Method0(int, getPreviousParticle, + __int__getPreviousParticle, + "Get the previous particle. ", + ""); + I_Method1(void, setNextParticle, IN, int, next, + __void__setNextParticle__int, + "Set the next particle. ", + ""); + I_Method0(int, getNextParticle, + __int__getNextParticle, + "Get the const next particle. ", + ""); + I_Method1(void, setUpTexCoordsAsPartOfConnectedParticleSystem, IN, osgParticle::ParticleSystem *, ps, + __void__setUpTexCoordsAsPartOfConnectedParticleSystem__ParticleSystem_P1, + "Method for initializing a particles texture coords as part of a connected particle system. ", + ""); + I_SimpleProperty(double, Age, + __double__getAge, + 0); + I_SimpleProperty(osgParticle::Interpolator *, AlphaInterpolator, + 0, + __void__setAlphaInterpolator__Interpolator_P1); + I_SimpleProperty(const osgParticle::rangef &, AlphaRange, + __C5_rangef_R1__getAlphaRange, + __void__setAlphaRange__C5_rangef_R1); + I_SimpleProperty(const osg::Vec3 &, Angle, + __C5_osg_Vec3_R1__getAngle, + __void__setAngle__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, AngularVelocity, + __C5_osg_Vec3_R1__getAngularVelocity, + __void__setAngularVelocity__C5_osg_Vec3_R1); + I_SimpleProperty(osgParticle::Interpolator *, ColorInterpolator, + 0, + __void__setColorInterpolator__Interpolator_P1); + I_SimpleProperty(const osgParticle::rangev4 &, ColorRange, + __C5_rangev4_R1__getColorRange, + __void__setColorRange__C5_rangev4_R1); + I_SimpleProperty(float, CurrentAlpha, + __float__getCurrentAlpha, + 0); + I_SimpleProperty(const osg::Vec4 &, CurrentColor, + __C5_osg_Vec4_R1__getCurrentColor, + 0); + I_SimpleProperty(float, CurrentSize, + __float__getCurrentSize, + 0); + I_SimpleProperty(double, LifeTime, + __double__getLifeTime, + __void__setLifeTime__double); + I_SimpleProperty(float, Mass, + __float__getMass, + __void__setMass__float); + I_SimpleProperty(float, MassInv, + __float__getMassInv, + 0); + I_SimpleProperty(int, NextParticle, + __int__getNextParticle, + __void__setNextParticle__int); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, PreviousAngle, + __C5_osg_Vec3_R1__getPreviousAngle, + 0); + I_SimpleProperty(int, PreviousParticle, + __int__getPreviousParticle, + __void__setPreviousParticle__int); + I_SimpleProperty(const osg::Vec3 &, PreviousPosition, + __C5_osg_Vec3_R1__getPreviousPosition, + 0); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); + I_SimpleProperty(const float, STexCoord, + __C5_float__getSTexCoord, + 0); + I_SimpleProperty(osgParticle::Particle::Shape, Shape, + __Shape__getShape, + __void__setShape__Shape); + I_SimpleProperty(osgParticle::Interpolator *, SizeInterpolator, + 0, + __void__setSizeInterpolator__Interpolator_P1); + I_SimpleProperty(const osgParticle::rangef &, SizeRange, + __C5_rangef_R1__getSizeRange, + __void__setSizeRange__C5_rangef_R1); + I_SimpleProperty(float, TCoord, + __float__getTCoord, + 0); + I_SimpleProperty(int, TileS, + __int__getTileS, + 0); + I_SimpleProperty(int, TileT, + __int__getTileT, + 0); + I_SimpleProperty(osgParticle::ParticleSystem *, UpTexCoordsAsPartOfConnectedParticleSystem, + 0, + __void__setUpTexCoordsAsPartOfConnectedParticleSystem__ParticleSystem_P1); + I_SimpleProperty(const osg::Vec3 &, Velocity, + __C5_osg_Vec3_R1__getVelocity, + __void__setVelocity__C5_osg_Vec3_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/ParticleEffect.cpp b/src/osgWrappers/osgParticle/ParticleEffect.cpp index fa240a0ba..81c851de2 100644 --- a/src/osgWrappers/osgParticle/ParticleEffect.cpp +++ b/src/osgWrappers/osgParticle/ParticleEffect.cpp @@ -30,58 +30,203 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleEffect) I_BaseType(osg::Group); - I_ConstructorWithDefaults1(IN, bool, automaticSetup, true); - I_ConstructorWithDefaults2(IN, const osgParticle::ParticleEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, setAutomaticSetup, IN, bool, flag); - I_Method0(bool, getAutomaticSetup); - I_Method1(void, setUseLocalParticleSystem, IN, bool, local); - I_Method0(bool, getUseLocalParticleSystem); - I_Method1(void, setTextureFileName, IN, const std::string &, filename); - I_Method0(const std::string &, getTextureFileName); - I_Method1(void, setDefaultParticleTemplate, IN, const osgParticle::Particle &, p); - I_Method0(const osgParticle::Particle &, getDefaultParticleTemplate); - I_Method1(void, setPosition, IN, const osg::Vec3 &, position); - I_Method0(const osg::Vec3 &, getPosition); - I_Method1(void, setScale, IN, float, scale); - I_Method0(float, getScale); - I_Method1(void, setIntensity, IN, float, intensity); - I_Method0(float, getIntensity); - I_Method1(void, setStartTime, IN, double, startTime); - I_Method0(double, getStartTime); - I_Method1(void, setEmitterDuration, IN, double, duration); - I_Method0(double, getEmitterDuration); - I_Method1(void, setParticleDuration, IN, double, duration); - I_Method0(double, getParticleDuration); - I_Method1(void, setWind, IN, const osg::Vec3 &, wind); - I_Method0(const osg::Vec3 &, getWind); - I_Method0(bool, areAllParticlesDead); - I_Method0(osgParticle::Emitter *, getEmitter); - I_Method0(const osgParticle::Emitter *, getEmitter); - I_Method0(osgParticle::Program *, getProgram); - I_Method0(const osgParticle::Program *, getProgram); - I_Method1(void, setParticleSystem, IN, osgParticle::ParticleSystem *, ps); - I_Method0(osgParticle::ParticleSystem *, getParticleSystem); - I_Method0(const osgParticle::ParticleSystem *, getParticleSystem); - I_Method0(void, setDefaults); - I_Method0(void, setUpEmitterAndProgram); - I_Method0(void, buildEffect); - I_Property(bool, AutomaticSetup); - I_Property(const osgParticle::Particle &, DefaultParticleTemplate); - I_ReadOnlyProperty(osgParticle::Emitter *, Emitter); - I_Property(double, EmitterDuration); - I_Property(float, Intensity); - I_Property(double, ParticleDuration); - I_Property(osgParticle::ParticleSystem *, ParticleSystem); - I_Property(const osg::Vec3 &, Position); - I_ReadOnlyProperty(osgParticle::Program *, Program); - I_Property(float, Scale); - I_Property(double, StartTime); - I_Property(const std::string &, TextureFileName); - I_Property(bool, UseLocalParticleSystem); - I_Property(const osg::Vec3 &, Wind); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + ____ParticleEffect__bool, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ParticleEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ParticleEffect__C5_ParticleEffect_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, setAutomaticSetup, IN, bool, flag, + __void__setAutomaticSetup__bool, + "", + ""); + I_Method0(bool, getAutomaticSetup, + __bool__getAutomaticSetup, + "", + ""); + I_Method1(void, setUseLocalParticleSystem, IN, bool, local, + __void__setUseLocalParticleSystem__bool, + "", + ""); + I_Method0(bool, getUseLocalParticleSystem, + __bool__getUseLocalParticleSystem, + "", + ""); + I_Method1(void, setTextureFileName, IN, const std::string &, filename, + __void__setTextureFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getTextureFileName, + __C5_std_string_R1__getTextureFileName, + "", + ""); + I_Method1(void, setDefaultParticleTemplate, IN, const osgParticle::Particle &, p, + __void__setDefaultParticleTemplate__C5_Particle_R1, + "", + ""); + I_Method0(const osgParticle::Particle &, getDefaultParticleTemplate, + __C5_Particle_R1__getDefaultParticleTemplate, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, position, + __void__setPosition__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getPosition, + __C5_osg_Vec3_R1__getPosition, + "", + ""); + I_Method1(void, setScale, IN, float, scale, + __void__setScale__float, + "", + ""); + I_Method0(float, getScale, + __float__getScale, + "", + ""); + I_Method1(void, setIntensity, IN, float, intensity, + __void__setIntensity__float, + "", + ""); + I_Method0(float, getIntensity, + __float__getIntensity, + "", + ""); + I_Method1(void, setStartTime, IN, double, startTime, + __void__setStartTime__double, + "", + ""); + I_Method0(double, getStartTime, + __double__getStartTime, + "", + ""); + I_Method1(void, setEmitterDuration, IN, double, duration, + __void__setEmitterDuration__double, + "", + ""); + I_Method0(double, getEmitterDuration, + __double__getEmitterDuration, + "", + ""); + I_Method1(void, setParticleDuration, IN, double, duration, + __void__setParticleDuration__double, + "", + ""); + I_Method0(double, getParticleDuration, + __double__getParticleDuration, + "", + ""); + I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + __void__setWind__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getWind, + __C5_osg_Vec3_R1__getWind, + "", + ""); + I_Method0(bool, areAllParticlesDead, + __bool__areAllParticlesDead, + "Get whether all particles are dead. ", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + __C5_Program_P1__getProgram, + "", + ""); + I_Method1(void, setParticleSystem, IN, osgParticle::ParticleSystem *, ps, + __void__setParticleSystem__ParticleSystem_P1, + "", + ""); + I_Method0(osgParticle::ParticleSystem *, getParticleSystem, + __ParticleSystem_P1__getParticleSystem, + "", + ""); + I_Method0(const osgParticle::ParticleSystem *, getParticleSystem, + __C5_ParticleSystem_P1__getParticleSystem, + "", + ""); + I_Method0(void, setDefaults, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(void, buildEffect, + __void__buildEffect, + "", + ""); + I_SimpleProperty(bool, AutomaticSetup, + __bool__getAutomaticSetup, + __void__setAutomaticSetup__bool); + I_SimpleProperty(const osgParticle::Particle &, DefaultParticleTemplate, + __C5_Particle_R1__getDefaultParticleTemplate, + __void__setDefaultParticleTemplate__C5_Particle_R1); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(double, EmitterDuration, + __double__getEmitterDuration, + __void__setEmitterDuration__double); + I_SimpleProperty(float, Intensity, + __float__getIntensity, + __void__setIntensity__float); + I_SimpleProperty(double, ParticleDuration, + __double__getParticleDuration, + __void__setParticleDuration__double); + I_SimpleProperty(osgParticle::ParticleSystem *, ParticleSystem, + __ParticleSystem_P1__getParticleSystem, + __void__setParticleSystem__ParticleSystem_P1); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); + I_SimpleProperty(float, Scale, + __float__getScale, + __void__setScale__float); + I_SimpleProperty(double, StartTime, + __double__getStartTime, + __void__setStartTime__double); + I_SimpleProperty(const std::string &, TextureFileName, + __C5_std_string_R1__getTextureFileName, + __void__setTextureFileName__C5_std_string_R1); + I_SimpleProperty(bool, UseLocalParticleSystem, + __bool__getUseLocalParticleSystem, + __void__setUseLocalParticleSystem__bool); + I_SimpleProperty(const osg::Vec3 &, Wind, + __C5_osg_Vec3_R1__getWind, + __void__setWind__C5_osg_Vec3_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/ParticleProcessor.cpp b/src/osgWrappers/osgParticle/ParticleProcessor.cpp index e7c8a755f..13d310458 100644 --- a/src/osgWrappers/osgParticle/ParticleProcessor.cpp +++ b/src/osgWrappers/osgParticle/ParticleProcessor.cpp @@ -34,51 +34,176 @@ END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleProcessor) I_BaseType(osg::Node); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::ParticleProcessor &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(osgParticle::ParticleProcessor::ReferenceFrame, getReferenceFrame); - I_Method1(void, setReferenceFrame, IN, osgParticle::ParticleProcessor::ReferenceFrame, rf); - I_Method0(bool, isEnabled); - I_Method1(void, setEnabled, IN, bool, v); - I_Method0(osgParticle::ParticleSystem *, getParticleSystem); - I_Method0(const osgParticle::ParticleSystem *, getParticleSystem); - I_Method1(void, setParticleSystem, IN, osgParticle::ParticleSystem *, ps); - I_Method1(void, setEndless, IN, bool, type); - I_Method0(bool, isEndless); - I_Method1(void, setLifeTime, IN, double, t); - I_Method0(double, getLifeTime); - I_Method1(void, setStartTime, IN, double, t); - I_Method0(double, getStartTime); - I_Method1(void, setCurrentTime, IN, double, t); - I_Method0(double, getCurrentTime); - I_Method1(void, setResetTime, IN, double, t); - I_Method0(double, getResetTime); - I_Method0(bool, isAlive); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method0(const osg::Matrix &, getLocalToWorldMatrix); - I_Method0(const osg::Matrix &, getWorldToLocalMatrix); - I_Method0(const osg::Matrix &, getPreviousLocalToWorldMatrix); - I_Method0(const osg::Matrix &, getPreviousWorldToLocalMatrix); - I_Method1(osg::Vec3, transformLocalToWorld, IN, const osg::Vec3 &, P); - I_Method1(osg::Vec3, rotateLocalToWorld, IN, const osg::Vec3 &, P); - I_Method1(osg::Vec3, transformWorldToLocal, IN, const osg::Vec3 &, P); - I_Method1(osg::Vec3, rotateWorldToLocal, IN, const osg::Vec3 &, P); - I_Method0(osg::BoundingSphere, computeBound); - I_Property(double, CurrentTime); - I_WriteOnlyProperty(bool, Enabled); - I_WriteOnlyProperty(bool, Endless); - I_Property(double, LifeTime); - I_ReadOnlyProperty(const osg::Matrix &, LocalToWorldMatrix); - I_Property(osgParticle::ParticleSystem *, ParticleSystem); - I_ReadOnlyProperty(const osg::Matrix &, PreviousLocalToWorldMatrix); - I_ReadOnlyProperty(const osg::Matrix &, PreviousWorldToLocalMatrix); - I_Property(osgParticle::ParticleProcessor::ReferenceFrame, ReferenceFrame); - I_Property(double, ResetTime); - I_Property(double, StartTime); - I_ReadOnlyProperty(const osg::Matrix &, WorldToLocalMatrix); + I_Constructor0(____ParticleProcessor, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ParticleProcessor &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ParticleProcessor__C5_ParticleProcessor_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(osgParticle::ParticleProcessor::ReferenceFrame, getReferenceFrame, + __ReferenceFrame__getReferenceFrame, + "Get the reference frame. ", + ""); + I_Method1(void, setReferenceFrame, IN, osgParticle::ParticleProcessor::ReferenceFrame, rf, + __void__setReferenceFrame__ReferenceFrame, + "Set the reference frame. ", + ""); + I_Method0(bool, isEnabled, + __bool__isEnabled, + "Get whether this processor is enabled or not. ", + ""); + I_Method1(void, setEnabled, IN, bool, v, + __void__setEnabled__bool, + "Set whether this processor is enabled or not. ", + ""); + I_Method0(osgParticle::ParticleSystem *, getParticleSystem, + __ParticleSystem_P1__getParticleSystem, + "Get a pointer to the destination particle system. ", + ""); + I_Method0(const osgParticle::ParticleSystem *, getParticleSystem, + __C5_ParticleSystem_P1__getParticleSystem, + "Get a const pointer to the destination particle system. ", + ""); + I_Method1(void, setParticleSystem, IN, osgParticle::ParticleSystem *, ps, + __void__setParticleSystem__ParticleSystem_P1, + "Set the destination particle system. ", + ""); + I_Method1(void, setEndless, IN, bool, type, + __void__setEndless__bool, + "Set the endless flag of this processor. ", + ""); + I_Method0(bool, isEndless, + __bool__isEndless, + "Check whether this processor is endless. ", + ""); + I_Method1(void, setLifeTime, IN, double, t, + __void__setLifeTime__double, + "Set the lifetime of this processor. ", + ""); + I_Method0(double, getLifeTime, + __double__getLifeTime, + "Get the lifetime of this processor. ", + ""); + I_Method1(void, setStartTime, IN, double, t, + __void__setStartTime__double, + "Set the start time of this processor. ", + ""); + I_Method0(double, getStartTime, + __double__getStartTime, + "Get the start time of this processor. ", + ""); + I_Method1(void, setCurrentTime, IN, double, t, + __void__setCurrentTime__double, + "Set the current time of this processor. ", + ""); + I_Method0(double, getCurrentTime, + __double__getCurrentTime, + "Get the current time of this processor. ", + ""); + I_Method1(void, setResetTime, IN, double, t, + __void__setResetTime__double, + "Set the reset time of this processor. A value of 0 disables reset. ", + ""); + I_Method0(double, getResetTime, + __double__getResetTime, + "Get the reset time of this processor. ", + ""); + I_Method0(bool, isAlive, + __bool__isAlive, + "Check whether the processor is alive with respect to start time and life duration. ", + "Note that this method may return true even if the processor has been disabled by calling setEnabled(false). To test whether the processor is actually processing particles or not, you should evaluate (isEnabled() && isAlive())."); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method0(const osg::Matrix &, getLocalToWorldMatrix, + __C5_osg_Matrix_R1__getLocalToWorldMatrix, + "Get the current local-to-world transformation matrix (valid only during cull traversal). ", + ""); + I_Method0(const osg::Matrix &, getWorldToLocalMatrix, + __C5_osg_Matrix_R1__getWorldToLocalMatrix, + "Get the current world-to-local transformation matrix (valid only during cull traversal). ", + ""); + I_Method0(const osg::Matrix &, getPreviousLocalToWorldMatrix, + __C5_osg_Matrix_R1__getPreviousLocalToWorldMatrix, + "Get the previous local-to-world transformation matrix (valid only during cull traversal). ", + ""); + I_Method0(const osg::Matrix &, getPreviousWorldToLocalMatrix, + __C5_osg_Matrix_R1__getPreviousWorldToLocalMatrix, + "Get the previous world-to-local transformation matrix (valid only during cull traversal). ", + ""); + I_Method1(osg::Vec3, transformLocalToWorld, IN, const osg::Vec3 &, P, + __osg_Vec3__transformLocalToWorld__C5_osg_Vec3_R1, + "Transform a point from local to world coordinates (valid only during cull traversal). ", + ""); + I_Method1(osg::Vec3, rotateLocalToWorld, IN, const osg::Vec3 &, P, + __osg_Vec3__rotateLocalToWorld__C5_osg_Vec3_R1, + "Transform a vector from local to world coordinates, discarding translation (valid only during cull traversal). ", + ""); + I_Method1(osg::Vec3, transformWorldToLocal, IN, const osg::Vec3 &, P, + __osg_Vec3__transformWorldToLocal__C5_osg_Vec3_R1, + "Transform a point from world to local coordinates (valid only during cull traversal). ", + ""); + I_Method1(osg::Vec3, rotateWorldToLocal, IN, const osg::Vec3 &, P, + __osg_Vec3__rotateWorldToLocal__C5_osg_Vec3_R1, + "Transform a vector from world to local coordinates, discarding translation (valid only during cull traversal). ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + __osg_BoundingSphere__computeBound, + "Compute the bounding sphere around Node's geometry or children. ", + "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); + I_SimpleProperty(double, CurrentTime, + __double__getCurrentTime, + __void__setCurrentTime__double); + I_SimpleProperty(bool, Enabled, + 0, + __void__setEnabled__bool); + I_SimpleProperty(bool, Endless, + 0, + __void__setEndless__bool); + I_SimpleProperty(double, LifeTime, + __double__getLifeTime, + __void__setLifeTime__double); + I_SimpleProperty(const osg::Matrix &, LocalToWorldMatrix, + __C5_osg_Matrix_R1__getLocalToWorldMatrix, + 0); + I_SimpleProperty(osgParticle::ParticleSystem *, ParticleSystem, + __ParticleSystem_P1__getParticleSystem, + __void__setParticleSystem__ParticleSystem_P1); + I_SimpleProperty(const osg::Matrix &, PreviousLocalToWorldMatrix, + __C5_osg_Matrix_R1__getPreviousLocalToWorldMatrix, + 0); + I_SimpleProperty(const osg::Matrix &, PreviousWorldToLocalMatrix, + __C5_osg_Matrix_R1__getPreviousWorldToLocalMatrix, + 0); + I_SimpleProperty(osgParticle::ParticleProcessor::ReferenceFrame, ReferenceFrame, + __ReferenceFrame__getReferenceFrame, + __void__setReferenceFrame__ReferenceFrame); + I_SimpleProperty(double, ResetTime, + __double__getResetTime, + __void__setResetTime__double); + I_SimpleProperty(double, StartTime, + __double__getStartTime, + __void__setStartTime__double); + I_SimpleProperty(const osg::Matrix &, WorldToLocalMatrix, + __C5_osg_Matrix_R1__getWorldToLocalMatrix, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/ParticleSystem.cpp b/src/osgWrappers/osgParticle/ParticleSystem.cpp index 847db3faa..f19f4315f 100644 --- a/src/osgWrappers/osgParticle/ParticleSystem.cpp +++ b/src/osgWrappers/osgParticle/ParticleSystem.cpp @@ -33,55 +33,194 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem) I_BaseType(osg::Drawable); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::ParticleSystem &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osgParticle::ParticleSystem::Alignment, getParticleAlignment); - I_Method1(void, setParticleAlignment, IN, osgParticle::ParticleSystem::Alignment, a); - I_Method0(const osg::Vec3 &, getAlignVectorX); - I_Method1(void, setAlignVectorX, IN, const osg::Vec3 &, v); - I_Method0(const osg::Vec3 &, getAlignVectorY); - I_Method1(void, setAlignVectorY, IN, const osg::Vec3 &, v); - I_Method2(void, setAlignVectors, IN, const osg::Vec3 &, X, IN, const osg::Vec3 &, Y); - I_Method0(const osg::BoundingBox &, getDefaultBoundingBox); - I_Method1(void, setDefaultBoundingBox, IN, const osg::BoundingBox &, bbox); - I_Method0(bool, getDoublePassRendering); - I_Method1(void, setDoublePassRendering, IN, bool, v); - I_Method0(bool, isFrozen); - I_Method1(void, setFrozen, IN, bool, v); - I_Method0(int, numParticles); - I_Method0(int, numDeadParticles); - I_Method0(bool, areAllParticlesDead); - I_Method1(osgParticle::Particle *, getParticle, IN, int, i); - I_Method1(const osgParticle::Particle *, getParticle, IN, int, i); - I_Method1(osgParticle::Particle *, createParticle, IN, const osgParticle::Particle *, ptemplate); - I_Method1(void, destroyParticle, IN, int, i); - I_Method1(void, reuseParticle, IN, int, i); - I_Method0(int, getLastFrameNumber); - I_Method0(osgParticle::Particle &, getDefaultParticleTemplate); - I_Method0(const osgParticle::Particle &, getDefaultParticleTemplate); - I_Method1(void, setDefaultParticleTemplate, IN, const osgParticle::Particle &, p); - I_Method0(bool, getFreezeOnCull); - I_Method1(void, setFreezeOnCull, IN, bool, v); - I_MethodWithDefaults4(void, setDefaultAttributes, IN, const std::string &, texturefile, "", IN, bool, emissive_particles, true, IN, bool, lighting, false, IN, int, texture_unit, 0); - I_Method0(int, getLevelOfDetail); - I_Method1(void, setLevelOfDetail, IN, int, v); - I_Method1(void, update, IN, double, dt); - I_Method1(void, drawImplementation, IN, osg::State &, state); - I_Method0(osg::BoundingBox, computeBound); - I_Property(const osg::Vec3 &, AlignVectorX); - I_Property(const osg::Vec3 &, AlignVectorY); - I_Property(const osg::BoundingBox &, DefaultBoundingBox); - I_Property(const osgParticle::Particle &, DefaultParticleTemplate); - I_Property(bool, DoublePassRendering); - I_Property(bool, FreezeOnCull); - I_WriteOnlyProperty(bool, Frozen); - I_ReadOnlyProperty(int, LastFrameNumber); - I_Property(int, LevelOfDetail); - I_Property(osgParticle::ParticleSystem::Alignment, ParticleAlignment); + I_Constructor0(____ParticleSystem, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ParticleSystem &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ParticleSystem__C5_ParticleSystem_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(osgParticle::ParticleSystem::Alignment, getParticleAlignment, + __Alignment__getParticleAlignment, + "Get the alignment type of particles. ", + ""); + I_Method1(void, setParticleAlignment, IN, osgParticle::ParticleSystem::Alignment, a, + __void__setParticleAlignment__Alignment, + "Set the alignment type of particles. ", + ""); + I_Method0(const osg::Vec3 &, getAlignVectorX, + __C5_osg_Vec3_R1__getAlignVectorX, + "Get the X-axis alignment vector. ", + ""); + I_Method1(void, setAlignVectorX, IN, const osg::Vec3 &, v, + __void__setAlignVectorX__C5_osg_Vec3_R1, + "Set the X-axis alignment vector. ", + ""); + I_Method0(const osg::Vec3 &, getAlignVectorY, + __C5_osg_Vec3_R1__getAlignVectorY, + "Get the Y-axis alignment vector. ", + ""); + I_Method1(void, setAlignVectorY, IN, const osg::Vec3 &, v, + __void__setAlignVectorY__C5_osg_Vec3_R1, + "Set the Y-axis alignment vector. ", + ""); + I_Method2(void, setAlignVectors, IN, const osg::Vec3 &, X, IN, const osg::Vec3 &, Y, + __void__setAlignVectors__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "Set the alignment vectors. ", + ""); + I_Method0(const osg::BoundingBox &, getDefaultBoundingBox, + __C5_osg_BoundingBox_R1__getDefaultBoundingBox, + "Get the default bounding box. ", + ""); + I_Method1(void, setDefaultBoundingBox, IN, const osg::BoundingBox &, bbox, + __void__setDefaultBoundingBox__C5_osg_BoundingBox_R1, + "Set the default bounding box. ", + "The default bounding box is used when a real bounding box cannot be computed, for example because no particles has been updated yet."); + I_Method0(bool, getDoublePassRendering, + __bool__getDoublePassRendering, + "Get the double pass rendering flag. ", + ""); + I_Method1(void, setDoublePassRendering, IN, bool, v, + __void__setDoublePassRendering__bool, + "Set the double pass rendering flag. ", + "Double pass rendering avoids overdraw problems between particle systems and other opaque objects. If you can render all the particle systems after the opaque objects, then double pass is not necessary and can be turned off (best choice). If you set the default attributes with setDefaultAttributes, then the particle system will fall into a transparent bin."); + I_Method0(bool, isFrozen, + __bool__isFrozen, + "Return true if the particle system is frozen. ", + ""); + I_Method1(void, setFrozen, IN, bool, v, + __void__setFrozen__bool, + "Set or reset the frozen state. ", + "When the particle system is frozen, emitters and programs won't do anything on it."); + I_Method0(int, numParticles, + __int__numParticles, + "Get the number of allocated particles (alive + dead). ", + ""); + I_Method0(int, numDeadParticles, + __int__numDeadParticles, + "Get the number of dead particles. ", + ""); + I_Method0(bool, areAllParticlesDead, + __bool__areAllParticlesDead, + "Get whether all particles are dead. ", + ""); + I_Method1(osgParticle::Particle *, getParticle, IN, int, i, + __Particle_P1__getParticle__int, + "Get a pointer to the i-th particle. ", + ""); + I_Method1(const osgParticle::Particle *, getParticle, IN, int, i, + __C5_Particle_P1__getParticle__int, + "Get a const pointer to the i-th particle. ", + ""); + I_Method1(osgParticle::Particle *, createParticle, IN, const osgParticle::Particle *, ptemplate, + __Particle_P1__createParticle__C5_Particle_P1, + "Create a new particle from the specified template (or the default one if ptemplate is null). ", + ""); + I_Method1(void, destroyParticle, IN, int, i, + __void__destroyParticle__int, + "Destroy the i-th particle. ", + ""); + I_Method1(void, reuseParticle, IN, int, i, + __void__reuseParticle__int, + "Reuse the i-th particle. ", + ""); + I_Method0(int, getLastFrameNumber, + __int__getLastFrameNumber, + "Get the last frame number. ", + ""); + I_Method0(osgParticle::Particle &, getDefaultParticleTemplate, + __Particle_R1__getDefaultParticleTemplate, + "Get a reference to the default particle template. ", + ""); + I_Method0(const osgParticle::Particle &, getDefaultParticleTemplate, + __C5_Particle_R1__getDefaultParticleTemplate, + "Get a const reference to the default particle template. ", + ""); + I_Method1(void, setDefaultParticleTemplate, IN, const osgParticle::Particle &, p, + __void__setDefaultParticleTemplate__C5_Particle_R1, + "Set the default particle template (particle is copied). ", + ""); + I_Method0(bool, getFreezeOnCull, + __bool__getFreezeOnCull, + "Get whether the particle system can freeze when culled. ", + ""); + I_Method1(void, setFreezeOnCull, IN, bool, v, + __void__setFreezeOnCull__bool, + "Set whether the particle system can freeze when culled (default is true). ", + ""); + I_MethodWithDefaults4(void, setDefaultAttributes, IN, const std::string &, texturefile, "", IN, bool, emissive_particles, true, IN, bool, lighting, false, IN, int, texture_unit, 0, + __void__setDefaultAttributes__C5_std_string_R1__bool__bool__int, + "A useful method to set the most common StateAttribute's in one call. ", + "If texturefile is empty, then texturing is turned off."); + I_Method0(int, getLevelOfDetail, + __int__getLevelOfDetail, + "(EXPERIMENTAL) Get the level of detail. ", + ""); + I_Method1(void, setLevelOfDetail, IN, int, v, + __void__setLevelOfDetail__int, + "(EXPERIMENTAL) Set the level of detail. ", + "The total number of particles is divided by the detail value to get the actual number of particles to be drawn. This value must be greater than zero."); + I_Method1(void, update, IN, double, dt, + __void__update__double, + "Update the particles. Don't call this directly, use a ParticleSystemUpdater instead. ", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + __void__drawImplementation__osg_State_R1, + "Deprecated. ", + ""); + I_Method0(osg::BoundingBox, computeBound, + __osg_BoundingBox__computeBound, + "Compute the bounding box around Drawables's geometry. ", + ""); + I_SimpleProperty(const osg::Vec3 &, AlignVectorX, + __C5_osg_Vec3_R1__getAlignVectorX, + __void__setAlignVectorX__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, AlignVectorY, + __C5_osg_Vec3_R1__getAlignVectorY, + __void__setAlignVectorY__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::BoundingBox &, DefaultBoundingBox, + __C5_osg_BoundingBox_R1__getDefaultBoundingBox, + __void__setDefaultBoundingBox__C5_osg_BoundingBox_R1); + I_SimpleProperty(const osgParticle::Particle &, DefaultParticleTemplate, + __C5_Particle_R1__getDefaultParticleTemplate, + __void__setDefaultParticleTemplate__C5_Particle_R1); + I_SimpleProperty(bool, DoublePassRendering, + __bool__getDoublePassRendering, + __void__setDoublePassRendering__bool); + I_SimpleProperty(bool, FreezeOnCull, + __bool__getFreezeOnCull, + __void__setFreezeOnCull__bool); + I_SimpleProperty(bool, Frozen, + 0, + __void__setFrozen__bool); + I_SimpleProperty(int, LastFrameNumber, + __int__getLastFrameNumber, + 0); + I_SimpleProperty(int, LevelOfDetail, + __int__getLevelOfDetail, + __void__setLevelOfDetail__int); + I_SimpleProperty(osgParticle::ParticleSystem::Alignment, ParticleAlignment, + __Alignment__getParticleAlignment, + __void__setParticleAlignment__Alignment); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp b/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp index ca1553649..2a17cd303 100644 --- a/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp +++ b/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp @@ -27,26 +27,91 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystemUpdater) I_BaseType(osg::Node); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::ParticleSystemUpdater &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(bool, addParticleSystem, IN, osgParticle::ParticleSystem *, ps); - I_Method1(bool, removeParticleSystem, IN, osgParticle::ParticleSystem *, ps); - I_MethodWithDefaults2(bool, removeParticleSystem, IN, unsigned int, i, , IN, unsigned int, numParticleSystemsToRemove, 1); - I_Method2(bool, replaceParticleSystem, IN, osgParticle::ParticleSystem *, origPS, IN, osgParticle::ParticleSystem *, newPS); - I_Method2(bool, setParticleSystem, IN, unsigned int, i, IN, osgParticle::ParticleSystem *, ps); - I_Method0(unsigned int, getNumParticleSystems); - I_Method1(osgParticle::ParticleSystem *, getParticleSystem, IN, unsigned int, i); - I_Method1(const osgParticle::ParticleSystem *, getParticleSystem, IN, unsigned int, i); - I_Method1(bool, containsParticleSystem, IN, const osgParticle::ParticleSystem *, ps); - I_Method1(unsigned int, getParticleSystemIndex, IN, const osgParticle::ParticleSystem *, ps); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method0(osg::BoundingSphere, computeBound); - I_ArrayProperty_GSA(osgParticle::ParticleSystem *, ParticleSystem, ParticleSystems, unsigned int, bool); + I_Constructor0(____ParticleSystemUpdater, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ParticleSystemUpdater &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ParticleSystemUpdater__C5_ParticleSystemUpdater_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(bool, addParticleSystem, IN, osgParticle::ParticleSystem *, ps, + __bool__addParticleSystem__ParticleSystem_P1, + "Add a particle system to the list. ", + ""); + I_Method1(bool, removeParticleSystem, IN, osgParticle::ParticleSystem *, ps, + __bool__removeParticleSystem__ParticleSystem_P1, + "Remove a particle system from the list (by pointer). ", + ""); + I_MethodWithDefaults2(bool, removeParticleSystem, IN, unsigned int, i, , IN, unsigned int, numParticleSystemsToRemove, 1, + __bool__removeParticleSystem__unsigned_int__unsigned_int, + "Remove a particle system(s) from the list (by index). ", + ""); + I_Method2(bool, replaceParticleSystem, IN, osgParticle::ParticleSystem *, origPS, IN, osgParticle::ParticleSystem *, newPS, + __bool__replaceParticleSystem__ParticleSystem_P1__ParticleSystem_P1, + "Replace ParticleSystem with another ParticleSystem. ", + ""); + I_Method2(bool, setParticleSystem, IN, unsigned int, i, IN, osgParticle::ParticleSystem *, ps, + __bool__setParticleSystem__unsigned_int__ParticleSystem_P1, + "set a particle system by index. ", + ""); + I_Method0(unsigned int, getNumParticleSystems, + __unsigned_int__getNumParticleSystems, + "Return the number of particle systems on the list. ", + ""); + I_Method1(osgParticle::ParticleSystem *, getParticleSystem, IN, unsigned int, i, + __ParticleSystem_P1__getParticleSystem__unsigned_int, + "Get a particle system from the list. ", + ""); + I_Method1(const osgParticle::ParticleSystem *, getParticleSystem, IN, unsigned int, i, + __C5_ParticleSystem_P1__getParticleSystem__unsigned_int, + "Get a particle system from the list. ", + ""); + I_Method1(bool, containsParticleSystem, IN, const osgParticle::ParticleSystem *, ps, + __bool__containsParticleSystem__C5_ParticleSystem_P1, + "return true if ParticleSystem is contained within ParticlsSystemUpdater. ", + ""); + I_Method1(unsigned int, getParticleSystemIndex, IN, const osgParticle::ParticleSystem *, ps, + __unsigned_int__getParticleSystemIndex__C5_ParticleSystem_P1, + "get index number of ParticleSystem. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + __osg_BoundingSphere__computeBound, + "Compute the bounding sphere around Node's geometry or children. ", + "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); + I_ArrayProperty(osgParticle::ParticleSystem *, ParticleSystem, + __ParticleSystem_P1__getParticleSystem__unsigned_int, + __bool__setParticleSystem__unsigned_int__ParticleSystem_P1, + __unsigned_int__getNumParticleSystems, + __bool__addParticleSystem__ParticleSystem_P1, + 0, + __bool__removeParticleSystem__unsigned_int__unsigned_int); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/Placer.cpp b/src/osgWrappers/osgParticle/Placer.cpp index ed5c298ff..331a7ca51 100644 --- a/src/osgWrappers/osgParticle/Placer.cpp +++ b/src/osgWrappers/osgParticle/Placer.cpp @@ -26,13 +26,35 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Placer) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::Placer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method1(void, place, IN, osgParticle::Particle *, P); - I_Method0(osg::Vec3, getControlPosition); - I_ReadOnlyProperty(osg::Vec3, ControlPosition); + I_Constructor0(____Placer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Placer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Placer__C5_Placer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + __void__place__Particle_P1, + "Place a particle. Must be implemented in descendant classes. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + __osg_Vec3__getControlPosition, + "Return the control position of particles that placer will generate. Must be implemented in descendant classes. ", + ""); + I_SimpleProperty(osg::Vec3, ControlPosition, + __osg_Vec3__getControlPosition, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/PointPlacer.cpp b/src/osgWrappers/osgParticle/PointPlacer.cpp index 1822b6fe8..6f272544e 100644 --- a/src/osgWrappers/osgParticle/PointPlacer.cpp +++ b/src/osgWrappers/osgParticle/PointPlacer.cpp @@ -26,15 +26,43 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::PointPlacer) I_BaseType(osgParticle::CenteredPlacer); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::PointPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, place, IN, osgParticle::Particle *, P); - I_Method0(osg::Vec3, getControlPosition); - I_ReadOnlyProperty(osg::Vec3, ControlPosition); + I_Constructor0(____PointPlacer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::PointPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PointPlacer__C5_PointPlacer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, place, IN, osgParticle::Particle *, P, + __void__place__Particle_P1, + "Place a particle. ", + "This method is called automatically by ModularEmitter and should not be called manually."); + I_Method0(osg::Vec3, getControlPosition, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + I_SimpleProperty(osg::Vec3, ControlPosition, + __osg_Vec3__getControlPosition, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/PrecipitationEffect.cpp b/src/osgWrappers/osgParticle/PrecipitationEffect.cpp index 8d24f27c7..dd24c3371 100644 --- a/src/osgWrappers/osgParticle/PrecipitationEffect.cpp +++ b/src/osgWrappers/osgParticle/PrecipitationEffect.cpp @@ -32,115 +32,352 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect) I_BaseType(osg::Node); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::PrecipitationEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method1(void, rain, IN, float, intensity); - I_Method1(void, snow, IN, float, intensity); - I_Method1(void, setMaximumParticleDensity, IN, float, density); - I_Method0(float, setMaximumParticleDensity); - I_Method1(void, setWind, IN, const osg::Vec3 &, wind); - I_Method0(const osg::Vec3 &, getWind); - I_Method1(void, setPosition, IN, const osg::Vec3 &, position); - I_Method0(const osg::Vec3 &, getPosition); - I_Method1(void, setCellSize, IN, const osg::Vec3 &, cellSize); - I_Method0(const osg::Vec3 &, getCellSize); - I_Method1(void, setParticleSpeed, IN, float, particleSpeed); - I_Method0(float, getParticleSpeed); - I_Method1(void, setParticleSize, IN, float, particleSize); - I_Method0(float, getParticleSize); - I_Method1(void, setParticleColor, IN, const osg::Vec4 &, color); - I_Method0(const osg::Vec4 &, getParticleColor); - I_Method1(void, setNearTransition, IN, float, nearTransition); - I_Method0(float, getNearTransition); - I_Method1(void, setFarTransition, IN, float, farTransition); - I_Method0(float, getFarTransition); - I_Method1(void, setUseFarLineSegments, IN, bool, useFarLineSegments); - I_Method0(bool, getUseFarLineSegments); - I_Method1(void, setFog, IN, osg::Fog *, fog); - I_Method0(osg::Fog *, getFog); - I_Method0(const osg::Fog *, getFog); - I_Method0(osg::Geometry *, getQuadGeometry); - I_Method0(osg::StateSet *, getQuadStateSet); - I_Method0(osg::Geometry *, getLineGeometry); - I_Method0(osg::StateSet *, getLineStateSet); - I_Method0(osg::Geometry *, getPointGeometry); - I_Method0(osg::StateSet *, getPointStateSet); - I_Property(const osg::Vec3 &, CellSize); - I_Property(float, FarTransition); - I_Property(osg::Fog *, Fog); - I_ReadOnlyProperty(osg::Geometry *, LineGeometry); - I_ReadOnlyProperty(osg::StateSet *, LineStateSet); - I_WriteOnlyProperty(float, MaximumParticleDensity); - I_Property(float, NearTransition); - I_Property(const osg::Vec4 &, ParticleColor); - I_Property(float, ParticleSize); - I_Property(float, ParticleSpeed); - I_ReadOnlyProperty(osg::Geometry *, PointGeometry); - I_ReadOnlyProperty(osg::StateSet *, PointStateSet); - I_Property(const osg::Vec3 &, Position); - I_ReadOnlyProperty(osg::Geometry *, QuadGeometry); - I_ReadOnlyProperty(osg::StateSet *, QuadStateSet); - I_Property(bool, UseFarLineSegments); - I_Property(const osg::Vec3 &, Wind); + I_Constructor0(____PrecipitationEffect, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::PrecipitationEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PrecipitationEffect__C5_PrecipitationEffect_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(void, rain, IN, float, intensity, + __void__rain__float, + "Set all the parameters to create an rain effect of specified intensity. ", + ""); + I_Method1(void, snow, IN, float, intensity, + __void__snow__float, + "Set all the parameters to create an snow effect of specified intensity. ", + ""); + I_Method1(void, setMaximumParticleDensity, IN, float, density, + __void__setMaximumParticleDensity__float, + "", + ""); + I_Method0(float, setMaximumParticleDensity, + __float__setMaximumParticleDensity, + "", + ""); + I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + __void__setWind__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getWind, + __C5_osg_Vec3_R1__getWind, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, position, + __void__setPosition__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getPosition, + __C5_osg_Vec3_R1__getPosition, + "", + ""); + I_Method1(void, setCellSize, IN, const osg::Vec3 &, cellSize, + __void__setCellSize__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCellSize, + __C5_osg_Vec3_R1__getCellSize, + "", + ""); + I_Method1(void, setParticleSpeed, IN, float, particleSpeed, + __void__setParticleSpeed__float, + "", + ""); + I_Method0(float, getParticleSpeed, + __float__getParticleSpeed, + "", + ""); + I_Method1(void, setParticleSize, IN, float, particleSize, + __void__setParticleSize__float, + "", + ""); + I_Method0(float, getParticleSize, + __float__getParticleSize, + "", + ""); + I_Method1(void, setParticleColor, IN, const osg::Vec4 &, color, + __void__setParticleColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getParticleColor, + __C5_osg_Vec4_R1__getParticleColor, + "", + ""); + I_Method1(void, setNearTransition, IN, float, nearTransition, + __void__setNearTransition__float, + "", + ""); + I_Method0(float, getNearTransition, + __float__getNearTransition, + "", + ""); + I_Method1(void, setFarTransition, IN, float, farTransition, + __void__setFarTransition__float, + "", + ""); + I_Method0(float, getFarTransition, + __float__getFarTransition, + "", + ""); + I_Method1(void, setUseFarLineSegments, IN, bool, useFarLineSegments, + __void__setUseFarLineSegments__bool, + "", + ""); + I_Method0(bool, getUseFarLineSegments, + __bool__getUseFarLineSegments, + "", + ""); + I_Method1(void, setFog, IN, osg::Fog *, fog, + __void__setFog__osg_Fog_P1, + "", + ""); + I_Method0(osg::Fog *, getFog, + __osg_Fog_P1__getFog, + "", + ""); + I_Method0(const osg::Fog *, getFog, + __C5_osg_Fog_P1__getFog, + "", + ""); + I_Method0(osg::Geometry *, getQuadGeometry, + __osg_Geometry_P1__getQuadGeometry, + "", + ""); + I_Method0(osg::StateSet *, getQuadStateSet, + __osg_StateSet_P1__getQuadStateSet, + "", + ""); + I_Method0(osg::Geometry *, getLineGeometry, + __osg_Geometry_P1__getLineGeometry, + "", + ""); + I_Method0(osg::StateSet *, getLineStateSet, + __osg_StateSet_P1__getLineStateSet, + "", + ""); + I_Method0(osg::Geometry *, getPointGeometry, + __osg_Geometry_P1__getPointGeometry, + "", + ""); + I_Method0(osg::StateSet *, getPointStateSet, + __osg_StateSet_P1__getPointStateSet, + "", + ""); + I_SimpleProperty(const osg::Vec3 &, CellSize, + __C5_osg_Vec3_R1__getCellSize, + __void__setCellSize__C5_osg_Vec3_R1); + I_SimpleProperty(float, FarTransition, + __float__getFarTransition, + __void__setFarTransition__float); + I_SimpleProperty(osg::Fog *, Fog, + __osg_Fog_P1__getFog, + __void__setFog__osg_Fog_P1); + I_SimpleProperty(osg::Geometry *, LineGeometry, + __osg_Geometry_P1__getLineGeometry, + 0); + I_SimpleProperty(osg::StateSet *, LineStateSet, + __osg_StateSet_P1__getLineStateSet, + 0); + I_SimpleProperty(float, MaximumParticleDensity, + 0, + __void__setMaximumParticleDensity__float); + I_SimpleProperty(float, NearTransition, + __float__getNearTransition, + __void__setNearTransition__float); + I_SimpleProperty(const osg::Vec4 &, ParticleColor, + __C5_osg_Vec4_R1__getParticleColor, + __void__setParticleColor__C5_osg_Vec4_R1); + I_SimpleProperty(float, ParticleSize, + __float__getParticleSize, + __void__setParticleSize__float); + I_SimpleProperty(float, ParticleSpeed, + __float__getParticleSpeed, + __void__setParticleSpeed__float); + I_SimpleProperty(osg::Geometry *, PointGeometry, + __osg_Geometry_P1__getPointGeometry, + 0); + I_SimpleProperty(osg::StateSet *, PointStateSet, + __osg_StateSet_P1__getPointStateSet, + 0); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); + I_SimpleProperty(osg::Geometry *, QuadGeometry, + __osg_Geometry_P1__getQuadGeometry, + 0); + I_SimpleProperty(osg::StateSet *, QuadStateSet, + __osg_StateSet_P1__getQuadStateSet, + 0); + I_SimpleProperty(bool, UseFarLineSegments, + __bool__getUseFarLineSegments, + __void__setUseFarLineSegments__bool); + I_SimpleProperty(const osg::Vec3 &, Wind, + __C5_osg_Vec3_R1__getWind, + __void__setWind__C5_osg_Vec3_R1); END_REFLECTOR TYPE_NAME_ALIAS(std::map< osgParticle::PrecipitationEffect::PrecipitationDrawable::Cell COMMA osgParticle::PrecipitationEffect::PrecipitationDrawable::DepthMatrixStartTime >, osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap); BEGIN_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable) I_BaseType(osg::Drawable); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::PrecipitationEffect::PrecipitationDrawable &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, x); - I_Method1(bool, supports, IN, const osg::PrimitiveIndexFunctor &, x); - I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, x); - I_Method1(void, setRequiresPreviousMatrix, IN, bool, flag); - I_Method0(bool, getRequiresPreviousMatrix); - I_Method1(void, setGeometry, IN, osg::Geometry *, geom); - I_Method0(osg::Geometry *, getGeometry); - I_Method0(const osg::Geometry *, getGeometry); - I_Method1(void, setDrawType, IN, GLenum, type); - I_Method0(GLenum, getDrawType); - I_Method1(void, setNumberOfVertices, IN, unsigned int, numVertices); - I_Method0(unsigned int, getNumberOfVertices); - I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo); - I_Method0(osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap &, getCurrentCellMatrixMap); - I_Method0(osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap &, getPreviousCellMatrixMap); - I_Method0(void, newFrame); - I_ReadOnlyProperty(osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap &, CurrentCellMatrixMap); - I_Property(GLenum, DrawType); - I_Property(osg::Geometry *, Geometry); - I_Property(unsigned int, NumberOfVertices); - I_ReadOnlyProperty(osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap &, PreviousCellMatrixMap); - I_Property(bool, RequiresPreviousMatrix); + I_Constructor0(____PrecipitationDrawable, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::PrecipitationEffect::PrecipitationDrawable &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PrecipitationDrawable__C5_PrecipitationDrawable_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, + __bool__supports__C5_osg_PrimitiveFunctor_R1, + "Return true if the Drawable subclass supports accept(PrimitiveFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, x, + __void__accept__osg_PrimitiveFunctor_R1, + "Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. ", + "return true if functor handled by drawable, return false on failure of drawable to generate functor calls. Note, PrimtiveFunctor only provides const access of the primitives, as primitives may be procedurally generated so one cannot modify it. "); + I_Method1(bool, supports, IN, const osg::PrimitiveIndexFunctor &, x, + __bool__supports__C5_osg_PrimitiveIndexFunctor_R1, + "Return true if the Drawable subclass supports accept(PrimitiveIndexFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, x, + __void__accept__osg_PrimitiveIndexFunctor_R1, + "Accept a PrimitiveIndexFunctor and call its methods to tell it about the internal primitives that this Drawable has. ", + "return true if functor handled by drawable, return false on failure of drawable to generate functor calls. Note, PrimtiveIndexFunctor only provide const access of the primitives, as primitives may be procedurally generated so one cannot modify it. "); + I_Method1(void, setRequiresPreviousMatrix, IN, bool, flag, + __void__setRequiresPreviousMatrix__bool, + "", + ""); + I_Method0(bool, getRequiresPreviousMatrix, + __bool__getRequiresPreviousMatrix, + "", + ""); + I_Method1(void, setGeometry, IN, osg::Geometry *, geom, + __void__setGeometry__osg_Geometry_P1, + "", + ""); + I_Method0(osg::Geometry *, getGeometry, + __osg_Geometry_P1__getGeometry, + "", + ""); + I_Method0(const osg::Geometry *, getGeometry, + __C5_osg_Geometry_P1__getGeometry, + "", + ""); + I_Method1(void, setDrawType, IN, GLenum, type, + __void__setDrawType__GLenum, + "", + ""); + I_Method0(GLenum, getDrawType, + __GLenum__getDrawType, + "", + ""); + I_Method1(void, setNumberOfVertices, IN, unsigned int, numVertices, + __void__setNumberOfVertices__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumberOfVertices, + __unsigned_int__getNumberOfVertices, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + __void__drawImplementation__osg_RenderInfo_R1, + "drawImplementation(State&) is a pure virtual method for the actual implementation of OpenGL drawing calls, such as vertex arrays and primitives, that must be implemented in concrete subclasses of the Drawable base class, examples include osg::Geometry and osg::ShapeDrawable. ", + " param state The osg::State object that encapulates the current OpenGL state for the current graphics context. "); + I_Method0(osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap &, getCurrentCellMatrixMap, + __CellMatrixMap_R1__getCurrentCellMatrixMap, + "", + ""); + I_Method0(osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap &, getPreviousCellMatrixMap, + __CellMatrixMap_R1__getPreviousCellMatrixMap, + "", + ""); + I_Method0(void, newFrame, + __void__newFrame, + "", + ""); + I_SimpleProperty(osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap &, CurrentCellMatrixMap, + __CellMatrixMap_R1__getCurrentCellMatrixMap, + 0); + I_SimpleProperty(GLenum, DrawType, + __GLenum__getDrawType, + __void__setDrawType__GLenum); + I_SimpleProperty(osg::Geometry *, Geometry, + __osg_Geometry_P1__getGeometry, + __void__setGeometry__osg_Geometry_P1); + I_SimpleProperty(unsigned int, NumberOfVertices, + __unsigned_int__getNumberOfVertices, + __void__setNumberOfVertices__unsigned_int); + I_SimpleProperty(osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap &, PreviousCellMatrixMap, + __CellMatrixMap_R1__getPreviousCellMatrixMap, + 0); + I_SimpleProperty(bool, RequiresPreviousMatrix, + __bool__getRequiresPreviousMatrix, + __void__setRequiresPreviousMatrix__bool); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable::Cell) - I_Constructor3(IN, int, in_i, IN, int, in_j, IN, int, in_k); + I_Constructor3(IN, int, in_i, IN, int, in_j, IN, int, in_k, + ____Cell__int__int__int, + "", + ""); I_PublicMemberProperty(int, i); I_PublicMemberProperty(int, j); I_PublicMemberProperty(int, k); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable::DepthMatrixStartTime) - I_Constructor0(); + I_Constructor0(____DepthMatrixStartTime, + "", + ""); I_PublicMemberProperty(float, depth); I_PublicMemberProperty(float, startTime); I_PublicMemberProperty(osg::Matrix, modelview); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable::LessFunctor) - I_Constructor0(); + I_Constructor0(____LessFunctor, + "", + ""); END_REFLECTOR STD_MAP_REFLECTOR(std::map< osgParticle::PrecipitationEffect::PrecipitationDrawable::Cell COMMA osgParticle::PrecipitationEffect::PrecipitationDrawable::DepthMatrixStartTime >); diff --git a/src/osgWrappers/osgParticle/Program.cpp b/src/osgWrappers/osgParticle/Program.cpp index 145fc4e02..0eabc8ab2 100644 --- a/src/osgWrappers/osgParticle/Program.cpp +++ b/src/osgWrappers/osgParticle/Program.cpp @@ -25,11 +25,28 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Program) I_BaseType(osgParticle::ParticleProcessor); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::Program &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); + I_Constructor0(____Program, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Program &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Program__C5_Program_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/RadialShooter.cpp b/src/osgWrappers/osgParticle/RadialShooter.cpp index 2c5bdd8e1..d2023a8c1 100644 --- a/src/osgWrappers/osgParticle/RadialShooter.cpp +++ b/src/osgWrappers/osgParticle/RadialShooter.cpp @@ -27,29 +27,96 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::RadialShooter) I_BaseType(osgParticle::Shooter); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::RadialShooter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(const osgParticle::rangef &, getThetaRange); - I_Method1(void, setThetaRange, IN, const osgParticle::rangef &, r); - I_Method2(void, setThetaRange, IN, float, r1, IN, float, r2); - I_Method0(const osgParticle::rangef &, getPhiRange); - I_Method1(void, setPhiRange, IN, const osgParticle::rangef &, r); - I_Method2(void, setPhiRange, IN, float, r1, IN, float, r2); - I_Method0(const osgParticle::rangef &, getInitialSpeedRange); - I_Method1(void, setInitialSpeedRange, IN, const osgParticle::rangef &, r); - I_Method2(void, setInitialSpeedRange, IN, float, r1, IN, float, r2); - I_Method0(const osgParticle::rangev3 &, getInitialRotationalSpeedRange); - I_Method1(void, setInitialRotationalSpeedRange, IN, const osgParticle::rangev3 &, r); - I_Method2(void, setInitialRotationalSpeedRange, IN, const osg::Vec3 &, r1, IN, const osg::Vec3 &, r2); - I_Method1(void, shoot, IN, osgParticle::Particle *, P); - I_Property(const osgParticle::rangev3 &, InitialRotationalSpeedRange); - I_Property(const osgParticle::rangef &, InitialSpeedRange); - I_Property(const osgParticle::rangef &, PhiRange); - I_Property(const osgParticle::rangef &, ThetaRange); + I_Constructor0(____RadialShooter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::RadialShooter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RadialShooter__C5_RadialShooter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(const osgParticle::rangef &, getThetaRange, + __C5_rangef_R1__getThetaRange, + "Get the range of possible values for theta angle. ", + ""); + I_Method1(void, setThetaRange, IN, const osgParticle::rangef &, r, + __void__setThetaRange__C5_rangef_R1, + "Set the range of possible values for theta angle. ", + ""); + I_Method2(void, setThetaRange, IN, float, r1, IN, float, r2, + __void__setThetaRange__float__float, + "Set the range of possible values for theta angle. ", + ""); + I_Method0(const osgParticle::rangef &, getPhiRange, + __C5_rangef_R1__getPhiRange, + "Get the range of possible values for phi angle. ", + ""); + I_Method1(void, setPhiRange, IN, const osgParticle::rangef &, r, + __void__setPhiRange__C5_rangef_R1, + "Set the range of possible values for phi angle. ", + ""); + I_Method2(void, setPhiRange, IN, float, r1, IN, float, r2, + __void__setPhiRange__float__float, + "Set the range of possible values for phi angle. ", + ""); + I_Method0(const osgParticle::rangef &, getInitialSpeedRange, + __C5_rangef_R1__getInitialSpeedRange, + "Get the range of possible values for initial speed of particles. ", + ""); + I_Method1(void, setInitialSpeedRange, IN, const osgParticle::rangef &, r, + __void__setInitialSpeedRange__C5_rangef_R1, + "Set the range of possible values for initial speed of particles. ", + ""); + I_Method2(void, setInitialSpeedRange, IN, float, r1, IN, float, r2, + __void__setInitialSpeedRange__float__float, + "Set the range of possible values for initial speed of particles. ", + ""); + I_Method0(const osgParticle::rangev3 &, getInitialRotationalSpeedRange, + __C5_rangev3_R1__getInitialRotationalSpeedRange, + "Get the range of possible values for initial rotational speed of particles. ", + ""); + I_Method1(void, setInitialRotationalSpeedRange, IN, const osgParticle::rangev3 &, r, + __void__setInitialRotationalSpeedRange__C5_rangev3_R1, + "Set the range of possible values for initial rotational speed of particles. ", + ""); + I_Method2(void, setInitialRotationalSpeedRange, IN, const osg::Vec3 &, r1, IN, const osg::Vec3 &, r2, + __void__setInitialRotationalSpeedRange__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "Set the range of possible values for initial rotational speed of particles. ", + ""); + I_Method1(void, shoot, IN, osgParticle::Particle *, P, + __void__shoot__Particle_P1, + "Shoot a particle. Do not call this method manually. ", + ""); + I_SimpleProperty(const osgParticle::rangev3 &, InitialRotationalSpeedRange, + __C5_rangev3_R1__getInitialRotationalSpeedRange, + __void__setInitialRotationalSpeedRange__C5_rangev3_R1); + I_SimpleProperty(const osgParticle::rangef &, InitialSpeedRange, + __C5_rangef_R1__getInitialSpeedRange, + __void__setInitialSpeedRange__C5_rangef_R1); + I_SimpleProperty(const osgParticle::rangef &, PhiRange, + __C5_rangef_R1__getPhiRange, + __void__setPhiRange__C5_rangef_R1); + I_SimpleProperty(const osgParticle::rangef &, ThetaRange, + __C5_rangef_R1__getThetaRange, + __void__setThetaRange__C5_rangef_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/RandomRateCounter.cpp b/src/osgWrappers/osgParticle/RandomRateCounter.cpp index 41a66227f..6d5fe21a6 100644 --- a/src/osgWrappers/osgParticle/RandomRateCounter.cpp +++ b/src/osgWrappers/osgParticle/RandomRateCounter.cpp @@ -24,13 +24,36 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::RandomRateCounter) I_BaseType(osgParticle::VariableRateCounter); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::RandomRateCounter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(int, numParticlesToCreate, IN, double, dt); + I_Constructor0(____RandomRateCounter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::RandomRateCounter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RandomRateCounter__C5_RandomRateCounter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(int, numParticlesToCreate, IN, double, dt, + __int__numParticlesToCreate__double, + "Return the number of particles to be created in this frame. ", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/SectorPlacer.cpp b/src/osgWrappers/osgParticle/SectorPlacer.cpp index b57abd9c3..cf598bcf9 100644 --- a/src/osgWrappers/osgParticle/SectorPlacer.cpp +++ b/src/osgWrappers/osgParticle/SectorPlacer.cpp @@ -27,23 +27,73 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SectorPlacer) I_BaseType(osgParticle::CenteredPlacer); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::SectorPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const osgParticle::rangef &, getRadiusRange); - I_Method1(void, setRadiusRange, IN, const osgParticle::rangef &, r); - I_Method2(void, setRadiusRange, IN, float, r1, IN, float, r2); - I_Method0(const osgParticle::rangef &, getPhiRange); - I_Method1(void, setPhiRange, IN, const osgParticle::rangef &, r); - I_Method2(void, setPhiRange, IN, float, r1, IN, float, r2); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, place, IN, osgParticle::Particle *, P); - I_Method0(osg::Vec3, getControlPosition); - I_ReadOnlyProperty(osg::Vec3, ControlPosition); - I_Property(const osgParticle::rangef &, PhiRange); - I_Property(const osgParticle::rangef &, RadiusRange); + I_Constructor0(____SectorPlacer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::SectorPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SectorPlacer__C5_SectorPlacer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const osgParticle::rangef &, getRadiusRange, + __C5_rangef_R1__getRadiusRange, + "Get the range of possible values for radius. ", + ""); + I_Method1(void, setRadiusRange, IN, const osgParticle::rangef &, r, + __void__setRadiusRange__C5_rangef_R1, + "Set the range of possible values for radius. ", + ""); + I_Method2(void, setRadiusRange, IN, float, r1, IN, float, r2, + __void__setRadiusRange__float__float, + "Set the range of possible values for radius. ", + ""); + I_Method0(const osgParticle::rangef &, getPhiRange, + __C5_rangef_R1__getPhiRange, + "Get the range of possible values for the central angle. ", + ""); + I_Method1(void, setPhiRange, IN, const osgParticle::rangef &, r, + __void__setPhiRange__C5_rangef_R1, + "Set the range of possible values for the central angle. ", + ""); + I_Method2(void, setPhiRange, IN, float, r1, IN, float, r2, + __void__setPhiRange__float__float, + "Set the range of possible values for the central angle. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, place, IN, osgParticle::Particle *, P, + __void__place__Particle_P1, + "Place a particle. Do not call it manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + I_SimpleProperty(osg::Vec3, ControlPosition, + __osg_Vec3__getControlPosition, + 0); + I_SimpleProperty(const osgParticle::rangef &, PhiRange, + __C5_rangef_R1__getPhiRange, + __void__setPhiRange__C5_rangef_R1); + I_SimpleProperty(const osgParticle::rangef &, RadiusRange, + __C5_rangef_R1__getRadiusRange, + __void__setRadiusRange__C5_rangef_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/SegmentPlacer.cpp b/src/osgWrappers/osgParticle/SegmentPlacer.cpp index c3ea7e685..6c534313d 100644 --- a/src/osgWrappers/osgParticle/SegmentPlacer.cpp +++ b/src/osgWrappers/osgParticle/SegmentPlacer.cpp @@ -26,24 +26,77 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SegmentPlacer) I_BaseType(osgParticle::Placer); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::SegmentPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(const osg::Vec3 &, getVertexA); - I_Method1(void, setVertexA, IN, const osg::Vec3 &, v); - I_Method3(void, setVertexA, IN, float, x, IN, float, y, IN, float, z); - I_Method0(const osg::Vec3 &, getVertexB); - I_Method1(void, setVertexB, IN, const osg::Vec3 &, v); - I_Method3(void, setVertexB, IN, float, x, IN, float, y, IN, float, z); - I_Method2(void, setSegment, IN, const osg::Vec3 &, A, IN, const osg::Vec3 &, B); - I_Method1(void, place, IN, osgParticle::Particle *, P); - I_Method0(osg::Vec3, getControlPosition); - I_ReadOnlyProperty(osg::Vec3, ControlPosition); - I_Property(const osg::Vec3 &, VertexA); - I_Property(const osg::Vec3 &, VertexB); + I_Constructor0(____SegmentPlacer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::SegmentPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SegmentPlacer__C5_SegmentPlacer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(const osg::Vec3 &, getVertexA, + __C5_osg_Vec3_R1__getVertexA, + "get vertex A. ", + ""); + I_Method1(void, setVertexA, IN, const osg::Vec3 &, v, + __void__setVertexA__C5_osg_Vec3_R1, + "Set vertex A of the segment as a vector. ", + ""); + I_Method3(void, setVertexA, IN, float, x, IN, float, y, IN, float, z, + __void__setVertexA__float__float__float, + "Set vertex A of the segment as three floats. ", + ""); + I_Method0(const osg::Vec3 &, getVertexB, + __C5_osg_Vec3_R1__getVertexB, + "get vertex B. ", + ""); + I_Method1(void, setVertexB, IN, const osg::Vec3 &, v, + __void__setVertexB__C5_osg_Vec3_R1, + "Set vertex B of the segment as a vector. ", + ""); + I_Method3(void, setVertexB, IN, float, x, IN, float, y, IN, float, z, + __void__setVertexB__float__float__float, + "Set vertex B of the segment as three floats. ", + ""); + I_Method2(void, setSegment, IN, const osg::Vec3 &, A, IN, const osg::Vec3 &, B, + __void__setSegment__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "Set both vertices. ", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + __void__place__Particle_P1, + "Place a particle. This method is called by ModularEmitter, do not call it manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + I_SimpleProperty(osg::Vec3, ControlPosition, + __osg_Vec3__getControlPosition, + 0); + I_SimpleProperty(const osg::Vec3 &, VertexA, + __C5_osg_Vec3_R1__getVertexA, + __void__setVertexA__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, VertexB, + __C5_osg_Vec3_R1__getVertexB, + __void__setVertexB__C5_osg_Vec3_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/Shooter.cpp b/src/osgWrappers/osgParticle/Shooter.cpp index 79cfeba24..50eb010d2 100644 --- a/src/osgWrappers/osgParticle/Shooter.cpp +++ b/src/osgWrappers/osgParticle/Shooter.cpp @@ -25,11 +25,28 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Shooter) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::Shooter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method1(void, shoot, IN, osgParticle::Particle *, P); + I_Constructor0(____Shooter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Shooter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Shooter__C5_Shooter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, shoot, IN, osgParticle::Particle *, P, + __void__shoot__Particle_P1, + "Shoot a particle. ", + "Must be overriden by descendants. This method should only set the velocity vector of particle P, leaving other attributes unchanged."); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/SmokeEffect.cpp b/src/osgWrappers/osgParticle/SmokeEffect.cpp index 5288e54e6..4b4dfb478 100644 --- a/src/osgWrappers/osgParticle/SmokeEffect.cpp +++ b/src/osgWrappers/osgParticle/SmokeEffect.cpp @@ -28,22 +28,71 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SmokeEffect) I_BaseType(osgParticle::ParticleEffect); - I_ConstructorWithDefaults1(IN, bool, automaticSetup, true); - I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f); - I_ConstructorWithDefaults2(IN, const osgParticle::SmokeEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(void, setDefaults); - I_Method0(void, setUpEmitterAndProgram); - I_Method0(osgParticle::Emitter *, getEmitter); - I_Method0(const osgParticle::Emitter *, getEmitter); - I_Method0(osgParticle::Program *, getProgram); - I_Method0(const osgParticle::Program *, getProgram); - I_ReadOnlyProperty(osgParticle::Emitter *, Emitter); - I_ReadOnlyProperty(osgParticle::Program *, Program); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + ____SmokeEffect__bool, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f, + ____SmokeEffect__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::SmokeEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SmokeEffect__C5_SmokeEffect_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(void, setDefaults, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + __C5_Program_P1__getProgram, + "", + ""); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/SmokeTrailEffect.cpp b/src/osgWrappers/osgParticle/SmokeTrailEffect.cpp index d366ee661..8e0eda752 100644 --- a/src/osgWrappers/osgParticle/SmokeTrailEffect.cpp +++ b/src/osgWrappers/osgParticle/SmokeTrailEffect.cpp @@ -28,22 +28,71 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SmokeTrailEffect) I_BaseType(osgParticle::ParticleEffect); - I_ConstructorWithDefaults1(IN, bool, automaticSetup, true); - I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f); - I_ConstructorWithDefaults2(IN, const osgParticle::SmokeTrailEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method0(void, setDefaults); - I_Method0(void, setUpEmitterAndProgram); - I_Method0(osgParticle::Emitter *, getEmitter); - I_Method0(const osgParticle::Emitter *, getEmitter); - I_Method0(osgParticle::Program *, getProgram); - I_Method0(const osgParticle::Program *, getProgram); - I_ReadOnlyProperty(osgParticle::Emitter *, Emitter); - I_ReadOnlyProperty(osgParticle::Program *, Program); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + ____SmokeTrailEffect__bool, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f, + ____SmokeTrailEffect__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::SmokeTrailEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SmokeTrailEffect__C5_SmokeTrailEffect_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(void, setDefaults, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + __C5_Program_P1__getProgram, + "", + ""); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/VariableRateCounter.cpp b/src/osgWrappers/osgParticle/VariableRateCounter.cpp index b8a053c07..12fa808aa 100644 --- a/src/osgWrappers/osgParticle/VariableRateCounter.cpp +++ b/src/osgWrappers/osgParticle/VariableRateCounter.cpp @@ -25,14 +25,39 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::VariableRateCounter) I_BaseType(osgParticle::Counter); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgParticle::VariableRateCounter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const osgParticle::rangef &, getRateRange); - I_Method1(void, setRateRange, IN, const osgParticle::rangef &, r); - I_Method2(void, setRateRange, IN, float, minrange, IN, float, maxrange); - I_Property(const osgParticle::rangef &, RateRange); + I_Constructor0(____VariableRateCounter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::VariableRateCounter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____VariableRateCounter__C5_VariableRateCounter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const osgParticle::rangef &, getRateRange, + __C5_rangef_R1__getRateRange, + "", + ""); + I_Method1(void, setRateRange, IN, const osgParticle::rangef &, r, + __void__setRateRange__C5_rangef_R1, + "", + ""); + I_Method2(void, setRateRange, IN, float, minrange, IN, float, maxrange, + __void__setRateRange__float__float, + "", + ""); + I_SimpleProperty(const osgParticle::rangef &, RateRange, + __C5_rangef_R1__getRateRange, + __void__setRateRange__C5_rangef_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/range.cpp b/src/osgWrappers/osgParticle/range.cpp index 58f8b6d98..b45e3bc23 100644 --- a/src/osgWrappers/osgParticle/range.cpp +++ b/src/osgWrappers/osgParticle/range.cpp @@ -32,53 +32,113 @@ TYPE_NAME_ALIAS(osgParticle::range< osg::Vec3 >, osgParticle::rangev3); TYPE_NAME_ALIAS(osgParticle::range< osg::Vec4 >, osgParticle::rangev4); BEGIN_VALUE_REFLECTOR(osgParticle::range< float >) - I_Constructor0(); - I_Constructor2(IN, const float &, mn, IN, const float &, mx); - I_Method2(void, set, IN, const float &, mn, IN, const float &, mx); - I_Method0(float, get_random); - I_Method0(float, get_random_sqrtf); - I_Method0(float, mid); - I_ReadOnlyProperty(float, _random); - I_ReadOnlyProperty(float, _random_sqrtf); + I_Constructor0(____range, + "Construct the object by calling default constructors for min and max. ", + ""); + I_Constructor2(IN, const float &, mn, IN, const float &, mx, + ____range__C5_ValueType_R1__C5_ValueType_R1, + "Construct and initialize min and max directly. ", + ""); + I_Method2(void, set, IN, const float &, mn, IN, const float &, mx, + __void__set__C5_ValueType_R1__C5_ValueType_R1, + "Set min and max. ", + ""); + I_Method0(float, get_random, + __ValueType__get_random, + "Get a random value between min and max. ", + ""); + I_Method0(float, get_random_sqrtf, + __ValueType__get_random_sqrtf, + "Get a random square root value between min and max. ", + ""); + I_Method0(float, mid, + __ValueType__mid, + "", + ""); I_PublicMemberProperty(float, minimum); I_PublicMemberProperty(float, maximum); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgParticle::range< osg::Vec2 >) - I_Constructor0(); - I_Constructor2(IN, const osg::Vec2 &, mn, IN, const osg::Vec2 &, mx); - I_Method2(void, set, IN, const osg::Vec2 &, mn, IN, const osg::Vec2 &, mx); - I_Method0(osg::Vec2, get_random); - I_Method0(osg::Vec2, get_random_sqrtf); - I_Method0(osg::Vec2, mid); - I_ReadOnlyProperty(osg::Vec2, _random); - I_ReadOnlyProperty(osg::Vec2, _random_sqrtf); + I_Constructor0(____range, + "Construct the object by calling default constructors for min and max. ", + ""); + I_Constructor2(IN, const osg::Vec2 &, mn, IN, const osg::Vec2 &, mx, + ____range__C5_ValueType_R1__C5_ValueType_R1, + "Construct and initialize min and max directly. ", + ""); + I_Method2(void, set, IN, const osg::Vec2 &, mn, IN, const osg::Vec2 &, mx, + __void__set__C5_ValueType_R1__C5_ValueType_R1, + "Set min and max. ", + ""); + I_Method0(osg::Vec2, get_random, + __ValueType__get_random, + "Get a random value between min and max. ", + ""); + I_Method0(osg::Vec2, get_random_sqrtf, + __ValueType__get_random_sqrtf, + "Get a random square root value between min and max. ", + ""); + I_Method0(osg::Vec2, mid, + __ValueType__mid, + "", + ""); I_PublicMemberProperty(osg::Vec2, minimum); I_PublicMemberProperty(osg::Vec2, maximum); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgParticle::range< osg::Vec3 >) - I_Constructor0(); - I_Constructor2(IN, const osg::Vec3 &, mn, IN, const osg::Vec3 &, mx); - I_Method2(void, set, IN, const osg::Vec3 &, mn, IN, const osg::Vec3 &, mx); - I_Method0(osg::Vec3, get_random); - I_Method0(osg::Vec3, get_random_sqrtf); - I_Method0(osg::Vec3, mid); - I_ReadOnlyProperty(osg::Vec3, _random); - I_ReadOnlyProperty(osg::Vec3, _random_sqrtf); + I_Constructor0(____range, + "Construct the object by calling default constructors for min and max. ", + ""); + I_Constructor2(IN, const osg::Vec3 &, mn, IN, const osg::Vec3 &, mx, + ____range__C5_ValueType_R1__C5_ValueType_R1, + "Construct and initialize min and max directly. ", + ""); + I_Method2(void, set, IN, const osg::Vec3 &, mn, IN, const osg::Vec3 &, mx, + __void__set__C5_ValueType_R1__C5_ValueType_R1, + "Set min and max. ", + ""); + I_Method0(osg::Vec3, get_random, + __ValueType__get_random, + "Get a random value between min and max. ", + ""); + I_Method0(osg::Vec3, get_random_sqrtf, + __ValueType__get_random_sqrtf, + "Get a random square root value between min and max. ", + ""); + I_Method0(osg::Vec3, mid, + __ValueType__mid, + "", + ""); I_PublicMemberProperty(osg::Vec3, minimum); I_PublicMemberProperty(osg::Vec3, maximum); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgParticle::range< osg::Vec4 >) - I_Constructor0(); - I_Constructor2(IN, const osg::Vec4 &, mn, IN, const osg::Vec4 &, mx); - I_Method2(void, set, IN, const osg::Vec4 &, mn, IN, const osg::Vec4 &, mx); - I_Method0(osg::Vec4, get_random); - I_Method0(osg::Vec4, get_random_sqrtf); - I_Method0(osg::Vec4, mid); - I_ReadOnlyProperty(osg::Vec4, _random); - I_ReadOnlyProperty(osg::Vec4, _random_sqrtf); + I_Constructor0(____range, + "Construct the object by calling default constructors for min and max. ", + ""); + I_Constructor2(IN, const osg::Vec4 &, mn, IN, const osg::Vec4 &, mx, + ____range__C5_ValueType_R1__C5_ValueType_R1, + "Construct and initialize min and max directly. ", + ""); + I_Method2(void, set, IN, const osg::Vec4 &, mn, IN, const osg::Vec4 &, mx, + __void__set__C5_ValueType_R1__C5_ValueType_R1, + "Set min and max. ", + ""); + I_Method0(osg::Vec4, get_random, + __ValueType__get_random, + "Get a random value between min and max. ", + ""); + I_Method0(osg::Vec4, get_random_sqrtf, + __ValueType__get_random_sqrtf, + "Get a random square root value between min and max. ", + ""); + I_Method0(osg::Vec4, mid, + __ValueType__mid, + "", + ""); I_PublicMemberProperty(osg::Vec4, minimum); I_PublicMemberProperty(osg::Vec4, maximum); END_REFLECTOR diff --git a/src/osgWrappers/osgProducer/GraphicsContextImplementation.cpp b/src/osgWrappers/osgProducer/GraphicsContextImplementation.cpp index 29c015cbf..1fa388c62 100644 --- a/src/osgWrappers/osgProducer/GraphicsContextImplementation.cpp +++ b/src/osgWrappers/osgProducer/GraphicsContextImplementation.cpp @@ -23,17 +23,52 @@ BEGIN_OBJECT_REFLECTOR(osgProducer::GraphicsContextImplementation) I_BaseType(osg::GraphicsContext); - I_Constructor1(IN, osg::GraphicsContext::Traits *, traits); - I_Constructor1(IN, Producer::RenderSurface *, rs); - I_Method0(Producer::RenderSurface *, getRenderSurface); - I_Method0(const Producer::RenderSurface *, getRenderSurface); - I_Method0(bool, realizeImplementation); - I_Method0(bool, isRealizedImplementation); - I_Method0(void, closeImplementation); - I_Method0(void, makeCurrentImplementation); - I_Method1(void, makeContextCurrentImplementation, IN, osg::GraphicsContext *, readContext); - I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, buffer); - I_Method0(void, swapBuffersImplementation); - I_ReadOnlyProperty(Producer::RenderSurface *, RenderSurface); + I_Constructor1(IN, osg::GraphicsContext::Traits *, traits, + ____GraphicsContextImplementation__Traits_P1, + "Construct a graphics context to specified traits. ", + ""); + I_Constructor1(IN, Producer::RenderSurface *, rs, + ____GraphicsContextImplementation__Producer_RenderSurface_P1, + "Construct a graphics context with specified RenderSurface. ", + ""); + I_Method0(Producer::RenderSurface *, getRenderSurface, + __Producer_RenderSurface_P1__getRenderSurface, + "Return the RenderSurface that implements the graphics context. ", + ""); + I_Method0(const Producer::RenderSurface *, getRenderSurface, + __C5_Producer_RenderSurface_P1__getRenderSurface, + "Return the const RenderSurface that implements the graphics context. ", + ""); + I_Method0(bool, realizeImplementation, + __bool__realizeImplementation, + "Realise the GraphicsContext. ", + ""); + I_Method0(bool, isRealizedImplementation, + __bool__isRealizedImplementation, + "Return true if the graphics context has been realised and is ready to use. ", + ""); + I_Method0(void, closeImplementation, + __void__closeImplementation, + "Close the graphics context. ", + ""); + I_Method0(void, makeCurrentImplementation, + __void__makeCurrentImplementation, + "Make this graphics context current. ", + ""); + I_Method1(void, makeContextCurrentImplementation, IN, osg::GraphicsContext *, readContext, + __void__makeContextCurrentImplementation__osg_GraphicsContext_P1, + "Make this graphics context current with specified read context. ", + ""); + I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, buffer, + __void__bindPBufferToTextureImplementation__GLenum, + "Bind the graphics context to associated texture. ", + ""); + I_Method0(void, swapBuffersImplementation, + __void__swapBuffersImplementation, + "swap the front and back buffers. ", + ""); + I_SimpleProperty(Producer::RenderSurface *, RenderSurface, + __Producer_RenderSurface_P1__getRenderSurface, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp b/src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp index eef59bf17..b60017995 100644 --- a/src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp +++ b/src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp @@ -25,40 +25,141 @@ TYPE_NAME_ALIAS(osgGA::EventQueue::Events, osgProducer::KeyboardMouseCallback::EventQueue); BEGIN_OBJECT_REFLECTOR(osgProducer::KeyboardMouseCallback) - I_ConstructorWithDefaults3(IN, Producer::KeyboardMouse *, keyboardMouse, , IN, bool &, done, , IN, bool, escapeKeySetsDone, true); - I_Method1(void, mouseScroll, IN, Producer::KeyboardMouseCallback::ScrollingMotion, sm); - I_Method2(void, mouseScroll2D, IN, float, x, IN, float, x); - I_Method1(void, penPressure, IN, float, pressure); - I_Method2(void, penProximity, IN, Producer::KeyboardMouseCallback::TabletPointerType, x, IN, bool, x); - I_Method2(void, mouseMotion, IN, float, mx, IN, float, my); - I_Method2(void, passiveMouseMotion, IN, float, mx, IN, float, my); - I_Method2(void, mouseWarp, IN, float, mx, IN, float, my); - I_Method3(void, buttonPress, IN, float, mx, IN, float, my, IN, unsigned int, mbutton); - I_Method3(void, doubleButtonPress, IN, float, mx, IN, float, my, IN, unsigned int, mbutton); - I_Method3(void, buttonRelease, IN, float, mx, IN, float, my, IN, unsigned int, mbutton); - I_Method1(void, keyPress, IN, Producer::KeyCharacter, key); - I_Method1(void, keyRelease, IN, Producer::KeyCharacter, key); - I_Method1(void, specialKeyPress, IN, Producer::KeyCharacter, key); - I_Method1(void, specialKeyRelease, IN, Producer::KeyCharacter, key); - I_Method4(void, windowConfig, IN, int, x, IN, int, y, IN, unsigned int, width, IN, unsigned int, height); - I_Method0(void, shutdown); - I_Method1(void, setEscapeSetDone, IN, bool, esc); - I_Method0(bool, getEscapeSetDone); - I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue); - I_Method0(osgGA::EventQueue *, getEventQueue); - I_Method1(bool, takeEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue); - I_Method1(bool, copyEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue); - I_Method1(void, setEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue); - I_Method1(void, appendEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue); - I_Method0(bool, done); - I_Method0(double, getTime); - I_Method0(Producer::KeyboardMouse *, getKeyboardMouse); - I_Method0(const Producer::KeyboardMouse *, getKeyboardMouse); - I_Method0(osgGA::GUIEventAdapter *, createEventAdapter); - I_Method0(void, updateWindowSize); - I_Property(bool, EscapeSetDone); - I_Property(osgGA::EventQueue *, EventQueue); - I_ReadOnlyProperty(Producer::KeyboardMouse *, KeyboardMouse); - I_ReadOnlyProperty(double, Time); + I_ConstructorWithDefaults3(IN, Producer::KeyboardMouse *, keyboardMouse, , IN, bool &, done, , IN, bool, escapeKeySetsDone, true, + ____KeyboardMouseCallback__Producer_KeyboardMouse_P1__bool_R1__bool, + "", + ""); + I_Method1(void, mouseScroll, IN, Producer::KeyboardMouseCallback::ScrollingMotion, sm, + __void__mouseScroll__Producer_KeyboardMouseCallback_ScrollingMotion, + "", + ""); + I_Method2(void, mouseScroll2D, IN, float, x, IN, float, x, + __void__mouseScroll2D__float__float, + "", + ""); + I_Method1(void, penPressure, IN, float, pressure, + __void__penPressure__float, + "", + ""); + I_Method2(void, penProximity, IN, Producer::KeyboardMouseCallback::TabletPointerType, x, IN, bool, x, + __void__penProximity__Producer_KeyboardMouseCallback_TabletPointerType__bool, + "", + ""); + I_Method2(void, mouseMotion, IN, float, mx, IN, float, my, + __void__mouseMotion__float__float, + "", + ""); + I_Method2(void, passiveMouseMotion, IN, float, mx, IN, float, my, + __void__passiveMouseMotion__float__float, + "", + ""); + I_Method2(void, mouseWarp, IN, float, mx, IN, float, my, + __void__mouseWarp__float__float, + "", + ""); + I_Method3(void, buttonPress, IN, float, mx, IN, float, my, IN, unsigned int, mbutton, + __void__buttonPress__float__float__unsigned_int, + "", + ""); + I_Method3(void, doubleButtonPress, IN, float, mx, IN, float, my, IN, unsigned int, mbutton, + __void__doubleButtonPress__float__float__unsigned_int, + "", + ""); + I_Method3(void, buttonRelease, IN, float, mx, IN, float, my, IN, unsigned int, mbutton, + __void__buttonRelease__float__float__unsigned_int, + "", + ""); + I_Method1(void, keyPress, IN, Producer::KeyCharacter, key, + __void__keyPress__Producer_KeyCharacter, + "", + ""); + I_Method1(void, keyRelease, IN, Producer::KeyCharacter, key, + __void__keyRelease__Producer_KeyCharacter, + "", + ""); + I_Method1(void, specialKeyPress, IN, Producer::KeyCharacter, key, + __void__specialKeyPress__Producer_KeyCharacter, + "", + ""); + I_Method1(void, specialKeyRelease, IN, Producer::KeyCharacter, key, + __void__specialKeyRelease__Producer_KeyCharacter, + "", + ""); + I_Method4(void, windowConfig, IN, int, x, IN, int, y, IN, unsigned int, width, IN, unsigned int, height, + __void__windowConfig__int__int__unsigned_int__unsigned_int, + "", + ""); + I_Method0(void, shutdown, + __void__shutdown, + "", + ""); + I_Method1(void, setEscapeSetDone, IN, bool, esc, + __void__setEscapeSetDone__bool, + "", + ""); + I_Method0(bool, getEscapeSetDone, + __bool__getEscapeSetDone, + "", + ""); + I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + __void__setEventQueue__osgGA_EventQueue_P1, + "", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + __osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method1(bool, takeEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + __bool__takeEventQueue__EventQueue_R1, + "", + ""); + I_Method1(bool, copyEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + __bool__copyEventQueue__EventQueue_R1, + "", + ""); + I_Method1(void, setEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + __void__setEventQueue__EventQueue_R1, + "", + ""); + I_Method1(void, appendEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + __void__appendEventQueue__EventQueue_R1, + "", + ""); + I_Method0(bool, done, + __bool__done, + "", + ""); + I_Method0(double, getTime, + __double__getTime, + "", + ""); + I_Method0(Producer::KeyboardMouse *, getKeyboardMouse, + __Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method0(const Producer::KeyboardMouse *, getKeyboardMouse, + __C5_Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method0(osgGA::GUIEventAdapter *, createEventAdapter, + __osgGA_GUIEventAdapter_P1__createEventAdapter, + "", + ""); + I_Method0(void, updateWindowSize, + __void__updateWindowSize, + "", + ""); + I_SimpleProperty(bool, EscapeSetDone, + __bool__getEscapeSetDone, + __void__setEscapeSetDone__bool); + I_SimpleProperty(osgGA::EventQueue *, EventQueue, + __osgGA_EventQueue_P1__getEventQueue, + __void__setEventQueue__osgGA_EventQueue_P1); + I_SimpleProperty(Producer::KeyboardMouse *, KeyboardMouse, + __Producer_KeyboardMouse_P1__getKeyboardMouse, + 0); + I_SimpleProperty(double, Time, + __double__getTime, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgProducer/OsgCameraGroup.cpp b/src/osgWrappers/osgProducer/OsgCameraGroup.cpp index d651a2fb5..9624f1116 100644 --- a/src/osgWrappers/osgProducer/OsgCameraGroup.cpp +++ b/src/osgWrappers/osgProducer/OsgCameraGroup.cpp @@ -40,92 +40,308 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgProducer::GraphicsContextImplement TYPE_NAME_ALIAS(std::vector< Producer::ref_ptr< osgProducer::OsgSceneHandler > >, osgProducer::OsgCameraGroup::SceneHandlerList); BEGIN_VALUE_REFLECTOR(osgProducer::OsgCameraGroup) - I_Constructor0(); - I_Constructor1(IN, Producer::CameraConfig *, cfg); - I_Constructor1(IN, const std::string &, configFile); - I_Constructor1(IN, osg::ArgumentParser &, arguments); - I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, au); - I_Method0(osg::ApplicationUsage *, getApplicationUsage); - I_Method0(const osg::ApplicationUsage *, getApplicationUsage); - I_Method1(void, setGraphicsContextList, IN, osgProducer::OsgCameraGroup::GraphicsContextList &, gcList); - I_Method0(osgProducer::OsgCameraGroup::GraphicsContextList &, getGraphicsContextList); - I_Method0(const osgProducer::OsgCameraGroup::GraphicsContextList &, getGraphicsContextList); - I_Method0(osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList); - I_Method0(const osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList); - I_Method1(void, setSceneData, IN, osg::Node *, scene); - I_Method0(osg::Node *, getSceneData); - I_Method0(const osg::Node *, getSceneData); - I_Method1(void, setSceneDecorator, IN, osg::Group *, decorator); - I_Method0(osg::Group *, getSceneDecorator); - I_Method0(const osg::Group *, getSceneDecorator); - I_Method0(osg::Node *, getTopMostSceneData); - I_Method0(const osg::Node *, getTopMostSceneData); - I_Method0(void, updatedSceneData); - I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds); - I_Method0(osg::DisplaySettings *, getDisplaySettings); - I_Method0(const osg::DisplaySettings *, getDisplaySettings); - I_Method1(void, setCullSettings, IN, const osg::CullSettings &, cs); - I_Method0(osg::CullSettings &, getCullSettings); - I_Method0(const osg::CullSettings &, getCullSettings); - I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs); - I_Method0(osg::FrameStamp *, getFrameStamp); - I_Method0(const osg::FrameStamp *, getFrameStamp); - I_Method1(void, setGlobalStateSet, IN, osg::StateSet *, sset); - I_Method0(osg::StateSet *, getGlobalStateSet); - I_Method0(const osg::StateSet *, getGlobalStateSet); - I_Method1(void, setClearColor, IN, const osg::Vec4 &, clearColor); - I_Method0(const osg::Vec4 &, getClearColor); - I_Method1(void, setLODScale, IN, float, scale); - I_Method0(float, getLODScale); - I_MethodWithDefaults2(void, setFusionDistance, IN, osgUtil::SceneView::FusionDistanceMode, mode, , IN, float, value, 1.0f); - I_Method1(void, setRealizeSceneViewOptions, IN, unsigned int, options); - I_Method0(unsigned int, getRealizeSceneViewOptions); - I_Method1(void, setEnableProcessorAffinityHint, IN, bool, enableProccessAffinityHint); - I_Method0(bool, getEnableProcessorAffinityHint); - I_Method1(void, setRealizeCallback, IN, osgProducer::OsgCameraGroup::RealizeCallback *, cb); - I_Method0(osgProducer::OsgCameraGroup::RealizeCallback *, getRealizeCallback); - I_Method0(const osgProducer::OsgCameraGroup::RealizeCallback *, getRealizeCallback); - I_Method0(void, advance); - I_Method1(bool, realize, IN, osgProducer::OsgCameraGroup::ThreadingModel, thread_model); - I_Method0(bool, realize); - I_Method1(void, setView, IN, const osg::Matrixd &, matrix); - I_Method0(osg::Matrixd, getViewMatrix); - I_Method0(void, sync); - I_Method0(void, frame); - I_Method0(void, cleanup_frame); - I_Property(osg::ApplicationUsage *, ApplicationUsage); - I_Property(const osg::Vec4 &, ClearColor); - I_Property(const osg::CullSettings &, CullSettings); - I_Property(osg::DisplaySettings *, DisplaySettings); - I_Property(bool, EnableProcessorAffinityHint); - I_Property(osg::FrameStamp *, FrameStamp); - I_Property(osg::StateSet *, GlobalStateSet); - I_Property(osgProducer::OsgCameraGroup::GraphicsContextList &, GraphicsContextList); - I_Property(float, LODScale); - I_Property(osgProducer::OsgCameraGroup::RealizeCallback *, RealizeCallback); - I_Property(unsigned int, RealizeSceneViewOptions); - I_Property(osg::Node *, SceneData); - I_Property(osg::Group *, SceneDecorator); - I_ReadOnlyProperty(osgProducer::OsgCameraGroup::SceneHandlerList &, SceneHandlerList); - I_ReadOnlyProperty(osg::Node *, TopMostSceneData); - I_WriteOnlyProperty(const osg::Matrixd &, View); - I_ReadOnlyProperty(osg::Matrixd, ViewMatrix); + I_Constructor0(____OsgCameraGroup, + "", + ""); + I_Constructor1(IN, Producer::CameraConfig *, cfg, + ____OsgCameraGroup__Producer_CameraConfig_P1, + "", + ""); + I_Constructor1(IN, const std::string &, configFile, + ____OsgCameraGroup__C5_std_string_R1, + "", + ""); + I_Constructor1(IN, osg::ArgumentParser &, arguments, + ____OsgCameraGroup__osg_ArgumentParser_R1, + "", + ""); + I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, au, + __void__setApplicationUsage__osg_ApplicationUsage_P1, + "", + ""); + I_Method0(osg::ApplicationUsage *, getApplicationUsage, + __osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(const osg::ApplicationUsage *, getApplicationUsage, + __C5_osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method1(void, setGraphicsContextList, IN, osgProducer::OsgCameraGroup::GraphicsContextList &, gcList, + __void__setGraphicsContextList__GraphicsContextList_R1, + "", + ""); + I_Method0(osgProducer::OsgCameraGroup::GraphicsContextList &, getGraphicsContextList, + __GraphicsContextList_R1__getGraphicsContextList, + "", + ""); + I_Method0(const osgProducer::OsgCameraGroup::GraphicsContextList &, getGraphicsContextList, + __C5_GraphicsContextList_R1__getGraphicsContextList, + "", + ""); + I_Method0(osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList, + __SceneHandlerList_R1__getSceneHandlerList, + "", + ""); + I_Method0(const osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList, + __C5_SceneHandlerList_R1__getSceneHandlerList, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, scene, + __void__setSceneData__osg_Node_P1, + "Set the scene data to be rendered. ", + " param scene The node to be used as the starting point during the rendering traversal of the scene graph. "); + I_Method0(osg::Node *, getSceneData, + __osg_Node_P1__getSceneData, + "Get the scene data being used for rendering. ", + "The node being used as the starting point during the rendering traversal of the scene graph. "); + I_Method0(const osg::Node *, getSceneData, + __C5_osg_Node_P1__getSceneData, + "", + ""); + I_Method1(void, setSceneDecorator, IN, osg::Group *, decorator, + __void__setSceneDecorator__osg_Group_P1, + "", + ""); + I_Method0(osg::Group *, getSceneDecorator, + __osg_Group_P1__getSceneDecorator, + "", + ""); + I_Method0(const osg::Group *, getSceneDecorator, + __C5_osg_Group_P1__getSceneDecorator, + "", + ""); + I_Method0(osg::Node *, getTopMostSceneData, + __osg_Node_P1__getTopMostSceneData, + "", + ""); + I_Method0(const osg::Node *, getTopMostSceneData, + __C5_osg_Node_P1__getTopMostSceneData, + "", + ""); + I_Method0(void, updatedSceneData, + __void__updatedSceneData, + "Update internal structures w.r.t updated scene data. ", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "", + ""); + I_Method0(osg::DisplaySettings *, getDisplaySettings, + __osg_DisplaySettings_P1__getDisplaySettings, + "", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "", + ""); + I_Method1(void, setCullSettings, IN, const osg::CullSettings &, cs, + __void__setCullSettings__C5_osg_CullSettings_R1, + "", + ""); + I_Method0(osg::CullSettings &, getCullSettings, + __osg_CullSettings_R1__getCullSettings, + "", + ""); + I_Method0(const osg::CullSettings &, getCullSettings, + __C5_osg_CullSettings_R1__getCullSettings, + "", + ""); + I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs, + __void__setFrameStamp__osg_FrameStamp_P1, + "", + ""); + I_Method0(osg::FrameStamp *, getFrameStamp, + __osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + __C5_osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method1(void, setGlobalStateSet, IN, osg::StateSet *, sset, + __void__setGlobalStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getGlobalStateSet, + __osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getGlobalStateSet, + __C5_osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, clearColor, + __void__setClearColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getClearColor, + __C5_osg_Vec4_R1__getClearColor, + "", + ""); + I_Method1(void, setLODScale, IN, float, scale, + __void__setLODScale__float, + "", + ""); + I_Method0(float, getLODScale, + __float__getLODScale, + "", + ""); + I_MethodWithDefaults2(void, setFusionDistance, IN, osgUtil::SceneView::FusionDistanceMode, mode, , IN, float, value, 1.0f, + __void__setFusionDistance__osgUtil_SceneView_FusionDistanceMode__float, + "", + ""); + I_Method1(void, setRealizeSceneViewOptions, IN, unsigned int, options, + __void__setRealizeSceneViewOptions__unsigned_int, + "Set the options to set up SceneView with, see osgUtil::SceneView::Options for available options. ", + ""); + I_Method0(unsigned int, getRealizeSceneViewOptions, + __unsigned_int__getRealizeSceneViewOptions, + "Get the options to set up SceneView with. ", + ""); + I_Method1(void, setEnableProcessorAffinityHint, IN, bool, enableProccessAffinityHint, + __void__setEnableProcessorAffinityHint__bool, + "Set whether processor affinity should be enable where supported by hardware. ", + ""); + I_Method0(bool, getEnableProcessorAffinityHint, + __bool__getEnableProcessorAffinityHint, + "Get whether processor affinity should be enable where supported by hardware. ", + ""); + I_Method1(void, setRealizeCallback, IN, osgProducer::OsgCameraGroup::RealizeCallback *, cb, + __void__setRealizeCallback__RealizeCallback_P1, + "Set the realize callback to use when once the render surfaces are realized. ", + ""); + I_Method0(osgProducer::OsgCameraGroup::RealizeCallback *, getRealizeCallback, + __RealizeCallback_P1__getRealizeCallback, + "Get the realize callback. ", + ""); + I_Method0(const osgProducer::OsgCameraGroup::RealizeCallback *, getRealizeCallback, + __C5_RealizeCallback_P1__getRealizeCallback, + "Get the const realize callback. ", + ""); + I_Method0(void, advance, + __void__advance, + "", + ""); + I_Method1(bool, realize, IN, osgProducer::OsgCameraGroup::ThreadingModel, thread_model, + __bool__realize__ThreadingModel, + "Set the threading model and then call realize(). ", + ""); + I_Method0(bool, realize, + __bool__realize, + "Realize the render surfaces (OpenGL graphics) and various threads, and call any realize callbacks. ", + ""); + I_Method1(void, setView, IN, const osg::Matrixd &, matrix, + __void__setView__C5_osg_Matrixd_R1, + "Set the model view matrix of the camera group, by individually set all the camera groups's camera. ", + ""); + I_Method0(osg::Matrixd, getViewMatrix, + __osg_Matrixd__getViewMatrix, + "Get the model view martrix of the camera group, taking its value for camera 0. ", + ""); + I_Method0(void, sync, + __void__sync, + "", + ""); + I_Method0(void, frame, + __void__frame, + "Dispatch the cull and draw for each of the Camera's for this frame. ", + ""); + I_Method0(void, cleanup_frame, + __void__cleanup_frame, + "Dispatch a clean up frame that should be called before closing a OsgCameraGroup, i.e. ", + "on exit from an app. The clean up frame first release all GL objects associated with all the graphics context associated with the camera group, then runs a special frame that does the actual OpenGL deletion of GL objects for each graphics context. "); + I_SimpleProperty(osg::ApplicationUsage *, ApplicationUsage, + __osg_ApplicationUsage_P1__getApplicationUsage, + __void__setApplicationUsage__osg_ApplicationUsage_P1); + I_SimpleProperty(const osg::Vec4 &, ClearColor, + __C5_osg_Vec4_R1__getClearColor, + __void__setClearColor__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::CullSettings &, CullSettings, + __C5_osg_CullSettings_R1__getCullSettings, + __void__setCullSettings__C5_osg_CullSettings_R1); + I_SimpleProperty(osg::DisplaySettings *, DisplaySettings, + __osg_DisplaySettings_P1__getDisplaySettings, + __void__setDisplaySettings__osg_DisplaySettings_P1); + I_SimpleProperty(bool, EnableProcessorAffinityHint, + __bool__getEnableProcessorAffinityHint, + __void__setEnableProcessorAffinityHint__bool); + I_SimpleProperty(osg::FrameStamp *, FrameStamp, + __osg_FrameStamp_P1__getFrameStamp, + __void__setFrameStamp__osg_FrameStamp_P1); + I_SimpleProperty(osg::StateSet *, GlobalStateSet, + __osg_StateSet_P1__getGlobalStateSet, + __void__setGlobalStateSet__osg_StateSet_P1); + I_SimpleProperty(osgProducer::OsgCameraGroup::GraphicsContextList &, GraphicsContextList, + __GraphicsContextList_R1__getGraphicsContextList, + __void__setGraphicsContextList__GraphicsContextList_R1); + I_SimpleProperty(float, LODScale, + __float__getLODScale, + __void__setLODScale__float); + I_SimpleProperty(osgProducer::OsgCameraGroup::RealizeCallback *, RealizeCallback, + __RealizeCallback_P1__getRealizeCallback, + __void__setRealizeCallback__RealizeCallback_P1); + I_SimpleProperty(unsigned int, RealizeSceneViewOptions, + __unsigned_int__getRealizeSceneViewOptions, + __void__setRealizeSceneViewOptions__unsigned_int); + I_SimpleProperty(osg::Node *, SceneData, + __osg_Node_P1__getSceneData, + __void__setSceneData__osg_Node_P1); + I_SimpleProperty(osg::Group *, SceneDecorator, + __osg_Group_P1__getSceneDecorator, + __void__setSceneDecorator__osg_Group_P1); + I_SimpleProperty(osgProducer::OsgCameraGroup::SceneHandlerList &, SceneHandlerList, + __SceneHandlerList_R1__getSceneHandlerList, + 0); + I_SimpleProperty(osg::Node *, TopMostSceneData, + __osg_Node_P1__getTopMostSceneData, + 0); + I_SimpleProperty(const osg::Matrixd &, View, + 0, + __void__setView__C5_osg_Matrixd_R1); + I_SimpleProperty(osg::Matrixd, ViewMatrix, + __osg_Matrixd__getViewMatrix, + 0); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::OsgCameraGroup::RealizeCallback) I_BaseType(osg::Referenced); - I_Constructor0(); + I_Constructor0(____RealizeCallback, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgProducer::GraphicsContextImplementation >) - I_Constructor0(); - I_Constructor1(IN, osgProducer::GraphicsContextImplementation *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osgProducer::GraphicsContextImplementation > &, rp); - I_Method0(osgProducer::GraphicsContextImplementation *, get); - I_Method0(bool, valid); - I_Method0(osgProducer::GraphicsContextImplementation *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osgProducer::GraphicsContextImplementation > &, rp); - I_ReadOnlyProperty(osgProducer::GraphicsContextImplementation *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgProducer::GraphicsContextImplementation *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgProducer::GraphicsContextImplementation > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgProducer::GraphicsContextImplementation *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osgProducer::GraphicsContextImplementation *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgProducer::GraphicsContextImplementation > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgProducer::GraphicsContextImplementation *, , + __T_P1__get, + 0); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< Producer::ref_ptr< osgProducer::OsgSceneHandler > >); diff --git a/src/osgWrappers/osgProducer/OsgSceneHandler.cpp b/src/osgWrappers/osgProducer/OsgSceneHandler.cpp index 8098e95ee..ed677d5ce 100644 --- a/src/osgWrappers/osgProducer/OsgSceneHandler.cpp +++ b/src/osgWrappers/osgProducer/OsgSceneHandler.cpp @@ -24,46 +24,148 @@ #endif BEGIN_OBJECT_REFLECTOR(osgProducer::OsgSceneHandler) - I_ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, NULL); - I_Method1(void, setSceneView, IN, osgUtil::SceneView *, sceneView); - I_Method0(osgUtil::SceneView *, getSceneView); - I_Method0(const osgUtil::SceneView *, getSceneView); - I_Method0(void, init); - I_Method1(void, clear, IN, Producer::Camera &, camera); - I_Method1(void, clearImplementation, IN, Producer::Camera &, camera); - I_Method1(void, setClearCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback); - I_Method0(osgProducer::OsgSceneHandler::Callback *, getClearCallback); - I_Method0(const osgProducer::OsgSceneHandler::Callback *, getClearCallback); - I_Method1(void, cull, IN, Producer::Camera &, camera); - I_Method1(void, cullImplementation, IN, Producer::Camera &, camera); - I_Method1(void, setCullCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback); - I_Method0(osgProducer::OsgSceneHandler::Callback *, getCullCallback); - I_Method0(const osgProducer::OsgSceneHandler::Callback *, getCullCallback); - I_Method1(void, draw, IN, Producer::Camera &, camera); - I_Method1(void, drawImplementation, IN, Producer::Camera &, camera); - I_Method1(void, setDrawCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback); - I_Method0(osgProducer::OsgSceneHandler::Callback *, getDrawCallback); - I_Method0(const osgProducer::OsgSceneHandler::Callback *, getDrawCallback); - I_Method1(void, setCollectStats, IN, bool, collectStats); - I_Method0(bool, getCollectStats); - I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats); - I_Method1(void, setContextID, IN, int, id); - I_Method1(void, setFlushOfAllDeletedGLObjectsOnNextFrame, IN, bool, flag); - I_Method0(bool, getFlushOfAllDeletedGLObjectsOnNextFrame); - I_Method1(void, setCleanUpOnNextFrame, IN, bool, flag); - I_Method0(bool, getCleanUpOnNextFrame); - I_Property(bool, CleanUpOnNextFrame); - I_Property(osgProducer::OsgSceneHandler::Callback *, ClearCallback); - I_Property(bool, CollectStats); - I_WriteOnlyProperty(int, ContextID); - I_Property(osgProducer::OsgSceneHandler::Callback *, CullCallback); - I_Property(osgProducer::OsgSceneHandler::Callback *, DrawCallback); - I_Property(bool, FlushOfAllDeletedGLObjectsOnNextFrame); - I_Property(osgUtil::SceneView *, SceneView); + I_ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, NULL, + ____OsgSceneHandler__osg_DisplaySettings_P1, + "", + ""); + I_Method1(void, setSceneView, IN, osgUtil::SceneView *, sceneView, + __void__setSceneView__osgUtil_SceneView_P1, + "set the scene view to which will manage rendering of the OSG scene. ", + ""); + I_Method0(osgUtil::SceneView *, getSceneView, + __osgUtil_SceneView_P1__getSceneView, + "get the scene view. ", + ""); + I_Method0(const osgUtil::SceneView *, getSceneView, + __C5_osgUtil_SceneView_P1__getSceneView, + "get the const scene view. ", + ""); + I_Method0(void, init, + __void__init, + "override the init method to force it be run one at a time. ", + ""); + I_Method1(void, clear, IN, Producer::Camera &, camera, + __void__clear__Producer_Camera_R1, + "", + ""); + I_Method1(void, clearImplementation, IN, Producer::Camera &, camera, + __void__clearImplementation__Producer_Camera_R1, + "", + ""); + I_Method1(void, setClearCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback, + __void__setClearCallback__Callback_P1, + "", + ""); + I_Method0(osgProducer::OsgSceneHandler::Callback *, getClearCallback, + __Callback_P1__getClearCallback, + "", + ""); + I_Method0(const osgProducer::OsgSceneHandler::Callback *, getClearCallback, + __C5_Callback_P1__getClearCallback, + "", + ""); + I_Method1(void, cull, IN, Producer::Camera &, camera, + __void__cull__Producer_Camera_R1, + "", + ""); + I_Method1(void, cullImplementation, IN, Producer::Camera &, camera, + __void__cullImplementation__Producer_Camera_R1, + "", + ""); + I_Method1(void, setCullCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback, + __void__setCullCallback__Callback_P1, + "", + ""); + I_Method0(osgProducer::OsgSceneHandler::Callback *, getCullCallback, + __Callback_P1__getCullCallback, + "", + ""); + I_Method0(const osgProducer::OsgSceneHandler::Callback *, getCullCallback, + __C5_Callback_P1__getCullCallback, + "", + ""); + I_Method1(void, draw, IN, Producer::Camera &, camera, + __void__draw__Producer_Camera_R1, + "", + ""); + I_Method1(void, drawImplementation, IN, Producer::Camera &, camera, + __void__drawImplementation__Producer_Camera_R1, + "", + ""); + I_Method1(void, setDrawCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback, + __void__setDrawCallback__Callback_P1, + "", + ""); + I_Method0(osgProducer::OsgSceneHandler::Callback *, getDrawCallback, + __Callback_P1__getDrawCallback, + "", + ""); + I_Method0(const osgProducer::OsgSceneHandler::Callback *, getDrawCallback, + __C5_Callback_P1__getDrawCallback, + "", + ""); + I_Method1(void, setCollectStats, IN, bool, collectStats, + __void__setCollectStats__bool, + "", + ""); + I_Method0(bool, getCollectStats, + __bool__getCollectStats, + "", + ""); + I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, + __bool__getStats__osgUtil_Statistics_R1, + "", + ""); + I_Method1(void, setContextID, IN, int, id, + __void__setContextID__int, + "", + ""); + I_Method1(void, setFlushOfAllDeletedGLObjectsOnNextFrame, IN, bool, flag, + __void__setFlushOfAllDeletedGLObjectsOnNextFrame__bool, + "", + ""); + I_Method0(bool, getFlushOfAllDeletedGLObjectsOnNextFrame, + __bool__getFlushOfAllDeletedGLObjectsOnNextFrame, + "", + ""); + I_Method1(void, setCleanUpOnNextFrame, IN, bool, flag, + __void__setCleanUpOnNextFrame__bool, + "", + ""); + I_Method0(bool, getCleanUpOnNextFrame, + __bool__getCleanUpOnNextFrame, + "", + ""); + I_SimpleProperty(bool, CleanUpOnNextFrame, + __bool__getCleanUpOnNextFrame, + __void__setCleanUpOnNextFrame__bool); + I_SimpleProperty(osgProducer::OsgSceneHandler::Callback *, ClearCallback, + __Callback_P1__getClearCallback, + __void__setClearCallback__Callback_P1); + I_SimpleProperty(bool, CollectStats, + __bool__getCollectStats, + __void__setCollectStats__bool); + I_SimpleProperty(int, ContextID, + 0, + __void__setContextID__int); + I_SimpleProperty(osgProducer::OsgSceneHandler::Callback *, CullCallback, + __Callback_P1__getCullCallback, + __void__setCullCallback__Callback_P1); + I_SimpleProperty(osgProducer::OsgSceneHandler::Callback *, DrawCallback, + __Callback_P1__getDrawCallback, + __void__setDrawCallback__Callback_P1); + I_SimpleProperty(bool, FlushOfAllDeletedGLObjectsOnNextFrame, + __bool__getFlushOfAllDeletedGLObjectsOnNextFrame, + __void__setFlushOfAllDeletedGLObjectsOnNextFrame__bool); + I_SimpleProperty(osgUtil::SceneView *, SceneView, + __osgUtil_SceneView_P1__getSceneView, + __void__setSceneView__osgUtil_SceneView_P1); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::OsgSceneHandler::Callback) I_BaseType(osg::Referenced); - I_Constructor0(); + I_Constructor0(____Callback, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgProducer/Viewer.cpp b/src/osgWrappers/osgProducer/Viewer.cpp index 92961f17a..83d28ad2e 100644 --- a/src/osgWrappers/osgProducer/Viewer.cpp +++ b/src/osgWrappers/osgProducer/Viewer.cpp @@ -55,100 +55,359 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgProducer::Viewer) I_BaseType(osgProducer::OsgCameraGroup); I_BaseType(osgGA::GUIActionAdapter); - I_Constructor0(); - I_Constructor1(IN, Producer::CameraConfig *, cfg); - I_Constructor1(IN, const std::string &, configFile); - I_Constructor1(IN, osg::ArgumentParser &, arguments); - I_MethodWithDefaults1(void, setUpViewer, IN, unsigned int, options, osgProducer::Viewer::STANDARD_SETTINGS); - I_Method1(void, setDoneAtElapsedTime, IN, double, elapsedTime); - I_Method0(double, getDoneAtElapsedTime); - I_Method1(void, setDoneAtElapsedTimeEnabled, IN, bool, enabled); - I_Method0(bool, getDoneAtElapsedTimeEnabled); - I_Method1(void, setDoneAtFrameNumber, IN, unsigned int, frameNumber); - I_Method0(unsigned int, getDoneAtFrameNumber); - I_Method1(void, setDoneAtFrameNumberEnabled, IN, bool, enabled); - I_Method0(bool, getDoneAtFrameNumberEnabled); - I_Method1(void, setDone, IN, bool, done); - I_Method0(bool, getDone); - I_Method0(bool, done); - I_Method1(void, setWriteImageWhenDone, IN, bool, enabled); - I_Method0(bool, getWriteImageWhenDone); - I_Method1(void, setWriteImageFileName, IN, const std::string &, filename); - I_Method0(const std::string &, getWriteImageFileName); - I_Method1(void, setViewByMatrix, IN, const Producer::Matrix &, pm); - I_Method1(bool, realize, IN, osgProducer::OsgCameraGroup::ThreadingModel, thread_model); - I_Method0(bool, realize); - I_Method0(void, update); - I_Method1(void, setUpdateVisitor, IN, osg::NodeVisitor *, nv); - I_Method0(osg::NodeVisitor *, getUpdateVisitor); - I_Method0(const osg::NodeVisitor *, getUpdateVisitor); - I_Method1(void, setEventVisitor, IN, osgGA::EventVisitor *, nv); - I_Method0(osgGA::EventVisitor *, getEventVisitor); - I_Method0(const osgGA::EventVisitor *, getEventVisitor); - I_Method0(void, computeActiveCoordinateSystemNodePath); - I_Method1(void, setCoordinateSystemNodePath, IN, const osg::NodePath &, nodePath); - I_Method0(osg::NodePath, getCoordinateSystemNodePath); - I_Method0(void, frame); - I_Method0(void, requestRedraw); - I_Method1(void, requestContinuousUpdate, IN, bool, x); - I_Method2(void, requestWarpPointer, IN, float, x, IN, float, y); - I_Method5(bool, computePixelCoords, IN, float, x, IN, float, y, IN, unsigned int, cameraNum, IN, float &, pixel_x, IN, float &, pixel_y); - I_Method5(bool, computeNearFarPoints, IN, float, x, IN, float, y, IN, unsigned int, cameraNum, IN, osg::Vec3 &, near, IN, osg::Vec3 &, far); - I_MethodWithDefaults6(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, unsigned int, cameraNum, , IN, osg::Node *, node, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff); - I_MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, unsigned int, cameraNum, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff); - I_MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osg::Node *, node, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff); - I_MethodWithDefaults4(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff); - I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue); - I_Method0(osgGA::EventQueue *, getEventQueue); - I_Method1(void, setKeyboardMouse, IN, Producer::KeyboardMouse *, kbm); - I_Method0(Producer::KeyboardMouse *, getKeyboardMouse); - I_Method0(const Producer::KeyboardMouse *, getKeyboardMouse); - I_Method1(void, setKeyboardMouseCallback, IN, osgProducer::KeyboardMouseCallback *, kbmcb); - I_Method0(osgProducer::KeyboardMouseCallback *, getKeyboardMouseCallback); - I_Method0(const osgProducer::KeyboardMouseCallback *, getKeyboardMouseCallback); - I_Method0(osgProducer::Viewer::EventHandlerList &, getEventHandlerList); - I_Method0(const osgProducer::Viewer::EventHandlerList &, getEventHandlerList); - I_Method0(osgGA::KeySwitchMatrixManipulator *, getKeySwitchMatrixManipulator); - I_Method0(const osgGA::KeySwitchMatrixManipulator *, getKeySwitchMatrixManipulator); - I_Method1(unsigned int, addCameraManipulator, IN, osgGA::MatrixManipulator *, cm); - I_Method1(void, selectCameraManipulator, IN, unsigned int, no); - I_Method1(void, getCameraManipulatorNameList, IN, std::list< std::string > &, nameList); - I_Method1(bool, selectCameraManipulatorByName, IN, const std::string &, name); - I_Method1(osgGA::MatrixManipulator *, getCameraManipulatorByName, IN, const std::string &, name); - I_Method1(void, setRecordingAnimationPath, IN, bool, on); - I_Method0(bool, getRecordingAnimationPath); - I_Method1(void, setAnimationPath, IN, osg::AnimationPath *, path); - I_Method0(osg::AnimationPath *, getAnimationPath); - I_Method0(const osg::AnimationPath *, getAnimationPath); - I_Method0(const double *, getPosition); - I_Method0(double, getSpeed); - I_Method0(osg::Quat, getOrientation); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); - I_Method0(void, updatedSceneData); - I_Method0(void, cleanup_frame); - I_StaticMethod0(const char *, getDefaultImageFileName); - I_Property(osg::AnimationPath *, AnimationPath); - I_ReadOnlyProperty(osg::NodePath, CoordinateSystemNodePath); - I_Property(bool, Done); - I_Property(double, DoneAtElapsedTime); - I_Property(bool, DoneAtElapsedTimeEnabled); - I_Property(unsigned int, DoneAtFrameNumber); - I_Property(bool, DoneAtFrameNumberEnabled); - I_ReadOnlyProperty(osgProducer::Viewer::EventHandlerList &, EventHandlerList); - I_Property(osgGA::EventQueue *, EventQueue); - I_Property(osgGA::EventVisitor *, EventVisitor); - I_ReadOnlyProperty(osgGA::KeySwitchMatrixManipulator *, KeySwitchMatrixManipulator); - I_Property(Producer::KeyboardMouse *, KeyboardMouse); - I_Property(osgProducer::KeyboardMouseCallback *, KeyboardMouseCallback); - I_ReadOnlyProperty(osg::Quat, Orientation); - I_ReadOnlyProperty(const double *, Position); - I_Property(bool, RecordingAnimationPath); - I_ReadOnlyProperty(double, Speed); - I_WriteOnlyProperty(unsigned int, UpViewer); - I_Property(osg::NodeVisitor *, UpdateVisitor); - I_WriteOnlyProperty(const Producer::Matrix &, ViewByMatrix); - I_Property(const std::string &, WriteImageFileName); - I_Property(bool, WriteImageWhenDone); + I_Constructor0(____Viewer, + "", + ""); + I_Constructor1(IN, Producer::CameraConfig *, cfg, + ____Viewer__Producer_CameraConfig_P1, + "", + ""); + I_Constructor1(IN, const std::string &, configFile, + ____Viewer__C5_std_string_R1, + "", + ""); + I_Constructor1(IN, osg::ArgumentParser &, arguments, + ____Viewer__osg_ArgumentParser_R1, + "", + ""); + I_MethodWithDefaults1(void, setUpViewer, IN, unsigned int, options, osgProducer::Viewer::STANDARD_SETTINGS, + __void__setUpViewer__unsigned_int, + "Set up the viewer, allowing to control some aspects of its behavior. ", + " param options One or more of the options defined by the ViewerOptions enumeration, combined using the bitwise OR operator (``|''). "); + I_Method1(void, setDoneAtElapsedTime, IN, double, elapsedTime, + __void__setDoneAtElapsedTime__double, + "Set the viewer so it sets done to true once the refrence time equals or exceeds specified elapsed time. ", + "Automatically does a setDoneAtElapsedTimeEnabled(true). "); + I_Method0(double, getDoneAtElapsedTime, + __double__getDoneAtElapsedTime, + "Get the elapsed time that will cause done to be set to be true. ", + ""); + I_Method1(void, setDoneAtElapsedTimeEnabled, IN, bool, enabled, + __void__setDoneAtElapsedTimeEnabled__bool, + "Set whether to use a elapsed time to limit the run of the viewer. ", + ""); + I_Method0(bool, getDoneAtElapsedTimeEnabled, + __bool__getDoneAtElapsedTimeEnabled, + "Get whether to use a elapsed time to limit the run of the viewer. ", + ""); + I_Method1(void, setDoneAtFrameNumber, IN, unsigned int, frameNumber, + __void__setDoneAtFrameNumber__unsigned_int, + "Set the viewer so it sets done to true once the frame number equals or exceeds specified frame number. ", + "Automatically does a setDoneAtFrameNumberEnabled(true). "); + I_Method0(unsigned int, getDoneAtFrameNumber, + __unsigned_int__getDoneAtFrameNumber, + "Get the frame number that will cause done to be set to be true. ", + ""); + I_Method1(void, setDoneAtFrameNumberEnabled, IN, bool, enabled, + __void__setDoneAtFrameNumberEnabled__bool, + "Set whether to use a frame number to limit the run of the viewer. ", + ""); + I_Method0(bool, getDoneAtFrameNumberEnabled, + __bool__getDoneAtFrameNumberEnabled, + "Get whether to use a frame number to limit the run of the viewer. ", + ""); + I_Method1(void, setDone, IN, bool, done, + __void__setDone__bool, + "Set the done flag signalling that the viewer exit. ", + ""); + I_Method0(bool, getDone, + __bool__getDone, + "Get the done flag which signals that the viewer exit. ", + ""); + I_Method0(bool, done, + __bool__done, + "Return true if the application is done and should exit. ", + ""); + I_Method1(void, setWriteImageWhenDone, IN, bool, enabled, + __void__setWriteImageWhenDone__bool, + "Set the viewer to take an image snapshot on the last frame() when done is enabled. ", + ""); + I_Method0(bool, getWriteImageWhenDone, + __bool__getWriteImageWhenDone, + "Set the viewer to take an image snapshot on the last frame() when done is enabled. ", + ""); + I_Method1(void, setWriteImageFileName, IN, const std::string &, filename, + __void__setWriteImageFileName__C5_std_string_R1, + "Set the filename to write to when the viewer takes an image snapshot on the last frame() when done is enabled. ", + ""); + I_Method0(const std::string &, getWriteImageFileName, + __C5_std_string_R1__getWriteImageFileName, + "Get the filename to write to when the viewer takes an image snapshot on the last frame() when done is enabled. ", + ""); + I_Method1(void, setViewByMatrix, IN, const Producer::Matrix &, pm, + __void__setViewByMatrix__C5_Producer_Matrix_R1, + "Override the Producer::CameraGroup::setViewByMatrix to catch all changes to view. ", + ""); + I_Method1(bool, realize, IN, osgProducer::OsgCameraGroup::ThreadingModel, thread_model, + __bool__realize__ThreadingModel, + "Set the threading model and then call realize(). ", + ""); + I_Method0(bool, realize, + __bool__realize, + "Realize the render surfaces (OpenGL graphics) and various threads, and call any realize callbacks. ", + ""); + I_Method0(void, update, + __void__update, + "Updated the scene. ", + "Handle any queued up events, do an update traversal and set the CameraGroup's setViewByMatrix if any camera manipulators are active. "); + I_Method1(void, setUpdateVisitor, IN, osg::NodeVisitor *, nv, + __void__setUpdateVisitor__osg_NodeVisitor_P1, + "Set the update visitor which does the update traversal of the scene graph. ", + "Automatically called by the update() method. "); + I_Method0(osg::NodeVisitor *, getUpdateVisitor, + __osg_NodeVisitor_P1__getUpdateVisitor, + "Get the update visitor. ", + ""); + I_Method0(const osg::NodeVisitor *, getUpdateVisitor, + __C5_osg_NodeVisitor_P1__getUpdateVisitor, + "Get the const update visitor. ", + ""); + I_Method1(void, setEventVisitor, IN, osgGA::EventVisitor *, nv, + __void__setEventVisitor__osgGA_EventVisitor_P1, + "Set the update visitor which does the event traversal of the scene graph. ", + "Automatically called by the update() method. "); + I_Method0(osgGA::EventVisitor *, getEventVisitor, + __osgGA_EventVisitor_P1__getEventVisitor, + "Get the update visitor. ", + ""); + I_Method0(const osgGA::EventVisitor *, getEventVisitor, + __C5_osgGA_EventVisitor_P1__getEventVisitor, + "Get the const update visitor. ", + ""); + I_Method0(void, computeActiveCoordinateSystemNodePath, + __void__computeActiveCoordinateSystemNodePath, + "", + ""); + I_Method1(void, setCoordinateSystemNodePath, IN, const osg::NodePath &, nodePath, + __void__setCoordinateSystemNodePath__C5_osg_NodePath_R1, + "", + ""); + I_Method0(osg::NodePath, getCoordinateSystemNodePath, + __osg_NodePath__getCoordinateSystemNodePath, + "", + ""); + I_Method0(void, frame, + __void__frame, + "Dispatch the cull and draw for each of the Camera's for this frame. ", + ""); + I_Method0(void, requestRedraw, + __void__requestRedraw, + "requestRedraw() requests a single redraw. ", + ""); + I_Method1(void, requestContinuousUpdate, IN, bool, x, + __void__requestContinuousUpdate__bool, + "requestContinousUpdate(bool) is for en/disabling a throw or idle callback to be requested by a GUIEventHandler (typically a MatrixManipulator, though other GUIEventHandler's may also provide functionality). ", + "GUI toolkits can respond to this immediately by registering an idle/timed callback, or can delay setting the callback and update at their own leisure."); + I_Method2(void, requestWarpPointer, IN, float, x, IN, float, y, + __void__requestWarpPointer__float__float, + "requestWarpPointer(int,int) is requesting a repositioning of the mouse pointer to a specified x,y location on the window. ", + "This is used by some camera manipulators to initialise the mouse pointer when mouse position relative to a controls neutral mouse position is required, i.e when mimicking a aircrafts joystick."); + I_Method5(bool, computePixelCoords, IN, float, x, IN, float, y, IN, unsigned int, cameraNum, IN, float &, pixel_x, IN, float &, pixel_y, + __bool__computePixelCoords__float__float__unsigned_int__float_R1__float_R1, + "Compute, from normalized mouse coords, for sepecified Camera, the pixel coords relative to that Camera's RenderSurface. ", + ""); + I_Method5(bool, computeNearFarPoints, IN, float, x, IN, float, y, IN, unsigned int, cameraNum, IN, osg::Vec3 &, near, IN, osg::Vec3 &, far, + __bool__computeNearFarPoints__float__float__unsigned_int__osg_Vec3_R1__osg_Vec3_R1, + "Compute, from normalized mouse coords, for sepecified Camera, the near and far points in worlds coords. ", + ""); + I_MethodWithDefaults6(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, unsigned int, cameraNum, , IN, osg::Node *, node, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __bool__computeIntersections__float__float__unsigned_int__osg_Node_P1__osgUtil_IntersectVisitor_HitList_R1__osg_Node_NodeMask, + "Compute, from normalized mouse coords, for all Cameras, intersections with the specified subgraph. ", + ""); + I_MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, unsigned int, cameraNum, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __bool__computeIntersections__float__float__unsigned_int__osgUtil_IntersectVisitor_HitList_R1__osg_Node_NodeMask, + "Compute, from normalized mouse coords, for sepecified Camera, intersections with the scene. ", + ""); + I_MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osg::Node *, node, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __bool__computeIntersections__float__float__osg_Node_P1__osgUtil_IntersectVisitor_HitList_R1__osg_Node_NodeMask, + "Compute, from normalized mouse coords, for all Cameras, intersections with specified subgraph. ", + ""); + I_MethodWithDefaults4(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __bool__computeIntersections__float__float__osgUtil_IntersectVisitor_HitList_R1__osg_Node_NodeMask, + "Compute, from normalized mouse coords, for all Cameras, intersections with the scene. ", + ""); + I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + __void__setEventQueue__osgGA_EventQueue_P1, + "Set the EventQueue - a thread safe queue for registering events. ", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + __osgGA_EventQueue_P1__getEventQueue, + "Get the EventQueue. ", + ""); + I_Method1(void, setKeyboardMouse, IN, Producer::KeyboardMouse *, kbm, + __void__setKeyboardMouse__Producer_KeyboardMouse_P1, + "", + ""); + I_Method0(Producer::KeyboardMouse *, getKeyboardMouse, + __Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method0(const Producer::KeyboardMouse *, getKeyboardMouse, + __C5_Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method1(void, setKeyboardMouseCallback, IN, osgProducer::KeyboardMouseCallback *, kbmcb, + __void__setKeyboardMouseCallback__osgProducer_KeyboardMouseCallback_P1, + "", + ""); + I_Method0(osgProducer::KeyboardMouseCallback *, getKeyboardMouseCallback, + __osgProducer_KeyboardMouseCallback_P1__getKeyboardMouseCallback, + "", + ""); + I_Method0(const osgProducer::KeyboardMouseCallback *, getKeyboardMouseCallback, + __C5_osgProducer_KeyboardMouseCallback_P1__getKeyboardMouseCallback, + "", + ""); + I_Method0(osgProducer::Viewer::EventHandlerList &, getEventHandlerList, + __EventHandlerList_R1__getEventHandlerList, + "", + ""); + I_Method0(const osgProducer::Viewer::EventHandlerList &, getEventHandlerList, + __C5_EventHandlerList_R1__getEventHandlerList, + "", + ""); + I_Method0(osgGA::KeySwitchMatrixManipulator *, getKeySwitchMatrixManipulator, + __osgGA_KeySwitchMatrixManipulator_P1__getKeySwitchMatrixManipulator, + "", + ""); + I_Method0(const osgGA::KeySwitchMatrixManipulator *, getKeySwitchMatrixManipulator, + __C5_osgGA_KeySwitchMatrixManipulator_P1__getKeySwitchMatrixManipulator, + "", + ""); + I_Method1(unsigned int, addCameraManipulator, IN, osgGA::MatrixManipulator *, cm, + __unsigned_int__addCameraManipulator__osgGA_MatrixManipulator_P1, + "", + ""); + I_Method1(void, selectCameraManipulator, IN, unsigned int, no, + __void__selectCameraManipulator__unsigned_int, + "", + ""); + I_Method1(void, getCameraManipulatorNameList, IN, std::list< std::string > &, nameList, + __void__getCameraManipulatorNameList__std_listT1_std_string__R1, + "", + ""); + I_Method1(bool, selectCameraManipulatorByName, IN, const std::string &, name, + __bool__selectCameraManipulatorByName__C5_std_string_R1, + "", + ""); + I_Method1(osgGA::MatrixManipulator *, getCameraManipulatorByName, IN, const std::string &, name, + __osgGA_MatrixManipulator_P1__getCameraManipulatorByName__C5_std_string_R1, + "", + ""); + I_Method1(void, setRecordingAnimationPath, IN, bool, on, + __void__setRecordingAnimationPath__bool, + "", + ""); + I_Method0(bool, getRecordingAnimationPath, + __bool__getRecordingAnimationPath, + "", + ""); + I_Method1(void, setAnimationPath, IN, osg::AnimationPath *, path, + __void__setAnimationPath__osg_AnimationPath_P1, + "", + ""); + I_Method0(osg::AnimationPath *, getAnimationPath, + __osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const osg::AnimationPath *, getAnimationPath, + __C5_osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const double *, getPosition, + __C5_double_P1__getPosition, + "", + ""); + I_Method0(double, getSpeed, + __double__getSpeed, + "", + ""); + I_Method0(osg::Quat, getOrientation, + __osg_Quat__getOrientation, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this viewer. ", + ""); + I_Method0(void, updatedSceneData, + __void__updatedSceneData, + "Update internal structures w.r.t updated scene data. ", + ""); + I_Method0(void, cleanup_frame, + __void__cleanup_frame, + "Dispatch a clean up frame that should be called before closing a OsgCameraGroup, i.e. ", + "on exit from an app. The clean up frame first release all GL objects associated with all the graphics context associated with the camera group, then runs a special frame that does the actual OpenGL deletion of GL objects for each graphics context. "); + I_StaticMethod0(const char *, getDefaultImageFileName, + __C5_char_P1__getDefaultImageFileName_S, + "Get the default filename for writing an image snapshot. ", + ""); + I_SimpleProperty(osg::AnimationPath *, AnimationPath, + __osg_AnimationPath_P1__getAnimationPath, + __void__setAnimationPath__osg_AnimationPath_P1); + I_SimpleProperty(osg::NodePath, CoordinateSystemNodePath, + __osg_NodePath__getCoordinateSystemNodePath, + __void__setCoordinateSystemNodePath__C5_osg_NodePath_R1); + I_SimpleProperty(bool, Done, + __bool__getDone, + __void__setDone__bool); + I_SimpleProperty(double, DoneAtElapsedTime, + __double__getDoneAtElapsedTime, + __void__setDoneAtElapsedTime__double); + I_SimpleProperty(bool, DoneAtElapsedTimeEnabled, + __bool__getDoneAtElapsedTimeEnabled, + __void__setDoneAtElapsedTimeEnabled__bool); + I_SimpleProperty(unsigned int, DoneAtFrameNumber, + __unsigned_int__getDoneAtFrameNumber, + __void__setDoneAtFrameNumber__unsigned_int); + I_SimpleProperty(bool, DoneAtFrameNumberEnabled, + __bool__getDoneAtFrameNumberEnabled, + __void__setDoneAtFrameNumberEnabled__bool); + I_SimpleProperty(osgProducer::Viewer::EventHandlerList &, EventHandlerList, + __EventHandlerList_R1__getEventHandlerList, + 0); + I_SimpleProperty(osgGA::EventQueue *, EventQueue, + __osgGA_EventQueue_P1__getEventQueue, + __void__setEventQueue__osgGA_EventQueue_P1); + I_SimpleProperty(osgGA::EventVisitor *, EventVisitor, + __osgGA_EventVisitor_P1__getEventVisitor, + __void__setEventVisitor__osgGA_EventVisitor_P1); + I_SimpleProperty(osgGA::KeySwitchMatrixManipulator *, KeySwitchMatrixManipulator, + __osgGA_KeySwitchMatrixManipulator_P1__getKeySwitchMatrixManipulator, + 0); + I_SimpleProperty(Producer::KeyboardMouse *, KeyboardMouse, + __Producer_KeyboardMouse_P1__getKeyboardMouse, + __void__setKeyboardMouse__Producer_KeyboardMouse_P1); + I_SimpleProperty(osgProducer::KeyboardMouseCallback *, KeyboardMouseCallback, + __osgProducer_KeyboardMouseCallback_P1__getKeyboardMouseCallback, + __void__setKeyboardMouseCallback__osgProducer_KeyboardMouseCallback_P1); + I_SimpleProperty(osg::Quat, Orientation, + __osg_Quat__getOrientation, + 0); + I_SimpleProperty(const double *, Position, + __C5_double_P1__getPosition, + 0); + I_SimpleProperty(bool, RecordingAnimationPath, + __bool__getRecordingAnimationPath, + __void__setRecordingAnimationPath__bool); + I_SimpleProperty(double, Speed, + __double__getSpeed, + 0); + I_SimpleProperty(unsigned int, UpViewer, + 0, + __void__setUpViewer__unsigned_int); + I_SimpleProperty(osg::NodeVisitor *, UpdateVisitor, + __osg_NodeVisitor_P1__getUpdateVisitor, + __void__setUpdateVisitor__osg_NodeVisitor_P1); + I_SimpleProperty(const Producer::Matrix &, ViewByMatrix, + 0, + __void__setViewByMatrix__C5_Producer_Matrix_R1); + I_SimpleProperty(const std::string &, WriteImageFileName, + __C5_std_string_R1__getWriteImageFileName, + __void__setWriteImageFileName__C5_std_string_R1); + I_SimpleProperty(bool, WriteImageWhenDone, + __bool__getWriteImageWhenDone, + __void__setWriteImageWhenDone__bool); END_REFLECTOR STD_LIST_REFLECTOR(std::list< std::string >); diff --git a/src/osgWrappers/osgProducer/ViewerEventHandler.cpp b/src/osgWrappers/osgProducer/ViewerEventHandler.cpp index daa3d185c..3aeecd269 100644 --- a/src/osgWrappers/osgProducer/ViewerEventHandler.cpp +++ b/src/osgWrappers/osgProducer/ViewerEventHandler.cpp @@ -34,26 +34,83 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgProducer::ViewerEventHandler) I_BaseType(osgGA::GUIEventHandler); - I_Constructor1(IN, osgProducer::OsgCameraGroup *, cg); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); - I_Method0(osgProducer::OsgCameraGroup *, getOsgCameraGroup); - I_Method0(const osgProducer::OsgCameraGroup *, getOsgCameraGroup); - I_Method1(void, setWriteNodeFileName, IN, const std::string &, filename); - I_Method0(const std::string &, getWriteNodeFileName); - I_Method1(void, setDisplayHelp, IN, bool, displayHelp); - I_Method0(bool, getDisplayHelp); - I_Method1(void, setFrameStatsMode, IN, osgProducer::ViewerEventHandler::FrameStatsMode, mode); - I_Method0(osgProducer::ViewerEventHandler::FrameStatsMode, getFrameStatsMode); - I_Method1(void, setWriteImageOnNextFrame, IN, bool, writeImageOnNextFrame); - I_Method1(void, setWriteImageFileName, IN, const std::string &, filename); - I_Method0(const std::string &, getWriteImageFileName); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0); - I_Property(bool, DisplayHelp); - I_Property(osgProducer::ViewerEventHandler::FrameStatsMode, FrameStatsMode); - I_ReadOnlyProperty(osgProducer::OsgCameraGroup *, OsgCameraGroup); - I_Property(const std::string &, WriteImageFileName); - I_WriteOnlyProperty(bool, WriteImageOnNextFrame); - I_Property(const std::string &, WriteNodeFileName); + I_Constructor1(IN, osgProducer::OsgCameraGroup *, cg, + ____ViewerEventHandler__OsgCameraGroup_P1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method0(osgProducer::OsgCameraGroup *, getOsgCameraGroup, + __OsgCameraGroup_P1__getOsgCameraGroup, + "", + ""); + I_Method0(const osgProducer::OsgCameraGroup *, getOsgCameraGroup, + __C5_OsgCameraGroup_P1__getOsgCameraGroup, + "", + ""); + I_Method1(void, setWriteNodeFileName, IN, const std::string &, filename, + __void__setWriteNodeFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getWriteNodeFileName, + __C5_std_string_R1__getWriteNodeFileName, + "", + ""); + I_Method1(void, setDisplayHelp, IN, bool, displayHelp, + __void__setDisplayHelp__bool, + "", + ""); + I_Method0(bool, getDisplayHelp, + __bool__getDisplayHelp, + "", + ""); + I_Method1(void, setFrameStatsMode, IN, osgProducer::ViewerEventHandler::FrameStatsMode, mode, + __void__setFrameStatsMode__FrameStatsMode, + "", + ""); + I_Method0(osgProducer::ViewerEventHandler::FrameStatsMode, getFrameStatsMode, + __FrameStatsMode__getFrameStatsMode, + "", + ""); + I_Method1(void, setWriteImageOnNextFrame, IN, bool, writeImageOnNextFrame, + __void__setWriteImageOnNextFrame__bool, + "", + ""); + I_Method1(void, setWriteImageFileName, IN, const std::string &, filename, + __void__setWriteImageFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getWriteImageFileName, + __C5_std_string_R1__getWriteImageFileName, + "", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + __void__releaseGLObjects__osg_State_P1, + "release OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics context if State object pointer NULL. ", + ""); + I_SimpleProperty(bool, DisplayHelp, + __bool__getDisplayHelp, + __void__setDisplayHelp__bool); + I_SimpleProperty(osgProducer::ViewerEventHandler::FrameStatsMode, FrameStatsMode, + __FrameStatsMode__getFrameStatsMode, + __void__setFrameStatsMode__FrameStatsMode); + I_SimpleProperty(osgProducer::OsgCameraGroup *, OsgCameraGroup, + __OsgCameraGroup_P1__getOsgCameraGroup, + 0); + I_SimpleProperty(const std::string &, WriteImageFileName, + __C5_std_string_R1__getWriteImageFileName, + __void__setWriteImageFileName__C5_std_string_R1); + I_SimpleProperty(bool, WriteImageOnNextFrame, + 0, + __void__setWriteImageOnNextFrame__bool); + I_SimpleProperty(const std::string &, WriteNodeFileName, + __C5_std_string_R1__getWriteNodeFileName, + __void__setWriteNodeFileName__C5_std_string_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp b/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp index 702b02eea..2367767d6 100644 --- a/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp +++ b/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp @@ -24,12 +24,32 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap) I_BaseType(osgShadow::ShadowTechnique); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgShadow::ParallelSplitShadowMap &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); + I_Constructor0(____ParallelSplitShadowMap, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ParallelSplitShadowMap &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ParallelSplitShadowMap__C5_ParallelSplitShadowMap_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); END_REFLECTOR diff --git a/src/osgWrappers/osgShadow/ShadowTechnique.cpp b/src/osgWrappers/osgShadow/ShadowTechnique.cpp index d52544fa9..e74690706 100644 --- a/src/osgWrappers/osgShadow/ShadowTechnique.cpp +++ b/src/osgWrappers/osgShadow/ShadowTechnique.cpp @@ -24,12 +24,32 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTechnique) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgShadow::ShadowTechnique &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); + I_Constructor0(____ShadowTechnique, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowTechnique &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowTechnique__C5_ShadowTechnique_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); END_REFLECTOR diff --git a/src/osgWrappers/osgShadow/ShadowVolume.cpp b/src/osgWrappers/osgShadow/ShadowVolume.cpp index 8da63e570..00aaa4491 100644 --- a/src/osgWrappers/osgShadow/ShadowVolume.cpp +++ b/src/osgWrappers/osgShadow/ShadowVolume.cpp @@ -24,12 +24,32 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolume) I_BaseType(osgShadow::ShadowTechnique); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgShadow::ShadowVolume &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); + I_Constructor0(____ShadowVolume, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowVolume &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowVolume__C5_ShadowVolume_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); END_REFLECTOR diff --git a/src/osgWrappers/osgShadow/ShadowedScene.cpp b/src/osgWrappers/osgShadow/ShadowedScene.cpp index 1fe43ced5..0aee58d76 100644 --- a/src/osgWrappers/osgShadow/ShadowedScene.cpp +++ b/src/osgWrappers/osgShadow/ShadowedScene.cpp @@ -26,24 +26,77 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowedScene) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgShadow::ShadowedScene &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method1(void, setRecievesShadowTraversalMask, IN, unsigned int, mask); - I_Method0(unsigned int, getRecievesShadowTraversalMask); - I_Method1(void, setCastsShadowTraversalMask, IN, unsigned int, mask); - I_Method0(unsigned int, getCastsShadowTraversalMask); - I_Method1(void, setShadowTechnique, IN, osgShadow::ShadowTechnique *, technique); - I_Method0(osgShadow::ShadowTechnique *, getShadowTechnique); - I_Method0(const osgShadow::ShadowTechnique *, getShadowTechnique); - I_Property(unsigned int, CastsShadowTraversalMask); - I_Property(unsigned int, RecievesShadowTraversalMask); - I_Property(osgShadow::ShadowTechnique *, ShadowTechnique); + I_Constructor0(____ShadowedScene, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowedScene &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowedScene__C5_ShadowedScene_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(void, setRecievesShadowTraversalMask, IN, unsigned int, mask, + __void__setRecievesShadowTraversalMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getRecievesShadowTraversalMask, + __unsigned_int__getRecievesShadowTraversalMask, + "", + ""); + I_Method1(void, setCastsShadowTraversalMask, IN, unsigned int, mask, + __void__setCastsShadowTraversalMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getCastsShadowTraversalMask, + __unsigned_int__getCastsShadowTraversalMask, + "", + ""); + I_Method1(void, setShadowTechnique, IN, osgShadow::ShadowTechnique *, technique, + __void__setShadowTechnique__ShadowTechnique_P1, + "", + ""); + I_Method0(osgShadow::ShadowTechnique *, getShadowTechnique, + __ShadowTechnique_P1__getShadowTechnique, + "", + ""); + I_Method0(const osgShadow::ShadowTechnique *, getShadowTechnique, + __C5_ShadowTechnique_P1__getShadowTechnique, + "", + ""); + I_SimpleProperty(unsigned int, CastsShadowTraversalMask, + __unsigned_int__getCastsShadowTraversalMask, + __void__setCastsShadowTraversalMask__unsigned_int); + I_SimpleProperty(unsigned int, RecievesShadowTraversalMask, + __unsigned_int__getRecievesShadowTraversalMask, + __void__setRecievesShadowTraversalMask__unsigned_int); + I_SimpleProperty(osgShadow::ShadowTechnique *, ShadowTechnique, + __ShadowTechnique_P1__getShadowTechnique, + __void__setShadowTechnique__ShadowTechnique_P1); END_REFLECTOR diff --git a/src/osgWrappers/osgSim/BlinkSequence.cpp b/src/osgWrappers/osgSim/BlinkSequence.cpp index eded4c7c3..450a67b79 100644 --- a/src/osgWrappers/osgSim/BlinkSequence.cpp +++ b/src/osgWrappers/osgSim/BlinkSequence.cpp @@ -25,40 +25,125 @@ BEGIN_OBJECT_REFLECTOR(osgSim::BlinkSequence) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgSim::BlinkSequence &, bs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method2(void, addPulse, IN, double, length, IN, const osg::Vec4 &, color); - I_Method0(int, getNumPulses); - I_Method3(void, getPulse, IN, unsigned int, i, IN, double &, length, IN, osg::Vec4 &, color); - I_Method3(void, setPulse, IN, unsigned int, i, IN, double, length, IN, const osg::Vec4 &, color); - I_Method0(double, getPulsePeriod); - I_Method1(void, setSequenceGroup, IN, osgSim::SequenceGroup *, sg); - I_Method0(osgSim::SequenceGroup *, getSequenceGroup); - I_Method0(const osgSim::SequenceGroup *, getSequenceGroup); - I_Method1(void, setPhaseShift, IN, double, ps); - I_Method0(double, getPhaseShift); - I_Method1(double, localTime, IN, double, time); - I_Method2(osg::Vec4, color, IN, double, time, IN, double, length); - I_Property(double, PhaseShift); - I_ReadOnlyProperty(double, PulsePeriod); - I_Property(osgSim::SequenceGroup *, SequenceGroup); + I_Constructor0(____BlinkSequence, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::BlinkSequence &, bs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BlinkSequence__C5_BlinkSequence_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method2(void, addPulse, IN, double, length, IN, const osg::Vec4 &, color, + __void__addPulse__double__C5_osg_Vec4_R1, + "add a pulse of specified color and duration to the BlinkSequence. ", + ""); + I_Method0(int, getNumPulses, + __int__getNumPulses, + "return the number of pulses. ", + ""); + I_Method3(void, getPulse, IN, unsigned int, i, IN, double &, length, IN, osg::Vec4 &, color, + __void__getPulse__unsigned_int__double_R1__osg_Vec4_R1, + "return the pulse data at position i. ", + ""); + I_Method3(void, setPulse, IN, unsigned int, i, IN, double, length, IN, const osg::Vec4 &, color, + __void__setPulse__unsigned_int__double__C5_osg_Vec4_R1, + "set pulse of specified color and duration to the BlinkSequence. ", + ""); + I_Method0(double, getPulsePeriod, + __double__getPulsePeriod, + "get the total pulse period of the blink sequence, which is equal to the sum of all the pulse periods. ", + ""); + I_Method1(void, setSequenceGroup, IN, osgSim::SequenceGroup *, sg, + __void__setSequenceGroup__SequenceGroup_P1, + "set the sequence group which can be used to synchronize related blink sequences. ", + ""); + I_Method0(osgSim::SequenceGroup *, getSequenceGroup, + __SequenceGroup_P1__getSequenceGroup, + "get the non const sequence group. ", + ""); + I_Method0(const osgSim::SequenceGroup *, getSequenceGroup, + __C5_SequenceGroup_P1__getSequenceGroup, + "get the const sequence group. ", + ""); + I_Method1(void, setPhaseShift, IN, double, ps, + __void__setPhaseShift__double, + "set the phase shift of the blink sequence, this would be used to shift a sequence within a sequence group. ", + ""); + I_Method0(double, getPhaseShift, + __double__getPhaseShift, + "get the pahse shift. ", + ""); + I_Method1(double, localTime, IN, double, time, + __double__localTime__double, + "compute the local time clamped to this BlinkSequences period, and accounting for the phase shift and sequence group. ", + ""); + I_Method2(osg::Vec4, color, IN, double, time, IN, double, length, + __osg_Vec4__color__double__double, + "compute the color for the time interval sepecifed. ", + "Averages the colors if the length is greater than the current pulse. "); + I_SimpleProperty(double, PhaseShift, + __double__getPhaseShift, + __void__setPhaseShift__double); + I_SimpleProperty(double, PulsePeriod, + __double__getPulsePeriod, + 0); + I_SimpleProperty(osgSim::SequenceGroup *, SequenceGroup, + __SequenceGroup_P1__getSequenceGroup, + __void__setSequenceGroup__SequenceGroup_P1); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::SequenceGroup) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgSim::SequenceGroup &, bs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Constructor1(IN, double, baseTime); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); + I_Constructor0(____SequenceGroup, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::SequenceGroup &, bs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SequenceGroup__C5_SequenceGroup_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Constructor1(IN, double, baseTime, + ____SequenceGroup__double, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); I_PublicMemberProperty(double, _baseTime); END_REFLECTOR diff --git a/src/osgWrappers/osgSim/ColorRange.cpp b/src/osgWrappers/osgSim/ColorRange.cpp index 01a929fb0..f3de29c21 100644 --- a/src/osgWrappers/osgSim/ColorRange.cpp +++ b/src/osgWrappers/osgSim/ColorRange.cpp @@ -23,11 +23,25 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ColorRange) I_BaseType(osgSim::ScalarsToColors); - I_Constructor2(IN, float, min, IN, float, max); - I_Constructor3(IN, float, min, IN, float, max, IN, const std::vector< osg::Vec4 > &, colors); - I_Method1(void, setColors, IN, const std::vector< osg::Vec4 > &, colors); - I_Method1(osg::Vec4, getColor, IN, float, scalar); - I_WriteOnlyProperty(const std::vector< osg::Vec4 > &, Colors); + I_Constructor2(IN, float, min, IN, float, max, + ____ColorRange__float__float, + "Constructor for a ColorRange with a default list of colors set to Red-Yellow-Green-Blue-Cyan. ", + " param min minimum scalar value max maximum scalar value "); + I_Constructor3(IN, float, min, IN, float, max, IN, const std::vector< osg::Vec4 > &, colors, + ____ColorRange__float__float__C5_std_vectorT1_osg_Vec4__R1, + "Constructor for a ColorRange. ", + " param min minimum scalar value max maximum scalar value colors optional range of colors, "); + I_Method1(void, setColors, IN, const std::vector< osg::Vec4 > &, colors, + __void__setColors__C5_std_vectorT1_osg_Vec4__R1, + "Set the range of colors. ", + ""); + I_Method1(osg::Vec4, getColor, IN, float, scalar, + __osg_Vec4__getColor__float, + "Get the color for a given scalar value. ", + ""); + I_SimpleProperty(const std::vector< osg::Vec4 > &, Colors, + 0, + __void__setColors__C5_std_vectorT1_osg_Vec4__R1); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< osg::Vec4 >); diff --git a/src/osgWrappers/osgSim/DOFTransform.cpp b/src/osgWrappers/osgSim/DOFTransform.cpp index 95f953a09..884f649c0 100644 --- a/src/osgWrappers/osgSim/DOFTransform.cpp +++ b/src/osgWrappers/osgSim/DOFTransform.cpp @@ -36,71 +36,251 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::DOFTransform) I_BaseType(osg::Transform); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgSim::DOFTransform &, dof, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method1(void, setMinHPR, IN, const osg::Vec3 &, hpr); - I_Method0(const osg::Vec3 &, getMinHPR); - I_Method1(void, setMaxHPR, IN, const osg::Vec3 &, hpr); - I_Method0(const osg::Vec3 &, getMaxHPR); - I_Method1(void, setIncrementHPR, IN, const osg::Vec3 &, hpr); - I_Method0(const osg::Vec3 &, getIncrementHPR); - I_Method1(void, setCurrentHPR, IN, const osg::Vec3 &, hpr); - I_Method0(const osg::Vec3 &, getCurrentHPR); - I_Method1(void, updateCurrentHPR, IN, const osg::Vec3 &, hpr); - I_Method1(void, setMinTranslate, IN, const osg::Vec3 &, translate); - I_Method0(const osg::Vec3 &, getMinTranslate); - I_Method1(void, setMaxTranslate, IN, const osg::Vec3 &, translate); - I_Method0(const osg::Vec3 &, getMaxTranslate); - I_Method1(void, setIncrementTranslate, IN, const osg::Vec3 &, translate); - I_Method0(const osg::Vec3 &, getIncrementTranslate); - I_Method1(void, setCurrentTranslate, IN, const osg::Vec3 &, translate); - I_Method0(const osg::Vec3 &, getCurrentTranslate); - I_Method1(void, updateCurrentTranslate, IN, const osg::Vec3 &, translate); - I_Method1(void, setMinScale, IN, const osg::Vec3 &, scale); - I_Method0(const osg::Vec3 &, getMinScale); - I_Method1(void, setMaxScale, IN, const osg::Vec3 &, scale); - I_Method0(const osg::Vec3 &, getMaxScale); - I_Method1(void, setIncrementScale, IN, const osg::Vec3 &, scale); - I_Method0(const osg::Vec3 &, getIncrementScale); - I_Method1(void, setCurrentScale, IN, const osg::Vec3 &, scale); - I_Method0(const osg::Vec3 &, getCurrentScale); - I_Method1(void, updateCurrentScale, IN, const osg::Vec3 &, scale); - I_Method1(void, setPutMatrix, IN, const osg::Matrix &, put); - I_Method0(const osg::Matrix &, getPutMatrix); - I_Method1(void, setInversePutMatrix, IN, const osg::Matrix &, inversePut); - I_Method0(const osg::Matrix &, getInversePutMatrix); - I_Method1(void, setLimitationFlags, IN, unsigned long, flags); - I_Method0(unsigned long, getLimitationFlags); - I_Method1(void, setHPRMultOrder, IN, const osgSim::DOFTransform::MultOrder, order); - I_Method0(const osgSim::DOFTransform::MultOrder, getHPRMultOrder); - I_Method1(void, setAnimationOn, IN, bool, do_animate); - I_Method0(bool, getAnimationOn); - I_Method1(void, animate, IN, float, deltaTime); - I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv); - I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv); - I_Property(bool, AnimationOn); - I_Property(const osg::Vec3 &, CurrentHPR); - I_Property(const osg::Vec3 &, CurrentScale); - I_Property(const osg::Vec3 &, CurrentTranslate); - I_Property(const osgSim::DOFTransform::MultOrder, HPRMultOrder); - I_Property(const osg::Vec3 &, IncrementHPR); - I_Property(const osg::Vec3 &, IncrementScale); - I_Property(const osg::Vec3 &, IncrementTranslate); - I_Property(const osg::Matrix &, InversePutMatrix); - I_Property(unsigned long, LimitationFlags); - I_Property(const osg::Vec3 &, MaxHPR); - I_Property(const osg::Vec3 &, MaxScale); - I_Property(const osg::Vec3 &, MaxTranslate); - I_Property(const osg::Vec3 &, MinHPR); - I_Property(const osg::Vec3 &, MinScale); - I_Property(const osg::Vec3 &, MinTranslate); - I_Property(const osg::Matrix &, PutMatrix); + I_Constructor0(____DOFTransform, + "constructor ", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::DOFTransform &, dof, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DOFTransform__C5_DOFTransform_R1__C5_osg_CopyOp_R1, + "copy constructor ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(void, setMinHPR, IN, const osg::Vec3 &, hpr, + __void__setMinHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMinHPR, + __C5_osg_Vec3_R1__getMinHPR, + "", + ""); + I_Method1(void, setMaxHPR, IN, const osg::Vec3 &, hpr, + __void__setMaxHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMaxHPR, + __C5_osg_Vec3_R1__getMaxHPR, + "", + ""); + I_Method1(void, setIncrementHPR, IN, const osg::Vec3 &, hpr, + __void__setIncrementHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getIncrementHPR, + __C5_osg_Vec3_R1__getIncrementHPR, + "", + ""); + I_Method1(void, setCurrentHPR, IN, const osg::Vec3 &, hpr, + __void__setCurrentHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCurrentHPR, + __C5_osg_Vec3_R1__getCurrentHPR, + "", + ""); + I_Method1(void, updateCurrentHPR, IN, const osg::Vec3 &, hpr, + __void__updateCurrentHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, setMinTranslate, IN, const osg::Vec3 &, translate, + __void__setMinTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMinTranslate, + __C5_osg_Vec3_R1__getMinTranslate, + "", + ""); + I_Method1(void, setMaxTranslate, IN, const osg::Vec3 &, translate, + __void__setMaxTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMaxTranslate, + __C5_osg_Vec3_R1__getMaxTranslate, + "", + ""); + I_Method1(void, setIncrementTranslate, IN, const osg::Vec3 &, translate, + __void__setIncrementTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getIncrementTranslate, + __C5_osg_Vec3_R1__getIncrementTranslate, + "", + ""); + I_Method1(void, setCurrentTranslate, IN, const osg::Vec3 &, translate, + __void__setCurrentTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCurrentTranslate, + __C5_osg_Vec3_R1__getCurrentTranslate, + "", + ""); + I_Method1(void, updateCurrentTranslate, IN, const osg::Vec3 &, translate, + __void__updateCurrentTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, setMinScale, IN, const osg::Vec3 &, scale, + __void__setMinScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMinScale, + __C5_osg_Vec3_R1__getMinScale, + "", + ""); + I_Method1(void, setMaxScale, IN, const osg::Vec3 &, scale, + __void__setMaxScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMaxScale, + __C5_osg_Vec3_R1__getMaxScale, + "", + ""); + I_Method1(void, setIncrementScale, IN, const osg::Vec3 &, scale, + __void__setIncrementScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getIncrementScale, + __C5_osg_Vec3_R1__getIncrementScale, + "", + ""); + I_Method1(void, setCurrentScale, IN, const osg::Vec3 &, scale, + __void__setCurrentScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCurrentScale, + __C5_osg_Vec3_R1__getCurrentScale, + "", + ""); + I_Method1(void, updateCurrentScale, IN, const osg::Vec3 &, scale, + __void__updateCurrentScale__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, setPutMatrix, IN, const osg::Matrix &, put, + __void__setPutMatrix__C5_osg_Matrix_R1, + "", + ""); + I_Method0(const osg::Matrix &, getPutMatrix, + __C5_osg_Matrix_R1__getPutMatrix, + "", + ""); + I_Method1(void, setInversePutMatrix, IN, const osg::Matrix &, inversePut, + __void__setInversePutMatrix__C5_osg_Matrix_R1, + "", + ""); + I_Method0(const osg::Matrix &, getInversePutMatrix, + __C5_osg_Matrix_R1__getInversePutMatrix, + "", + ""); + I_Method1(void, setLimitationFlags, IN, unsigned long, flags, + __void__setLimitationFlags__unsigned_long, + "", + ""); + I_Method0(unsigned long, getLimitationFlags, + __unsigned_long__getLimitationFlags, + "", + ""); + I_Method1(void, setHPRMultOrder, IN, const osgSim::DOFTransform::MultOrder, order, + __void__setHPRMultOrder__C5_MultOrder, + "", + ""); + I_Method0(const osgSim::DOFTransform::MultOrder, getHPRMultOrder, + __C5_MultOrder__getHPRMultOrder, + "", + ""); + I_Method1(void, setAnimationOn, IN, bool, do_animate, + __void__setAnimationOn__bool, + "", + ""); + I_Method0(bool, getAnimationOn, + __bool__getAnimationOn, + "", + ""); + I_Method1(void, animate, IN, float, deltaTime, + __void__animate__float, + "", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + __bool__computeLocalToWorldMatrix__osg_Matrix_R1__osg_NodeVisitor_P1, + "", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + __bool__computeWorldToLocalMatrix__osg_Matrix_R1__osg_NodeVisitor_P1, + "", + ""); + I_SimpleProperty(bool, AnimationOn, + __bool__getAnimationOn, + __void__setAnimationOn__bool); + I_SimpleProperty(const osg::Vec3 &, CurrentHPR, + __C5_osg_Vec3_R1__getCurrentHPR, + __void__setCurrentHPR__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, CurrentScale, + __C5_osg_Vec3_R1__getCurrentScale, + __void__setCurrentScale__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, CurrentTranslate, + __C5_osg_Vec3_R1__getCurrentTranslate, + __void__setCurrentTranslate__C5_osg_Vec3_R1); + I_SimpleProperty(const osgSim::DOFTransform::MultOrder, HPRMultOrder, + __C5_MultOrder__getHPRMultOrder, + __void__setHPRMultOrder__C5_MultOrder); + I_SimpleProperty(const osg::Vec3 &, IncrementHPR, + __C5_osg_Vec3_R1__getIncrementHPR, + __void__setIncrementHPR__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, IncrementScale, + __C5_osg_Vec3_R1__getIncrementScale, + __void__setIncrementScale__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, IncrementTranslate, + __C5_osg_Vec3_R1__getIncrementTranslate, + __void__setIncrementTranslate__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Matrix &, InversePutMatrix, + __C5_osg_Matrix_R1__getInversePutMatrix, + __void__setInversePutMatrix__C5_osg_Matrix_R1); + I_SimpleProperty(unsigned long, LimitationFlags, + __unsigned_long__getLimitationFlags, + __void__setLimitationFlags__unsigned_long); + I_SimpleProperty(const osg::Vec3 &, MaxHPR, + __C5_osg_Vec3_R1__getMaxHPR, + __void__setMaxHPR__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, MaxScale, + __C5_osg_Vec3_R1__getMaxScale, + __void__setMaxScale__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, MaxTranslate, + __C5_osg_Vec3_R1__getMaxTranslate, + __void__setMaxTranslate__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, MinHPR, + __C5_osg_Vec3_R1__getMinHPR, + __void__setMinHPR__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, MinScale, + __C5_osg_Vec3_R1__getMinScale, + __void__setMinScale__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, MinTranslate, + __C5_osg_Vec3_R1__getMinTranslate, + __void__setMinTranslate__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Matrix &, PutMatrix, + __C5_osg_Matrix_R1__getPutMatrix, + __void__setPutMatrix__C5_osg_Matrix_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgSim/GeographicLocation.cpp b/src/osgWrappers/osgSim/GeographicLocation.cpp index fa363ed6c..b52b35042 100644 --- a/src/osgWrappers/osgSim/GeographicLocation.cpp +++ b/src/osgWrappers/osgSim/GeographicLocation.cpp @@ -22,16 +22,48 @@ BEGIN_OBJECT_REFLECTOR(osgSim::GeographicLocation) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Constructor2(IN, double, lat, IN, double, lon); - I_Method0(double *, ptr); - I_Method0(const double *, ptr); - I_Method2(void, set, IN, double, lat, IN, double, lon); - I_Method0(double &, latitude); - I_Method0(double &, longitude); - I_Method0(double, latitude); - I_Method0(double, longitude); - I_Method0(bool, valid); - I_Method0(bool, isNaN); + I_Constructor0(____GeographicLocation, + "", + ""); + I_Constructor2(IN, double, lat, IN, double, lon, + ____GeographicLocation__double__double, + "", + ""); + I_Method0(double *, ptr, + __double_P1__ptr, + "", + ""); + I_Method0(const double *, ptr, + __C5_double_P1__ptr, + "", + ""); + I_Method2(void, set, IN, double, lat, IN, double, lon, + __void__set__double__double, + "", + ""); + I_Method0(double &, latitude, + __double_R1__latitude, + "", + ""); + I_Method0(double &, longitude, + __double_R1__longitude, + "", + ""); + I_Method0(double, latitude, + __double__latitude, + "", + ""); + I_Method0(double, longitude, + __double__longitude, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + __bool__isNaN, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgSim/Impostor.cpp b/src/osgWrappers/osgSim/Impostor.cpp index 5cdb0a0ae..86c4aae16 100644 --- a/src/osgWrappers/osgSim/Impostor.cpp +++ b/src/osgWrappers/osgSim/Impostor.cpp @@ -30,36 +30,112 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgSim::ImpostorSprite > >, osgSim::I BEGIN_OBJECT_REFLECTOR(osgSim::Impostor) I_BaseType(osg::LOD); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgSim::Impostor &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method1(void, setImpostorThreshold, IN, float, distance); - I_Method0(float, getImpostorThreshold); - I_MethodWithDefaults1(void, setImpostorThresholdToBound, IN, float, ratio, 1.0f); - I_Method2(osgSim::ImpostorSprite *, findBestImpostorSprite, IN, unsigned int, contextID, IN, const osg::Vec3 &, currLocalEyePoint); - I_Method2(void, addImpostorSprite, IN, unsigned int, contextID, IN, osgSim::ImpostorSprite *, is); - I_Method1(osgSim::Impostor::ImpostorSpriteList &, getImpostorSpriteList, IN, unsigned int, contexID); - I_Method1(const osgSim::Impostor::ImpostorSpriteList &, getImpostorSpriteList, IN, unsigned int, contexID); - I_Method0(osg::BoundingSphere, computeBound); - I_Property(float, ImpostorThreshold); - I_WriteOnlyProperty(float, ImpostorThresholdToBound); + I_Constructor0(____Impostor, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::Impostor &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Impostor__C5_Impostor_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(void, setImpostorThreshold, IN, float, distance, + __void__setImpostorThreshold__float, + "Set the Impostor threshold distance. ", + "For eye points further than this threshold the Imposter is used if appropriate, otherwise the LOD children as chosen as per a standard LOD node."); + I_Method0(float, getImpostorThreshold, + __float__getImpostorThreshold, + "", + ""); + I_MethodWithDefaults1(void, setImpostorThresholdToBound, IN, float, ratio, 1.0f, + __void__setImpostorThresholdToBound__float, + "Set the Impostor threshold distance relative to the node's bounding sphere's radius. ", + ""); + I_Method2(osgSim::ImpostorSprite *, findBestImpostorSprite, IN, unsigned int, contextID, IN, const osg::Vec3 &, currLocalEyePoint, + __ImpostorSprite_P1__findBestImpostorSprite__unsigned_int__C5_osg_Vec3_R1, + "Find the ImposterSprite which fits the current eye point best. ", + ""); + I_Method2(void, addImpostorSprite, IN, unsigned int, contextID, IN, osgSim::ImpostorSprite *, is, + __void__addImpostorSprite__unsigned_int__ImpostorSprite_P1, + "Add an ImpostorSprite to the Impostor. ", + ""); + I_Method1(osgSim::Impostor::ImpostorSpriteList &, getImpostorSpriteList, IN, unsigned int, contexID, + __ImpostorSpriteList_R1__getImpostorSpriteList__unsigned_int, + "Get the list of ImpostorSprites attached to this Impostor. ", + ""); + I_Method1(const osgSim::Impostor::ImpostorSpriteList &, getImpostorSpriteList, IN, unsigned int, contexID, + __C5_ImpostorSpriteList_R1__getImpostorSpriteList__unsigned_int, + "Get a const list of ImpostorSprites attached to this const Impostor. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + __osg_BoundingSphere__computeBound, + "Compute the bounding sphere around Node's geometry or children. ", + "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); + I_SimpleProperty(float, ImpostorThreshold, + __float__getImpostorThreshold, + __void__setImpostorThreshold__float); + I_SimpleProperty(float, ImpostorThresholdToBound, + 0, + __void__setImpostorThresholdToBound__float); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgSim::ImpostorSprite >) - I_Constructor0(); - I_Constructor1(IN, osgSim::ImpostorSprite *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osgSim::ImpostorSprite > &, rp); - I_Method0(osgSim::ImpostorSprite *, get); - I_Method0(bool, valid); - I_Method0(osgSim::ImpostorSprite *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osgSim::ImpostorSprite > &, rp); - I_ReadOnlyProperty(osgSim::ImpostorSprite *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgSim::ImpostorSprite *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgSim::ImpostorSprite > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgSim::ImpostorSprite *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osgSim::ImpostorSprite *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgSim::ImpostorSprite > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgSim::ImpostorSprite *, , + __T_P1__get, + 0); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgSim::ImpostorSprite > >); diff --git a/src/osgWrappers/osgSim/ImpostorSprite.cpp b/src/osgWrappers/osgSim/ImpostorSprite.cpp index 6bfde56e3..acf6dc08c 100644 --- a/src/osgWrappers/osgSim/ImpostorSprite.cpp +++ b/src/osgWrappers/osgSim/ImpostorSprite.cpp @@ -35,63 +35,212 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSprite) I_BaseType(osg::Drawable); - I_Constructor0(); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, setParent, IN, osgSim::Impostor *, parent); - I_Method0(osgSim::Impostor *, getParent); - I_Method0(const osgSim::Impostor *, getParent); - I_Method1(void, setStoredLocalEyePoint, IN, const osg::Vec3 &, v); - I_Method0(const osg::Vec3 &, getStoredLocalEyePoint); - I_Method1(void, setLastFrameUsed, IN, int, frameNumber); - I_Method0(int, getLastFrameUsed); - I_Method0(osg::Vec3 *, getCoords); - I_Method0(const osg::Vec3 *, getCoords); - I_Method0(osg::Vec2 *, getTexCoords); - I_Method0(const osg::Vec2 *, getTexCoords); - I_Method0(osg::Vec3 *, getControlCoords); - I_Method0(const osg::Vec3 *, getControlCoords); - I_Method1(float, calcPixelError, IN, const osg::Matrix &, MVPW); - I_Method3(void, setTexture, IN, osg::Texture2D *, tex, IN, int, s, IN, int, t); - I_Method0(osg::Texture2D *, getTexture); - I_Method0(const osg::Texture2D *, getTexture); - I_Method0(int, s); - I_Method0(int, t); - I_Method1(void, drawImplementation, IN, osg::State &, state); - I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x); - I_Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, af); - I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x); - I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af); - I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf); - I_Method0(osg::BoundingBox, computeBound); - I_Method1(void, setCameraNode, IN, osg::CameraNode *, camera); - I_Method0(osg::CameraNode *, getCameraNode); - I_Method0(const osg::CameraNode *, getCameraNode); - I_Property(osg::CameraNode *, CameraNode); - I_ReadOnlyProperty(osg::Vec3 *, ControlCoords); - I_ReadOnlyProperty(osg::Vec3 *, Coords); - I_Property(int, LastFrameUsed); - I_Property(osgSim::Impostor *, Parent); - I_Property(const osg::Vec3 &, StoredLocalEyePoint); - I_ReadOnlyProperty(osg::Vec2 *, TexCoords); - I_ReadOnlyProperty(osg::Texture2D *, Texture); + I_Constructor0(____ImpostorSprite, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone an object of the same type as an ImpostorSprite. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone on ImpostorSprite just returns a clone of type, since it is not appropriate to share data of an ImpostorSprite. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setParent, IN, osgSim::Impostor *, parent, + __void__setParent__Impostor_P1, + "Set the parent, which must be an Impostor. ", + "Unlike conventional Drawables, ImpostorSprites can only ever have one parent."); + I_Method0(osgSim::Impostor *, getParent, + __Impostor_P1__getParent, + "Get the parent, which is an Impostor. ", + ""); + I_Method0(const osgSim::Impostor *, getParent, + __C5_Impostor_P1__getParent, + "Get the const parent, which is an Impostor. ", + ""); + I_Method1(void, setStoredLocalEyePoint, IN, const osg::Vec3 &, v, + __void__setStoredLocalEyePoint__C5_osg_Vec3_R1, + "Set the eye point for when the ImpostorSprite was snapped. ", + ""); + I_Method0(const osg::Vec3 &, getStoredLocalEyePoint, + __C5_osg_Vec3_R1__getStoredLocalEyePoint, + "Get the eye point for when the ImpostorSprite was snapped. ", + ""); + I_Method1(void, setLastFrameUsed, IN, int, frameNumber, + __void__setLastFrameUsed__int, + "Set the frame number for when the ImpostorSprite was last used in rendering. ", + ""); + I_Method0(int, getLastFrameUsed, + __int__getLastFrameUsed, + "Get the frame number for when the ImpostorSprite was last used in rendering. ", + ""); + I_Method0(osg::Vec3 *, getCoords, + __osg_Vec3_P1__getCoords, + "Get the coordinates of the corners of the quad. ", + "Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left."); + I_Method0(const osg::Vec3 *, getCoords, + __C5_osg_Vec3_P1__getCoords, + "Get the const coordinates of the corners of the quad. ", + ""); + I_Method0(osg::Vec2 *, getTexCoords, + __osg_Vec2_P1__getTexCoords, + "Get the texture coordinates of the corners of the quad. ", + "Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left."); + I_Method0(const osg::Vec2 *, getTexCoords, + __C5_osg_Vec2_P1__getTexCoords, + "Get the const texture coordinates of the corners of the quad. ", + ""); + I_Method0(osg::Vec3 *, getControlCoords, + __osg_Vec3_P1__getControlCoords, + "Get the control coordinates of the corners of the quad. ", + "The control coordinates are the corners of the quad projected out onto the front face of bounding box which enclosed the impostor geometry when it was pre-rendered into the impostor sprite's texture. At the point of creation/or update of the impostor sprite the control coords will lie on top of the corners of the quad in screen space - with a pixel error of zero. Once the camera moves relative to the impostor sprite the control coords will no longer lie on top of the corners of the quad in screen space - a pixel error will have accumulated. This pixel error can then be used to determine whether the impostor needs to be updated. Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left."); + I_Method0(const osg::Vec3 *, getControlCoords, + __C5_osg_Vec3_P1__getControlCoords, + "Get the const control coordinates of the corners of the quad. ", + ""); + I_Method1(float, calcPixelError, IN, const osg::Matrix &, MVPW, + __float__calcPixelError__C5_osg_Matrix_R1, + "Calculate the pixel error value for passing in the ModelViewProjectionWindow transform, which transform local coords into screen space. ", + ""); + I_Method3(void, setTexture, IN, osg::Texture2D *, tex, IN, int, s, IN, int, t, + __void__setTexture__osg_Texture2D_P1__int__int, + "", + ""); + I_Method0(osg::Texture2D *, getTexture, + __osg_Texture2D_P1__getTexture, + "", + ""); + I_Method0(const osg::Texture2D *, getTexture, + __C5_osg_Texture2D_P1__getTexture, + "", + ""); + I_Method0(int, s, + __int__s, + "", + ""); + I_Method0(int, t, + __int__t, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + __void__drawImplementation__osg_State_R1, + "Draw ImpostorSprite directly. ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, + __bool__supports__C5_AttributeFunctor_R1, + "Return true, osg::ImpostorSprite does support accept(AttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, af, + __void__accept__AttributeFunctor_R1, + "Accept an AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + __bool__supports__C5_ConstAttributeFunctor_R1, + "Return true, osg::ImpostorSprite does support accept(ConstAttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + __void__accept__ConstAttributeFunctor_R1, + "Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", + ""); + I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, + __bool__supports__C5_osg_PrimitiveFunctor_R1, + "Return true, osg::ImpostorSprite does support accept(PrimitiveFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, + __void__accept__osg_PrimitiveFunctor_R1, + "Accept a PrimtiveFunctor and call its methods to tell it about the interal primtives that this Drawable has. ", + ""); + I_Method0(osg::BoundingBox, computeBound, + __osg_BoundingBox__computeBound, + "Compute the bounding box around Drawables's geometry. ", + ""); + I_Method1(void, setCameraNode, IN, osg::CameraNode *, camera, + __void__setCameraNode__osg_CameraNode_P1, + "Set the camera node to use for pre rendering the impostor sprite's texture. ", + ""); + I_Method0(osg::CameraNode *, getCameraNode, + __osg_CameraNode_P1__getCameraNode, + "Get the camera node to use for pre rendering the impostor sprite's texture. ", + ""); + I_Method0(const osg::CameraNode *, getCameraNode, + __C5_osg_CameraNode_P1__getCameraNode, + "Get the const camera node to use for pre rendering the impostor sprite's texture. ", + ""); + I_SimpleProperty(osg::CameraNode *, CameraNode, + __osg_CameraNode_P1__getCameraNode, + __void__setCameraNode__osg_CameraNode_P1); + I_SimpleProperty(osg::Vec3 *, ControlCoords, + __osg_Vec3_P1__getControlCoords, + 0); + I_SimpleProperty(osg::Vec3 *, Coords, + __osg_Vec3_P1__getCoords, + 0); + I_SimpleProperty(int, LastFrameUsed, + __int__getLastFrameUsed, + __void__setLastFrameUsed__int); + I_SimpleProperty(osgSim::Impostor *, Parent, + __Impostor_P1__getParent, + __void__setParent__Impostor_P1); + I_SimpleProperty(const osg::Vec3 &, StoredLocalEyePoint, + __C5_osg_Vec3_R1__getStoredLocalEyePoint, + __void__setStoredLocalEyePoint__C5_osg_Vec3_R1); + I_SimpleProperty(osg::Vec2 *, TexCoords, + __osg_Vec2_P1__getTexCoords, + 0); + I_SimpleProperty(osg::Texture2D *, Texture, + __osg_Texture2D_P1__getTexture, + 0); I_PublicMemberProperty(osg::Vec4, _color); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSpriteManager) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method0(bool, empty); - I_Method0(osgSim::ImpostorSprite *, first); - I_Method0(osgSim::ImpostorSprite *, last); - I_Method1(void, push_back, IN, osgSim::ImpostorSprite *, is); - I_Method1(void, remove, IN, osgSim::ImpostorSprite *, is); - I_Method3(osgSim::ImpostorSprite *, createOrReuseImpostorSprite, IN, int, s, IN, int, t, IN, int, frameNumber); - I_Method0(osg::StateSet *, createOrReuseStateSet); - I_Method0(void, reset); + I_Constructor0(____ImpostorSpriteManager, + "", + ""); + I_Method0(bool, empty, + __bool__empty, + "", + ""); + I_Method0(osgSim::ImpostorSprite *, first, + __ImpostorSprite_P1__first, + "", + ""); + I_Method0(osgSim::ImpostorSprite *, last, + __ImpostorSprite_P1__last, + "", + ""); + I_Method1(void, push_back, IN, osgSim::ImpostorSprite *, is, + __void__push_back__ImpostorSprite_P1, + "", + ""); + I_Method1(void, remove, IN, osgSim::ImpostorSprite *, is, + __void__remove__ImpostorSprite_P1, + "", + ""); + I_Method3(osgSim::ImpostorSprite *, createOrReuseImpostorSprite, IN, int, s, IN, int, t, IN, int, frameNumber, + __ImpostorSprite_P1__createOrReuseImpostorSprite__int__int__int, + "", + ""); + I_Method0(osg::StateSet *, createOrReuseStateSet, + __osg_StateSet_P1__createOrReuseStateSet, + "", + ""); + I_Method0(void, reset, + __void__reset, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp b/src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp index d20eba9d7..b53330050 100644 --- a/src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp +++ b/src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp @@ -25,17 +25,50 @@ BEGIN_OBJECT_REFLECTOR(osgSim::InsertImpostorsVisitor) I_BaseType(osg::NodeVisitor); - I_Constructor0(); - I_Method1(void, setImpostorThresholdRatio, IN, float, ratio); - I_Method0(float, getImpostorThresholdRatio); - I_Method1(void, setMaximumNumberOfNestedImpostors, IN, unsigned int, num); - I_Method0(unsigned int, getMaximumNumberOfNestedImpostors); - I_Method0(void, reset); - I_Method1(void, apply, IN, osg::Node &, node); - I_Method1(void, apply, IN, osg::Group &, node); - I_Method1(void, apply, IN, osg::LOD &, node); - I_Method0(void, insertImpostors); - I_Property(float, ImpostorThresholdRatio); - I_Property(unsigned int, MaximumNumberOfNestedImpostors); + I_Constructor0(____InsertImpostorsVisitor, + "Default to traversing all children. ", + ""); + I_Method1(void, setImpostorThresholdRatio, IN, float, ratio, + __void__setImpostorThresholdRatio__float, + "", + ""); + I_Method0(float, getImpostorThresholdRatio, + __float__getImpostorThresholdRatio, + "", + ""); + I_Method1(void, setMaximumNumberOfNestedImpostors, IN, unsigned int, num, + __void__setMaximumNumberOfNestedImpostors__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumNumberOfNestedImpostors, + __unsigned_int__getMaximumNumberOfNestedImpostors, + "", + ""); + I_Method0(void, reset, + __void__reset, + "Empty visitor, make it ready for next traversal. ", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method0(void, insertImpostors, + __void__insertImpostors, + "", + ""); + I_SimpleProperty(float, ImpostorThresholdRatio, + __float__getImpostorThresholdRatio, + __void__setImpostorThresholdRatio__float); + I_SimpleProperty(unsigned int, MaximumNumberOfNestedImpostors, + __unsigned_int__getMaximumNumberOfNestedImpostors, + __void__setMaximumNumberOfNestedImpostors__unsigned_int); END_REFLECTOR diff --git a/src/osgWrappers/osgSim/LightPoint.cpp b/src/osgWrappers/osgSim/LightPoint.cpp index c470f3e21..629105ef9 100644 --- a/src/osgWrappers/osgSim/LightPoint.cpp +++ b/src/osgWrappers/osgSim/LightPoint.cpp @@ -30,10 +30,21 @@ BEGIN_ENUM_REFLECTOR(osgSim::LightPoint::BlendingMode) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgSim::LightPoint) - I_Constructor0(); - I_Constructor2(IN, const osg::Vec3 &, position, IN, const osg::Vec4 &, color); - I_ConstructorWithDefaults8(IN, bool, on, , IN, const osg::Vec3 &, position, , IN, const osg::Vec4 &, color, , IN, float, intensity, 1.0f, IN, float, radius, 1.0f, IN, osgSim::Sector *, sector, 0, IN, osgSim::BlinkSequence *, blinkSequence, 0, IN, osgSim::LightPoint::BlendingMode, blendingMode, osgSim::LightPoint::BLENDED); - I_Constructor1(IN, const osgSim::LightPoint &, lp); + I_Constructor0(____LightPoint, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, position, IN, const osg::Vec4 &, color, + ____LightPoint__C5_osg_Vec3_R1__C5_osg_Vec4_R1, + "", + ""); + I_ConstructorWithDefaults8(IN, bool, on, , IN, const osg::Vec3 &, position, , IN, const osg::Vec4 &, color, , IN, float, intensity, 1.0f, IN, float, radius, 1.0f, IN, osgSim::Sector *, sector, 0, IN, osgSim::BlinkSequence *, blinkSequence, 0, IN, osgSim::LightPoint::BlendingMode, blendingMode, osgSim::LightPoint::BLENDED, + ____LightPoint__bool__C5_osg_Vec3_R1__C5_osg_Vec4_R1__float__float__Sector_P1__BlinkSequence_P1__BlendingMode, + "", + ""); + I_Constructor1(IN, const osgSim::LightPoint &, lp, + ____LightPoint__C5_LightPoint_R1, + "", + ""); I_PublicMemberProperty(bool, _on); I_PublicMemberProperty(osg::Vec3, _position); I_PublicMemberProperty(osg::Vec4, _color); diff --git a/src/osgWrappers/osgSim/LightPointNode.cpp b/src/osgWrappers/osgSim/LightPointNode.cpp index 1676ad076..f177ee907 100644 --- a/src/osgWrappers/osgSim/LightPointNode.cpp +++ b/src/osgWrappers/osgSim/LightPointNode.cpp @@ -30,41 +30,142 @@ TYPE_NAME_ALIAS(std::vector< osgSim::LightPoint >, osgSim::LightPointNode::Light BEGIN_OBJECT_REFLECTOR(osgSim::LightPointNode) I_BaseType(osg::Node); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgSim::LightPointNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method0(unsigned int, getNumLightPoints); - I_Method1(unsigned int, addLightPoint, IN, const osgSim::LightPoint &, lp); - I_Method1(void, removeLightPoint, IN, unsigned int, pos); - I_Method1(osgSim::LightPoint &, getLightPoint, IN, unsigned int, pos); - I_Method1(const osgSim::LightPoint &, getLightPoint, IN, unsigned int, pos); - I_Method1(void, setLightPointList, IN, const osgSim::LightPointNode::LightPointList &, lpl); - I_Method0(osgSim::LightPointNode::LightPointList &, getLightPointList); - I_Method0(const osgSim::LightPointNode::LightPointList &, getLightPointList); - I_Method1(void, setMinPixelSize, IN, float, minPixelSize); - I_Method0(float, getMinPixelSize); - I_Method1(void, setMaxPixelSize, IN, float, maxPixelSize); - I_Method0(float, getMaxPixelSize); - I_Method1(void, setMaxVisibleDistance2, IN, float, maxVisibleDistance2); - I_Method0(float, getMaxVisibleDistance2); - I_Method1(void, setLightPointSystem, IN, osgSim::LightPointSystem *, lps); - I_Method0(osgSim::LightPointSystem *, getLightPointSystem); - I_MethodWithDefaults1(void, setPointSprite, IN, bool, enable, true); - I_Method0(bool, getPointSprite); - I_Method0(osg::BoundingSphere, computeBound); - I_ArrayProperty_GA(const osgSim::LightPoint &, LightPoint, LightPoints, unsigned int, unsigned int); - I_Property(const osgSim::LightPointNode::LightPointList &, LightPointList); - I_Property(osgSim::LightPointSystem *, LightPointSystem); - I_Property(float, MaxPixelSize); - I_Property(float, MaxVisibleDistance2); - I_Property(float, MinPixelSize); - I_Property(bool, PointSprite); + I_Constructor0(____LightPointNode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::LightPointNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LightPointNode__C5_LightPointNode_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method0(unsigned int, getNumLightPoints, + __unsigned_int__getNumLightPoints, + "", + ""); + I_Method1(unsigned int, addLightPoint, IN, const osgSim::LightPoint &, lp, + __unsigned_int__addLightPoint__C5_LightPoint_R1, + "", + ""); + I_Method1(void, removeLightPoint, IN, unsigned int, pos, + __void__removeLightPoint__unsigned_int, + "", + ""); + I_Method1(osgSim::LightPoint &, getLightPoint, IN, unsigned int, pos, + __LightPoint_R1__getLightPoint__unsigned_int, + "", + ""); + I_Method1(const osgSim::LightPoint &, getLightPoint, IN, unsigned int, pos, + __C5_LightPoint_R1__getLightPoint__unsigned_int, + "", + ""); + I_Method1(void, setLightPointList, IN, const osgSim::LightPointNode::LightPointList &, lpl, + __void__setLightPointList__C5_LightPointList_R1, + "", + ""); + I_Method0(osgSim::LightPointNode::LightPointList &, getLightPointList, + __LightPointList_R1__getLightPointList, + "", + ""); + I_Method0(const osgSim::LightPointNode::LightPointList &, getLightPointList, + __C5_LightPointList_R1__getLightPointList, + "", + ""); + I_Method1(void, setMinPixelSize, IN, float, minPixelSize, + __void__setMinPixelSize__float, + "", + ""); + I_Method0(float, getMinPixelSize, + __float__getMinPixelSize, + "", + ""); + I_Method1(void, setMaxPixelSize, IN, float, maxPixelSize, + __void__setMaxPixelSize__float, + "", + ""); + I_Method0(float, getMaxPixelSize, + __float__getMaxPixelSize, + "", + ""); + I_Method1(void, setMaxVisibleDistance2, IN, float, maxVisibleDistance2, + __void__setMaxVisibleDistance2__float, + "", + ""); + I_Method0(float, getMaxVisibleDistance2, + __float__getMaxVisibleDistance2, + "", + ""); + I_Method1(void, setLightPointSystem, IN, osgSim::LightPointSystem *, lps, + __void__setLightPointSystem__osgSim_LightPointSystem_P1, + "", + ""); + I_Method0(osgSim::LightPointSystem *, getLightPointSystem, + __osgSim_LightPointSystem_P1__getLightPointSystem, + "", + ""); + I_MethodWithDefaults1(void, setPointSprite, IN, bool, enable, true, + __void__setPointSprite__bool, + "", + ""); + I_Method0(bool, getPointSprite, + __bool__getPointSprite, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + __osg_BoundingSphere__computeBound, + "Compute the bounding sphere around Node's geometry or children. ", + "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); + I_ArrayProperty(const osgSim::LightPoint &, LightPoint, + __C5_LightPoint_R1__getLightPoint__unsigned_int, + 0, + __unsigned_int__getNumLightPoints, + __unsigned_int__addLightPoint__C5_LightPoint_R1, + 0, + __void__removeLightPoint__unsigned_int); + I_SimpleProperty(const osgSim::LightPointNode::LightPointList &, LightPointList, + __C5_LightPointList_R1__getLightPointList, + __void__setLightPointList__C5_LightPointList_R1); + I_SimpleProperty(osgSim::LightPointSystem *, LightPointSystem, + __osgSim_LightPointSystem_P1__getLightPointSystem, + __void__setLightPointSystem__osgSim_LightPointSystem_P1); + I_SimpleProperty(float, MaxPixelSize, + __float__getMaxPixelSize, + __void__setMaxPixelSize__float); + I_SimpleProperty(float, MaxVisibleDistance2, + __float__getMaxVisibleDistance2, + __void__setMaxVisibleDistance2__float); + I_SimpleProperty(float, MinPixelSize, + __float__getMinPixelSize, + __void__setMinPixelSize__float); + I_SimpleProperty(bool, PointSprite, + __bool__getPointSprite, + __void__setPointSprite__bool); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< osgSim::LightPoint >); diff --git a/src/osgWrappers/osgSim/LightPointSystem.cpp b/src/osgWrappers/osgSim/LightPointSystem.cpp index 6662714f5..88415ceb1 100644 --- a/src/osgWrappers/osgSim/LightPointSystem.cpp +++ b/src/osgWrappers/osgSim/LightPointSystem.cpp @@ -30,18 +30,54 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::LightPointSystem) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgSim::LightPointSystem &, lps, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, setIntensity, IN, float, intensity); - I_Method0(float, getIntensity); - I_Method1(void, setAnimationState, IN, osgSim::LightPointSystem::AnimationState, state); - I_Method0(osgSim::LightPointSystem::AnimationState, getAnimationState); - I_Property(osgSim::LightPointSystem::AnimationState, AnimationState); - I_Property(float, Intensity); + I_Constructor0(____LightPointSystem, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::LightPointSystem &, lps, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LightPointSystem__C5_LightPointSystem_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setIntensity, IN, float, intensity, + __void__setIntensity__float, + "", + ""); + I_Method0(float, getIntensity, + __float__getIntensity, + "", + ""); + I_Method1(void, setAnimationState, IN, osgSim::LightPointSystem::AnimationState, state, + __void__setAnimationState__LightPointSystem_AnimationState, + "", + ""); + I_Method0(osgSim::LightPointSystem::AnimationState, getAnimationState, + __LightPointSystem_AnimationState__getAnimationState, + "", + ""); + I_SimpleProperty(osgSim::LightPointSystem::AnimationState, AnimationState, + __LightPointSystem_AnimationState__getAnimationState, + __void__setAnimationState__LightPointSystem_AnimationState); + I_SimpleProperty(float, Intensity, + __float__getIntensity, + __void__setIntensity__float); END_REFLECTOR diff --git a/src/osgWrappers/osgSim/MultiSwitch.cpp b/src/osgWrappers/osgSim/MultiSwitch.cpp index d330817dc..779b20c8e 100644 --- a/src/osgWrappers/osgSim/MultiSwitch.cpp +++ b/src/osgWrappers/osgSim/MultiSwitch.cpp @@ -30,41 +30,140 @@ TYPE_NAME_ALIAS(std::vector< osgSim::MultiSwitch::ValueList >, osgSim::MultiSwit BEGIN_OBJECT_REFLECTOR(osgSim::MultiSwitch) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgSim::MultiSwitch &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method1(void, setNewChildDefaultValue, IN, bool, value); - I_Method0(bool, getNewChildDefaultValue); - I_Method1(bool, addChild, IN, osg::Node *, child); - I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child); - I_Method1(bool, removeChild, IN, osg::Node *, child); - I_Method3(void, setValue, IN, unsigned int, switchSet, IN, unsigned int, pos, IN, bool, value); - I_Method2(bool, getValue, IN, unsigned int, switchSet, IN, unsigned int, pos); - I_Method3(void, setChildValue, IN, const osg::Node *, child, IN, unsigned int, switchSet, IN, bool, value); - I_Method2(bool, getChildValue, IN, const osg::Node *, child, IN, unsigned int, switchSet); - I_Method1(bool, setAllChildrenOff, IN, unsigned int, switchSet); - I_Method1(bool, setAllChildrenOn, IN, unsigned int, switchSet); - I_Method2(bool, setSingleChildOn, IN, unsigned int, switchSet, IN, unsigned int, pos); - I_Method1(void, setActiveSwitchSet, IN, unsigned int, switchSet); - I_Method0(unsigned int, getActiveSwitchSet); - I_Method1(void, setSwitchSetList, IN, const osgSim::MultiSwitch::SwitchSetList &, switchSetList); - I_Method0(const osgSim::MultiSwitch::SwitchSetList &, getSwitchSetList); - I_Method2(void, setValueList, IN, unsigned int, switchSet, IN, const osgSim::MultiSwitch::ValueList &, values); - I_Method1(const osgSim::MultiSwitch::ValueList &, getValueList, IN, unsigned int, switchSet); - I_Property(unsigned int, ActiveSwitchSet); - I_WriteOnlyPropertyWithReturnType(unsigned int, AllChildrenOff, bool); - I_WriteOnlyPropertyWithReturnType(unsigned int, AllChildrenOn, bool); - I_IndexedProperty2(bool, ChildValue, const osg::Node *, child, unsigned int, switchSet); - I_Property(bool, NewChildDefaultValue); - I_Property(const osgSim::MultiSwitch::SwitchSetList &, SwitchSetList); - I_IndexedProperty2(bool, Value, unsigned int, switchSet, unsigned int, pos); - I_IndexedProperty1(const osgSim::MultiSwitch::ValueList &, ValueList, unsigned int, switchSet); + I_Constructor0(____MultiSwitch, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::MultiSwitch &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____MultiSwitch__C5_MultiSwitch_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(void, setNewChildDefaultValue, IN, bool, value, + __void__setNewChildDefaultValue__bool, + "", + ""); + I_Method0(bool, getNewChildDefaultValue, + __bool__getNewChildDefaultValue, + "", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + __bool__addChild__osg_Node_P1, + "Add Node to Group. ", + "If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes."); + I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, + __bool__insertChild__unsigned_int__osg_Node_P1, + "Insert Node to Group at specific location. ", + "The new child node is inserted into the child list before the node at the specified index. No nodes are removed from the group with this operation."); + I_Method1(bool, removeChild, IN, osg::Node *, child, + __bool__removeChild__osg_Node_P1, + "Remove Node from Group. ", + "If Node is contained in Group then remove it from the child list, decrement its reference count, and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. If Node is not found then return false and do not change the reference count of the Node. Note, do not override, only override removeChildren(,) is required."); + I_Method3(void, setValue, IN, unsigned int, switchSet, IN, unsigned int, pos, IN, bool, value, + __void__setValue__unsigned_int__unsigned_int__bool, + "", + ""); + I_Method2(bool, getValue, IN, unsigned int, switchSet, IN, unsigned int, pos, + __bool__getValue__unsigned_int__unsigned_int, + "", + ""); + I_Method3(void, setChildValue, IN, const osg::Node *, child, IN, unsigned int, switchSet, IN, bool, value, + __void__setChildValue__C5_osg_Node_P1__unsigned_int__bool, + "", + ""); + I_Method2(bool, getChildValue, IN, const osg::Node *, child, IN, unsigned int, switchSet, + __bool__getChildValue__C5_osg_Node_P1__unsigned_int, + "", + ""); + I_Method1(bool, setAllChildrenOff, IN, unsigned int, switchSet, + __bool__setAllChildrenOff__unsigned_int, + "Set all the children off (false), and set the new default child value to off (false). ", + ""); + I_Method1(bool, setAllChildrenOn, IN, unsigned int, switchSet, + __bool__setAllChildrenOn__unsigned_int, + "Set all the children on (true), and set the new default child value to on (true). ", + ""); + I_Method2(bool, setSingleChildOn, IN, unsigned int, switchSet, IN, unsigned int, pos, + __bool__setSingleChildOn__unsigned_int__unsigned_int, + "Set a single child to be on, MultiSwitch off all other children. ", + ""); + I_Method1(void, setActiveSwitchSet, IN, unsigned int, switchSet, + __void__setActiveSwitchSet__unsigned_int, + "Set which of the available switch set lists to use. ", + ""); + I_Method0(unsigned int, getActiveSwitchSet, + __unsigned_int__getActiveSwitchSet, + "Get which of the available switch set lists to use. ", + ""); + I_Method1(void, setSwitchSetList, IN, const osgSim::MultiSwitch::SwitchSetList &, switchSetList, + __void__setSwitchSetList__C5_SwitchSetList_R1, + "Set the compile set of different values. ", + ""); + I_Method0(const osgSim::MultiSwitch::SwitchSetList &, getSwitchSetList, + __C5_SwitchSetList_R1__getSwitchSetList, + "Get the compile set of different values. ", + ""); + I_Method2(void, setValueList, IN, unsigned int, switchSet, IN, const osgSim::MultiSwitch::ValueList &, values, + __void__setValueList__unsigned_int__C5_ValueList_R1, + "Set the a single set of different values for a particular switch set. ", + ""); + I_Method1(const osgSim::MultiSwitch::ValueList &, getValueList, IN, unsigned int, switchSet, + __C5_ValueList_R1__getValueList__unsigned_int, + "Get the a single set of different values for a particular switch set. ", + ""); + I_SimpleProperty(unsigned int, ActiveSwitchSet, + __unsigned_int__getActiveSwitchSet, + __void__setActiveSwitchSet__unsigned_int); + I_SimpleProperty(unsigned int, AllChildrenOff, + 0, + __bool__setAllChildrenOff__unsigned_int); + I_SimpleProperty(unsigned int, AllChildrenOn, + 0, + __bool__setAllChildrenOn__unsigned_int); + I_IndexedProperty(bool, ChildValue, + __bool__getChildValue__C5_osg_Node_P1__unsigned_int, + __void__setChildValue__C5_osg_Node_P1__unsigned_int__bool, + 0); + I_SimpleProperty(bool, NewChildDefaultValue, + __bool__getNewChildDefaultValue, + __void__setNewChildDefaultValue__bool); + I_SimpleProperty(const osgSim::MultiSwitch::SwitchSetList &, SwitchSetList, + __C5_SwitchSetList_R1__getSwitchSetList, + __void__setSwitchSetList__C5_SwitchSetList_R1); + I_IndexedProperty(bool, Value, + __bool__getValue__unsigned_int__unsigned_int, + __void__setValue__unsigned_int__unsigned_int__bool, + 0); + I_IndexedProperty(const osgSim::MultiSwitch::ValueList &, ValueList, + __C5_ValueList_R1__getValueList__unsigned_int, + __void__setValueList__unsigned_int__C5_ValueList_R1, + 0); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< osgSim::MultiSwitch::ValueList >); diff --git a/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp b/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp index f0883825d..0b2ae46b1 100644 --- a/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp +++ b/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp @@ -32,27 +32,53 @@ BEGIN_ENUM_REFLECTOR(osgFlightUtil::Optimizer::OptimizationOptions) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgFlightUtil::Optimizer) - I_Constructor0(); - I_Method1(void, optimize, IN, osg::Node *, node); - I_Method2(void, optimize, IN, osg::Node *, node, IN, unsigned int, options); + I_Constructor0(____Optimizer, + "", + ""); + I_Method1(void, optimize, IN, osg::Node *, node, + __void__optimize__osg_Node_P1, + "Traverse the node and its subgraph with a series of optimization visitors, specified by the OptimizationOptions. ", + ""); + I_Method2(void, optimize, IN, osg::Node *, node, IN, unsigned int, options, + __void__optimize__osg_Node_P1__unsigned_int, + "Traverse the node and its subgraph with a series of optimization visitors, specified by the OptimizationOptions. ", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::MakeLitVisitor) I_BaseType(osg::NodeVisitor); - I_Constructor0(); - I_Method1(void, apply, IN, osg::Geode &, geode); + I_Constructor0(____MakeLitVisitor, + "default to traversing all children. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + __void__apply__osg_Geode_R1, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::MergeGeodesVisitor) I_BaseType(osg::NodeVisitor); - I_Constructor0(); - I_Method1(void, apply, IN, osg::Group &, group); - I_Method1(void, mergeGeodes, IN, osg::Group &, group); + I_Constructor0(____MergeGeodesVisitor, + "default to traversing all children. ", + ""); + I_Method1(void, apply, IN, osg::Group &, group, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, mergeGeodes, IN, osg::Group &, group, + __void__mergeGeodes__osg_Group_R1, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::TesselateVisitor) I_BaseType(osg::NodeVisitor); - I_Constructor0(); - I_Method1(void, apply, IN, osg::Geode &, geode); + I_Constructor0(____TesselateVisitor, + "default to traversing all children. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + __void__apply__osg_Geode_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgSim/OverlayNode.cpp b/src/osgWrappers/osgSim/OverlayNode.cpp index ae2f69e16..95bb008de 100644 --- a/src/osgWrappers/osgSim/OverlayNode.cpp +++ b/src/osgWrappers/osgSim/OverlayNode.cpp @@ -28,37 +28,125 @@ BEGIN_OBJECT_REFLECTOR(osgSim::OverlayNode) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgSim::OverlayNode &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method1(void, setOverlaySubgraph, IN, osg::Node *, node); - I_Method0(osg::Node *, getOverlaySubgraph); - I_Method0(const osg::Node *, getOverlaySubgraph); - I_Method0(void, dirtyOverlayTexture); - I_Method1(void, setContinuousUpdate, IN, bool, update); - I_Method0(bool, getContinuousUpdate); - I_Method1(void, setOverlayClearColor, IN, const osg::Vec4 &, color); - I_Method0(const osg::Vec4 &, getOverlayClearColor); - I_Method1(void, setTexEnvMode, IN, GLenum, mode); - I_Method0(GLenum, getTexEnvMode); - I_Method1(void, setOverlayTextureUnit, IN, unsigned int, unit); - I_Method0(unsigned int, getOverlayTextureUnit); - I_Method1(void, setOverlayTextureSizeHint, IN, unsigned int, size); - I_Method0(unsigned int, getOverlayTextureSizeHint); - I_Method0(osg::CameraNode *, getCamera); - I_Method0(const osg::CameraNode *, getCamera); - I_ReadOnlyProperty(osg::CameraNode *, Camera); - I_Property(bool, ContinuousUpdate); - I_Property(const osg::Vec4 &, OverlayClearColor); - I_Property(osg::Node *, OverlaySubgraph); - I_Property(unsigned int, OverlayTextureSizeHint); - I_Property(unsigned int, OverlayTextureUnit); - I_Property(GLenum, TexEnvMode); + I_Constructor0(____OverlayNode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::OverlayNode &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____OverlayNode__C5_OverlayNode_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(void, setOverlaySubgraph, IN, osg::Node *, node, + __void__setOverlaySubgraph__osg_Node_P1, + "Set the overlay subgraph which will be rendered to texture. ", + ""); + I_Method0(osg::Node *, getOverlaySubgraph, + __osg_Node_P1__getOverlaySubgraph, + "Get the overlay subgraph which will be rendered to texture. ", + ""); + I_Method0(const osg::Node *, getOverlaySubgraph, + __C5_osg_Node_P1__getOverlaySubgraph, + "Get the const overlay subgraph which will be render to texture. ", + ""); + I_Method0(void, dirtyOverlayTexture, + __void__dirtyOverlayTexture, + "Inform the OverlayNode that the overlay texture needs to be updated. ", + ""); + I_Method1(void, setContinuousUpdate, IN, bool, update, + __void__setContinuousUpdate__bool, + "Set whether the OverlayNode should update the overlay texture on every frame. ", + ""); + I_Method0(bool, getContinuousUpdate, + __bool__getContinuousUpdate, + "Get whether the OverlayNode should update the overlay texture on every frame. ", + ""); + I_Method1(void, setOverlayClearColor, IN, const osg::Vec4 &, color, + __void__setOverlayClearColor__C5_osg_Vec4_R1, + "Set the clear color to use when rendering the overlay subgraph. ", + ""); + I_Method0(const osg::Vec4 &, getOverlayClearColor, + __C5_osg_Vec4_R1__getOverlayClearColor, + "Get the clear color to use when rendering the overlay subgraph. ", + ""); + I_Method1(void, setTexEnvMode, IN, GLenum, mode, + __void__setTexEnvMode__GLenum, + "Set the TexEnv mode used to combine the overlay texture with the base color/texture of the OverlayNode's decorate subgraph. ", + ""); + I_Method0(GLenum, getTexEnvMode, + __GLenum__getTexEnvMode, + "Get the TexEnv mode used to combine the overlay texture with the base color/texture of the OverlayNode's decorate subgraph. ", + ""); + I_Method1(void, setOverlayTextureUnit, IN, unsigned int, unit, + __void__setOverlayTextureUnit__unsigned_int, + "Set the texture unit that the texture should be assigned to. ", + ""); + I_Method0(unsigned int, getOverlayTextureUnit, + __unsigned_int__getOverlayTextureUnit, + "Get the texture unit that the texture should be assigned to. ", + ""); + I_Method1(void, setOverlayTextureSizeHint, IN, unsigned int, size, + __void__setOverlayTextureSizeHint__unsigned_int, + "Set the texture size hint. ", + "The size hint is used to request a texture of specified size. "); + I_Method0(unsigned int, getOverlayTextureSizeHint, + __unsigned_int__getOverlayTextureSizeHint, + "Get the texture size hint. ", + ""); + I_Method0(osg::CameraNode *, getCamera, + __osg_CameraNode_P1__getCamera, + "Get the camera used to implement the render to texture of the overlay subgraph. ", + ""); + I_Method0(const osg::CameraNode *, getCamera, + __C5_osg_CameraNode_P1__getCamera, + "Get the const camera used to implement the render to texture of the overlay subgraph. ", + ""); + I_SimpleProperty(osg::CameraNode *, Camera, + __osg_CameraNode_P1__getCamera, + 0); + I_SimpleProperty(bool, ContinuousUpdate, + __bool__getContinuousUpdate, + __void__setContinuousUpdate__bool); + I_SimpleProperty(const osg::Vec4 &, OverlayClearColor, + __C5_osg_Vec4_R1__getOverlayClearColor, + __void__setOverlayClearColor__C5_osg_Vec4_R1); + I_SimpleProperty(osg::Node *, OverlaySubgraph, + __osg_Node_P1__getOverlaySubgraph, + __void__setOverlaySubgraph__osg_Node_P1); + I_SimpleProperty(unsigned int, OverlayTextureSizeHint, + __unsigned_int__getOverlayTextureSizeHint, + __void__setOverlayTextureSizeHint__unsigned_int); + I_SimpleProperty(unsigned int, OverlayTextureUnit, + __unsigned_int__getOverlayTextureUnit, + __void__setOverlayTextureUnit__unsigned_int); + I_SimpleProperty(GLenum, TexEnvMode, + __GLenum__getTexEnvMode, + __void__setTexEnvMode__GLenum); END_REFLECTOR diff --git a/src/osgWrappers/osgSim/ScalarBar.cpp b/src/osgWrappers/osgSim/ScalarBar.cpp index 898a52ed7..ab05095d7 100644 --- a/src/osgWrappers/osgSim/ScalarBar.cpp +++ b/src/osgWrappers/osgSim/ScalarBar.cpp @@ -32,56 +32,172 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar) I_BaseType(osg::Geode); - I_Constructor0(); - I_ConstructorWithDefaults7(IN, int, numColors, , IN, int, numLabels, , IN, osgSim::ScalarsToColors *, stc, , IN, const std::string &, title, , IN, osgSim::ScalarBar::Orientation, orientation, osgSim::ScalarBar::HORIZONTAL, IN, float, aspectRatio, 0.25, IN, osgSim::ScalarBar::ScalarPrinter *, sp, new osgSim::ScalarBar::ScalarPrinter); - I_Constructor2(IN, const osgSim::ScalarBar &, rhs, IN, const osg::CopyOp &, co); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, setNumColors, IN, int, numColors); - I_Method0(int, getNumColors); - I_Method1(void, setNumLabels, IN, int, numLabels); - I_Method0(int, getNumLabels); - I_Method1(void, setScalarsToColors, IN, osgSim::ScalarsToColors *, stc); - I_Method0(const osgSim::ScalarsToColors *, getScalarsToColors); - I_Method1(void, setTitle, IN, const std::string &, title); - I_Method0(std::string, getTitle); - I_Method1(void, setPosition, IN, const osg::Vec3 &, pos); - I_Method0(const osg::Vec3 &, getPosition); - I_Method1(void, setWidth, IN, float, width); - I_Method0(float, getWidth); - I_Method1(void, setAspectRatio, IN, float, aspectRatio); - I_Method0(float, getAspectRatio); - I_Method1(void, setOrientation, IN, osgSim::ScalarBar::Orientation, orientation); - I_Method0(osgSim::ScalarBar::Orientation, getOrientation); - I_Method1(void, setScalarPrinter, IN, osgSim::ScalarBar::ScalarPrinter *, sp); - I_Method0(const osgSim::ScalarBar::ScalarPrinter *, getScalarPrinter); - I_Method1(void, setTextProperties, IN, const osgSim::ScalarBar::TextProperties &, tp); - I_Method0(const osgSim::ScalarBar::TextProperties &, getTextProperties); - I_Method0(void, update); - I_Property(float, AspectRatio); - I_WriteOnlyProperty(int, NumColors); - I_WriteOnlyProperty(int, NumLabels); - I_Property(osgSim::ScalarBar::Orientation, Orientation); - I_Property(const osg::Vec3 &, Position); - I_WriteOnlyProperty(osgSim::ScalarBar::ScalarPrinter *, ScalarPrinter); - I_WriteOnlyProperty(osgSim::ScalarsToColors *, ScalarsToColors); - I_Property(const osgSim::ScalarBar::TextProperties &, TextProperties); - I_ReadOnlyProperty(std::string, Title); - I_Property(float, Width); + I_Constructor0(____ScalarBar, + "Default constructor. ", + ""); + I_ConstructorWithDefaults7(IN, int, numColors, , IN, int, numLabels, , IN, osgSim::ScalarsToColors *, stc, , IN, const std::string &, title, , IN, osgSim::ScalarBar::Orientation, orientation, osgSim::ScalarBar::HORIZONTAL, IN, float, aspectRatio, 0.25, IN, osgSim::ScalarBar::ScalarPrinter *, sp, new osgSim::ScalarBar::ScalarPrinter, + ____ScalarBar__int__int__ScalarsToColors_P1__C5_std_string_R1__Orientation__float__ScalarPrinter_P1, + "Construct a ScalarBar with the supplied parameters. ", + " param numColors Specify the number of colors in the scalar bar. Color interpolation occurs where necessary. numLabels Specify the number of labels in the scalar bar. stc The ScalarsToColors defining the range of scalars and the colors they map to. title The title to be used when displaying the ScalarBar. Specify \"\" for no title. orientation The orientation of the ScalarBar. param aspectRatio The aspect ration (y/x) for the displayed bar. Bear in mind you may want to change this if you change the orientation. sp A ScalarPrinter object for the ScalarBar. For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish. see Orientation. see ScalarPrinter"); + I_Constructor2(IN, const osgSim::ScalarBar &, rhs, IN, const osg::CopyOp &, co, + ____ScalarBar__C5_ScalarBar_R1__C5_osg_CopyOp_R1, + "Copy constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, setNumColors, IN, int, numColors, + __void__setNumColors__int, + "Set the number of distinct colours on the ScalarBar. ", + ""); + I_Method0(int, getNumColors, + __int__getNumColors, + "Get the number of distinct colours on the ScalarBar. ", + ""); + I_Method1(void, setNumLabels, IN, int, numLabels, + __void__setNumLabels__int, + "Set the number of labels to display along the ScalarBar. ", + "There will be one label at each end point, and evenly distributed labels in between. "); + I_Method0(int, getNumLabels, + __int__getNumLabels, + "Get the number of labels displayed along the ScalarBar. ", + ""); + I_Method1(void, setScalarsToColors, IN, osgSim::ScalarsToColors *, stc, + __void__setScalarsToColors__ScalarsToColors_P1, + "Set the ScalarsToColors mapping object for the ScalarBar. ", + ""); + I_Method0(const osgSim::ScalarsToColors *, getScalarsToColors, + __C5_ScalarsToColors_P1__getScalarsToColors, + "Get the ScalarsToColors mapping object from the ScalarBar. ", + ""); + I_Method1(void, setTitle, IN, const std::string &, title, + __void__setTitle__C5_std_string_R1, + "Set the title for the ScalarBar, set \"\" for no title. ", + ""); + I_Method0(std::string, getTitle, + __std_string__getTitle, + "Get the title for the ScalarBar. ", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, + __void__setPosition__C5_osg_Vec3_R1, + "Set the position of scalar bar's lower left corner. ", + ""); + I_Method0(const osg::Vec3 &, getPosition, + __C5_osg_Vec3_R1__getPosition, + "Get the position of scalar bar. ", + ""); + I_Method1(void, setWidth, IN, float, width, + __void__setWidth__float, + "Set the width of the scalar bar. ", + ""); + I_Method0(float, getWidth, + __float__getWidth, + "Get the width of the scalar bar. ", + ""); + I_Method1(void, setAspectRatio, IN, float, aspectRatio, + __void__setAspectRatio__float, + "Set the aspect ration (y/x) for the displayed bar. ", + "Bear in mind you may want to change this if you change the orientation. "); + I_Method0(float, getAspectRatio, + __float__getAspectRatio, + "Get the aspect ration (y/x) for the displayed bar. ", + ""); + I_Method1(void, setOrientation, IN, osgSim::ScalarBar::Orientation, orientation, + __void__setOrientation__ScalarBar_Orientation, + "Set the orientation of the ScalarBar. ", + "Orientation "); + I_Method0(osgSim::ScalarBar::Orientation, getOrientation, + __ScalarBar_Orientation__getOrientation, + "Get the orientation of the ScalarBar. ", + "Orientation "); + I_Method1(void, setScalarPrinter, IN, osgSim::ScalarBar::ScalarPrinter *, sp, + __void__setScalarPrinter__ScalarPrinter_P1, + "Set a ScalarPrinter object for the ScalarBar. ", + "For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish.ScalarPrinter "); + I_Method0(const osgSim::ScalarBar::ScalarPrinter *, getScalarPrinter, + __C5_ScalarPrinter_P1__getScalarPrinter, + "Get the ScalarPrinter object. ", + ""); + I_Method1(void, setTextProperties, IN, const osgSim::ScalarBar::TextProperties &, tp, + __void__setTextProperties__C5_TextProperties_R1, + "Set the TextProperties for the labels & title. ", + "TextProperties "); + I_Method0(const osgSim::ScalarBar::TextProperties &, getTextProperties, + __C5_TextProperties_R1__getTextProperties, + "Get the TextProperties for the labels & title. ", + "TextProperties "); + I_Method0(void, update, + __void__update, + "force update the drawables used to render the scalar bar. ", + ""); + I_SimpleProperty(float, AspectRatio, + __float__getAspectRatio, + __void__setAspectRatio__float); + I_SimpleProperty(int, NumColors, + 0, + __void__setNumColors__int); + I_SimpleProperty(int, NumLabels, + 0, + __void__setNumLabels__int); + I_SimpleProperty(osgSim::ScalarBar::Orientation, Orientation, + __ScalarBar_Orientation__getOrientation, + __void__setOrientation__ScalarBar_Orientation); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); + I_SimpleProperty(osgSim::ScalarBar::ScalarPrinter *, ScalarPrinter, + 0, + __void__setScalarPrinter__ScalarPrinter_P1); + I_SimpleProperty(osgSim::ScalarsToColors *, ScalarsToColors, + 0, + __void__setScalarsToColors__ScalarsToColors_P1); + I_SimpleProperty(const osgSim::ScalarBar::TextProperties &, TextProperties, + __C5_TextProperties_R1__getTextProperties, + __void__setTextProperties__C5_TextProperties_R1); + I_SimpleProperty(std::string, Title, + __std_string__getTitle, + __void__setTitle__C5_std_string_R1); + I_SimpleProperty(float, Width, + __float__getWidth, + __void__setWidth__float); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar::ScalarPrinter) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method1(std::string, printScalar, IN, float, scalar); + I_Constructor0(____ScalarPrinter, + "", + ""); + I_Method1(std::string, printScalar, IN, float, scalar, + __std_string__printScalar__float, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgSim::ScalarBar::TextProperties) - I_Constructor0(); + I_Constructor0(____TextProperties, + "", + ""); I_PublicMemberProperty(std::string, _fontFile); I_PublicMemberProperty(std::pair< int COMMA int >, _fontResolution); I_PublicMemberProperty(float, _characterSize); diff --git a/src/osgWrappers/osgSim/ScalarsToColors.cpp b/src/osgWrappers/osgSim/ScalarsToColors.cpp index 7b86791c1..f2a665d4e 100644 --- a/src/osgWrappers/osgSim/ScalarsToColors.cpp +++ b/src/osgWrappers/osgSim/ScalarsToColors.cpp @@ -23,11 +23,27 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ScalarsToColors) I_BaseType(osg::Referenced); - I_Constructor2(IN, float, scalarMin, IN, float, scalarMax); - I_Method1(osg::Vec4, getColor, IN, float, scalar); - I_Method0(float, getMin); - I_Method0(float, getMax); - I_ReadOnlyProperty(float, Max); - I_ReadOnlyProperty(float, Min); + I_Constructor2(IN, float, scalarMin, IN, float, scalarMax, + ____ScalarsToColors__float__float, + "", + ""); + I_Method1(osg::Vec4, getColor, IN, float, scalar, + __osg_Vec4__getColor__float, + "Get the color for a given scalar value. ", + ""); + I_Method0(float, getMin, + __float__getMin, + "Get the minimum scalar value. ", + ""); + I_Method0(float, getMax, + __float__getMax, + "Get the maximum scalar value. ", + ""); + I_SimpleProperty(float, Max, + __float__getMax, + 0); + I_SimpleProperty(float, Min, + __float__getMin, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgSim/Sector.cpp b/src/osgWrappers/osgSim/Sector.cpp index 477d73fe8..35296fa57 100644 --- a/src/osgWrappers/osgSim/Sector.cpp +++ b/src/osgWrappers/osgSim/Sector.cpp @@ -27,115 +27,342 @@ BEGIN_OBJECT_REFLECTOR(osgSim::AzimElevationSector) I_BaseType(osgSim::Sector); I_BaseType(osgSim::AzimRange); I_BaseType(osgSim::ElevationRange); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgSim::AzimElevationSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_ConstructorWithDefaults5(IN, float, minAzimuth, , IN, float, maxAzimuth, , IN, float, minElevation, , IN, float, maxElevation, , IN, float, fadeAngle, 0.0f); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); + I_Constructor0(____AzimElevationSector, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::AzimElevationSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AzimElevationSector__C5_AzimElevationSector_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults5(IN, float, minAzimuth, , IN, float, maxAzimuth, , IN, float, minElevation, , IN, float, maxElevation, , IN, float, fadeAngle, 0.0f, + ____AzimElevationSector__float__float__float__float__float, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgSim::AzimRange) - I_Constructor0(); - I_MethodWithDefaults3(void, setAzimuthRange, IN, float, minAzimuth, , IN, float, maxAzimuth, , IN, float, fadeAngle, 0.0f); - I_Method3(void, getAzimuthRange, IN, float &, minAzimuth, IN, float &, maxAzimuth, IN, float &, fadeAngle); - I_Method1(float, azimSector, IN, const osg::Vec3 &, eyeLocal); + I_Constructor0(____AzimRange, + "", + ""); + I_MethodWithDefaults3(void, setAzimuthRange, IN, float, minAzimuth, , IN, float, maxAzimuth, , IN, float, fadeAngle, 0.0f, + __void__setAzimuthRange__float__float__float, + "", + ""); + I_Method3(void, getAzimuthRange, IN, float &, minAzimuth, IN, float &, maxAzimuth, IN, float &, fadeAngle, + __void__getAzimuthRange__float_R1__float_R1__float_R1, + "", + ""); + I_Method1(float, azimSector, IN, const osg::Vec3 &, eyeLocal, + __float__azimSector__C5_osg_Vec3_R1, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::AzimSector) I_BaseType(osgSim::Sector); I_BaseType(osgSim::AzimRange); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgSim::AzimSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_ConstructorWithDefaults3(IN, float, minAzimuth, , IN, float, maxAzimuth, , IN, float, fadeAngle, 0.0f); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); + I_Constructor0(____AzimSector, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::AzimSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AzimSector__C5_AzimSector_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults3(IN, float, minAzimuth, , IN, float, maxAzimuth, , IN, float, fadeAngle, 0.0f, + ____AzimSector__float__float__float, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::ConeSector) I_BaseType(osgSim::Sector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgSim::ConeSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_ConstructorWithDefaults3(IN, const osg::Vec3 &, axis, , IN, float, angle, , IN, float, fadeangle, 0.0f); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, setAxis, IN, const osg::Vec3 &, axis); - I_Method0(const osg::Vec3 &, getAxis); - I_MethodWithDefaults2(void, setAngle, IN, float, angle, , IN, float, fadeangle, 0.0f); - I_Method0(float, getAngle); - I_Method0(float, getFadeAngle); - I_ReadOnlyProperty(float, Angle); - I_Property(const osg::Vec3 &, Axis); - I_ReadOnlyProperty(float, FadeAngle); + I_Constructor0(____ConeSector, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::ConeSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ConeSector__C5_ConeSector_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Vec3 &, axis, , IN, float, angle, , IN, float, fadeangle, 0.0f, + ____ConeSector__C5_osg_Vec3_R1__float__float, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setAxis, IN, const osg::Vec3 &, axis, + __void__setAxis__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getAxis, + __C5_osg_Vec3_R1__getAxis, + "", + ""); + I_MethodWithDefaults2(void, setAngle, IN, float, angle, , IN, float, fadeangle, 0.0f, + __void__setAngle__float__float, + "", + ""); + I_Method0(float, getAngle, + __float__getAngle, + "", + ""); + I_Method0(float, getFadeAngle, + __float__getFadeAngle, + "", + ""); + I_SimpleProperty(float, Angle, + __float__getAngle, + 0); + I_SimpleProperty(const osg::Vec3 &, Axis, + __C5_osg_Vec3_R1__getAxis, + __void__setAxis__C5_osg_Vec3_R1); + I_SimpleProperty(float, FadeAngle, + __float__getFadeAngle, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::DirectionalSector) I_BaseType(osgSim::Sector); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgSim::DirectionalSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_ConstructorWithDefaults5(IN, const osg::Vec3 &, direction, , IN, float, horizLobeAngle, , IN, float, vertLobeAngle, , IN, float, lobeRollAngle, , IN, float, fadeAngle, 0.0f); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(void, setDirection, IN, const osg::Vec3 &, direction); - I_Method0(const osg::Vec3 &, getDirection); - I_Method1(void, setHorizLobeAngle, IN, float, angle); - I_Method0(float, getHorizLobeAngle); - I_Method1(void, setLobeRollAngle, IN, float, angle); - I_Method0(float, getLobeRollAngle); - I_Method1(void, setVertLobeAngle, IN, float, angle); - I_Method0(float, getVertLobeAngle); - I_Method1(void, setFadeAngle, IN, float, angle); - I_Method0(float, getFadeAngle); - I_Method0(void, computeMatrix); - I_Property(const osg::Vec3 &, Direction); - I_Property(float, FadeAngle); - I_Property(float, HorizLobeAngle); - I_Property(float, LobeRollAngle); - I_Property(float, VertLobeAngle); + I_Constructor0(____DirectionalSector, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::DirectionalSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DirectionalSector__C5_DirectionalSector_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults5(IN, const osg::Vec3 &, direction, , IN, float, horizLobeAngle, , IN, float, vertLobeAngle, , IN, float, lobeRollAngle, , IN, float, fadeAngle, 0.0f, + ____DirectionalSector__C5_osg_Vec3_R1__float__float__float__float, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setDirection, IN, const osg::Vec3 &, direction, + __void__setDirection__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getDirection, + __C5_osg_Vec3_R1__getDirection, + "", + ""); + I_Method1(void, setHorizLobeAngle, IN, float, angle, + __void__setHorizLobeAngle__float, + "", + ""); + I_Method0(float, getHorizLobeAngle, + __float__getHorizLobeAngle, + "", + ""); + I_Method1(void, setLobeRollAngle, IN, float, angle, + __void__setLobeRollAngle__float, + "", + ""); + I_Method0(float, getLobeRollAngle, + __float__getLobeRollAngle, + "", + ""); + I_Method1(void, setVertLobeAngle, IN, float, angle, + __void__setVertLobeAngle__float, + "", + ""); + I_Method0(float, getVertLobeAngle, + __float__getVertLobeAngle, + "", + ""); + I_Method1(void, setFadeAngle, IN, float, angle, + __void__setFadeAngle__float, + "", + ""); + I_Method0(float, getFadeAngle, + __float__getFadeAngle, + "", + ""); + I_Method0(void, computeMatrix, + __void__computeMatrix, + "", + ""); + I_SimpleProperty(const osg::Vec3 &, Direction, + __C5_osg_Vec3_R1__getDirection, + __void__setDirection__C5_osg_Vec3_R1); + I_SimpleProperty(float, FadeAngle, + __float__getFadeAngle, + __void__setFadeAngle__float); + I_SimpleProperty(float, HorizLobeAngle, + __float__getHorizLobeAngle, + __void__setHorizLobeAngle__float); + I_SimpleProperty(float, LobeRollAngle, + __float__getLobeRollAngle, + __void__setLobeRollAngle__float); + I_SimpleProperty(float, VertLobeAngle, + __float__getVertLobeAngle, + __void__setVertLobeAngle__float); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgSim::ElevationRange) - I_Constructor0(); - I_MethodWithDefaults3(void, setElevationRange, IN, float, minElevation, , IN, float, maxElevation, , IN, float, fadeAngle, 0.0f); - I_Method0(float, getMinElevation); - I_Method0(float, getMaxElevation); - I_Method0(float, getFadeAngle); - I_Method1(float, elevationSector, IN, const osg::Vec3 &, eyeLocal); - I_ReadOnlyProperty(float, FadeAngle); - I_ReadOnlyProperty(float, MaxElevation); - I_ReadOnlyProperty(float, MinElevation); + I_Constructor0(____ElevationRange, + "", + ""); + I_MethodWithDefaults3(void, setElevationRange, IN, float, minElevation, , IN, float, maxElevation, , IN, float, fadeAngle, 0.0f, + __void__setElevationRange__float__float__float, + "", + ""); + I_Method0(float, getMinElevation, + __float__getMinElevation, + "", + ""); + I_Method0(float, getMaxElevation, + __float__getMaxElevation, + "", + ""); + I_Method0(float, getFadeAngle, + __float__getFadeAngle, + "", + ""); + I_Method1(float, elevationSector, IN, const osg::Vec3 &, eyeLocal, + __float__elevationSector__C5_osg_Vec3_R1, + "", + ""); + I_SimpleProperty(float, FadeAngle, + __float__getFadeAngle, + 0); + I_SimpleProperty(float, MaxElevation, + __float__getMaxElevation, + 0); + I_SimpleProperty(float, MinElevation, + __float__getMinElevation, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::ElevationSector) I_BaseType(osgSim::Sector); I_BaseType(osgSim::ElevationRange); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgSim::ElevationSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_ConstructorWithDefaults3(IN, float, minElevation, , IN, float, maxElevation, , IN, float, fadeAngle, 0.0f); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); + I_Constructor0(____ElevationSector, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::ElevationSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ElevationSector__C5_ElevationSector_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults3(IN, float, minElevation, , IN, float, maxElevation, , IN, float, fadeAngle, 0.0f, + ____ElevationSector__float__float__float, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::Sector) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgSim::Sector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + I_Constructor0(____Sector, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::Sector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Sector__C5_Sector_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgSim/SphereSegment.cpp b/src/osgWrappers/osgSim/SphereSegment.cpp index d9fc190fd..1ccddaa62 100644 --- a/src/osgWrappers/osgSim/SphereSegment.cpp +++ b/src/osgWrappers/osgSim/SphereSegment.cpp @@ -41,61 +41,205 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::SphereSegment) I_BaseType(osg::Geode); - I_Constructor0(); - I_Constructor7(IN, const osg::Vec3 &, centre, IN, float, radius, IN, float, azMin, IN, float, azMax, IN, float, elevMin, IN, float, elevMax, IN, int, density); - I_Constructor6(IN, const osg::Vec3 &, centre, IN, float, radius, IN, const osg::Vec3 &, vec, IN, float, azRange, IN, float, elevRange, IN, int, density); - I_Constructor2(IN, const osgSim::SphereSegment &, rhs, IN, const osg::CopyOp &, co); - I_Method1(void, setCentre, IN, const osg::Vec3 &, c); - I_Method0(const osg::Vec3 &, getCentre); - I_Method1(void, setRadius, IN, float, r); - I_Method0(float, getRadius); - I_Method3(void, setArea, IN, const osg::Vec3 &, vec, IN, float, azRange, IN, float, elevRange); - I_Method3(void, getArea, IN, osg::Vec3 &, vec, IN, float &, azRange, IN, float &, elevRange); - I_Method4(void, setArea, IN, float, azMin, IN, float, azMax, IN, float, elevMin, IN, float, elevMax); - I_Method4(void, getArea, IN, float &, azMin, IN, float &, azMax, IN, float &, elevMin, IN, float &, elevMax); - I_Method1(void, setDensity, IN, int, d); - I_Method0(int, getDensity); - I_Method1(void, setDrawMask, IN, osgSim::SphereSegment::DrawMask, dm); - I_Method0(osgSim::SphereSegment::DrawMask, getDrawMask); - I_Method1(void, setSurfaceColor, IN, const osg::Vec4 &, c); - I_Method0(osg::Vec4, getSurfaceColor); - I_Method1(void, setSpokeColor, IN, const osg::Vec4 &, c); - I_Method0(osg::Vec4, getSpokeColor); - I_Method1(void, setEdgeLineColor, IN, const osg::Vec4 &, c); - I_Method0(osg::Vec4, getEdgeLineColor); - I_Method1(void, setSideColor, IN, const osg::Vec4 &, c); - I_Method0(osg::Vec4, getSideColor); - I_Method1(void, setAllColors, IN, const osg::Vec4 &, c); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method2(osgSim::SphereSegment::LineList, computeIntersection, IN, const osg::Matrixd &, matrix, IN, osg::Node *, subgraph); - I_Method2(osgSim::SphereSegment::LineList, computeIntersection, IN, const osg::Matrixd &, matrix, IN, osg::Drawable *, drawable); - I_Method2(osg::Node *, computeIntersectionSubgraph, IN, const osg::Matrixd &, matrix, IN, osg::Node *, subgraph); - I_Method2(osg::Node *, computeIntersectionSubgraph, IN, const osg::Matrixd &, matrix, IN, osg::Drawable *, drawable); - I_WriteOnlyProperty(const osg::Vec4 &, AllColors); - I_Property(const osg::Vec3 &, Centre); - I_Property(int, Density); - I_Property(osgSim::SphereSegment::DrawMask, DrawMask); - I_ReadOnlyProperty(osg::Vec4, EdgeLineColor); - I_Property(float, Radius); - I_ReadOnlyProperty(osg::Vec4, SideColor); - I_ReadOnlyProperty(osg::Vec4, SpokeColor); - I_ReadOnlyProperty(osg::Vec4, SurfaceColor); + I_Constructor0(____SphereSegment, + "Default constructor. ", + ""); + I_Constructor7(IN, const osg::Vec3 &, centre, IN, float, radius, IN, float, azMin, IN, float, azMax, IN, float, elevMin, IN, float, elevMax, IN, int, density, + ____SphereSegment__C5_osg_Vec3_R1__float__float__float__float__float__int, + "Construct by angle ranges. ", + " param centre sphere centre radius radius of sphere azMin azimuth minimum azMax azimuth maximum elevMin elevation minimum elevMax elevation maximum density number of units to divide the azimuth and elevation ranges into "); + I_Constructor6(IN, const osg::Vec3 &, centre, IN, float, radius, IN, const osg::Vec3 &, vec, IN, float, azRange, IN, float, elevRange, IN, int, density, + ____SphereSegment__C5_osg_Vec3_R1__float__C5_osg_Vec3_R1__float__float__int, + "Construct by vector. ", + " param centre sphere centre radius radius of sphere vec vector pointing from sphere centre to centre point of rendered area on sphere surface azRange azimuth range in radians (with centre along vec) elevRange elevation range in radians (with centre along vec) density number of units to divide the azimuth and elevation ranges into "); + I_Constructor2(IN, const osgSim::SphereSegment &, rhs, IN, const osg::CopyOp &, co, + ____SphereSegment__C5_SphereSegment_R1__C5_osg_CopyOp_R1, + "Copy constructor. ", + ""); + I_Method1(void, setCentre, IN, const osg::Vec3 &, c, + __void__setCentre__C5_osg_Vec3_R1, + "Set the centre point of the SphereSegment. ", + ""); + I_Method0(const osg::Vec3 &, getCentre, + __C5_osg_Vec3_R1__getCentre, + "Get the centre point of the SphereSegment. ", + ""); + I_Method1(void, setRadius, IN, float, r, + __void__setRadius__float, + "Set the radius of the SphereSegment. ", + ""); + I_Method0(float, getRadius, + __float__getRadius, + "Get the radius of the SphereSegment. ", + ""); + I_Method3(void, setArea, IN, const osg::Vec3 &, vec, IN, float, azRange, IN, float, elevRange, + __void__setArea__C5_osg_Vec3_R1__float__float, + "Set the area of the sphere segment. ", + " param vec vector pointing from sphere centre to centre point of rendered area on sphere surface azRange azimuth range in radians (with centre along vec) elevRange elevation range in radians (with centre along vec) "); + I_Method3(void, getArea, IN, osg::Vec3 &, vec, IN, float &, azRange, IN, float &, elevRange, + __void__getArea__osg_Vec3_R1__float_R1__float_R1, + "Get the area of the sphere segment. ", + " param vec vector pointing from sphere centre to centre point of rendered area on sphere surface (normalized) azRange azimuth range in radians (with centre along vec) elevRange elevation range in radians (with centre along vec) "); + I_Method4(void, setArea, IN, float, azMin, IN, float, azMax, IN, float, elevMin, IN, float, elevMax, + __void__setArea__float__float__float__float, + "Set the area of the sphere segment. ", + " param azMin azimuth minimum azMax azimuth maximum elevMin elevation minimum elevMax elevation maximum "); + I_Method4(void, getArea, IN, float &, azMin, IN, float &, azMax, IN, float &, elevMin, IN, float &, elevMax, + __void__getArea__float_R1__float_R1__float_R1__float_R1, + "Get the area of the sphere segment. ", + " param azMin azimuth minimum azMax azimuth maximum elevMin elevation minimum elevMax elevation maximum "); + I_Method1(void, setDensity, IN, int, d, + __void__setDensity__int, + "Set the density of the sphere segment. ", + ""); + I_Method0(int, getDensity, + __int__getDensity, + "Get the density of the sphere segment. ", + ""); + I_Method1(void, setDrawMask, IN, osgSim::SphereSegment::DrawMask, dm, + __void__setDrawMask__DrawMask, + "Specify the DrawMask. ", + " param dm Bitmask specifying which parts of the sphere segment should be drawn. see DrawMask"); + I_Method0(osgSim::SphereSegment::DrawMask, getDrawMask, + __DrawMask__getDrawMask, + "Get the DrawMask. ", + ""); + I_Method1(void, setSurfaceColor, IN, const osg::Vec4 &, c, + __void__setSurfaceColor__C5_osg_Vec4_R1, + "Set the color of the surface. ", + ""); + I_Method0(osg::Vec4, getSurfaceColor, + __osg_Vec4__getSurfaceColor, + "Get the color of the surface. ", + ""); + I_Method1(void, setSpokeColor, IN, const osg::Vec4 &, c, + __void__setSpokeColor__C5_osg_Vec4_R1, + "Set the color of the spokes. ", + ""); + I_Method0(osg::Vec4, getSpokeColor, + __osg_Vec4__getSpokeColor, + "Get the color of the spokes. ", + ""); + I_Method1(void, setEdgeLineColor, IN, const osg::Vec4 &, c, + __void__setEdgeLineColor__C5_osg_Vec4_R1, + "Set the color of the edge line. ", + ""); + I_Method0(osg::Vec4, getEdgeLineColor, + __osg_Vec4__getEdgeLineColor, + "Get the color of the edge line. ", + ""); + I_Method1(void, setSideColor, IN, const osg::Vec4 &, c, + __void__setSideColor__C5_osg_Vec4_R1, + "Set the color of the planes. ", + ""); + I_Method0(osg::Vec4, getSideColor, + __osg_Vec4__getSideColor, + "Get the color of the planes. ", + ""); + I_Method1(void, setAllColors, IN, const osg::Vec4 &, c, + __void__setAllColors__C5_osg_Vec4_R1, + "Set color of all components. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method2(osgSim::SphereSegment::LineList, computeIntersection, IN, const osg::Matrixd &, matrix, IN, osg::Node *, subgraph, + __LineList__computeIntersection__C5_osg_Matrixd_R1__osg_Node_P1, + "Compute the interesection lines between subgraph and this sphere segment. ", + "The matrix is the transform that takes the subgraph into the same coordiante frame as the sphere segment. The resulting intersections are in the coordinate frame of the sphere segment. "); + I_Method2(osgSim::SphereSegment::LineList, computeIntersection, IN, const osg::Matrixd &, matrix, IN, osg::Drawable *, drawable, + __LineList__computeIntersection__C5_osg_Matrixd_R1__osg_Drawable_P1, + "Compute the interesection lines between specified drawable and this sphere segment. ", + "The matrix is the transform that takes the subgraph into the same coordiante frame as the sphere segment. The resulting intersections are in the coordinate frame of the sphere segment. "); + I_Method2(osg::Node *, computeIntersectionSubgraph, IN, const osg::Matrixd &, matrix, IN, osg::Node *, subgraph, + __osg_Node_P1__computeIntersectionSubgraph__C5_osg_Matrixd_R1__osg_Node_P1, + "Compute the interesection lines between subgraph and this sphere segment. ", + "The matrix is the transform that takes the subgraph into the same coordiante frame as the sphere segment. The resulting intersections are in the coordinate frame of the sphere segment. "); + I_Method2(osg::Node *, computeIntersectionSubgraph, IN, const osg::Matrixd &, matrix, IN, osg::Drawable *, drawable, + __osg_Node_P1__computeIntersectionSubgraph__C5_osg_Matrixd_R1__osg_Drawable_P1, + "Compute the interesection lines between specified drawable and this sphere segment. ", + "The matrix is the transform that takes the subgraph into the same coordiante frame as the sphere segment. The resulting intersections are in the coordinate frame of the sphere segment. "); + I_SimpleProperty(const osg::Vec4 &, AllColors, + 0, + __void__setAllColors__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec3 &, Centre, + __C5_osg_Vec3_R1__getCentre, + __void__setCentre__C5_osg_Vec3_R1); + I_SimpleProperty(int, Density, + __int__getDensity, + __void__setDensity__int); + I_SimpleProperty(osgSim::SphereSegment::DrawMask, DrawMask, + __DrawMask__getDrawMask, + __void__setDrawMask__DrawMask); + I_SimpleProperty(osg::Vec4, EdgeLineColor, + __osg_Vec4__getEdgeLineColor, + __void__setEdgeLineColor__C5_osg_Vec4_R1); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); + I_SimpleProperty(osg::Vec4, SideColor, + __osg_Vec4__getSideColor, + __void__setSideColor__C5_osg_Vec4_R1); + I_SimpleProperty(osg::Vec4, SpokeColor, + __osg_Vec4__getSpokeColor, + __void__setSpokeColor__C5_osg_Vec4_R1); + I_SimpleProperty(osg::Vec4, SurfaceColor, + __osg_Vec4__getSurfaceColor, + __void__setSurfaceColor__C5_osg_Vec4_R1); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Vec3Array >) - I_Constructor0(); - I_Constructor1(IN, osg::Vec3Array *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osg::Vec3Array > &, rp); - I_Method0(osg::Vec3Array *, get); - I_Method0(bool, valid); - I_Method0(osg::Vec3Array *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osg::Vec3Array > &, rp); - I_ReadOnlyProperty(osg::Vec3Array *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Vec3Array *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Vec3Array > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Vec3Array *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osg::Vec3Array *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Vec3Array > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Vec3Array *, , + __T_P1__get, + 0); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Vec3Array > >); diff --git a/src/osgWrappers/osgSim/VisibilityGroup.cpp b/src/osgWrappers/osgSim/VisibilityGroup.cpp index 145bb2a0d..b6b98e883 100644 --- a/src/osgWrappers/osgSim/VisibilityGroup.cpp +++ b/src/osgWrappers/osgSim/VisibilityGroup.cpp @@ -26,24 +26,77 @@ BEGIN_OBJECT_REFLECTOR(osgSim::VisibilityGroup) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgSim::VisibilityGroup &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method1(void, setVisibilityVolume, IN, osg::Node *, node); - I_Method0(osg::Node *, getVisibilityVolume); - I_Method0(const osg::Node *, getVisibilityVolume); - I_Method1(void, setVolumeIntersectionMask, IN, osg::Node::NodeMask, mask); - I_Method0(osg::Node::NodeMask, getVolumeIntersectionMask); - I_Method1(void, setSegmentLength, IN, float, length); - I_Method0(float, getSegmentLength); - I_Property(float, SegmentLength); - I_Property(osg::Node *, VisibilityVolume); - I_Property(osg::Node::NodeMask, VolumeIntersectionMask); + I_Constructor0(____VisibilityGroup, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::VisibilityGroup &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____VisibilityGroup__C5_VisibilityGroup_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(void, setVisibilityVolume, IN, osg::Node *, node, + __void__setVisibilityVolume__osg_Node_P1, + "Set the subgraph that is intersected for the visibility determination. ", + ""); + I_Method0(osg::Node *, getVisibilityVolume, + __osg_Node_P1__getVisibilityVolume, + "Get the subgraph that is intersected for the visibility determination. ", + ""); + I_Method0(const osg::Node *, getVisibilityVolume, + __C5_osg_Node_P1__getVisibilityVolume, + "Get the const subgraph that is intersected for the visibility determination. ", + ""); + I_Method1(void, setVolumeIntersectionMask, IN, osg::Node::NodeMask, mask, + __void__setVolumeIntersectionMask__osg_Node_NodeMask, + "Set the traversal mask for the intersection testing. ", + ""); + I_Method0(osg::Node::NodeMask, getVolumeIntersectionMask, + __osg_Node_NodeMask__getVolumeIntersectionMask, + "Get the traversal mask for the intersection testing. ", + ""); + I_Method1(void, setSegmentLength, IN, float, length, + __void__setSegmentLength__float, + "Set the length of the intersection segment. ", + "The segments extends this many database units from the camera eye-point along the look vector. If this is left at zero then the diameter of the bounding sphere of the visibility volume is used. "); + I_Method0(float, getSegmentLength, + __float__getSegmentLength, + "Get the length of the intersection segment. ", + ""); + I_SimpleProperty(float, SegmentLength, + __float__getSegmentLength, + __void__setSegmentLength__float); + I_SimpleProperty(osg::Node *, VisibilityVolume, + __osg_Node_P1__getVisibilityVolume, + __void__setVisibilityVolume__osg_Node_P1); + I_SimpleProperty(osg::Node::NodeMask, VolumeIntersectionMask, + __osg_Node_NodeMask__getVolumeIntersectionMask, + __void__setVolumeIntersectionMask__osg_Node_NodeMask); END_REFLECTOR diff --git a/src/osgWrappers/osgTerrain/DataSet.cpp b/src/osgWrappers/osgTerrain/DataSet.cpp index dc2e1e212..d5a305ab5 100644 --- a/src/osgWrappers/osgTerrain/DataSet.cpp +++ b/src/osgWrappers/osgTerrain/DataSet.cpp @@ -71,126 +71,452 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet) I_BaseType(osg::Referenced); - I_Method1(void, insertTileToQuadMap, IN, osgTerrain::DataSet::CompositeDestination *, tile); - I_Method3(osgTerrain::DataSet::DestinationTile *, getTile, IN, unsigned int, level, IN, unsigned int, X, IN, unsigned int, Y); - I_Method3(osgTerrain::DataSet::CompositeDestination *, getComposite, IN, unsigned int, level, IN, unsigned int, X, IN, unsigned int, Y); - I_Method2(osgTerrain::DataSet::Row &, getRow, IN, unsigned int, level, IN, unsigned int, Y); - I_Constructor0(); - I_Method1(void, addSource, IN, osgTerrain::DataSet::Source *, source); - I_Method1(void, addSource, IN, osgTerrain::DataSet::CompositeSource *, composite); - I_Method0(void, loadSources); - I_Method1(void, setMaximumTileImageSize, IN, unsigned int, size); - I_Method0(unsigned int, getMaximumTileImageSize); - I_Method1(void, setMaximumTileTerrainSize, IN, unsigned int, size); - I_Method0(unsigned int, getMaximumTileTerrainSize); - I_Method1(void, setMaximumVisibleDistanceOfTopLevel, IN, float, d); - I_Method0(float, getMaximumVisibleDistanceOfTopLevel); - I_Method1(void, setRadiusToMaxVisibleDistanceRatio, IN, float, ratio); - I_Method0(float, getRadiusToMaxVisibleDistanceRatio); - I_Method1(void, setVerticalScale, IN, float, verticalScale); - I_Method0(float, getVerticalScale); - I_Method1(void, setSkirtRatio, IN, float, skirtRatio); - I_Method0(float, getSkirtRatio); - I_Method1(void, setDefaultColor, IN, const osg::Vec4 &, defaultColor); - I_Method0(const osg::Vec4 &, getDefaultColor); - I_Method1(void, setDestinationCoordinateSystem, IN, const std::string &, wellKnownText); - I_Method1(void, setDestinationCoordinateSystem, IN, osg::CoordinateSystemNode *, cs); - I_Method0(osg::CoordinateSystemNode *, getDestinationCoordinateSystem); - I_Method1(void, setIntermediateCoordinateSystem, IN, const std::string &, wellKnownText); - I_Method1(void, setIntermediateCoordinateSystem, IN, osg::CoordinateSystemNode *, cs); - I_Method0(osg::CoordinateSystemNode *, getIntermediateCoordinateSystem); - I_Method1(void, setConvertFromGeographicToGeocentric, IN, bool, flag); - I_Method0(bool, getConvertFromGeographicToGeocentric); - I_Method1(void, setEllipsoidModel, IN, osg::EllipsoidModel *, et); - I_Method0(osg::EllipsoidModel *, getEllipsoidModel); - I_Method0(const osg::EllipsoidModel *, getEllipsoidModel); - I_Method0(bool, mapLatLongsToXYZ); - I_Method1(void, setDestinationExtents, IN, const osgTerrain::GeospatialExtents &, extents); - I_Method1(void, setDestinationGeoTransform, IN, const osg::Matrixd &, geoTransform); - I_Method1(void, setArchiveName, IN, const std::string &, filename); - I_Method0(const std::string &, getArchiveName); - I_Method1(void, setArchive, IN, osgDB::Archive *, archive); - I_Method0(osgDB::Archive *, getArchive); - I_Method1(void, setDestinationName, IN, const std::string &, filename); - I_Method1(void, setDirectory, IN, const std::string &, directory); - I_Method0(const std::string &, getDirectory); - I_Method1(void, setDestinationTileBaseName, IN, const std::string &, basename); - I_Method0(const std::string &, getDestinationTileBaseName); - I_Method1(void, setDestinationTileExtension, IN, const std::string &, extension); - I_Method0(const std::string &, getDestinationTileExtension); - I_Method1(void, setDestinationImageExtension, IN, const std::string &, extension); - I_Method0(const std::string &, getDestinationImageExtension); - I_Method1(void, setDatabaseType, IN, osgTerrain::DataSet::DatabaseType, type); - I_Method0(osgTerrain::DataSet::DatabaseType, getDatabaseType); - I_Method1(void, setGeometryType, IN, osgTerrain::DataSet::GeometryType, type); - I_Method0(osgTerrain::DataSet::GeometryType, getGeometryType); - I_Method1(void, setTextureType, IN, osgTerrain::DataSet::TextureType, type); - I_Method0(osgTerrain::DataSet::TextureType, getTextureType); - I_Method1(void, setMaxAnisotropy, IN, float, d); - I_Method0(float, getMaxAnisotropy); - I_Method1(void, setMipMappingMode, IN, osgTerrain::DataSet::MipMappingMode, mipMappingMode); - I_Method0(osgTerrain::DataSet::MipMappingMode, getMipMappingMode); - I_Method1(void, setUseLocalTileTransform, IN, bool, flag); - I_Method0(bool, getUseLocalTileTransform); - I_Method1(void, setSimplifyTerrain, IN, bool, flag); - I_Method0(bool, getSimplifyTerrain); - I_Method1(void, setDecorateGeneratedSceneGraphWithCoordinateSystemNode, IN, bool, flag); - I_Method0(bool, getDecorateGeneratedSceneGraphWithCoordinateSystemNode); - I_Method1(void, setDecorateGeneratedSceneGraphWithMultiTextureControl, IN, bool, flag); - I_Method0(bool, getDecorateGeneratedSceneGraphWithMultiTextureControl); - I_Method0(unsigned int, getNumOfTextureLevels); - I_Method1(void, setCommentString, IN, const std::string &, comment); - I_Method0(const std::string &, getCommentString); - I_Method1(void, setWriteNodeBeforeSimplification, IN, bool, flag); - I_Method0(bool, getWriteNodeBeforeSimplification); - I_Method9(osgTerrain::DataSet::CompositeDestination *, createDestinationGraph, IN, osgTerrain::DataSet::CompositeDestination *, parent, IN, osg::CoordinateSystemNode *, cs, IN, const osgTerrain::GeospatialExtents &, extents, IN, unsigned int, maxImageSize, IN, unsigned int, maxTerrainSize, IN, unsigned int, currentLevel, IN, unsigned int, currentX, IN, unsigned int, currentY, IN, unsigned int, maxNumLevels); - I_Method1(void, computeDestinationGraphFromSources, IN, unsigned int, numLevels); - I_Method0(void, updateSourcesForDestinationGraphNeeds); - I_Method0(void, populateDestinationGraphFromSources); - I_Method1(void, createDestination, IN, unsigned int, numLevels); - I_Method0(void, buildDestination); - I_Method0(void, writeDestination); - I_Method0(osg::Node *, getDestinationRootNode); - I_Method2(void, _writeNodeFile, IN, const osg::Node &, node, IN, const std::string &, filename); - I_Method2(void, _writeImageFile, IN, const osg::Image &, image, IN, const std::string &, filename); - I_Method1(void, setState, IN, osg::State *, state); - I_Method0(osg::State *, getState); - I_StaticMethod1(std::string, coordinateSystemStringToWTK, IN, const std::string &, coordinateSystem); - I_StaticMethod1(void, setNotifyOffset, IN, int, level); - I_StaticMethod0(int, getNotifyOffset); - I_Property(osgDB::Archive *, Archive); - I_Property(const std::string &, ArchiveName); - I_Property(const std::string &, CommentString); - I_Property(bool, ConvertFromGeographicToGeocentric); - I_Property(osgTerrain::DataSet::DatabaseType, DatabaseType); - I_Property(bool, DecorateGeneratedSceneGraphWithCoordinateSystemNode); - I_Property(bool, DecorateGeneratedSceneGraphWithMultiTextureControl); - I_Property(const osg::Vec4 &, DefaultColor); - I_Property(osg::CoordinateSystemNode *, DestinationCoordinateSystem); - I_WriteOnlyProperty(const osgTerrain::GeospatialExtents &, DestinationExtents); - I_WriteOnlyProperty(const osg::Matrixd &, DestinationGeoTransform); - I_Property(const std::string &, DestinationImageExtension); - I_WriteOnlyProperty(const std::string &, DestinationName); - I_ReadOnlyProperty(osg::Node *, DestinationRootNode); - I_Property(const std::string &, DestinationTileBaseName); - I_Property(const std::string &, DestinationTileExtension); - I_Property(const std::string &, Directory); - I_Property(osg::EllipsoidModel *, EllipsoidModel); - I_Property(osgTerrain::DataSet::GeometryType, GeometryType); - I_Property(osg::CoordinateSystemNode *, IntermediateCoordinateSystem); - I_Property(float, MaxAnisotropy); - I_Property(unsigned int, MaximumTileImageSize); - I_Property(unsigned int, MaximumTileTerrainSize); - I_Property(float, MaximumVisibleDistanceOfTopLevel); - I_Property(osgTerrain::DataSet::MipMappingMode, MipMappingMode); - I_Property(float, RadiusToMaxVisibleDistanceRatio); - I_Property(bool, SimplifyTerrain); - I_Property(float, SkirtRatio); - I_Property(osg::State *, State); - I_Property(osgTerrain::DataSet::TextureType, TextureType); - I_Property(bool, UseLocalTileTransform); - I_Property(float, VerticalScale); - I_Property(bool, WriteNodeBeforeSimplification); + I_Method1(void, insertTileToQuadMap, IN, osgTerrain::DataSet::CompositeDestination *, tile, + __void__insertTileToQuadMap__CompositeDestination_P1, + "", + ""); + I_Method3(osgTerrain::DataSet::DestinationTile *, getTile, IN, unsigned int, level, IN, unsigned int, X, IN, unsigned int, Y, + __DestinationTile_P1__getTile__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_Method3(osgTerrain::DataSet::CompositeDestination *, getComposite, IN, unsigned int, level, IN, unsigned int, X, IN, unsigned int, Y, + __CompositeDestination_P1__getComposite__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_Method2(osgTerrain::DataSet::Row &, getRow, IN, unsigned int, level, IN, unsigned int, Y, + __Row_R1__getRow__unsigned_int__unsigned_int, + "", + ""); + I_Constructor0(____DataSet, + "", + ""); + I_Method1(void, addSource, IN, osgTerrain::DataSet::Source *, source, + __void__addSource__Source_P1, + "", + ""); + I_Method1(void, addSource, IN, osgTerrain::DataSet::CompositeSource *, composite, + __void__addSource__CompositeSource_P1, + "", + ""); + I_Method0(void, loadSources, + __void__loadSources, + "", + ""); + I_Method1(void, setMaximumTileImageSize, IN, unsigned int, size, + __void__setMaximumTileImageSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumTileImageSize, + __unsigned_int__getMaximumTileImageSize, + "", + ""); + I_Method1(void, setMaximumTileTerrainSize, IN, unsigned int, size, + __void__setMaximumTileTerrainSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumTileTerrainSize, + __unsigned_int__getMaximumTileTerrainSize, + "", + ""); + I_Method1(void, setMaximumVisibleDistanceOfTopLevel, IN, float, d, + __void__setMaximumVisibleDistanceOfTopLevel__float, + "", + ""); + I_Method0(float, getMaximumVisibleDistanceOfTopLevel, + __float__getMaximumVisibleDistanceOfTopLevel, + "", + ""); + I_Method1(void, setRadiusToMaxVisibleDistanceRatio, IN, float, ratio, + __void__setRadiusToMaxVisibleDistanceRatio__float, + "", + ""); + I_Method0(float, getRadiusToMaxVisibleDistanceRatio, + __float__getRadiusToMaxVisibleDistanceRatio, + "", + ""); + I_Method1(void, setVerticalScale, IN, float, verticalScale, + __void__setVerticalScale__float, + "", + ""); + I_Method0(float, getVerticalScale, + __float__getVerticalScale, + "", + ""); + I_Method1(void, setSkirtRatio, IN, float, skirtRatio, + __void__setSkirtRatio__float, + "", + ""); + I_Method0(float, getSkirtRatio, + __float__getSkirtRatio, + "", + ""); + I_Method1(void, setDefaultColor, IN, const osg::Vec4 &, defaultColor, + __void__setDefaultColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getDefaultColor, + __C5_osg_Vec4_R1__getDefaultColor, + "", + ""); + I_Method1(void, setDestinationCoordinateSystem, IN, const std::string &, wellKnownText, + __void__setDestinationCoordinateSystem__C5_std_string_R1, + "", + ""); + I_Method1(void, setDestinationCoordinateSystem, IN, osg::CoordinateSystemNode *, cs, + __void__setDestinationCoordinateSystem__osg_CoordinateSystemNode_P1, + "", + ""); + I_Method0(osg::CoordinateSystemNode *, getDestinationCoordinateSystem, + __osg_CoordinateSystemNode_P1__getDestinationCoordinateSystem, + "", + ""); + I_Method1(void, setIntermediateCoordinateSystem, IN, const std::string &, wellKnownText, + __void__setIntermediateCoordinateSystem__C5_std_string_R1, + "", + ""); + I_Method1(void, setIntermediateCoordinateSystem, IN, osg::CoordinateSystemNode *, cs, + __void__setIntermediateCoordinateSystem__osg_CoordinateSystemNode_P1, + "", + ""); + I_Method0(osg::CoordinateSystemNode *, getIntermediateCoordinateSystem, + __osg_CoordinateSystemNode_P1__getIntermediateCoordinateSystem, + "", + ""); + I_Method1(void, setConvertFromGeographicToGeocentric, IN, bool, flag, + __void__setConvertFromGeographicToGeocentric__bool, + "", + ""); + I_Method0(bool, getConvertFromGeographicToGeocentric, + __bool__getConvertFromGeographicToGeocentric, + "", + ""); + I_Method1(void, setEllipsoidModel, IN, osg::EllipsoidModel *, et, + __void__setEllipsoidModel__osg_EllipsoidModel_P1, + "", + ""); + I_Method0(osg::EllipsoidModel *, getEllipsoidModel, + __osg_EllipsoidModel_P1__getEllipsoidModel, + "", + ""); + I_Method0(const osg::EllipsoidModel *, getEllipsoidModel, + __C5_osg_EllipsoidModel_P1__getEllipsoidModel, + "", + ""); + I_Method0(bool, mapLatLongsToXYZ, + __bool__mapLatLongsToXYZ, + "", + ""); + I_Method1(void, setDestinationExtents, IN, const osgTerrain::GeospatialExtents &, extents, + __void__setDestinationExtents__C5_GeospatialExtents_R1, + "", + ""); + I_Method1(void, setDestinationGeoTransform, IN, const osg::Matrixd &, geoTransform, + __void__setDestinationGeoTransform__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(void, setArchiveName, IN, const std::string &, filename, + __void__setArchiveName__C5_std_string_R1, + "Set the Archive name if one is to be used. ", + ""); + I_Method0(const std::string &, getArchiveName, + __C5_std_string_R1__getArchiveName, + "Get the Archive name. ", + ""); + I_Method1(void, setArchive, IN, osgDB::Archive *, archive, + __void__setArchive__osgDB_Archive_P1, + "Set the Archive. ", + ""); + I_Method0(osgDB::Archive *, getArchive, + __osgDB_Archive_P1__getArchive, + "Get the Archive if one is to being used. ", + ""); + I_Method1(void, setDestinationName, IN, const std::string &, filename, + __void__setDestinationName__C5_std_string_R1, + "Set the Directory, DestinationTileBaseName and DestinationTileExtension from the passed in filename. ", + ""); + I_Method1(void, setDirectory, IN, const std::string &, directory, + __void__setDirectory__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDirectory, + __C5_std_string_R1__getDirectory, + "", + ""); + I_Method1(void, setDestinationTileBaseName, IN, const std::string &, basename, + __void__setDestinationTileBaseName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDestinationTileBaseName, + __C5_std_string_R1__getDestinationTileBaseName, + "", + ""); + I_Method1(void, setDestinationTileExtension, IN, const std::string &, extension, + __void__setDestinationTileExtension__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDestinationTileExtension, + __C5_std_string_R1__getDestinationTileExtension, + "", + ""); + I_Method1(void, setDestinationImageExtension, IN, const std::string &, extension, + __void__setDestinationImageExtension__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDestinationImageExtension, + __C5_std_string_R1__getDestinationImageExtension, + "", + ""); + I_Method1(void, setDatabaseType, IN, osgTerrain::DataSet::DatabaseType, type, + __void__setDatabaseType__DatabaseType, + "", + ""); + I_Method0(osgTerrain::DataSet::DatabaseType, getDatabaseType, + __DatabaseType__getDatabaseType, + "", + ""); + I_Method1(void, setGeometryType, IN, osgTerrain::DataSet::GeometryType, type, + __void__setGeometryType__GeometryType, + "", + ""); + I_Method0(osgTerrain::DataSet::GeometryType, getGeometryType, + __GeometryType__getGeometryType, + "", + ""); + I_Method1(void, setTextureType, IN, osgTerrain::DataSet::TextureType, type, + __void__setTextureType__TextureType, + "", + ""); + I_Method0(osgTerrain::DataSet::TextureType, getTextureType, + __TextureType__getTextureType, + "", + ""); + I_Method1(void, setMaxAnisotropy, IN, float, d, + __void__setMaxAnisotropy__float, + "", + ""); + I_Method0(float, getMaxAnisotropy, + __float__getMaxAnisotropy, + "", + ""); + I_Method1(void, setMipMappingMode, IN, osgTerrain::DataSet::MipMappingMode, mipMappingMode, + __void__setMipMappingMode__MipMappingMode, + "", + ""); + I_Method0(osgTerrain::DataSet::MipMappingMode, getMipMappingMode, + __MipMappingMode__getMipMappingMode, + "", + ""); + I_Method1(void, setUseLocalTileTransform, IN, bool, flag, + __void__setUseLocalTileTransform__bool, + "", + ""); + I_Method0(bool, getUseLocalTileTransform, + __bool__getUseLocalTileTransform, + "", + ""); + I_Method1(void, setSimplifyTerrain, IN, bool, flag, + __void__setSimplifyTerrain__bool, + "", + ""); + I_Method0(bool, getSimplifyTerrain, + __bool__getSimplifyTerrain, + "", + ""); + I_Method1(void, setDecorateGeneratedSceneGraphWithCoordinateSystemNode, IN, bool, flag, + __void__setDecorateGeneratedSceneGraphWithCoordinateSystemNode__bool, + "", + ""); + I_Method0(bool, getDecorateGeneratedSceneGraphWithCoordinateSystemNode, + __bool__getDecorateGeneratedSceneGraphWithCoordinateSystemNode, + "", + ""); + I_Method1(void, setDecorateGeneratedSceneGraphWithMultiTextureControl, IN, bool, flag, + __void__setDecorateGeneratedSceneGraphWithMultiTextureControl__bool, + "", + ""); + I_Method0(bool, getDecorateGeneratedSceneGraphWithMultiTextureControl, + __bool__getDecorateGeneratedSceneGraphWithMultiTextureControl, + "", + ""); + I_Method0(unsigned int, getNumOfTextureLevels, + __unsigned_int__getNumOfTextureLevels, + "", + ""); + I_Method1(void, setCommentString, IN, const std::string &, comment, + __void__setCommentString__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getCommentString, + __C5_std_string_R1__getCommentString, + "", + ""); + I_Method1(void, setWriteNodeBeforeSimplification, IN, bool, flag, + __void__setWriteNodeBeforeSimplification__bool, + "", + ""); + I_Method0(bool, getWriteNodeBeforeSimplification, + __bool__getWriteNodeBeforeSimplification, + "", + ""); + I_Method9(osgTerrain::DataSet::CompositeDestination *, createDestinationGraph, IN, osgTerrain::DataSet::CompositeDestination *, parent, IN, osg::CoordinateSystemNode *, cs, IN, const osgTerrain::GeospatialExtents &, extents, IN, unsigned int, maxImageSize, IN, unsigned int, maxTerrainSize, IN, unsigned int, currentLevel, IN, unsigned int, currentX, IN, unsigned int, currentY, IN, unsigned int, maxNumLevels, + __CompositeDestination_P1__createDestinationGraph__CompositeDestination_P1__osg_CoordinateSystemNode_P1__C5_GeospatialExtents_R1__unsigned_int__unsigned_int__unsigned_int__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_Method1(void, computeDestinationGraphFromSources, IN, unsigned int, numLevels, + __void__computeDestinationGraphFromSources__unsigned_int, + "", + ""); + I_Method0(void, updateSourcesForDestinationGraphNeeds, + __void__updateSourcesForDestinationGraphNeeds, + "", + ""); + I_Method0(void, populateDestinationGraphFromSources, + __void__populateDestinationGraphFromSources, + "", + ""); + I_Method1(void, createDestination, IN, unsigned int, numLevels, + __void__createDestination__unsigned_int, + "", + ""); + I_Method0(void, buildDestination, + __void__buildDestination, + "", + ""); + I_Method0(void, writeDestination, + __void__writeDestination, + "", + ""); + I_Method0(osg::Node *, getDestinationRootNode, + __osg_Node_P1__getDestinationRootNode, + "", + ""); + I_Method2(void, _writeNodeFile, IN, const osg::Node &, node, IN, const std::string &, filename, + __void___writeNodeFile__C5_osg_Node_R1__C5_std_string_R1, + "", + ""); + I_Method2(void, _writeImageFile, IN, const osg::Image &, image, IN, const std::string &, filename, + __void___writeImageFile__C5_osg_Image_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setState, IN, osg::State *, state, + __void__setState__osg_State_P1, + "", + ""); + I_Method0(osg::State *, getState, + __osg_State_P1__getState, + "", + ""); + I_StaticMethod1(std::string, coordinateSystemStringToWTK, IN, const std::string &, coordinateSystem, + __std_string__coordinateSystemStringToWTK__C5_std_string_R1_S, + "", + ""); + I_StaticMethod1(void, setNotifyOffset, IN, int, level, + __void__setNotifyOffset__int_S, + "", + ""); + I_StaticMethod0(int, getNotifyOffset, + __int__getNotifyOffset_S, + "", + ""); + I_SimpleProperty(osgDB::Archive *, Archive, + __osgDB_Archive_P1__getArchive, + __void__setArchive__osgDB_Archive_P1); + I_SimpleProperty(const std::string &, ArchiveName, + __C5_std_string_R1__getArchiveName, + __void__setArchiveName__C5_std_string_R1); + I_SimpleProperty(const std::string &, CommentString, + __C5_std_string_R1__getCommentString, + __void__setCommentString__C5_std_string_R1); + I_SimpleProperty(bool, ConvertFromGeographicToGeocentric, + __bool__getConvertFromGeographicToGeocentric, + __void__setConvertFromGeographicToGeocentric__bool); + I_SimpleProperty(osgTerrain::DataSet::DatabaseType, DatabaseType, + __DatabaseType__getDatabaseType, + __void__setDatabaseType__DatabaseType); + I_SimpleProperty(bool, DecorateGeneratedSceneGraphWithCoordinateSystemNode, + __bool__getDecorateGeneratedSceneGraphWithCoordinateSystemNode, + __void__setDecorateGeneratedSceneGraphWithCoordinateSystemNode__bool); + I_SimpleProperty(bool, DecorateGeneratedSceneGraphWithMultiTextureControl, + __bool__getDecorateGeneratedSceneGraphWithMultiTextureControl, + __void__setDecorateGeneratedSceneGraphWithMultiTextureControl__bool); + I_SimpleProperty(const osg::Vec4 &, DefaultColor, + __C5_osg_Vec4_R1__getDefaultColor, + __void__setDefaultColor__C5_osg_Vec4_R1); + I_SimpleProperty(osg::CoordinateSystemNode *, DestinationCoordinateSystem, + __osg_CoordinateSystemNode_P1__getDestinationCoordinateSystem, + __void__setDestinationCoordinateSystem__osg_CoordinateSystemNode_P1); + I_SimpleProperty(const osgTerrain::GeospatialExtents &, DestinationExtents, + 0, + __void__setDestinationExtents__C5_GeospatialExtents_R1); + I_SimpleProperty(const osg::Matrixd &, DestinationGeoTransform, + 0, + __void__setDestinationGeoTransform__C5_osg_Matrixd_R1); + I_SimpleProperty(const std::string &, DestinationImageExtension, + __C5_std_string_R1__getDestinationImageExtension, + __void__setDestinationImageExtension__C5_std_string_R1); + I_SimpleProperty(const std::string &, DestinationName, + 0, + __void__setDestinationName__C5_std_string_R1); + I_SimpleProperty(osg::Node *, DestinationRootNode, + __osg_Node_P1__getDestinationRootNode, + 0); + I_SimpleProperty(const std::string &, DestinationTileBaseName, + __C5_std_string_R1__getDestinationTileBaseName, + __void__setDestinationTileBaseName__C5_std_string_R1); + I_SimpleProperty(const std::string &, DestinationTileExtension, + __C5_std_string_R1__getDestinationTileExtension, + __void__setDestinationTileExtension__C5_std_string_R1); + I_SimpleProperty(const std::string &, Directory, + __C5_std_string_R1__getDirectory, + __void__setDirectory__C5_std_string_R1); + I_SimpleProperty(osg::EllipsoidModel *, EllipsoidModel, + __osg_EllipsoidModel_P1__getEllipsoidModel, + __void__setEllipsoidModel__osg_EllipsoidModel_P1); + I_SimpleProperty(osgTerrain::DataSet::GeometryType, GeometryType, + __GeometryType__getGeometryType, + __void__setGeometryType__GeometryType); + I_SimpleProperty(osg::CoordinateSystemNode *, IntermediateCoordinateSystem, + __osg_CoordinateSystemNode_P1__getIntermediateCoordinateSystem, + __void__setIntermediateCoordinateSystem__osg_CoordinateSystemNode_P1); + I_SimpleProperty(float, MaxAnisotropy, + __float__getMaxAnisotropy, + __void__setMaxAnisotropy__float); + I_SimpleProperty(unsigned int, MaximumTileImageSize, + __unsigned_int__getMaximumTileImageSize, + __void__setMaximumTileImageSize__unsigned_int); + I_SimpleProperty(unsigned int, MaximumTileTerrainSize, + __unsigned_int__getMaximumTileTerrainSize, + __void__setMaximumTileTerrainSize__unsigned_int); + I_SimpleProperty(float, MaximumVisibleDistanceOfTopLevel, + __float__getMaximumVisibleDistanceOfTopLevel, + __void__setMaximumVisibleDistanceOfTopLevel__float); + I_SimpleProperty(osgTerrain::DataSet::MipMappingMode, MipMappingMode, + __MipMappingMode__getMipMappingMode, + __void__setMipMappingMode__MipMappingMode); + I_SimpleProperty(float, RadiusToMaxVisibleDistanceRatio, + __float__getRadiusToMaxVisibleDistanceRatio, + __void__setRadiusToMaxVisibleDistanceRatio__float); + I_SimpleProperty(bool, SimplifyTerrain, + __bool__getSimplifyTerrain, + __void__setSimplifyTerrain__bool); + I_SimpleProperty(float, SkirtRatio, + __float__getSkirtRatio, + __void__setSkirtRatio__float); + I_SimpleProperty(osg::State *, State, + __osg_State_P1__getState, + __void__setState__osg_State_P1); + I_SimpleProperty(osgTerrain::DataSet::TextureType, TextureType, + __TextureType__getTextureType, + __void__setTextureType__TextureType); + I_SimpleProperty(bool, UseLocalTileTransform, + __bool__getUseLocalTileTransform, + __void__setUseLocalTileTransform__bool); + I_SimpleProperty(float, VerticalScale, + __float__getVerticalScale, + __void__setVerticalScale__float); + I_SimpleProperty(bool, WriteNodeBeforeSimplification, + __bool__getWriteNodeBeforeSimplification, + __void__setWriteNodeBeforeSimplification__bool); END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgTerrain::DataSet::DestinationTile > >, osgTerrain::DataSet::CompositeDestination::TileList); @@ -200,23 +526,71 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgTerrain::DataSet::CompositeDestina BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::CompositeDestination) I_BaseType(osg::Referenced); I_BaseType(osgTerrain::DataSet::SpatialProperties); - I_Constructor0(); - I_Constructor2(IN, osg::CoordinateSystemNode *, cs, IN, const osgTerrain::GeospatialExtents &, extents); - I_Method0(void, computeNeighboursFromQuadMap); - I_Method1(void, addRequiredResolutions, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph); - I_Method1(void, readFrom, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph); - I_Method0(void, equalizeBoundaries); - I_Method0(osg::Node *, createScene); - I_Method0(bool, areSubTilesComplete); - I_Method0(std::string, getSubTileName); - I_Method0(osg::Node *, createPagedLODScene); - I_Method0(osg::Node *, createSubTileScene); - I_Method0(void, unrefSubTileData); - I_Method0(void, unrefLocalData); - I_Method1(void, setSubTilesGenerated, IN, bool, generated); - I_Method0(bool, getSubTilesGenerated); - I_ReadOnlyProperty(std::string, SubTileName); - I_Property(bool, SubTilesGenerated); + I_Constructor0(____CompositeDestination, + "", + ""); + I_Constructor2(IN, osg::CoordinateSystemNode *, cs, IN, const osgTerrain::GeospatialExtents &, extents, + ____CompositeDestination__osg_CoordinateSystemNode_P1__C5_GeospatialExtents_R1, + "", + ""); + I_Method0(void, computeNeighboursFromQuadMap, + __void__computeNeighboursFromQuadMap, + "", + ""); + I_Method1(void, addRequiredResolutions, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + __void__addRequiredResolutions__CompositeSource_P1, + "", + ""); + I_Method1(void, readFrom, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + __void__readFrom__CompositeSource_P1, + "", + ""); + I_Method0(void, equalizeBoundaries, + __void__equalizeBoundaries, + "", + ""); + I_Method0(osg::Node *, createScene, + __osg_Node_P1__createScene, + "", + ""); + I_Method0(bool, areSubTilesComplete, + __bool__areSubTilesComplete, + "", + ""); + I_Method0(std::string, getSubTileName, + __std_string__getSubTileName, + "", + ""); + I_Method0(osg::Node *, createPagedLODScene, + __osg_Node_P1__createPagedLODScene, + "", + ""); + I_Method0(osg::Node *, createSubTileScene, + __osg_Node_P1__createSubTileScene, + "", + ""); + I_Method0(void, unrefSubTileData, + __void__unrefSubTileData, + "", + ""); + I_Method0(void, unrefLocalData, + __void__unrefLocalData, + "", + ""); + I_Method1(void, setSubTilesGenerated, IN, bool, generated, + __void__setSubTilesGenerated__bool, + "", + ""); + I_Method0(bool, getSubTilesGenerated, + __bool__getSubTilesGenerated, + "", + ""); + I_SimpleProperty(std::string, SubTileName, + __std_string__getSubTileName, + 0); + I_SimpleProperty(bool, SubTilesGenerated, + __bool__getSubTilesGenerated, + __void__setSubTilesGenerated__bool); I_PublicMemberProperty(osgTerrain::DataSet *, _dataSet); I_PublicMemberProperty(osgTerrain::DataSet::CompositeDestination *, _parent); I_PublicMemberProperty(std::string, _name); @@ -241,21 +615,46 @@ TYPE_NAME_ALIAS(osgTerrain::DataSet::CompositeSource::base_source_iterator< osgT BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::CompositeSource) I_BaseType(osg::Referenced); I_BaseType(osgTerrain::DataSet::SpatialProperties); - I_ConstructorWithDefaults1(IN, osgTerrain::DataSet::CompositeType, type, osgTerrain::DataSet::GROUP); - I_Method1(void, setType, IN, osgTerrain::DataSet::CompositeType, type); - I_Method0(osgTerrain::DataSet::CompositeType, getType); - I_Method0(void, setSortValueFromSourceDataResolution); - I_Method0(void, sort); - I_Property(osgTerrain::DataSet::CompositeType, Type); + I_ConstructorWithDefaults1(IN, osgTerrain::DataSet::CompositeType, type, osgTerrain::DataSet::GROUP, + ____CompositeSource__CompositeType, + "", + ""); + I_Method1(void, setType, IN, osgTerrain::DataSet::CompositeType, type, + __void__setType__CompositeType, + "", + ""); + I_Method0(osgTerrain::DataSet::CompositeType, getType, + __CompositeType__getType, + "", + ""); + I_Method0(void, setSortValueFromSourceDataResolution, + __void__setSortValueFromSourceDataResolution, + "", + ""); + I_Method0(void, sort, + __void__sort, + "", + ""); + I_SimpleProperty(osgTerrain::DataSet::CompositeType, Type, + __CompositeType__getType, + __void__setType__CompositeType); I_PublicMemberProperty(osgTerrain::DataSet::CompositeType, _type); I_PublicMemberProperty(osgTerrain::DataSet::CompositeSource::SourceList, _sourceList); I_PublicMemberProperty(osgTerrain::DataSet::CompositeSource::ChildList, _children); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer) - I_Constructor0(); - I_Method2(bool, isActive, IN, const osgTerrain::DataSet::CompositeSource &, x, IN, int, x); - I_Method2(bool, advanceToNextSource, IN, const osgTerrain::DataSet::CompositeSource &, composite, IN, int &, index); + I_Constructor0(____DefaultSourceAdvancer, + "", + ""); + I_Method2(bool, isActive, IN, const osgTerrain::DataSet::CompositeSource &, x, IN, int, x, + __bool__isActive__C5_CompositeSource_R1__int, + "", + ""); + I_Method2(bool, advanceToNextSource, IN, const osgTerrain::DataSet::CompositeSource &, composite, IN, int &, index, + __bool__advanceToNextSource__C5_CompositeSource_R1__int_R1, + "", + ""); END_REFLECTOR BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::CompositeSource::iterator::IteratorMode) @@ -264,15 +663,33 @@ BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::CompositeSource::iterator::IteratorMod END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::iterator) - I_ConstructorWithDefaults2(IN, osgTerrain::DataSet::CompositeSource *, composite, 0, IN, osgTerrain::DataSet::CompositeSource::iterator::IteratorMode, mode, osgTerrain::DataSet::CompositeSource::iterator::ALL); - I_Constructor1(IN, const osgTerrain::DataSet::CompositeSource::iterator &, rhs); - I_Method0(bool, valid); - I_Method0(bool, advance); + I_ConstructorWithDefaults2(IN, osgTerrain::DataSet::CompositeSource *, composite, 0, IN, osgTerrain::DataSet::CompositeSource::iterator::IteratorMode, mode, osgTerrain::DataSet::CompositeSource::iterator::ALL, + ____iterator__CompositeSource_P1__IteratorMode, + "", + ""); + I_Constructor1(IN, const osgTerrain::DataSet::CompositeSource::iterator &, rhs, + ____iterator__C5_iterator_R1, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(bool, advance, + __bool__advance, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::LODSourceAdvancer) - I_ConstructorWithDefaults1(IN, float, targetResolution, 0.0f); - I_Method2(bool, advanceToNextSource, IN, const osgTerrain::DataSet::CompositeSource &, composite, IN, int &, index); + I_ConstructorWithDefaults1(IN, float, targetResolution, 0.0f, + ____LODSourceAdvancer__float, + "", + ""); + I_Method2(bool, advanceToNextSource, IN, const osgTerrain::DataSet::CompositeSource &, composite, IN, int &, index, + __bool__advanceToNextSource__C5_CompositeSource_R1__int_R1, + "", + ""); I_PublicMemberProperty(float, _targetResolution); END_REFLECTOR @@ -282,7 +699,10 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Node > >, osgTerrain::DataSet::D BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::DestinationData) I_BaseType(osg::Referenced); - I_Constructor1(IN, osgTerrain::DataSet *, dataSet); + I_Constructor1(IN, osgTerrain::DataSet *, dataSet, + ____DestinationData__DataSet_P1, + "", + ""); I_PublicMemberProperty(osgTerrain::DataSet *, _dataSet); I_PublicMemberProperty(float, _minDistance); I_PublicMemberProperty(float, _maxDistance); @@ -308,32 +728,108 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::DestinationTile) I_BaseType(osg::Referenced); I_BaseType(osgTerrain::DataSet::SpatialProperties); - I_Constructor0(); - I_Method0(void, computeNeighboursFromQuadMap); - I_Method8(void, setNeighbours, IN, osgTerrain::DataSet::DestinationTile *, left, IN, osgTerrain::DataSet::DestinationTile *, left_below, IN, osgTerrain::DataSet::DestinationTile *, below, IN, osgTerrain::DataSet::DestinationTile *, below_right, IN, osgTerrain::DataSet::DestinationTile *, right, IN, osgTerrain::DataSet::DestinationTile *, right_above, IN, osgTerrain::DataSet::DestinationTile *, above, IN, osgTerrain::DataSet::DestinationTile *, above_left); - I_Method0(void, checkNeighbouringTiles); - I_Method2(void, setMaximumImagerySize, IN, unsigned int, maxNumColumns, IN, unsigned int, maxNumRows); - I_Method2(void, setMaximumTerrainSize, IN, unsigned int, maxNumColumns, IN, unsigned int, maxNumRows); - I_Method1(void, computeMaximumSourceResolution, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph); - I_Method5(bool, computeImageResolution, IN, unsigned int, layer, IN, unsigned int &, numColumns, IN, unsigned int &, numRows, IN, double &, resX, IN, double &, resY); - I_Method4(bool, computeTerrainResolution, IN, unsigned int &, numColumns, IN, unsigned int &, numRows, IN, double &, resX, IN, double &, resY); - I_Method0(void, allocate); - I_Method1(void, addRequiredResolutions, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph); - I_Method1(void, readFrom, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph); - I_Method0(void, allocateEdgeNormals); - I_Method1(void, equalizeCorner, IN, osgTerrain::DataSet::DestinationTile::Position, position); - I_Method1(void, equalizeEdge, IN, osgTerrain::DataSet::DestinationTile::Position, position); - I_Method0(void, equalizeBoundaries); - I_Method1(void, setTileComplete, IN, bool, complete); - I_Method0(bool, getTileComplete); - I_Method0(void, optimizeResolution); - I_Method0(osg::Node *, createScene); - I_Method0(osg::StateSet *, createStateSet); - I_Method0(osg::Node *, createHeightField); - I_Method0(osg::Node *, createPolygonal); - I_Method0(void, unrefData); - I_Method1(osgTerrain::DataSet::DestinationTile::ImageData &, getImageData, IN, unsigned int, layer); - I_Property(bool, TileComplete); + I_Constructor0(____DestinationTile, + "", + ""); + I_Method0(void, computeNeighboursFromQuadMap, + __void__computeNeighboursFromQuadMap, + "", + ""); + I_Method8(void, setNeighbours, IN, osgTerrain::DataSet::DestinationTile *, left, IN, osgTerrain::DataSet::DestinationTile *, left_below, IN, osgTerrain::DataSet::DestinationTile *, below, IN, osgTerrain::DataSet::DestinationTile *, below_right, IN, osgTerrain::DataSet::DestinationTile *, right, IN, osgTerrain::DataSet::DestinationTile *, right_above, IN, osgTerrain::DataSet::DestinationTile *, above, IN, osgTerrain::DataSet::DestinationTile *, above_left, + __void__setNeighbours__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1, + "", + ""); + I_Method0(void, checkNeighbouringTiles, + __void__checkNeighbouringTiles, + "", + ""); + I_Method2(void, setMaximumImagerySize, IN, unsigned int, maxNumColumns, IN, unsigned int, maxNumRows, + __void__setMaximumImagerySize__unsigned_int__unsigned_int, + "", + ""); + I_Method2(void, setMaximumTerrainSize, IN, unsigned int, maxNumColumns, IN, unsigned int, maxNumRows, + __void__setMaximumTerrainSize__unsigned_int__unsigned_int, + "", + ""); + I_Method1(void, computeMaximumSourceResolution, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + __void__computeMaximumSourceResolution__CompositeSource_P1, + "", + ""); + I_Method5(bool, computeImageResolution, IN, unsigned int, layer, IN, unsigned int &, numColumns, IN, unsigned int &, numRows, IN, double &, resX, IN, double &, resY, + __bool__computeImageResolution__unsigned_int__unsigned_int_R1__unsigned_int_R1__double_R1__double_R1, + "", + ""); + I_Method4(bool, computeTerrainResolution, IN, unsigned int &, numColumns, IN, unsigned int &, numRows, IN, double &, resX, IN, double &, resY, + __bool__computeTerrainResolution__unsigned_int_R1__unsigned_int_R1__double_R1__double_R1, + "", + ""); + I_Method0(void, allocate, + __void__allocate, + "", + ""); + I_Method1(void, addRequiredResolutions, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + __void__addRequiredResolutions__CompositeSource_P1, + "", + ""); + I_Method1(void, readFrom, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + __void__readFrom__CompositeSource_P1, + "", + ""); + I_Method0(void, allocateEdgeNormals, + __void__allocateEdgeNormals, + "", + ""); + I_Method1(void, equalizeCorner, IN, osgTerrain::DataSet::DestinationTile::Position, position, + __void__equalizeCorner__Position, + "", + ""); + I_Method1(void, equalizeEdge, IN, osgTerrain::DataSet::DestinationTile::Position, position, + __void__equalizeEdge__Position, + "", + ""); + I_Method0(void, equalizeBoundaries, + __void__equalizeBoundaries, + "", + ""); + I_Method1(void, setTileComplete, IN, bool, complete, + __void__setTileComplete__bool, + "", + ""); + I_Method0(bool, getTileComplete, + __bool__getTileComplete, + "", + ""); + I_Method0(void, optimizeResolution, + __void__optimizeResolution, + "", + ""); + I_Method0(osg::Node *, createScene, + __osg_Node_P1__createScene, + "", + ""); + I_Method0(osg::StateSet *, createStateSet, + __osg_StateSet_P1__createStateSet, + "", + ""); + I_Method0(osg::Node *, createHeightField, + __osg_Node_P1__createHeightField, + "", + ""); + I_Method0(osg::Node *, createPolygonal, + __osg_Node_P1__createPolygonal, + "", + ""); + I_Method0(void, unrefData, + __void__unrefData, + "", + ""); + I_Method1(osgTerrain::DataSet::DestinationTile::ImageData &, getImageData, IN, unsigned int, layer, + __ImageData_R1__getImageData__unsigned_int, + "", + ""); + I_SimpleProperty(bool, TileComplete, + __bool__getTileComplete, + __void__setTileComplete__bool); I_PublicMemberProperty(osgTerrain::DataSet *, _dataSet); I_PublicMemberProperty(std::string, _name); I_PublicMemberProperty(unsigned int, _level); @@ -354,7 +850,9 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::DestinationTile) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::DestinationTile::ImageData) - I_Constructor0(); + I_Constructor0(____ImageData, + "", + ""); I_PublicMemberProperty(float, _imagery_maxSourceResolutionX); I_PublicMemberProperty(float, _imagery_maxSourceResolutionY); I_PublicMemberProperty(osg::ref_ptr< osgTerrain::DataSet::DestinationData >, _imagery); @@ -377,70 +875,237 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::Source) I_BaseType(osg::Referenced); I_BaseType(osgTerrain::DataSet::SpatialProperties); - I_Constructor0(); - I_Constructor2(IN, osgTerrain::DataSet::Source::Type, type, IN, const std::string &, filename); - I_Method1(void, setSortValue, IN, double, s); - I_Method0(double, getSortValue); - I_Method0(void, setSortValueFromSourceDataResolution); - I_Method1(void, setType, IN, osgTerrain::DataSet::Source::Type, type); - I_Method0(osgTerrain::DataSet::Source::Type, getType); - I_Method1(void, setFileName, IN, const std::string &, filename); - I_Method0(const std::string &, getFileName); - I_Method1(void, setTemporaryFile, IN, bool, temporaryFile); - I_Method0(bool, getTemporaryFile); - I_Method1(void, setGdalDataset, IN, void *, gdalDataset); - I_Method0(void *, getGdalDataset); - I_Method0(const void *, getGdalDataset); - I_Method1(void, setCoordinateSystemPolicy, IN, osgTerrain::DataSet::Source::ParameterPolicy, policy); - I_Method0(osgTerrain::DataSet::Source::ParameterPolicy, getCoordinateSystemPolicy); - I_Method1(void, setCoordinateSystem, IN, const std::string &, wellKnownText); - I_Method1(void, setCoordinateSystem, IN, osg::CoordinateSystemNode *, cs); - I_Method0(osg::CoordinateSystemNode *, getCoordinateSystem); - I_Method1(void, setGeoTransformPolicy, IN, osgTerrain::DataSet::Source::ParameterPolicy, policy); - I_Method0(osgTerrain::DataSet::Source::ParameterPolicy, getGeoTransformPolicy); - I_Method1(void, setGeoTransform, IN, osg::Matrixd &, transform); - I_Method0(osg::Matrixd &, getGeoTransform); - I_Method4(void, setGeoTransformFromRange, IN, double, xMin, IN, double, xMax, IN, double, yMin, IN, double, yMax); - I_Method0(void, assignCoordinateSystemAndGeoTransformAccordingToParameterPolicy); - I_Method1(void, setMinLevel, IN, unsigned int, minLevel); - I_Method1(void, setMaxLevel, IN, unsigned int, maxLevel); - I_Method2(void, setMinMaxLevel, IN, unsigned int, minLevel, IN, unsigned int, maxLevel); - I_Method0(unsigned int, getMinLevel); - I_Method0(unsigned int, getMaxLevel); - I_Method1(void, setLayer, IN, unsigned int, layer); - I_Method0(unsigned int, getLayer); - I_Method1(void, setSourceData, IN, osgTerrain::DataSet::SourceData *, data); - I_Method0(osgTerrain::DataSet::SourceData *, getSourceData); - I_Method1(bool, intersects, IN, const osgTerrain::DataSet::SpatialProperties &, sp); - I_Method0(void, loadSourceData); - I_Method1(bool, needReproject, IN, const osg::CoordinateSystemNode *, cs); - I_Method3(bool, needReproject, IN, const osg::CoordinateSystemNode *, cs, IN, double, minResolution, IN, double, maxResolution); - I_MethodWithDefaults3(osgTerrain::DataSet::Source *, doReproject, IN, const std::string &, filename, , IN, osg::CoordinateSystemNode *, cs, , IN, double, targetResolution, 0.0); - I_Method0(void, buildOverviews); - I_Method2(void, addRequiredResolution, IN, double, resX, IN, double, resY); - I_Method1(void, setRequiredResolutions, IN, osgTerrain::DataSet::Source::ResolutionList &, resolutions); - I_Method0(osgTerrain::DataSet::Source::ResolutionList &, getRequiredResolutions); - I_Method0(const osgTerrain::DataSet::Source::ResolutionList &, getRequiredResolutions); - I_Method0(void, consolodateRequiredResolutions); - I_Property(osg::CoordinateSystemNode *, CoordinateSystem); - I_Property(osgTerrain::DataSet::Source::ParameterPolicy, CoordinateSystemPolicy); - I_Property(const std::string &, FileName); - I_Property(void *, GdalDataset); - I_Property(osg::Matrixd &, GeoTransform); - I_Property(osgTerrain::DataSet::Source::ParameterPolicy, GeoTransformPolicy); - I_Property(unsigned int, Layer); - I_Property(unsigned int, MaxLevel); - I_Property(unsigned int, MinLevel); - I_Property(osgTerrain::DataSet::Source::ResolutionList &, RequiredResolutions); - I_Property(double, SortValue); - I_Property(osgTerrain::DataSet::SourceData *, SourceData); - I_Property(bool, TemporaryFile); - I_Property(osgTerrain::DataSet::Source::Type, Type); + I_Constructor0(____Source, + "", + ""); + I_Constructor2(IN, osgTerrain::DataSet::Source::Type, type, IN, const std::string &, filename, + ____Source__Type__C5_std_string_R1, + "", + ""); + I_Method1(void, setSortValue, IN, double, s, + __void__setSortValue__double, + "", + ""); + I_Method0(double, getSortValue, + __double__getSortValue, + "", + ""); + I_Method0(void, setSortValueFromSourceDataResolution, + __void__setSortValueFromSourceDataResolution, + "", + ""); + I_Method1(void, setType, IN, osgTerrain::DataSet::Source::Type, type, + __void__setType__Type, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::Type, getType, + __Type__getType, + "", + ""); + I_Method1(void, setFileName, IN, const std::string &, filename, + __void__setFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getFileName, + __C5_std_string_R1__getFileName, + "", + ""); + I_Method1(void, setTemporaryFile, IN, bool, temporaryFile, + __void__setTemporaryFile__bool, + "", + ""); + I_Method0(bool, getTemporaryFile, + __bool__getTemporaryFile, + "", + ""); + I_Method1(void, setGdalDataset, IN, void *, gdalDataset, + __void__setGdalDataset__void_P1, + "", + ""); + I_Method0(void *, getGdalDataset, + __void_P1__getGdalDataset, + "", + ""); + I_Method0(const void *, getGdalDataset, + __C5_void_P1__getGdalDataset, + "", + ""); + I_Method1(void, setCoordinateSystemPolicy, IN, osgTerrain::DataSet::Source::ParameterPolicy, policy, + __void__setCoordinateSystemPolicy__ParameterPolicy, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::ParameterPolicy, getCoordinateSystemPolicy, + __ParameterPolicy__getCoordinateSystemPolicy, + "", + ""); + I_Method1(void, setCoordinateSystem, IN, const std::string &, wellKnownText, + __void__setCoordinateSystem__C5_std_string_R1, + "", + ""); + I_Method1(void, setCoordinateSystem, IN, osg::CoordinateSystemNode *, cs, + __void__setCoordinateSystem__osg_CoordinateSystemNode_P1, + "", + ""); + I_Method0(osg::CoordinateSystemNode *, getCoordinateSystem, + __osg_CoordinateSystemNode_P1__getCoordinateSystem, + "", + ""); + I_Method1(void, setGeoTransformPolicy, IN, osgTerrain::DataSet::Source::ParameterPolicy, policy, + __void__setGeoTransformPolicy__ParameterPolicy, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::ParameterPolicy, getGeoTransformPolicy, + __ParameterPolicy__getGeoTransformPolicy, + "", + ""); + I_Method1(void, setGeoTransform, IN, osg::Matrixd &, transform, + __void__setGeoTransform__osg_Matrixd_R1, + "", + ""); + I_Method0(osg::Matrixd &, getGeoTransform, + __osg_Matrixd_R1__getGeoTransform, + "", + ""); + I_Method4(void, setGeoTransformFromRange, IN, double, xMin, IN, double, xMax, IN, double, yMin, IN, double, yMax, + __void__setGeoTransformFromRange__double__double__double__double, + "", + ""); + I_Method0(void, assignCoordinateSystemAndGeoTransformAccordingToParameterPolicy, + __void__assignCoordinateSystemAndGeoTransformAccordingToParameterPolicy, + "", + ""); + I_Method1(void, setMinLevel, IN, unsigned int, minLevel, + __void__setMinLevel__unsigned_int, + "", + ""); + I_Method1(void, setMaxLevel, IN, unsigned int, maxLevel, + __void__setMaxLevel__unsigned_int, + "", + ""); + I_Method2(void, setMinMaxLevel, IN, unsigned int, minLevel, IN, unsigned int, maxLevel, + __void__setMinMaxLevel__unsigned_int__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMinLevel, + __unsigned_int__getMinLevel, + "", + ""); + I_Method0(unsigned int, getMaxLevel, + __unsigned_int__getMaxLevel, + "", + ""); + I_Method1(void, setLayer, IN, unsigned int, layer, + __void__setLayer__unsigned_int, + "", + ""); + I_Method0(unsigned int, getLayer, + __unsigned_int__getLayer, + "", + ""); + I_Method1(void, setSourceData, IN, osgTerrain::DataSet::SourceData *, data, + __void__setSourceData__SourceData_P1, + "", + ""); + I_Method0(osgTerrain::DataSet::SourceData *, getSourceData, + __SourceData_P1__getSourceData, + "", + ""); + I_Method1(bool, intersects, IN, const osgTerrain::DataSet::SpatialProperties &, sp, + __bool__intersects__C5_SpatialProperties_R1, + "", + ""); + I_Method0(void, loadSourceData, + __void__loadSourceData, + "", + ""); + I_Method1(bool, needReproject, IN, const osg::CoordinateSystemNode *, cs, + __bool__needReproject__C5_osg_CoordinateSystemNode_P1, + "", + ""); + I_Method3(bool, needReproject, IN, const osg::CoordinateSystemNode *, cs, IN, double, minResolution, IN, double, maxResolution, + __bool__needReproject__C5_osg_CoordinateSystemNode_P1__double__double, + "", + ""); + I_MethodWithDefaults3(osgTerrain::DataSet::Source *, doReproject, IN, const std::string &, filename, , IN, osg::CoordinateSystemNode *, cs, , IN, double, targetResolution, 0.0, + __Source_P1__doReproject__C5_std_string_R1__osg_CoordinateSystemNode_P1__double, + "", + ""); + I_Method0(void, buildOverviews, + __void__buildOverviews, + "", + ""); + I_Method2(void, addRequiredResolution, IN, double, resX, IN, double, resY, + __void__addRequiredResolution__double__double, + "", + ""); + I_Method1(void, setRequiredResolutions, IN, osgTerrain::DataSet::Source::ResolutionList &, resolutions, + __void__setRequiredResolutions__ResolutionList_R1, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::ResolutionList &, getRequiredResolutions, + __ResolutionList_R1__getRequiredResolutions, + "", + ""); + I_Method0(const osgTerrain::DataSet::Source::ResolutionList &, getRequiredResolutions, + __C5_ResolutionList_R1__getRequiredResolutions, + "", + ""); + I_Method0(void, consolodateRequiredResolutions, + __void__consolodateRequiredResolutions, + "", + ""); + I_SimpleProperty(osg::CoordinateSystemNode *, CoordinateSystem, + __osg_CoordinateSystemNode_P1__getCoordinateSystem, + __void__setCoordinateSystem__osg_CoordinateSystemNode_P1); + I_SimpleProperty(osgTerrain::DataSet::Source::ParameterPolicy, CoordinateSystemPolicy, + __ParameterPolicy__getCoordinateSystemPolicy, + __void__setCoordinateSystemPolicy__ParameterPolicy); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(void *, GdalDataset, + __void_P1__getGdalDataset, + __void__setGdalDataset__void_P1); + I_SimpleProperty(osg::Matrixd &, GeoTransform, + __osg_Matrixd_R1__getGeoTransform, + __void__setGeoTransform__osg_Matrixd_R1); + I_SimpleProperty(osgTerrain::DataSet::Source::ParameterPolicy, GeoTransformPolicy, + __ParameterPolicy__getGeoTransformPolicy, + __void__setGeoTransformPolicy__ParameterPolicy); + I_SimpleProperty(unsigned int, Layer, + __unsigned_int__getLayer, + __void__setLayer__unsigned_int); + I_SimpleProperty(unsigned int, MaxLevel, + __unsigned_int__getMaxLevel, + __void__setMaxLevel__unsigned_int); + I_SimpleProperty(unsigned int, MinLevel, + __unsigned_int__getMinLevel, + __void__setMinLevel__unsigned_int); + I_SimpleProperty(osgTerrain::DataSet::Source::ResolutionList &, RequiredResolutions, + __ResolutionList_R1__getRequiredResolutions, + __void__setRequiredResolutions__ResolutionList_R1); + I_SimpleProperty(double, SortValue, + __double__getSortValue, + __void__setSortValue__double); + I_SimpleProperty(osgTerrain::DataSet::SourceData *, SourceData, + __SourceData_P1__getSourceData, + __void__setSourceData__SourceData_P1); + I_SimpleProperty(bool, TemporaryFile, + __bool__getTemporaryFile, + __void__setTemporaryFile__bool); + I_SimpleProperty(osgTerrain::DataSet::Source::Type, Type, + __Type__getType, + __void__setType__Type); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::Source::ResolutionPair) - I_Constructor0(); - I_Constructor2(IN, double, x, IN, double, y); + I_Constructor0(____ResolutionPair, + "", + ""); + I_Constructor2(IN, double, x, IN, double, y, + ____ResolutionPair__double__double, + "", + ""); I_PublicMemberProperty(double, _resX); I_PublicMemberProperty(double, _resY); END_REFLECTOR @@ -450,16 +1115,46 @@ TYPE_NAME_ALIAS(std::map< const osg::CoordinateSystemNode * COMMA osgTerrain::D BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::SourceData) I_BaseType(osg::Referenced); I_BaseType(osgTerrain::DataSet::SpatialProperties); - I_ConstructorWithDefaults1(IN, osgTerrain::DataSet::Source *, source, 0); - I_Method1(osgTerrain::GeospatialExtents, getExtents, IN, const osg::CoordinateSystemNode *, cs); - I_Method1(const osgTerrain::DataSet::SpatialProperties &, computeSpatialProperties, IN, const osg::CoordinateSystemNode *, cs); - I_Method1(bool, intersects, IN, const osgTerrain::DataSet::SpatialProperties &, sp); - I_Method1(void, read, IN, osgTerrain::DataSet::DestinationData &, destination); - I_Method1(void, readImage, IN, osgTerrain::DataSet::DestinationData &, destination); - I_Method1(void, readHeightField, IN, osgTerrain::DataSet::DestinationData &, destination); - I_Method1(void, readModels, IN, osgTerrain::DataSet::DestinationData &, destination); - I_Method3(float, getInterpolatedValue, IN, GDALRasterBand *, band, IN, double, x, IN, double, y); - I_StaticMethod1(osgTerrain::DataSet::SourceData *, readData, IN, osgTerrain::DataSet::Source *, source); + I_ConstructorWithDefaults1(IN, osgTerrain::DataSet::Source *, source, 0, + ____SourceData__Source_P1, + "", + ""); + I_Method1(osgTerrain::GeospatialExtents, getExtents, IN, const osg::CoordinateSystemNode *, cs, + __GeospatialExtents__getExtents__C5_osg_CoordinateSystemNode_P1, + "", + ""); + I_Method1(const osgTerrain::DataSet::SpatialProperties &, computeSpatialProperties, IN, const osg::CoordinateSystemNode *, cs, + __C5_SpatialProperties_R1__computeSpatialProperties__C5_osg_CoordinateSystemNode_P1, + "", + ""); + I_Method1(bool, intersects, IN, const osgTerrain::DataSet::SpatialProperties &, sp, + __bool__intersects__C5_SpatialProperties_R1, + "", + ""); + I_Method1(void, read, IN, osgTerrain::DataSet::DestinationData &, destination, + __void__read__DestinationData_R1, + "", + ""); + I_Method1(void, readImage, IN, osgTerrain::DataSet::DestinationData &, destination, + __void__readImage__DestinationData_R1, + "", + ""); + I_Method1(void, readHeightField, IN, osgTerrain::DataSet::DestinationData &, destination, + __void__readHeightField__DestinationData_R1, + "", + ""); + I_Method1(void, readModels, IN, osgTerrain::DataSet::DestinationData &, destination, + __void__readModels__DestinationData_R1, + "", + ""); + I_Method3(float, getInterpolatedValue, IN, GDALRasterBand *, band, IN, double, x, IN, double, y, + __float__getInterpolatedValue__GDALRasterBand_P1__double__double, + "", + ""); + I_StaticMethod1(osgTerrain::DataSet::SourceData *, readData, IN, osgTerrain::DataSet::Source *, source, + __SourceData_P1__readData__Source_P1_S, + "", + ""); I_PublicMemberProperty(osgTerrain::DataSet::Source *, _source); I_PublicMemberProperty(bool, _hasGCPs); I_PublicMemberProperty(osg::ref_ptr< osg::Node >, _model); @@ -468,11 +1163,25 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::SourceData) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::SpatialProperties) - I_Constructor0(); - I_Constructor1(IN, const osgTerrain::DataSet::SpatialProperties &, sp); - I_Constructor2(IN, osg::CoordinateSystemNode *, cs, IN, const osgTerrain::GeospatialExtents &, extents); - I_Method1(osgTerrain::DataSet::SpatialProperties &, assignSpatialProperties, IN, const osgTerrain::DataSet::SpatialProperties &, sp); - I_Method0(void, computeExtents); + I_Constructor0(____SpatialProperties, + "", + ""); + I_Constructor1(IN, const osgTerrain::DataSet::SpatialProperties &, sp, + ____SpatialProperties__C5_SpatialProperties_R1, + "", + ""); + I_Constructor2(IN, osg::CoordinateSystemNode *, cs, IN, const osgTerrain::GeospatialExtents &, extents, + ____SpatialProperties__osg_CoordinateSystemNode_P1__C5_GeospatialExtents_R1, + "", + ""); + I_Method1(osgTerrain::DataSet::SpatialProperties &, assignSpatialProperties, IN, const osgTerrain::DataSet::SpatialProperties &, sp, + __SpatialProperties_R1__assignSpatialProperties__C5_SpatialProperties_R1, + "", + ""); + I_Method0(void, computeExtents, + __void__computeExtents, + "", + ""); I_PublicMemberProperty(osg::ref_ptr< osg::CoordinateSystemNode >, _cs); I_PublicMemberProperty(osg::Matrixd, _geoTransform); I_PublicMemberProperty(osgTerrain::GeospatialExtents, _extents); @@ -482,97 +1191,287 @@ BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::SpatialProperties) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgTerrain::GeospatialExtents) - I_Constructor0(); - I_Constructor5(IN, double, xmin, IN, double, ymin, IN, double, xmax, IN, double, ymax, IN, bool, isGeographic); - I_Method0(double &, xMin); - I_Method0(double, xMin); - I_Method0(double &, yMin); - I_Method0(double, yMin); - I_Method0(double &, xMax); - I_Method0(double, xMax); - I_Method0(double &, yMax); - I_Method0(double, yMax); - I_Method0(void, init); - I_Method0(bool, valid); - I_Method0(double, radius); - I_Method0(double, radius2); - I_Method2(osgTerrain::GeospatialExtents, intersection, IN, const osgTerrain::GeospatialExtents &, e, IN, double, xoffset); - I_Method1(bool, intersects, IN, const osgTerrain::GeospatialExtents &, bb); - I_Method1(void, expandBy, IN, const osg::BoundingSphere &, sh); - I_Method1(void, expandBy, IN, const osg::Vec3 &, v); - I_Method1(void, expandBy, IN, const osgTerrain::GeospatialExtents &, e); + I_Constructor0(____GeospatialExtents, + "", + ""); + I_Constructor5(IN, double, xmin, IN, double, ymin, IN, double, xmax, IN, double, ymax, IN, bool, isGeographic, + ____GeospatialExtents__double__double__double__double__bool, + "", + ""); + I_Method0(double &, xMin, + __double_R1__xMin, + "", + ""); + I_Method0(double, xMin, + __double__xMin, + "", + ""); + I_Method0(double &, yMin, + __double_R1__yMin, + "", + ""); + I_Method0(double, yMin, + __double__yMin, + "", + ""); + I_Method0(double &, xMax, + __double_R1__xMax, + "", + ""); + I_Method0(double, xMax, + __double__xMax, + "", + ""); + I_Method0(double &, yMax, + __double_R1__yMax, + "", + ""); + I_Method0(double, yMax, + __double__yMax, + "", + ""); + I_Method0(void, init, + __void__init, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(double, radius, + __double__radius, + "", + ""); + I_Method0(double, radius2, + __double__radius2, + "", + ""); + I_Method2(osgTerrain::GeospatialExtents, intersection, IN, const osgTerrain::GeospatialExtents &, e, IN, double, xoffset, + __GeospatialExtents__intersection__C5_GeospatialExtents_R1__double, + "", + ""); + I_Method1(bool, intersects, IN, const osgTerrain::GeospatialExtents &, bb, + __bool__intersects__C5_GeospatialExtents_R1, + "Return true if this bounding box intersects the specified bounding box. ", + ""); + I_Method1(void, expandBy, IN, const osg::BoundingSphere &, sh, + __void__expandBy__C5_osg_BoundingSphere_R1, + "", + ""); + I_Method1(void, expandBy, IN, const osg::Vec3 &, v, + __void__expandBy__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, expandBy, IN, const osgTerrain::GeospatialExtents &, e, + __void__expandBy__C5_GeospatialExtents_R1, + "", + ""); I_PublicMemberProperty(osg::Vec2d, _min); I_PublicMemberProperty(osg::Vec2d, _max); I_PublicMemberProperty(bool, _isGeographic); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Image >) - I_Constructor0(); - I_Constructor1(IN, osg::Image *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osg::Image > &, rp); - I_Method0(osg::Image *, get); - I_Method0(bool, valid); - I_Method0(osg::Image *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osg::Image > &, rp); - I_ReadOnlyProperty(osg::Image *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Image *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Image > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Image *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osg::Image *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Image > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Image *, , + __T_P1__get, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgTerrain::DataSet::CompositeDestination >) - I_Constructor0(); - I_Constructor1(IN, osgTerrain::DataSet::CompositeDestination *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::CompositeDestination > &, rp); - I_Method0(osgTerrain::DataSet::CompositeDestination *, get); - I_Method0(bool, valid); - I_Method0(osgTerrain::DataSet::CompositeDestination *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::CompositeDestination > &, rp); - I_ReadOnlyProperty(osgTerrain::DataSet::CompositeDestination *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgTerrain::DataSet::CompositeDestination *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::CompositeDestination > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgTerrain::DataSet::CompositeDestination *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osgTerrain::DataSet::CompositeDestination *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::CompositeDestination > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgTerrain::DataSet::CompositeDestination *, , + __T_P1__get, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgTerrain::DataSet::CompositeSource >) - I_Constructor0(); - I_Constructor1(IN, osgTerrain::DataSet::CompositeSource *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::CompositeSource > &, rp); - I_Method0(osgTerrain::DataSet::CompositeSource *, get); - I_Method0(bool, valid); - I_Method0(osgTerrain::DataSet::CompositeSource *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::CompositeSource > &, rp); - I_ReadOnlyProperty(osgTerrain::DataSet::CompositeSource *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgTerrain::DataSet::CompositeSource *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::CompositeSource > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgTerrain::DataSet::CompositeSource *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osgTerrain::DataSet::CompositeSource *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::CompositeSource > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgTerrain::DataSet::CompositeSource *, , + __T_P1__get, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgTerrain::DataSet::DestinationTile >) - I_Constructor0(); - I_Constructor1(IN, osgTerrain::DataSet::DestinationTile *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::DestinationTile > &, rp); - I_Method0(osgTerrain::DataSet::DestinationTile *, get); - I_Method0(bool, valid); - I_Method0(osgTerrain::DataSet::DestinationTile *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::DestinationTile > &, rp); - I_ReadOnlyProperty(osgTerrain::DataSet::DestinationTile *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgTerrain::DataSet::DestinationTile *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::DestinationTile > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgTerrain::DataSet::DestinationTile *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osgTerrain::DataSet::DestinationTile *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::DestinationTile > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgTerrain::DataSet::DestinationTile *, , + __T_P1__get, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgTerrain::DataSet::Source >) - I_Constructor0(); - I_Constructor1(IN, osgTerrain::DataSet::Source *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::Source > &, rp); - I_Method0(osgTerrain::DataSet::Source *, get); - I_Method0(bool, valid); - I_Method0(osgTerrain::DataSet::Source *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::Source > &, rp); - I_ReadOnlyProperty(osgTerrain::DataSet::Source *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgTerrain::DataSet::Source *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::Source > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgTerrain::DataSet::Source *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osgTerrain::DataSet::Source *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::Source > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgTerrain::DataSet::Source *, , + __T_P1__get, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer >) - I_ConstructorWithDefaults2(IN, osgTerrain::DataSet::CompositeSource *, composite, 0, IN, osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer, advancer, osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer()); - I_Constructor1(IN, const osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer > &, rhs); - I_Method0(bool, valid); - I_Method0(bool, advance); + I_ConstructorWithDefaults2(IN, osgTerrain::DataSet::CompositeSource *, composite, 0, IN, osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer, advancer, osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer(), + ____base_source_iterator__CompositeSource_P1__T, + "", + ""); + I_Constructor1(IN, const osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer > &, rhs, + ____base_source_iterator__C5_base_source_iterator_R1, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(bool, advance, + __bool__advance, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::LODSourceAdvancer >) - I_ConstructorWithDefaults2(IN, osgTerrain::DataSet::CompositeSource *, composite, 0, IN, osgTerrain::DataSet::CompositeSource::LODSourceAdvancer, advancer, osgTerrain::DataSet::CompositeSource::LODSourceAdvancer()); - I_Constructor1(IN, const osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::LODSourceAdvancer > &, rhs); - I_Method0(bool, valid); - I_Method0(bool, advance); + I_ConstructorWithDefaults2(IN, osgTerrain::DataSet::CompositeSource *, composite, 0, IN, osgTerrain::DataSet::CompositeSource::LODSourceAdvancer, advancer, osgTerrain::DataSet::CompositeSource::LODSourceAdvancer(), + ____base_source_iterator__CompositeSource_P1__T, + "", + ""); + I_Constructor1(IN, const osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::LODSourceAdvancer > &, rhs, + ____base_source_iterator__C5_base_source_iterator_R1, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(bool, advance, + __bool__advance, + "", + ""); END_REFLECTOR STD_MAP_REFLECTOR(std::map< const osg::CoordinateSystemNode * COMMA osgTerrain::DataSet::SpatialProperties >); diff --git a/src/osgWrappers/osgTerrain/HeightFieldNode.cpp b/src/osgWrappers/osgTerrain/HeightFieldNode.cpp index 3d536d750..c52060b98 100644 --- a/src/osgWrappers/osgTerrain/HeightFieldNode.cpp +++ b/src/osgWrappers/osgTerrain/HeightFieldNode.cpp @@ -28,40 +28,138 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::HeightFieldNode) I_BaseType(osg::Group); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgTerrain::HeightFieldNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv); - I_Method1(void, setHeightField, IN, osg::HeightField *, heightField); - I_Method0(osg::HeightField *, getHeightField); - I_Method0(const osg::HeightField *, getHeightField); - I_Method0(void, heightFieldHasBeenModified); - I_Method1(void, setRenderer, IN, osgTerrain::HeightFieldRenderer *, renderer); - I_Method0(osgTerrain::HeightFieldRenderer *, getRenderer); - I_Method0(const osgTerrain::HeightFieldRenderer *, getRenderer); - I_Method1(void, setBaseTextureImage, IN, osg::Image *, image); - I_Method0(osg::Image *, getBaseTextureImage); - I_Method0(const osg::Image *, getBaseTextureImage); - I_Method1(void, setDetailTextureImage, IN, osg::Image *, image); - I_Method0(osg::Image *, getDetailTextureImage); - I_Method0(const osg::Image *, getDetailTextureImage); - I_Method1(void, setCloudShadowTextureImage, IN, osg::Image *, image); - I_Method0(osg::Image *, getCloudShadowTextureImage); - I_Method0(const osg::Image *, getCloudShadowTextureImage); - I_Method1(void, setNormalMapImage, IN, osg::Image *, image); - I_Method0(osg::Image *, getNormalMapImage); - I_Method0(const osg::Image *, getNormalMapImage); - I_Method0(void, computeNormalMap); - I_Property(osg::Image *, BaseTextureImage); - I_Property(osg::Image *, CloudShadowTextureImage); - I_Property(osg::Image *, DetailTextureImage); - I_Property(osg::HeightField *, HeightField); - I_Property(osg::Image *, NormalMapImage); - I_Property(osgTerrain::HeightFieldRenderer *, Renderer); + I_Constructor0(____HeightFieldNode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::HeightFieldNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____HeightFieldNode__C5_HeightFieldNode_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "return a clone of a node, with Object* return type. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(void, setHeightField, IN, osg::HeightField *, heightField, + __void__setHeightField__osg_HeightField_P1, + "Set the HeightField for this HeightFieldNode. ", + "If a Renderer is attached then this will be notified. "); + I_Method0(osg::HeightField *, getHeightField, + __osg_HeightField_P1__getHeightField, + "Get the HeightField. ", + ""); + I_Method0(const osg::HeightField *, getHeightField, + __C5_osg_HeightField_P1__getHeightField, + "Get the const HeightField. ", + ""); + I_Method0(void, heightFieldHasBeenModified, + __void__heightFieldHasBeenModified, + "Tell the Renderer that the height field has been modified, so that any cached data will need updating. ", + ""); + I_Method1(void, setRenderer, IN, osgTerrain::HeightFieldRenderer *, renderer, + __void__setRenderer__osgTerrain_HeightFieldRenderer_P1, + "Set the Renderer. ", + ""); + I_Method0(osgTerrain::HeightFieldRenderer *, getRenderer, + __HeightFieldRenderer_P1__getRenderer, + "Get the Renderer. ", + ""); + I_Method0(const osgTerrain::HeightFieldRenderer *, getRenderer, + __C5_HeightFieldRenderer_P1__getRenderer, + "Get the const Renderer. ", + ""); + I_Method1(void, setBaseTextureImage, IN, osg::Image *, image, + __void__setBaseTextureImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getBaseTextureImage, + __osg_Image_P1__getBaseTextureImage, + "", + ""); + I_Method0(const osg::Image *, getBaseTextureImage, + __C5_osg_Image_P1__getBaseTextureImage, + "", + ""); + I_Method1(void, setDetailTextureImage, IN, osg::Image *, image, + __void__setDetailTextureImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getDetailTextureImage, + __osg_Image_P1__getDetailTextureImage, + "", + ""); + I_Method0(const osg::Image *, getDetailTextureImage, + __C5_osg_Image_P1__getDetailTextureImage, + "", + ""); + I_Method1(void, setCloudShadowTextureImage, IN, osg::Image *, image, + __void__setCloudShadowTextureImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getCloudShadowTextureImage, + __osg_Image_P1__getCloudShadowTextureImage, + "", + ""); + I_Method0(const osg::Image *, getCloudShadowTextureImage, + __C5_osg_Image_P1__getCloudShadowTextureImage, + "", + ""); + I_Method1(void, setNormalMapImage, IN, osg::Image *, image, + __void__setNormalMapImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getNormalMapImage, + __osg_Image_P1__getNormalMapImage, + "", + ""); + I_Method0(const osg::Image *, getNormalMapImage, + __C5_osg_Image_P1__getNormalMapImage, + "", + ""); + I_Method0(void, computeNormalMap, + __void__computeNormalMap, + "", + ""); + I_SimpleProperty(osg::Image *, BaseTextureImage, + __osg_Image_P1__getBaseTextureImage, + __void__setBaseTextureImage__osg_Image_P1); + I_SimpleProperty(osg::Image *, CloudShadowTextureImage, + __osg_Image_P1__getCloudShadowTextureImage, + __void__setCloudShadowTextureImage__osg_Image_P1); + I_SimpleProperty(osg::Image *, DetailTextureImage, + __osg_Image_P1__getDetailTextureImage, + __void__setDetailTextureImage__osg_Image_P1); + I_SimpleProperty(osg::HeightField *, HeightField, + __osg_HeightField_P1__getHeightField, + __void__setHeightField__osg_HeightField_P1); + I_SimpleProperty(osg::Image *, NormalMapImage, + __osg_Image_P1__getNormalMapImage, + __void__setNormalMapImage__osg_Image_P1); + I_SimpleProperty(osgTerrain::HeightFieldRenderer *, Renderer, + __HeightFieldRenderer_P1__getRenderer, + __void__setRenderer__osgTerrain_HeightFieldRenderer_P1); END_REFLECTOR diff --git a/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp b/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp index c760a71ef..6a137c47f 100644 --- a/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp +++ b/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp @@ -26,14 +26,39 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgTerrain::HeightFieldRenderer) I_BaseType(osg::Object); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgTerrain::HeightFieldRenderer &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osgTerrain::HeightFieldNode *, getHeightFieldNode); - I_Method0(const osgTerrain::HeightFieldNode *, getHeightFieldNode); - I_Method0(void, initialize); - I_Method0(void, heightFieldHasBeenModified); - I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv); - I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv); - I_ReadOnlyProperty(osgTerrain::HeightFieldNode *, HeightFieldNode); + I_Constructor0(____HeightFieldRenderer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::HeightFieldRenderer &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____HeightFieldRenderer__C5_HeightFieldRenderer_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osgTerrain::HeightFieldNode *, getHeightFieldNode, + __HeightFieldNode_P1__getHeightFieldNode, + "", + ""); + I_Method0(const osgTerrain::HeightFieldNode *, getHeightFieldNode, + __C5_HeightFieldNode_P1__getHeightFieldNode, + "", + ""); + I_Method0(void, initialize, + __void__initialize, + "", + ""); + I_Method0(void, heightFieldHasBeenModified, + __void__heightFieldHasBeenModified, + "", + ""); + I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, + __void__update__osgUtil_UpdateVisitor_P1, + "", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, + __void__cull__osgUtil_CullVisitor_P1, + "", + ""); + I_SimpleProperty(osgTerrain::HeightFieldNode *, HeightFieldNode, + __HeightFieldNode_P1__getHeightFieldNode, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgText/FadeText.cpp b/src/osgWrappers/osgText/FadeText.cpp index 33fbce555..2e657c15f 100644 --- a/src/osgWrappers/osgText/FadeText.cpp +++ b/src/osgWrappers/osgText/FadeText.cpp @@ -28,17 +28,48 @@ TYPE_NAME_ALIAS(std::map< osg::View * COMMA osg::Vec4 >, osgText::FadeText::Vie BEGIN_OBJECT_REFLECTOR(osgText::FadeText) I_BaseType(osgText::Text); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgText::Text &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(osgText::FadeText::ViewBlendColourMap &, getViewBlendColourMap); - I_Method0(const osgText::FadeText::ViewBlendColourMap &, getViewBlendColourMap); - I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo); - I_ReadOnlyProperty(osgText::FadeText::ViewBlendColourMap &, ViewBlendColourMap); + I_Constructor0(____FadeText, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgText::Text &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____FadeText__C5_Text_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(osgText::FadeText::ViewBlendColourMap &, getViewBlendColourMap, + __ViewBlendColourMap_R1__getViewBlendColourMap, + "", + ""); + I_Method0(const osgText::FadeText::ViewBlendColourMap &, getViewBlendColourMap, + __C5_ViewBlendColourMap_R1__getViewBlendColourMap, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + __void__drawImplementation__osg_RenderInfo_R1, + "Draw the text. ", + ""); + I_SimpleProperty(osgText::FadeText::ViewBlendColourMap &, ViewBlendColourMap, + __ViewBlendColourMap_R1__getViewBlendColourMap, + 0); END_REFLECTOR STD_MAP_REFLECTOR(std::map< osg::View * COMMA osg::Vec4 >); diff --git a/src/osgWrappers/osgText/Font.cpp b/src/osgWrappers/osgText/Font.cpp index 4458906c7..281cf933a 100644 --- a/src/osgWrappers/osgText/Font.cpp +++ b/src/osgWrappers/osgText/Font.cpp @@ -30,115 +30,375 @@ BEGIN_OBJECT_REFLECTOR(osgText::Font) I_BaseType(osg::Object); - I_ConstructorWithDefaults1(IN, osgText::Font::FontImplementation *, implementation, 0); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_Method0(std::string, getFileName); - I_Method1(void, setTexEnv, IN, osg::TexEnv *, texenv); - I_Method0(osg::TexEnv *, getTexEnv); - I_Method0(const osg::TexEnv *, getTexEnv); - I_Method1(void, setStateSet, IN, osg::StateSet *, stateset); - I_Method0(osg::StateSet *, getStateSet); - I_Method0(const osg::StateSet *, getStateSet); - I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height); - I_Method0(unsigned int, getFontWidth); - I_Method0(unsigned int, getFontHeight); - I_Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType); - I_Method1(osgText::Font::Glyph *, getGlyph, IN, unsigned int, charcode); - I_Method0(bool, hasVertical); - I_Method1(void, setGlyphImageMargin, IN, unsigned int, margin); - I_Method0(unsigned int, getGlyphImageMargin); - I_Method2(void, setTextureSizeHint, IN, unsigned int, width, IN, unsigned int, height); - I_Method0(unsigned int, getTextureWidthHint); - I_Method0(unsigned int, getTextureHeightHint); - I_Method1(void, setMinFilterHint, IN, osg::Texture::FilterMode, mode); - I_Method0(osg::Texture::FilterMode, getMinFilterHint); - I_Method1(void, setMagFilterHint, IN, osg::Texture::FilterMode, mode); - I_Method0(osg::Texture::FilterMode, getMagFilterHint); - I_Method1(void, setImplementation, IN, osgText::Font::FontImplementation *, implementation); - I_Method0(osgText::Font::FontImplementation *, getImplementation); - I_Method0(const osgText::Font::FontImplementation *, getImplementation); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); - I_ReadOnlyProperty(std::string, FileName); - I_ReadOnlyProperty(unsigned int, FontHeight); - I_ReadOnlyProperty(unsigned int, FontWidth); - I_Property(unsigned int, GlyphImageMargin); - I_Property(osgText::Font::FontImplementation *, Implementation); - I_Property(osg::Texture::FilterMode, MagFilterHint); - I_Property(osg::Texture::FilterMode, MinFilterHint); - I_Property(osg::StateSet *, StateSet); - I_Property(osg::TexEnv *, TexEnv); - I_ReadOnlyProperty(unsigned int, TextureHeightHint); - I_ReadOnlyProperty(unsigned int, TextureWidthHint); + I_ConstructorWithDefaults1(IN, osgText::Font::FontImplementation *, implementation, 0, + ____Font__FontImplementation_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(std::string, getFileName, + __std_string__getFileName, + "", + ""); + I_Method1(void, setTexEnv, IN, osg::TexEnv *, texenv, + __void__setTexEnv__osg_TexEnv_P1, + "", + ""); + I_Method0(osg::TexEnv *, getTexEnv, + __osg_TexEnv_P1__getTexEnv, + "", + ""); + I_Method0(const osg::TexEnv *, getTexEnv, + __C5_osg_TexEnv_P1__getTexEnv, + "", + ""); + I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, + __void__setStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getStateSet, + __osg_StateSet_P1__getStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getStateSet, + __C5_osg_StateSet_P1__getStateSet, + "", + ""); + I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height, + __void__setFontResolution__unsigned_int__unsigned_int, + "Set the pixel width and height hint. ", + ""); + I_Method0(unsigned int, getFontWidth, + __unsigned_int__getFontWidth, + "", + ""); + I_Method0(unsigned int, getFontHeight, + __unsigned_int__getFontHeight, + "", + ""); + I_Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType, + __osg_Vec2__getKerning__unsigned_int__unsigned_int__KerningType, + "Get a kerning (adjustment of spacing of two adjacent character) for specified charcodes, w.r.t the current font size hint. ", + ""); + I_Method1(osgText::Font::Glyph *, getGlyph, IN, unsigned int, charcode, + __Glyph_P1__getGlyph__unsigned_int, + "Get a Glyph for specified charcode, and the font size nearest to the current font size hint. ", + ""); + I_Method0(bool, hasVertical, + __bool__hasVertical, + "Return true if this font provides vertical alignments and spacing or glyphs. ", + ""); + I_Method1(void, setGlyphImageMargin, IN, unsigned int, margin, + __void__setGlyphImageMargin__unsigned_int, + "Set the margin around each glyph, to ensure that texture filtering doesn't bleed adjacent glyph's into each other. ", + "Default margin is 2 texels. "); + I_Method0(unsigned int, getGlyphImageMargin, + __unsigned_int__getGlyphImageMargin, + "", + ""); + I_Method2(void, setTextureSizeHint, IN, unsigned int, width, IN, unsigned int, height, + __void__setTextureSizeHint__unsigned_int__unsigned_int, + "Set the size of texture to create to store the glyph images when rendering. ", + "Note, this doesn't affect already created Texture Glhph's. "); + I_Method0(unsigned int, getTextureWidthHint, + __unsigned_int__getTextureWidthHint, + "", + ""); + I_Method0(unsigned int, getTextureHeightHint, + __unsigned_int__getTextureHeightHint, + "", + ""); + I_Method1(void, setMinFilterHint, IN, osg::Texture::FilterMode, mode, + __void__setMinFilterHint__osg_Texture_FilterMode, + "Set the minification texture filter to use when creating the texture to store the glyph images when rendering. ", + "Note, this doesn't affect already created Texture Glhph's. "); + I_Method0(osg::Texture::FilterMode, getMinFilterHint, + __osg_Texture_FilterMode__getMinFilterHint, + "", + ""); + I_Method1(void, setMagFilterHint, IN, osg::Texture::FilterMode, mode, + __void__setMagFilterHint__osg_Texture_FilterMode, + "Set the magnification texture filter to use when creating the texture to store the glyph images when rendering. ", + "Note, this doesn't affect already created Texture Glhph's. "); + I_Method0(osg::Texture::FilterMode, getMagFilterHint, + __osg_Texture_FilterMode__getMagFilterHint, + "", + ""); + I_Method1(void, setImplementation, IN, osgText::Font::FontImplementation *, implementation, + __void__setImplementation__FontImplementation_P1, + "", + ""); + I_Method0(osgText::Font::FontImplementation *, getImplementation, + __FontImplementation_P1__getImplementation, + "", + ""); + I_Method0(const osgText::Font::FontImplementation *, getImplementation, + __C5_FontImplementation_P1__getImplementation, + "", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + __void__releaseGLObjects__osg_State_P1, + "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objexts for all graphics contexts. "); + I_SimpleProperty(std::string, FileName, + __std_string__getFileName, + 0); + I_SimpleProperty(unsigned int, FontHeight, + __unsigned_int__getFontHeight, + 0); + I_SimpleProperty(unsigned int, FontWidth, + __unsigned_int__getFontWidth, + 0); + I_SimpleProperty(unsigned int, GlyphImageMargin, + __unsigned_int__getGlyphImageMargin, + __void__setGlyphImageMargin__unsigned_int); + I_SimpleProperty(osgText::Font::FontImplementation *, Implementation, + __FontImplementation_P1__getImplementation, + __void__setImplementation__FontImplementation_P1); + I_SimpleProperty(osg::Texture::FilterMode, MagFilterHint, + __osg_Texture_FilterMode__getMagFilterHint, + __void__setMagFilterHint__osg_Texture_FilterMode); + I_SimpleProperty(osg::Texture::FilterMode, MinFilterHint, + __osg_Texture_FilterMode__getMinFilterHint, + __void__setMinFilterHint__osg_Texture_FilterMode); + I_SimpleProperty(osg::StateSet *, StateSet, + __osg_StateSet_P1__getStateSet, + __void__setStateSet__osg_StateSet_P1); + I_SimpleProperty(osg::TexEnv *, TexEnv, + __osg_TexEnv_P1__getTexEnv, + __void__setTexEnv__osg_TexEnv_P1); + I_SimpleProperty(unsigned int, TextureHeightHint, + __unsigned_int__getTextureHeightHint, + 0); + I_SimpleProperty(unsigned int, TextureWidthHint, + __unsigned_int__getTextureWidthHint, + 0); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font::FontImplementation) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method0(std::string, getFileName); - I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height); - I_Method1(osgText::Font::Glyph *, getGlyph, IN, unsigned int, charcode); - I_Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType); - I_Method0(bool, hasVertical); - I_Method1(void, setFontWidth, IN, unsigned int, width); - I_Method1(void, setFontHeight, IN, unsigned int, height); - I_Method4(void, addGlyph, IN, unsigned int, width, IN, unsigned int, height, IN, unsigned int, charcode, IN, osgText::Font::Glyph *, glyph); - I_ReadOnlyProperty(std::string, FileName); - I_WriteOnlyProperty(unsigned int, FontHeight); - I_WriteOnlyProperty(unsigned int, FontWidth); + I_Constructor0(____FontImplementation, + "", + ""); + I_Method0(std::string, getFileName, + __std_string__getFileName, + "", + ""); + I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height, + __void__setFontResolution__unsigned_int__unsigned_int, + "Set the pixel width and height hint. ", + ""); + I_Method1(osgText::Font::Glyph *, getGlyph, IN, unsigned int, charcode, + __Glyph_P1__getGlyph__unsigned_int, + "Get a Glyph for specified charcode, and the font size nearest to the current font size hint. ", + ""); + I_Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType, + __osg_Vec2__getKerning__unsigned_int__unsigned_int__KerningType, + "Get a kerning (adjustment of spacing of two adjacent character) for specified charcodes, w.r.t the current font size hint. ", + ""); + I_Method0(bool, hasVertical, + __bool__hasVertical, + "Return true if this font provides vertical alignments and spacing or glyphs. ", + ""); + I_Method1(void, setFontWidth, IN, unsigned int, width, + __void__setFontWidth__unsigned_int, + "", + ""); + I_Method1(void, setFontHeight, IN, unsigned int, height, + __void__setFontHeight__unsigned_int, + "", + ""); + I_Method4(void, addGlyph, IN, unsigned int, width, IN, unsigned int, height, IN, unsigned int, charcode, IN, osgText::Font::Glyph *, glyph, + __void__addGlyph__unsigned_int__unsigned_int__unsigned_int__Glyph_P1, + "", + ""); + I_SimpleProperty(std::string, FileName, + __std_string__getFileName, + 0); + I_SimpleProperty(unsigned int, FontHeight, + 0, + __void__setFontHeight__unsigned_int); + I_SimpleProperty(unsigned int, FontWidth, + 0, + __void__setFontWidth__unsigned_int); I_PublicMemberProperty(osgText::Font *, _facade); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgText::Font::Glyph) I_BaseType(osg::Image); - I_Constructor0(); - I_Method0(unsigned int, getGlyphCode); - I_Method1(void, setHorizontalBearing, IN, const osg::Vec2 &, bearing); - I_Method0(const osg::Vec2 &, getHorizontalBearing); - I_Method1(void, setHorizontalAdvance, IN, float, advance); - I_Method0(float, getHorizontalAdvance); - I_Method1(void, setVerticalBearing, IN, const osg::Vec2 &, bearing); - I_Method0(const osg::Vec2 &, getVerticalBearing); - I_Method1(void, setVerticalAdvance, IN, float, advance); - I_Method0(float, getVerticalAdvance); - I_Method1(void, setTexture, IN, osgText::Font::GlyphTexture *, texture); - I_Method0(osgText::Font::GlyphTexture *, getTexture); - I_Method0(const osgText::Font::GlyphTexture *, getTexture); - I_Method2(void, setTexturePosition, IN, int, posX, IN, int, posY); - I_Method0(int, getTexturePositionX); - I_Method0(int, getTexturePositionY); - I_Method1(void, setMinTexCoord, IN, const osg::Vec2 &, coord); - I_Method0(const osg::Vec2 &, getMinTexCoord); - I_Method1(void, setMaxTexCoord, IN, const osg::Vec2 &, coord); - I_Method0(const osg::Vec2 &, getMaxTexCoord); - I_Method0(void, subload); - I_Method1(void, draw, IN, osg::State &, state); - I_ReadOnlyProperty(unsigned int, GlyphCode); - I_Property(float, HorizontalAdvance); - I_Property(const osg::Vec2 &, HorizontalBearing); - I_Property(const osg::Vec2 &, MaxTexCoord); - I_Property(const osg::Vec2 &, MinTexCoord); - I_Property(osgText::Font::GlyphTexture *, Texture); - I_ReadOnlyProperty(int, TexturePositionX); - I_ReadOnlyProperty(int, TexturePositionY); - I_Property(float, VerticalAdvance); - I_Property(const osg::Vec2 &, VerticalBearing); + I_Constructor0(____Glyph, + "", + ""); + I_Method0(unsigned int, getGlyphCode, + __unsigned_int__getGlyphCode, + "", + ""); + I_Method1(void, setHorizontalBearing, IN, const osg::Vec2 &, bearing, + __void__setHorizontalBearing__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getHorizontalBearing, + __C5_osg_Vec2_R1__getHorizontalBearing, + "", + ""); + I_Method1(void, setHorizontalAdvance, IN, float, advance, + __void__setHorizontalAdvance__float, + "", + ""); + I_Method0(float, getHorizontalAdvance, + __float__getHorizontalAdvance, + "", + ""); + I_Method1(void, setVerticalBearing, IN, const osg::Vec2 &, bearing, + __void__setVerticalBearing__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getVerticalBearing, + __C5_osg_Vec2_R1__getVerticalBearing, + "", + ""); + I_Method1(void, setVerticalAdvance, IN, float, advance, + __void__setVerticalAdvance__float, + "", + ""); + I_Method0(float, getVerticalAdvance, + __float__getVerticalAdvance, + "", + ""); + I_Method1(void, setTexture, IN, osgText::Font::GlyphTexture *, texture, + __void__setTexture__GlyphTexture_P1, + "", + ""); + I_Method0(osgText::Font::GlyphTexture *, getTexture, + __GlyphTexture_P1__getTexture, + "", + ""); + I_Method0(const osgText::Font::GlyphTexture *, getTexture, + __C5_GlyphTexture_P1__getTexture, + "", + ""); + I_Method2(void, setTexturePosition, IN, int, posX, IN, int, posY, + __void__setTexturePosition__int__int, + "", + ""); + I_Method0(int, getTexturePositionX, + __int__getTexturePositionX, + "", + ""); + I_Method0(int, getTexturePositionY, + __int__getTexturePositionY, + "", + ""); + I_Method1(void, setMinTexCoord, IN, const osg::Vec2 &, coord, + __void__setMinTexCoord__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getMinTexCoord, + __C5_osg_Vec2_R1__getMinTexCoord, + "", + ""); + I_Method1(void, setMaxTexCoord, IN, const osg::Vec2 &, coord, + __void__setMaxTexCoord__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getMaxTexCoord, + __C5_osg_Vec2_R1__getMaxTexCoord, + "", + ""); + I_Method0(void, subload, + __void__subload, + "", + ""); + I_Method1(void, draw, IN, osg::State &, state, + __void__draw__osg_State_R1, + "", + ""); + I_SimpleProperty(unsigned int, GlyphCode, + __unsigned_int__getGlyphCode, + 0); + I_SimpleProperty(float, HorizontalAdvance, + __float__getHorizontalAdvance, + __void__setHorizontalAdvance__float); + I_SimpleProperty(const osg::Vec2 &, HorizontalBearing, + __C5_osg_Vec2_R1__getHorizontalBearing, + __void__setHorizontalBearing__C5_osg_Vec2_R1); + I_SimpleProperty(const osg::Vec2 &, MaxTexCoord, + __C5_osg_Vec2_R1__getMaxTexCoord, + __void__setMaxTexCoord__C5_osg_Vec2_R1); + I_SimpleProperty(const osg::Vec2 &, MinTexCoord, + __C5_osg_Vec2_R1__getMinTexCoord, + __void__setMinTexCoord__C5_osg_Vec2_R1); + I_SimpleProperty(osgText::Font::GlyphTexture *, Texture, + __GlyphTexture_P1__getTexture, + __void__setTexture__GlyphTexture_P1); + I_SimpleProperty(int, TexturePositionX, + __int__getTexturePositionX, + 0); + I_SimpleProperty(int, TexturePositionY, + __int__getTexturePositionY, + 0); + I_SimpleProperty(float, VerticalAdvance, + __float__getVerticalAdvance, + __void__setVerticalAdvance__float); + I_SimpleProperty(const osg::Vec2 &, VerticalBearing, + __C5_osg_Vec2_R1__getVerticalBearing, + __void__setVerticalBearing__C5_osg_Vec2_R1); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font::GlyphTexture) I_BaseType(osg::Texture2D); - I_Constructor0(); - I_Method0(const char *, className); - I_Method1(int, compare, IN, const osg::StateAttribute &, rhs); - I_Method1(void, setGlyphImageMargin, IN, unsigned int, margin); - I_Method0(unsigned int, getGlyphImageMargin); - I_Method3(bool, getSpaceForGlyph, IN, osgText::Font::Glyph *, glyph, IN, int &, posX, IN, int &, posY); - I_Method3(void, addGlyph, IN, osgText::Font::Glyph *, glyph, IN, int, posX, IN, int, posY); - I_Method1(void, apply, IN, osg::State &, state); - I_Property(unsigned int, GlyphImageMargin); + I_Constructor0(____GlyphTexture, + "", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + __int__compare__C5_osg_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setGlyphImageMargin, IN, unsigned int, margin, + __void__setGlyphImageMargin__unsigned_int, + "Set the margin around each glyph, to ensure that texture filtering doesn't bleed adjacent glyph's into each other. ", + ""); + I_Method0(unsigned int, getGlyphImageMargin, + __unsigned_int__getGlyphImageMargin, + "", + ""); + I_Method3(bool, getSpaceForGlyph, IN, osgText::Font::Glyph *, glyph, IN, int &, posX, IN, int &, posY, + __bool__getSpaceForGlyph__Glyph_P1__int_R1__int_R1, + "", + ""); + I_Method3(void, addGlyph, IN, osgText::Font::Glyph *, glyph, IN, int, posX, IN, int, posY, + __void__addGlyph__Glyph_P1__int__int, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + __void__apply__osg_State_R1, + "Bind the texture object. ", + "If the texture object hasn't already been compiled, create the texture mipmap levels. "); + I_SimpleProperty(unsigned int, GlyphImageMargin, + __unsigned_int__getGlyphImageMargin, + __void__setGlyphImageMargin__unsigned_int); END_REFLECTOR BEGIN_ENUM_REFLECTOR(osgText::KerningType) diff --git a/src/osgWrappers/osgText/String.cpp b/src/osgWrappers/osgText/String.cpp index bb877e2a8..438f1d7b5 100644 --- a/src/osgWrappers/osgText/String.cpp +++ b/src/osgWrappers/osgText/String.cpp @@ -37,23 +37,59 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgText::String) I_BaseType(osgText::VectorUInt); - I_Constructor0(); - I_Constructor1(IN, const osgText::String &, str); - I_Constructor1(IN, const std::string &, str); - I_Constructor1(IN, const wchar_t *, text); - I_Constructor2(IN, const std::string &, text, IN, osgText::String::Encoding, encoding); - I_Method1(void, set, IN, const std::string &, str); - I_Method1(void, set, IN, const wchar_t *, text); - I_Method2(void, set, IN, const std::string &, text, IN, osgText::String::Encoding, encoding); - I_Method0(std::string, createUTF8EncodedString); - I_WriteOnlyProperty(const wchar_t *, ); + I_Constructor0(____String, + "", + ""); + I_Constructor1(IN, const osgText::String &, str, + ____String__C5_String_R1, + "", + ""); + I_Constructor1(IN, const std::string &, str, + ____String__C5_std_string_R1, + "", + ""); + I_Constructor1(IN, const wchar_t *, text, + ____String__C5_wchar_t_P1, + "", + ""); + I_Constructor2(IN, const std::string &, text, IN, osgText::String::Encoding, encoding, + ____String__C5_std_string_R1__Encoding, + "", + ""); + I_Method1(void, set, IN, const std::string &, str, + __void__set__C5_std_string_R1, + "", + ""); + I_Method1(void, set, IN, const wchar_t *, text, + __void__set__C5_wchar_t_P1, + "Set the text using a wchar_t string, which is converted to an internal TextString. ", + ""); + I_Method2(void, set, IN, const std::string &, text, IN, osgText::String::Encoding, encoding, + __void__set__C5_std_string_R1__Encoding, + "Set the text using a Unicode encoded std::string, which is converted to an internal TextString. ", + "The encoding parameter specificies which Unicode encodeding is used in the std::string. "); + I_Method0(std::string, createUTF8EncodedString, + __std_string__createUTF8EncodedString, + "returns a UTF8 encoded version of this osgText::String. ", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgText::VectorUInt) I_BaseType(std::vector); - I_Constructor0(); - I_Constructor1(IN, const osgText::VectorUInt &, copy); - I_Constructor2(IN, unsigned int *, beg, IN, unsigned int *, end); - I_Constructor1(IN, unsigned int, n); + I_Constructor0(____VectorUInt, + "", + ""); + I_Constructor1(IN, const osgText::VectorUInt &, copy, + ____VectorUInt__C5_VectorUInt_R1, + "", + ""); + I_Constructor2(IN, unsigned int *, beg, IN, unsigned int *, end, + ____VectorUInt__unsigned_int_P1__unsigned_int_P1, + "", + ""); + I_Constructor1(IN, unsigned int, n, + ____VectorUInt__unsigned_int, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgText/Text.cpp b/src/osgWrappers/osgText/Text.cpp index ca2d60a8f..0a754a6ca 100644 --- a/src/osgWrappers/osgText/Text.cpp +++ b/src/osgWrappers/osgText/Text.cpp @@ -109,111 +109,394 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgText::Text) I_BaseType(osg::Drawable); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgText::Text &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(const char *, libraryName); - I_MethodWithDefaults1(void, setFont, IN, osgText::Font *, font, 0); - I_Method1(void, setFont, IN, const std::string &, fontfile); - I_Method0(const osgText::Font *, getFont); - I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height); - I_Method0(unsigned int, getFontWidth); - I_Method0(unsigned int, getFontHeight); - I_Method1(void, setText, IN, const osgText::String &, text); - I_Method1(void, setText, IN, const std::string &, text); - I_Method2(void, setText, IN, const std::string &, text, IN, osgText::String::Encoding, encoding); - I_Method1(void, setText, IN, const wchar_t *, text); - I_Method0(osgText::String &, getText); - I_Method0(const osgText::String &, getText); - I_Method0(void, update); - I_MethodWithDefaults2(void, setCharacterSize, IN, float, height, , IN, float, aspectRatio, 1.0f); - I_Method0(float, getCharacterHeight); - I_Method0(float, getCharacterAspectRatio); - I_Method1(void, setCharacterSizeMode, IN, osgText::Text::CharacterSizeMode, mode); - I_Method0(osgText::Text::CharacterSizeMode, getCharacterSizeMode); - I_Method1(void, setMaximumWidth, IN, float, maximumWidth); - I_Method0(float, getMaximumWidth); - I_Method1(void, setMaximumHeight, IN, float, maximumHeight); - I_Method0(float, getMaximumHeight); - I_Method1(void, setPosition, IN, const osg::Vec3 &, pos); - I_Method0(const osg::Vec3 &, getPosition); - I_Method1(void, setAlignment, IN, osgText::Text::AlignmentType, alignment); - I_Method0(osgText::Text::AlignmentType, getAlignment); - I_Method1(void, setAxisAlignment, IN, osgText::Text::AxisAlignment, axis); - I_Method1(void, setRotation, IN, const osg::Quat &, quat); - I_Method0(const osg::Quat &, getRotation); - I_Method1(void, setAutoRotateToScreen, IN, bool, autoRotateToScreen); - I_Method0(bool, getAutoRotateToScreen); - I_Method1(void, setLayout, IN, osgText::Text::Layout, layout); - I_Method0(osgText::Text::Layout, getLayout); - I_Method1(void, setColor, IN, const osg::Vec4 &, color); - I_Method0(const osg::Vec4 &, getColor); - I_Method1(void, setDrawMode, IN, unsigned int, mode); - I_Method0(unsigned int, getDrawMode); - I_Method1(void, setBackdropType, IN, osgText::Text::BackdropType, type); - I_Method0(osgText::Text::BackdropType, getBackdropType); - I_MethodWithDefaults1(void, setBackdropOffset, IN, float, offset, 0.07f); - I_Method2(void, setBackdropOffset, IN, float, horizontal, IN, float, vertical); - I_Method0(float, getBackdropHorizontalOffet); - I_Method0(float, getBackdropVerticalOffset); - I_Method1(void, setBackdropColor, IN, const osg::Vec4 &, color); - I_Method0(const osg::Vec4 &, getBackdropColor); - I_Method1(void, setBackdropImplementation, IN, osgText::Text::BackdropImplementation, implementation); - I_Method0(osgText::Text::BackdropImplementation, getBackdropImplementation); - I_Method1(void, setColorGradientMode, IN, osgText::Text::ColorGradientMode, mode); - I_Method0(osgText::Text::ColorGradientMode, getColorGradientMode); - I_Method4(void, setColorGradientCorners, IN, const osg::Vec4 &, topLeft, IN, const osg::Vec4 &, bottomLeft, IN, const osg::Vec4 &, bottomRight, IN, const osg::Vec4 &, topRight); - I_Method0(const osg::Vec4 &, getColorGradientTopLeft); - I_Method0(const osg::Vec4 &, getColorGradientBottomLeft); - I_Method0(const osg::Vec4 &, getColorGradientBottomRight); - I_Method0(const osg::Vec4 &, getColorGradientTopRight); - I_Method1(void, setKerningType, IN, osgText::KerningType, kerningType); - I_Method0(osgText::KerningType, getKerningType); - I_Method0(unsigned int, getLineCount); - I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo); - I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x); - I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x); - I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af); - I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); - I_Method1(const osgText::Text::GlyphQuads *, getGlyphQuads, IN, osgText::Font::GlyphTexture *, texture); - I_Method0(const osgText::Text::TextureGlyphQuadMap &, getTextureGlyphQuadMap); - I_Method0(osg::BoundingBox, computeBound); - I_Property(osgText::Text::AlignmentType, Alignment); - I_Property(bool, AutoRotateToScreen); - I_WriteOnlyProperty(osgText::Text::AxisAlignment, AxisAlignment); - I_Property(const osg::Vec4 &, BackdropColor); - I_ReadOnlyProperty(float, BackdropHorizontalOffet); - I_Property(osgText::Text::BackdropImplementation, BackdropImplementation); - I_WriteOnlyProperty(float, BackdropOffset); - I_Property(osgText::Text::BackdropType, BackdropType); - I_ReadOnlyProperty(float, BackdropVerticalOffset); - I_ReadOnlyProperty(float, CharacterAspectRatio); - I_ReadOnlyProperty(float, CharacterHeight); - I_Property(osgText::Text::CharacterSizeMode, CharacterSizeMode); - I_Property(const osg::Vec4 &, Color); - I_ReadOnlyProperty(const osg::Vec4 &, ColorGradientBottomLeft); - I_ReadOnlyProperty(const osg::Vec4 &, ColorGradientBottomRight); - I_Property(osgText::Text::ColorGradientMode, ColorGradientMode); - I_ReadOnlyProperty(const osg::Vec4 &, ColorGradientTopLeft); - I_ReadOnlyProperty(const osg::Vec4 &, ColorGradientTopRight); - I_Property(unsigned int, DrawMode); - I_WriteOnlyProperty(osgText::Font *, Font); - I_ReadOnlyProperty(unsigned int, FontHeight); - I_ReadOnlyProperty(unsigned int, FontWidth); - I_Property(osgText::KerningType, KerningType); - I_Property(osgText::Text::Layout, Layout); - I_ReadOnlyProperty(unsigned int, LineCount); - I_Property(float, MaximumHeight); - I_Property(float, MaximumWidth); - I_Property(const osg::Vec3 &, Position); - I_Property(const osg::Quat &, Rotation); - I_Property(const osgText::String &, Text); - I_ReadOnlyProperty(const osgText::Text::TextureGlyphQuadMap &, TextureGlyphQuadMap); + I_Constructor0(____Text, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgText::Text &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Text__C5_Text_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_MethodWithDefaults1(void, setFont, IN, osgText::Font *, font, 0, + __void__setFont__Font_P1, + "Set the Font to use to render the text. ", + "setFont(0) sets the use of the default font. "); + I_Method1(void, setFont, IN, const std::string &, fontfile, + __void__setFont__C5_std_string_R1, + "Set the font, loaded from the specified front file, to use to render the text, setFont(\"\") sets the use of the default font. ", + "See the osgText::readFontFile function for how the font file will be located. "); + I_Method0(const osgText::Font *, getFont, + __C5_Font_P1__getFont, + "Get the font. ", + "Return 0 if default is being used. "); + I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height, + __void__setFontResolution__unsigned_int__unsigned_int, + "Set the Font reference width and height resolution in texels. ", + "Note, the size may not be supported by current font, the closest supported font size will be selected. "); + I_Method0(unsigned int, getFontWidth, + __unsigned_int__getFontWidth, + "", + ""); + I_Method0(unsigned int, getFontHeight, + __unsigned_int__getFontHeight, + "", + ""); + I_Method1(void, setText, IN, const osgText::String &, text, + __void__setText__C5_String_R1, + "Set the text using a osgText::String. ", + ""); + I_Method1(void, setText, IN, const std::string &, text, + __void__setText__C5_std_string_R1, + "Set the text using a std::string, which is converted to an internal TextString. ", + ""); + I_Method2(void, setText, IN, const std::string &, text, IN, osgText::String::Encoding, encoding, + __void__setText__C5_std_string_R1__String_Encoding, + "Set the text using a Unicode encoded std::string, which is converted to an internal TextString. ", + "The encoding parameter specificies which Unicode encodeding is used in the std::string. "); + I_Method1(void, setText, IN, const wchar_t *, text, + __void__setText__C5_wchar_t_P1, + "Set the text using a wchar_t string, which is converted to an internal TextString. ", + ""); + I_Method0(osgText::String &, getText, + __String_R1__getText, + "Get the text string. ", + "Note, if you modify the string you must call Text::update() for the internal glyph reprentation to be updated. "); + I_Method0(const osgText::String &, getText, + __C5_String_R1__getText, + "Get the const text string. ", + ""); + I_Method0(void, update, + __void__update, + "update internal glyph respresnetation used for rendering, and bounding volume. ", + ""); + I_MethodWithDefaults2(void, setCharacterSize, IN, float, height, , IN, float, aspectRatio, 1.0f, + __void__setCharacterSize__float__float, + "Set the rendered character size in object coordinates. ", + ""); + I_Method0(float, getCharacterHeight, + __float__getCharacterHeight, + "", + ""); + I_Method0(float, getCharacterAspectRatio, + __float__getCharacterAspectRatio, + "", + ""); + I_Method1(void, setCharacterSizeMode, IN, osgText::Text::CharacterSizeMode, mode, + __void__setCharacterSizeMode__CharacterSizeMode, + "Set how the CharacterSize value relates to the final rendered character. ", + ""); + I_Method0(osgText::Text::CharacterSizeMode, getCharacterSizeMode, + __CharacterSizeMode__getCharacterSizeMode, + "Get the CharacterSizeMode. ", + ""); + I_Method1(void, setMaximumWidth, IN, float, maximumWidth, + __void__setMaximumWidth__float, + "Set the maximum width of the text box. ", + "With horizontal layouts any characters which do not fit are wrapped around. 0 or negative values indicate that no maximum width is set, lines can be as long as they need be to fit thre required text "); + I_Method0(float, getMaximumWidth, + __float__getMaximumWidth, + "Get the maximim width of the text box. ", + ""); + I_Method1(void, setMaximumHeight, IN, float, maximumHeight, + __void__setMaximumHeight__float, + "Set the maximum height of the text box. ", + "With horizontal layouts any characters which do not fit are wrapped around. 0 or negative values indicate that no maximum height is set, lines can be as long as they need be to fit thre required text "); + I_Method0(float, getMaximumHeight, + __float__getMaximumHeight, + "Get the maximum height of the text box. ", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, + __void__setPosition__C5_osg_Vec3_R1, + "Set the position of text. ", + ""); + I_Method0(const osg::Vec3 &, getPosition, + __C5_osg_Vec3_R1__getPosition, + "Get the position of text. ", + ""); + I_Method1(void, setAlignment, IN, osgText::Text::AlignmentType, alignment, + __void__setAlignment__AlignmentType, + "", + ""); + I_Method0(osgText::Text::AlignmentType, getAlignment, + __AlignmentType__getAlignment, + "", + ""); + I_Method1(void, setAxisAlignment, IN, osgText::Text::AxisAlignment, axis, + __void__setAxisAlignment__AxisAlignment, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + __void__setRotation__C5_osg_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + __C5_osg_Quat_R1__getRotation, + "", + ""); + I_Method1(void, setAutoRotateToScreen, IN, bool, autoRotateToScreen, + __void__setAutoRotateToScreen__bool, + "", + ""); + I_Method0(bool, getAutoRotateToScreen, + __bool__getAutoRotateToScreen, + "", + ""); + I_Method1(void, setLayout, IN, osgText::Text::Layout, layout, + __void__setLayout__Layout, + "", + ""); + I_Method0(osgText::Text::Layout, getLayout, + __Layout__getLayout, + "", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + __void__setColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getColor, + __C5_osg_Vec4_R1__getColor, + "", + ""); + I_Method1(void, setDrawMode, IN, unsigned int, mode, + __void__setDrawMode__unsigned_int, + "", + ""); + I_Method0(unsigned int, getDrawMode, + __unsigned_int__getDrawMode, + "", + ""); + I_Method1(void, setBackdropType, IN, osgText::Text::BackdropType, type, + __void__setBackdropType__BackdropType, + "BackdropType gives you a background shadow text behind your regular text. ", + "This helps give text extra contrast which can be useful when placing text against noisy backgrounds. The color of the background shadow text is specified by setBackdropColor(). DROP_SHADOW_BOTTOM_RIGHT will draw backdrop text to the right and down of the normal text. Other DROW_SHADOW_* modes do the same for their repective directions. OUTLINE will draw backdrop text so that it appears the text has an outline or border around the normal text. This mode is particularly useful against really noisy backgrounds that may put text on top of things that have all types of colors which you don't have control over. Some real world examples of this general technique in use that I know of are Google Earth, Sid Meier's Pirates (2004 Remake), and Star Control 2 (PC 1993). The default is NONE."); + I_Method0(osgText::Text::BackdropType, getBackdropType, + __BackdropType__getBackdropType, + "", + ""); + I_MethodWithDefaults1(void, setBackdropOffset, IN, float, offset, 0.07f, + __void__setBackdropOffset__float, + "Sets the amount text is offset to create the backdrop/shadow effect. ", + "Set the value too high and for example, in OUTLINE mode you will get a \"Brady Bunch\" effect where you see duplicates of the text in a 3x3 grid. Set the value too small and you won't see anything. The values represent percentages. 1.0 means 100% so a value of 1.0 in DROW_SHADOW_LEFT_CENTER mode would cause each glyph to be echoed next to it self. So the letter 'e' might look like 'ee'. Good values tend to be in the 0.03 to 0.10 range (but will be subject to your specific font and display characteristics). Note that the text bounding boxes are updated to include backdrop offsets. However, other metric information such as getCharacterHeight() are unaffected by this. This means that individual glyph spacing (kerning?) are unchanged even when this mode is used. The default is 0.07 (7% offset)."); + I_Method2(void, setBackdropOffset, IN, float, horizontal, IN, float, vertical, + __void__setBackdropOffset__float__float, + "This overloaded version lets you specify the offset for the horizontal and vertical components separately. ", + ""); + I_Method0(float, getBackdropHorizontalOffet, + __float__getBackdropHorizontalOffet, + "", + ""); + I_Method0(float, getBackdropVerticalOffset, + __float__getBackdropVerticalOffset, + "", + ""); + I_Method1(void, setBackdropColor, IN, const osg::Vec4 &, color, + __void__setBackdropColor__C5_osg_Vec4_R1, + "This specifies the color of the backdrop text. ", + "The default is black."); + I_Method0(const osg::Vec4 &, getBackdropColor, + __C5_osg_Vec4_R1__getBackdropColor, + "", + ""); + I_Method1(void, setBackdropImplementation, IN, osgText::Text::BackdropImplementation, implementation, + __void__setBackdropImplementation__BackdropImplementation, + "This specifies the underlying backdrop rendering implementation. ", + "Unfortunately, at this time, there is no \"perfect\" rendering solution so this function is provided to let you 'pick your poison'. Each implementation has trade-offs.POLYGON_OFFSET: This uses glPolygonOffset to draw the text multiple times to create the drop-shadow and outline effects. glPolygonOffset is used to prevent z-fighting of the overlapping text. This probably should have been the best option, but all the ATI cards we have encountered so far have serious problems with this. We see little white holes/artifacts in the rendered glyph textures which move around depending on the viewing angle. For moving text, the moving holes give an extremely unpleasant flickering effect. Pumping up the \"units\" parameter in glPolygonOffset can minimize this problem, but two other bad side-effects occur if you do this. First, high values will cause problems with clipping, particularly when there are objects behind the text. The drop-shadows or outline may be culled because their computed offset is behind the object or z-far plane. Second, there is an additional problem associated with the Z-slope. High values can make large chunks of the backdrop suddenly disappear. This can be reduced by the \"factor\" parameter. Making the \"factor\" value small, can help, but experimentally, we've found that it creates a new, different kind of z-fighting problem. So there is no perfect solution. With units, you trade off the 'holes' for the large-section clipping. Experimentally, we have found units values from 150-512 to be tolerable to acceptable with respect to the 'holes'. A factor of .1 seems to bring down the large clipping problem without creating a new z-fighting problem. (You can experiment with these numbers by playing with the osg:PolygonOffset multipliers which this backend tries to respect.)If ATI ever fixes their cards/drivers, then this might become the best option.NO_DEPTH_BUFFER Instead of using glPolygonOffset to prevent z-fighting, this mode just disables the depth buffer when rendering the text. This allows the text to be rendered without any z-fighting. The downside to this mode is that render order begins to matter and the text will not necessarily correctly appear above or behind other objects in the scene based on depth values. This mode is best for text that only needs to be ontop and not obscured by any objects.DEPTH_RANGE This mode is inspired by Paul Martz's OpenGL FAQ, item 13.050. This uses glDepthRange as a substitute for glPolygonOffset. Strangely, experiments on ATI cards seem to produce cleaner results than when using glPolygonOffset. The trade-off for this is that the backdrop still may be placed too far back and might be culled by objects directly behind the object or by the far z-plane. If ATI ever fixes the glPolygonOffset problem, polygon offset is probably a slightly better solution because you can use smaller offsets. But with the current ATI problem, this option may be preferable.STENCIL_BUFFER (Assuming the backend is written correctly,) the Stencil Buffer is the most \"correct\" and reliable way of producing backdrop text. The stencil buffer is a multipass system that allows writing to the same z-values without needing to resort to offsets. This implementation should not have any of the problems associated with the 3 previous implementations. But the trade-off for this mode is that without hardware acceleration for the stencil buffer, rendering will be extremely slow. (There is also potentially more overhead for this algorithm so it could be slower than the other implementations. Benchmarking would be required to determine if the speed differences are significant on your particular hardware.) This mode is best for when quality is important and stencil buffer hardware acceleration is available."); + I_Method0(osgText::Text::BackdropImplementation, getBackdropImplementation, + __BackdropImplementation__getBackdropImplementation, + "", + ""); + I_Method1(void, setColorGradientMode, IN, osgText::Text::ColorGradientMode, mode, + __void__setColorGradientMode__ColorGradientMode, + "This sets different types of text coloring modes. ", + "When the coloring mode is not set to SOLID, the colors specified in setColorGradientCorners() determine the colors for the text. When the gradient mode is OVERALL, the coloring scheme attempts to approximate the effect as if the entire text box/region were a single polygon and you had applied colors to each of the four corners with GL_SMOOTH enabled. In this mode, OpenGL interpolates the colors across the polygon, and this is what OVERALL tries to emulate. This can be used to give nice embellishments on things like logos and names. PER_CHARACTER is similar to OVERALL except that it applies the color interpolation to the four corners of each character instead of across the overall text box. The default is SOLID (a.k.a. off)."); + I_Method0(osgText::Text::ColorGradientMode, getColorGradientMode, + __ColorGradientMode__getColorGradientMode, + "", + ""); + I_Method4(void, setColorGradientCorners, IN, const osg::Vec4 &, topLeft, IN, const osg::Vec4 &, bottomLeft, IN, const osg::Vec4 &, bottomRight, IN, const osg::Vec4 &, topRight, + __void__setColorGradientCorners__C5_osg_Vec4_R1__C5_osg_Vec4_R1__C5_osg_Vec4_R1__C5_osg_Vec4_R1, + "Used only for gradient mode, let's you specify the colors of the 4 corners. ", + "If ColorGradients are off, these values are ignored (and the value from setColor() is the only one that is relevant."); + I_Method0(const osg::Vec4 &, getColorGradientTopLeft, + __C5_osg_Vec4_R1__getColorGradientTopLeft, + "", + ""); + I_Method0(const osg::Vec4 &, getColorGradientBottomLeft, + __C5_osg_Vec4_R1__getColorGradientBottomLeft, + "", + ""); + I_Method0(const osg::Vec4 &, getColorGradientBottomRight, + __C5_osg_Vec4_R1__getColorGradientBottomRight, + "", + ""); + I_Method0(const osg::Vec4 &, getColorGradientTopRight, + __C5_osg_Vec4_R1__getColorGradientTopRight, + "", + ""); + I_Method1(void, setKerningType, IN, osgText::KerningType, kerningType, + __void__setKerningType__KerningType, + "", + ""); + I_Method0(osgText::KerningType, getKerningType, + __KerningType__getKerningType, + "", + ""); + I_Method0(unsigned int, getLineCount, + __unsigned_int__getLineCount, + "Get the number of wrapped lines - only valid after computeGlyphRepresentation() has been called, returns 0 otherwise. ", + ""); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + __void__drawImplementation__osg_RenderInfo_R1, + "Draw the text. ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, + __bool__supports__C5_osg_Drawable_AttributeFunctor_R1, + "return false, osgText::Text does not support accept(AttributeFunctor&). ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + __bool__supports__C5_osg_Drawable_ConstAttributeFunctor_R1, + "return true, osgText::Text does support accept(ConstAttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + __void__accept__osg_Drawable_ConstAttributeFunctor_R1, + "accept an ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", + ""); + I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, + __bool__supports__C5_osg_PrimitiveFunctor_R1, + "return true, osgText::Text does support accept(PrimitiveFunctor&) . ", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, + __void__accept__osg_PrimitiveFunctor_R1, + "accept a PrimtiveFunctor and call its methods to tell it about the interal primtives that this Drawable has. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + __void__releaseGLObjects__osg_State_P1, + "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objexts for all graphics contexts. "); + I_Method1(const osgText::Text::GlyphQuads *, getGlyphQuads, IN, osgText::Font::GlyphTexture *, texture, + __C5_GlyphQuads_P1__getGlyphQuads__Font_GlyphTexture_P1, + "Direct Access to GlyphQuads. ", + ""); + I_Method0(const osgText::Text::TextureGlyphQuadMap &, getTextureGlyphQuadMap, + __C5_TextureGlyphQuadMap_R1__getTextureGlyphQuadMap, + "", + ""); + I_Method0(osg::BoundingBox, computeBound, + __osg_BoundingBox__computeBound, + "Compute the bounding box around Drawables's geometry. ", + ""); + I_SimpleProperty(osgText::Text::AlignmentType, Alignment, + __AlignmentType__getAlignment, + __void__setAlignment__AlignmentType); + I_SimpleProperty(bool, AutoRotateToScreen, + __bool__getAutoRotateToScreen, + __void__setAutoRotateToScreen__bool); + I_SimpleProperty(osgText::Text::AxisAlignment, AxisAlignment, + 0, + __void__setAxisAlignment__AxisAlignment); + I_SimpleProperty(const osg::Vec4 &, BackdropColor, + __C5_osg_Vec4_R1__getBackdropColor, + __void__setBackdropColor__C5_osg_Vec4_R1); + I_SimpleProperty(float, BackdropHorizontalOffet, + __float__getBackdropHorizontalOffet, + 0); + I_SimpleProperty(osgText::Text::BackdropImplementation, BackdropImplementation, + __BackdropImplementation__getBackdropImplementation, + __void__setBackdropImplementation__BackdropImplementation); + I_SimpleProperty(float, BackdropOffset, + 0, + __void__setBackdropOffset__float); + I_SimpleProperty(osgText::Text::BackdropType, BackdropType, + __BackdropType__getBackdropType, + __void__setBackdropType__BackdropType); + I_SimpleProperty(float, BackdropVerticalOffset, + __float__getBackdropVerticalOffset, + 0); + I_SimpleProperty(float, CharacterAspectRatio, + __float__getCharacterAspectRatio, + 0); + I_SimpleProperty(float, CharacterHeight, + __float__getCharacterHeight, + 0); + I_SimpleProperty(osgText::Text::CharacterSizeMode, CharacterSizeMode, + __CharacterSizeMode__getCharacterSizeMode, + __void__setCharacterSizeMode__CharacterSizeMode); + I_SimpleProperty(const osg::Vec4 &, Color, + __C5_osg_Vec4_R1__getColor, + __void__setColor__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec4 &, ColorGradientBottomLeft, + __C5_osg_Vec4_R1__getColorGradientBottomLeft, + 0); + I_SimpleProperty(const osg::Vec4 &, ColorGradientBottomRight, + __C5_osg_Vec4_R1__getColorGradientBottomRight, + 0); + I_SimpleProperty(osgText::Text::ColorGradientMode, ColorGradientMode, + __ColorGradientMode__getColorGradientMode, + __void__setColorGradientMode__ColorGradientMode); + I_SimpleProperty(const osg::Vec4 &, ColorGradientTopLeft, + __C5_osg_Vec4_R1__getColorGradientTopLeft, + 0); + I_SimpleProperty(const osg::Vec4 &, ColorGradientTopRight, + __C5_osg_Vec4_R1__getColorGradientTopRight, + 0); + I_SimpleProperty(unsigned int, DrawMode, + __unsigned_int__getDrawMode, + __void__setDrawMode__unsigned_int); + I_SimpleProperty(osgText::Font *, Font, + 0, + __void__setFont__Font_P1); + I_SimpleProperty(unsigned int, FontHeight, + __unsigned_int__getFontHeight, + 0); + I_SimpleProperty(unsigned int, FontWidth, + __unsigned_int__getFontWidth, + 0); + I_SimpleProperty(osgText::KerningType, KerningType, + __KerningType__getKerningType, + __void__setKerningType__KerningType); + I_SimpleProperty(osgText::Text::Layout, Layout, + __Layout__getLayout, + __void__setLayout__Layout); + I_SimpleProperty(unsigned int, LineCount, + __unsigned_int__getLineCount, + 0); + I_SimpleProperty(float, MaximumHeight, + __float__getMaximumHeight, + __void__setMaximumHeight__float); + I_SimpleProperty(float, MaximumWidth, + __float__getMaximumWidth, + __void__setMaximumWidth__float); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_osg_Quat_R1__getRotation, + __void__setRotation__C5_osg_Quat_R1); + I_SimpleProperty(const osgText::String &, Text, + __C5_String_R1__getText, + __void__setText__C5_String_R1); + I_SimpleProperty(const osgText::Text::TextureGlyphQuadMap &, TextureGlyphQuadMap, + __C5_TextureGlyphQuadMap_R1__getTextureGlyphQuadMap, + 0); END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osgText::Font::Glyph * >, osgText::Text::GlyphQuads::Glyphs); @@ -229,21 +512,61 @@ TYPE_NAME_ALIAS(std::vector< osg::Vec2 >, osgText::Text::GlyphQuads::TexCoords); TYPE_NAME_ALIAS(std::vector< osg::Vec4 >, osgText::Text::GlyphQuads::ColorCoords); BEGIN_VALUE_REFLECTOR(osgText::Text::GlyphQuads) - I_Constructor0(); - I_Method0(osgText::Text::GlyphQuads::Glyphs, getGlyphs); - I_Method0(const osgText::Text::GlyphQuads::Glyphs, getGlyphs); - I_Method0(osgText::Text::GlyphQuads::Coords2 &, getCoords); - I_Method0(const osgText::Text::GlyphQuads::Coords2 &, getCoords); - I_Method1(osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID); - I_Method1(const osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID); - I_Method0(osgText::Text::GlyphQuads::TexCoords &, getTexCoords); - I_Method0(const osgText::Text::GlyphQuads::TexCoords &, getTexCoords); - I_Method0(osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers); - I_Method0(const osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers); - I_ReadOnlyProperty(osgText::Text::GlyphQuads::Coords2 &, Coords); - I_ReadOnlyProperty(osgText::Text::GlyphQuads::Glyphs, Glyphs); - I_ReadOnlyProperty(osgText::Text::GlyphQuads::LineNumbers &, LineNumbers); - I_ReadOnlyProperty(osgText::Text::GlyphQuads::TexCoords &, TexCoords); + I_Constructor0(____GlyphQuads, + "", + ""); + I_Method0(osgText::Text::GlyphQuads::Glyphs, getGlyphs, + __Glyphs__getGlyphs, + "", + ""); + I_Method0(const osgText::Text::GlyphQuads::Glyphs, getGlyphs, + __C5_Glyphs__getGlyphs, + "", + ""); + I_Method0(osgText::Text::GlyphQuads::Coords2 &, getCoords, + __Coords2_R1__getCoords, + "", + ""); + I_Method0(const osgText::Text::GlyphQuads::Coords2 &, getCoords, + __C5_Coords2_R1__getCoords, + "", + ""); + I_Method1(osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID, + __Coords3_R1__getTransformedCoords__unsigned_int, + "", + ""); + I_Method1(const osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID, + __C5_Coords3_R1__getTransformedCoords__unsigned_int, + "", + ""); + I_Method0(osgText::Text::GlyphQuads::TexCoords &, getTexCoords, + __TexCoords_R1__getTexCoords, + "", + ""); + I_Method0(const osgText::Text::GlyphQuads::TexCoords &, getTexCoords, + __C5_TexCoords_R1__getTexCoords, + "", + ""); + I_Method0(osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers, + __LineNumbers_R1__getLineNumbers, + "", + ""); + I_Method0(const osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers, + __C5_LineNumbers_R1__getLineNumbers, + "", + ""); + I_SimpleProperty(osgText::Text::GlyphQuads::Coords2 &, Coords, + __Coords2_R1__getCoords, + 0); + I_SimpleProperty(osgText::Text::GlyphQuads::Glyphs, Glyphs, + __Glyphs__getGlyphs, + 0); + I_SimpleProperty(osgText::Text::GlyphQuads::LineNumbers &, LineNumbers, + __LineNumbers_R1__getLineNumbers, + 0); + I_SimpleProperty(osgText::Text::GlyphQuads::TexCoords &, TexCoords, + __TexCoords_R1__getTexCoords, + 0); I_PublicMemberProperty(osgText::Text::GlyphQuads::Glyphs, _glyphs); I_PublicMemberProperty(osgText::Text::GlyphQuads::Coords2, _coords); I_PublicMemberProperty(osg::buffered_object< osgText::Text::GlyphQuads::Coords3 >, _transformedCoords); @@ -253,14 +576,36 @@ BEGIN_VALUE_REFLECTOR(osgText::Text::GlyphQuads) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgText::Font::GlyphTexture >) - I_Constructor0(); - I_Constructor1(IN, osgText::Font::GlyphTexture *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osgText::Font::GlyphTexture > &, rp); - I_Method0(osgText::Font::GlyphTexture *, get); - I_Method0(bool, valid); - I_Method0(osgText::Font::GlyphTexture *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osgText::Font::GlyphTexture > &, rp); - I_ReadOnlyProperty(osgText::Font::GlyphTexture *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgText::Font::GlyphTexture *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgText::Font::GlyphTexture > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgText::Font::GlyphTexture *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osgText::Font::GlyphTexture *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgText::Font::GlyphTexture > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgText::Font::GlyphTexture *, , + __T_P1__get, + 0); END_REFLECTOR STD_MAP_REFLECTOR(std::map< osg::ref_ptr< osgText::Font::GlyphTexture > COMMA osgText::Text::GlyphQuads >); diff --git a/src/osgWrappers/osgUtil/CubeMapGenerator.cpp b/src/osgWrappers/osgUtil/CubeMapGenerator.cpp index 10123bfce..70d0ed1f5 100644 --- a/src/osgWrappers/osgUtil/CubeMapGenerator.cpp +++ b/src/osgWrappers/osgUtil/CubeMapGenerator.cpp @@ -25,10 +25,25 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::CubeMapGenerator) I_BaseType(osg::Referenced); - I_ConstructorWithDefaults1(IN, int, texture_size, 64); - I_ConstructorWithDefaults2(IN, const osgUtil::CubeMapGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method1(osg::Image *, getImage, IN, osg::TextureCubeMap::Face, face); - I_Method1(const osg::Image *, getImage, IN, osg::TextureCubeMap::Face, face); - I_MethodWithDefaults1(void, generateMap, IN, bool, use_osg_system, true); + I_ConstructorWithDefaults1(IN, int, texture_size, 64, + ____CubeMapGenerator__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::CubeMapGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CubeMapGenerator__C5_CubeMapGenerator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(osg::Image *, getImage, IN, osg::TextureCubeMap::Face, face, + __osg_Image_P1__getImage__osg_TextureCubeMap_Face, + "", + ""); + I_Method1(const osg::Image *, getImage, IN, osg::TextureCubeMap::Face, face, + __C5_osg_Image_P1__getImage__osg_TextureCubeMap_Face, + "", + ""); + I_MethodWithDefaults1(void, generateMap, IN, bool, use_osg_system, true, + __void__generateMap__bool, + "Generate the six cube images. ", + "If use_osg_system is true, then the OSG's coordinate system is used instead of the default OpenGL one."); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/CullVisitor.cpp b/src/osgWrappers/osgUtil/CullVisitor.cpp index 3a6cf143e..0952ea1e7 100644 --- a/src/osgWrappers/osgUtil/CullVisitor.cpp +++ b/src/osgWrappers/osgUtil/CullVisitor.cpp @@ -53,68 +53,245 @@ TYPE_NAME_ALIAS(osg::Matrix::value_type, osgUtil::CullVisitor::value_type); BEGIN_OBJECT_REFLECTOR(osgUtil::CullVisitor) I_BaseType(osg::NodeVisitor); I_BaseType(osg::CullStack); - I_Constructor0(); - I_Method0(osgUtil::CullVisitor *, cloneType); - I_Method0(void, reset); - I_Method0(osg::Vec3, getEyePoint); - I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale); - I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale); - I_Method1(void, apply, IN, osg::Node &, x); - I_Method1(void, apply, IN, osg::Geode &, node); - I_Method1(void, apply, IN, osg::Billboard &, node); - I_Method1(void, apply, IN, osg::LightSource &, node); - I_Method1(void, apply, IN, osg::ClipNode &, node); - I_Method1(void, apply, IN, osg::TexGenNode &, node); - I_Method1(void, apply, IN, osg::Group &, node); - I_Method1(void, apply, IN, osg::Transform &, node); - I_Method1(void, apply, IN, osg::Projection &, node); - I_Method1(void, apply, IN, osg::Switch &, node); - I_Method1(void, apply, IN, osg::LOD &, node); - I_Method1(void, apply, IN, osg::ClearNode &, node); - I_Method1(void, apply, IN, osg::CameraNode &, node); - I_Method1(void, apply, IN, osg::OccluderNode &, node); - I_Method1(void, setClearNode, IN, const osg::ClearNode *, earthSky); - I_Method0(const osg::ClearNode *, getClearNode); - I_Method1(void, pushStateSet, IN, const osg::StateSet *, ss); - I_Method0(void, popStateSet); - I_Method1(void, setStateGraph, IN, osgUtil::StateGraph *, rg); - I_Method0(osgUtil::StateGraph *, getRootStateGraph); - I_Method0(osgUtil::StateGraph *, getCurrentStateGraph); - I_Method1(void, setRenderStage, IN, osgUtil::RenderStage *, rg); - I_Method0(osgUtil::RenderStage *, getRenderStage); - I_Method0(osgUtil::RenderBin *, getCurrentRenderBin); - I_Method1(void, setCurrentRenderBin, IN, osgUtil::RenderBin *, rb); - I_Method0(osgUtil::CullVisitor::value_type, getCalculatedNearPlane); - I_Method0(osgUtil::CullVisitor::value_type, getCalculatedFarPlane); - I_Method3(osgUtil::CullVisitor::value_type, computeNearestPointInFrustum, IN, const osg::Matrix &, matrix, IN, const osg::Polytope::PlaneList &, planes, IN, const osg::Drawable &, drawable); - I_Method2(bool, updateCalculatedNearFar, IN, const osg::Matrix &, matrix, IN, const osg::BoundingBox &, bb); - I_MethodWithDefaults3(bool, updateCalculatedNearFar, IN, const osg::Matrix &, matrix, , IN, const osg::Drawable &, drawable, , IN, bool, isBillboard, false); - I_Method1(void, updateCalculatedNearFar, IN, const osg::Vec3 &, pos); - I_Method2(void, addDrawable, IN, osg::Drawable *, drawable, IN, osg::RefMatrix *, matrix); - I_Method3(void, addDrawableAndDepth, IN, osg::Drawable *, drawable, IN, osg::RefMatrix *, matrix, IN, float, depth); - I_Method2(void, addPositionedAttribute, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr); - I_Method3(void, addPositionedTextureAttribute, IN, unsigned int, textureUnit, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr); - I_Method0(void, popProjectionMatrix); - I_Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixf &, projection, IN, double &, znear, IN, double &, zfar); - I_Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixd &, projection, IN, double &, znear, IN, double &, zfar); - I_Method3(bool, clampProjectionMatrix, IN, osg::Matrixf &, projection, IN, osgUtil::CullVisitor::value_type &, znear, IN, osgUtil::CullVisitor::value_type &, zfar); - I_Method3(bool, clampProjectionMatrix, IN, osg::Matrixd &, projection, IN, osgUtil::CullVisitor::value_type &, znear, IN, osgUtil::CullVisitor::value_type &, zfar); - I_Method1(void, setState, IN, osg::State *, state); - I_Method0(osg::State *, getState); - I_Method0(const osg::State *, getState); - I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo); - I_Method0(osg::RenderInfo &, getRenderInfo); - I_Method0(const osg::RenderInfo &, getRenderInfo); - I_ReadOnlyProperty(osgUtil::CullVisitor::value_type, CalculatedFarPlane); - I_ReadOnlyProperty(osgUtil::CullVisitor::value_type, CalculatedNearPlane); - I_Property(const osg::ClearNode *, ClearNode); - I_Property(osgUtil::RenderBin *, CurrentRenderBin); - I_ReadOnlyProperty(osgUtil::StateGraph *, CurrentStateGraph); - I_ReadOnlyProperty(osg::Vec3, EyePoint); - I_Property(osg::RenderInfo &, RenderInfo); - I_Property(osgUtil::RenderStage *, RenderStage); - I_ReadOnlyProperty(osgUtil::StateGraph *, RootStateGraph); - I_Property(osg::State *, State); - I_WriteOnlyProperty(osgUtil::StateGraph *, StateGraph); + I_Constructor0(____CullVisitor, + "", + ""); + I_Method0(osgUtil::CullVisitor *, cloneType, + __CullVisitor_P1__cloneType, + "", + ""); + I_Method0(void, reset, + __void__reset, + "", + ""); + I_Method0(osg::Vec3, getEyePoint, + __osg_Vec3__getEyePoint, + "Get the eye point in local coordinates. ", + "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. "); + I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + __float__getDistanceToEyePoint__C5_osg_Vec3_R1__bool, + "Get the distance from a point to the eye point, distance value in local coordinate system. ", + "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceFromEyePoint(pos) is not implemented then a default value of 0.0 is returned. "); + I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + __float__getDistanceFromEyePoint__C5_osg_Vec3_R1__bool, + "Get the distance of a point from the eye point, distance value in the eye coordinate system. ", + "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceFromEyePoint(pos) is not implemented than a default value of 0.0 is returned. "); + I_Method1(void, apply, IN, osg::Node &, x, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LightSource &, node, + __void__apply__osg_LightSource_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ClipNode &, node, + __void__apply__osg_ClipNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::TexGenNode &, node, + __void__apply__osg_TexGenNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, node, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ClearNode &, node, + __void__apply__osg_ClearNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::CameraNode &, node, + __void__apply__osg_CameraNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::OccluderNode &, node, + __void__apply__osg_OccluderNode_R1, + "", + ""); + I_Method1(void, setClearNode, IN, const osg::ClearNode *, earthSky, + __void__setClearNode__C5_osg_ClearNode_P1, + "", + ""); + I_Method0(const osg::ClearNode *, getClearNode, + __C5_osg_ClearNode_P1__getClearNode, + "", + ""); + I_Method1(void, pushStateSet, IN, const osg::StateSet *, ss, + __void__pushStateSet__C5_osg_StateSet_P1, + "Push state set on the current state group. ", + "If the state exists in a child state group of the current state group then move the current state group to that child. Otherwise, create a new state group for the state set, add it to the current state group then move the current state group pointer to the new state group."); + I_Method0(void, popStateSet, + __void__popStateSet, + "Pop the top state set and hence associated state group. ", + "Move the current state group to the parent of the popped state group."); + I_Method1(void, setStateGraph, IN, osgUtil::StateGraph *, rg, + __void__setStateGraph__StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getRootStateGraph, + __StateGraph_P1__getRootStateGraph, + "", + ""); + I_Method0(osgUtil::StateGraph *, getCurrentStateGraph, + __StateGraph_P1__getCurrentStateGraph, + "", + ""); + I_Method1(void, setRenderStage, IN, osgUtil::RenderStage *, rg, + __void__setRenderStage__RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStage, + __RenderStage_P1__getRenderStage, + "", + ""); + I_Method0(osgUtil::RenderBin *, getCurrentRenderBin, + __RenderBin_P1__getCurrentRenderBin, + "", + ""); + I_Method1(void, setCurrentRenderBin, IN, osgUtil::RenderBin *, rb, + __void__setCurrentRenderBin__RenderBin_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor::value_type, getCalculatedNearPlane, + __value_type__getCalculatedNearPlane, + "", + ""); + I_Method0(osgUtil::CullVisitor::value_type, getCalculatedFarPlane, + __value_type__getCalculatedFarPlane, + "", + ""); + I_Method3(osgUtil::CullVisitor::value_type, computeNearestPointInFrustum, IN, const osg::Matrix &, matrix, IN, const osg::Polytope::PlaneList &, planes, IN, const osg::Drawable &, drawable, + __value_type__computeNearestPointInFrustum__C5_osg_Matrix_R1__C5_osg_Polytope_PlaneList_R1__C5_osg_Drawable_R1, + "", + ""); + I_Method2(bool, updateCalculatedNearFar, IN, const osg::Matrix &, matrix, IN, const osg::BoundingBox &, bb, + __bool__updateCalculatedNearFar__C5_osg_Matrix_R1__C5_osg_BoundingBox_R1, + "", + ""); + I_MethodWithDefaults3(bool, updateCalculatedNearFar, IN, const osg::Matrix &, matrix, , IN, const osg::Drawable &, drawable, , IN, bool, isBillboard, false, + __bool__updateCalculatedNearFar__C5_osg_Matrix_R1__C5_osg_Drawable_R1__bool, + "", + ""); + I_Method1(void, updateCalculatedNearFar, IN, const osg::Vec3 &, pos, + __void__updateCalculatedNearFar__C5_osg_Vec3_R1, + "", + ""); + I_Method2(void, addDrawable, IN, osg::Drawable *, drawable, IN, osg::RefMatrix *, matrix, + __void__addDrawable__osg_Drawable_P1__osg_RefMatrix_P1, + "Add a drawable to current render graph. ", + ""); + I_Method3(void, addDrawableAndDepth, IN, osg::Drawable *, drawable, IN, osg::RefMatrix *, matrix, IN, float, depth, + __void__addDrawableAndDepth__osg_Drawable_P1__osg_RefMatrix_P1__float, + "Add a drawable and depth to current render graph. ", + ""); + I_Method2(void, addPositionedAttribute, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + __void__addPositionedAttribute__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, + "Add an attribute which is positioned relative to the modelview matrix. ", + ""); + I_Method3(void, addPositionedTextureAttribute, IN, unsigned int, textureUnit, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + __void__addPositionedTextureAttribute__unsigned_int__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, + "Add an attribute which is positioned relative to the modelview matrix. ", + ""); + I_Method0(void, popProjectionMatrix, + __void__popProjectionMatrix, + "Re-implement CullStack's popProjectionMatrix() adding clamping of the projection matrix to the computed near and far. ", + ""); + I_Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixf &, projection, IN, double &, znear, IN, double &, zfar, + __bool__clampProjectionMatrixImplementation__osg_Matrixf_R1__double_R1__double_R1, + "CullVisitor's default clamping of the projection float matrix to computed near and far values. ", + "Note, do not call this method directly, use clampProjectionMatrix(..) instead, unless you want to bypass the callback. "); + I_Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixd &, projection, IN, double &, znear, IN, double &, zfar, + __bool__clampProjectionMatrixImplementation__osg_Matrixd_R1__double_R1__double_R1, + "CullVisitor's default clamping of the projection double matrix to computed near and far values. ", + "Note, do not call this method directly, use clampProjectionMatrix(..) instead, unless you want to bypass the callback. "); + I_Method3(bool, clampProjectionMatrix, IN, osg::Matrixf &, projection, IN, osgUtil::CullVisitor::value_type &, znear, IN, osgUtil::CullVisitor::value_type &, zfar, + __bool__clampProjectionMatrix__osg_Matrixf_R1__value_type_R1__value_type_R1, + "Clamp the projection float matrix to computed near and far values, use callback if it exists, otherwise use default CullVisitor implementation. ", + ""); + I_Method3(bool, clampProjectionMatrix, IN, osg::Matrixd &, projection, IN, osgUtil::CullVisitor::value_type &, znear, IN, osgUtil::CullVisitor::value_type &, zfar, + __bool__clampProjectionMatrix__osg_Matrixd_R1__value_type_R1__value_type_R1, + "Clamp the projection double matrix to computed near and far values, use callback if it exists, otherwise use default CullVisitor implementation. ", + ""); + I_Method1(void, setState, IN, osg::State *, state, + __void__setState__osg_State_P1, + "", + ""); + I_Method0(osg::State *, getState, + __osg_State_P1__getState, + "", + ""); + I_Method0(const osg::State *, getState, + __C5_osg_State_P1__getState, + "", + ""); + I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo, + __void__setRenderInfo__osg_RenderInfo_R1, + "", + ""); + I_Method0(osg::RenderInfo &, getRenderInfo, + __osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Method0(const osg::RenderInfo &, getRenderInfo, + __C5_osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_SimpleProperty(osgUtil::CullVisitor::value_type, CalculatedFarPlane, + __value_type__getCalculatedFarPlane, + 0); + I_SimpleProperty(osgUtil::CullVisitor::value_type, CalculatedNearPlane, + __value_type__getCalculatedNearPlane, + 0); + I_SimpleProperty(const osg::ClearNode *, ClearNode, + __C5_osg_ClearNode_P1__getClearNode, + __void__setClearNode__C5_osg_ClearNode_P1); + I_SimpleProperty(osgUtil::RenderBin *, CurrentRenderBin, + __RenderBin_P1__getCurrentRenderBin, + __void__setCurrentRenderBin__RenderBin_P1); + I_SimpleProperty(osgUtil::StateGraph *, CurrentStateGraph, + __StateGraph_P1__getCurrentStateGraph, + 0); + I_SimpleProperty(osg::Vec3, EyePoint, + __osg_Vec3__getEyePoint, + 0); + I_SimpleProperty(osg::RenderInfo &, RenderInfo, + __osg_RenderInfo_R1__getRenderInfo, + __void__setRenderInfo__osg_RenderInfo_R1); + I_SimpleProperty(osgUtil::RenderStage *, RenderStage, + __RenderStage_P1__getRenderStage, + __void__setRenderStage__RenderStage_P1); + I_SimpleProperty(osgUtil::StateGraph *, RootStateGraph, + __StateGraph_P1__getRootStateGraph, + 0); + I_SimpleProperty(osg::State *, State, + __osg_State_P1__getState, + __void__setState__osg_State_P1); + I_SimpleProperty(osgUtil::StateGraph *, StateGraph, + 0, + __void__setStateGraph__StateGraph_P1); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/DelaunayTriangulator.cpp b/src/osgWrappers/osgUtil/DelaunayTriangulator.cpp index 417acbf54..8e13c9bab 100644 --- a/src/osgWrappers/osgUtil/DelaunayTriangulator.cpp +++ b/src/osgWrappers/osgUtil/DelaunayTriangulator.cpp @@ -26,53 +26,159 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::DelaunayConstraint) I_BaseType(osg::Geometry); - I_Constructor0(); - I_Method3(void, addtriangle, IN, const int, i1, IN, const int, i2, IN, const int, i3); - I_Method0(const osg::DrawElementsUInt *, getTriangles); - I_Method0(osg::DrawElementsUInt *, getTriangles); - I_Method1(osg::Vec3Array *, getPoints, IN, const osg::Vec3Array *, points); - I_Method0(osg::DrawElementsUInt *, makeDrawable); - I_Method1(void, merge, IN, osgUtil::DelaunayConstraint *, dco); - I_Method1(void, removeVerticesInside, IN, const osgUtil::DelaunayConstraint *, dco); - I_Method1(float, windingNumber, IN, const osg::Vec3, testpoint); - I_Method1(bool, contains, IN, const osg::Vec3, testpoint); - I_Method1(bool, outside, IN, const osg::Vec3, testpoint); - I_Method0(void, handleOverlaps); - I_ReadOnlyProperty(osg::DrawElementsUInt *, Triangles); + I_Constructor0(____DelaunayConstraint, + "", + ""); + I_Method3(void, addtriangle, IN, const int, i1, IN, const int, i2, IN, const int, i3, + __void__addtriangle__C5_int__C5_int__C5_int, + "collect up indices of triangle from delaunay triangles. ", + "The delaunay triangles inside the DelaunayConstraint area can be used to fill the area or generate geometry that terrain follows the area in some way. These triangles can form a canopy or a field. "); + I_Method0(const osg::DrawElementsUInt *, getTriangles, + __C5_osg_DrawElementsUInt_P1__getTriangles, + "Get the filling primitive. ", + "One: triangulate must have bneen called and two: triangle list is filled when DelaunayTriangulator::removeInternalTriangles is called. These return the triangles removed from the delaunay triangulation by DelaunayTriangulator::removeInternalTriangles. "); + I_Method0(osg::DrawElementsUInt *, getTriangles, + __osg_DrawElementsUInt_P1__getTriangles, + "", + ""); + I_Method1(osg::Vec3Array *, getPoints, IN, const osg::Vec3Array *, points, + __osg_Vec3Array_P1__getPoints__C5_osg_Vec3Array_P1, + "Call BEFORE makeDrawable to reorder points to make optimised set. ", + ""); + I_Method0(osg::DrawElementsUInt *, makeDrawable, + __osg_DrawElementsUInt_P1__makeDrawable, + "converts simple list of triangles into a drawarray. ", + ""); + I_Method1(void, merge, IN, osgUtil::DelaunayConstraint *, dco, + __void__merge__DelaunayConstraint_P1, + "Add vertices and constraint loops from dco Can be used to generate extra vertices where dco crosses 'this' using osgUtil::tesselator to insert overlap vertices. ", + ""); + I_Method1(void, removeVerticesInside, IN, const osgUtil::DelaunayConstraint *, dco, + __void__removeVerticesInside__C5_DelaunayConstraint_P1, + "remove from line the vertices that are inside dco ", + ""); + I_Method1(float, windingNumber, IN, const osg::Vec3, testpoint, + __float__windingNumber__C5_osg_Vec3, + "return winding number as a float of loop around testpoint; may use multiple loops does not reject points on the edge or very very close to the edge ", + ""); + I_Method1(bool, contains, IN, const osg::Vec3, testpoint, + __bool__contains__C5_osg_Vec3, + "true if testpoint is internal (or external) to constraint. ", + ""); + I_Method1(bool, outside, IN, const osg::Vec3, testpoint, + __bool__outside__C5_osg_Vec3, + "", + ""); + I_Method0(void, handleOverlaps, + __void__handleOverlaps, + "Tesselate the constraint loops so that the crossing points are interpolated and added to the contraints for the triangulation. ", + ""); + I_SimpleProperty(osg::DrawElementsUInt *, Triangles, + __osg_DrawElementsUInt_P1__getTriangles, + 0); END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::DelaunayConstraint > >, osgUtil::DelaunayTriangulator::linelist); BEGIN_OBJECT_REFLECTOR(osgUtil::DelaunayTriangulator) I_BaseType(osg::Referenced); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, osg::Vec3Array *, points, , IN, osg::Vec3Array *, normals, 0); - I_ConstructorWithDefaults2(IN, const osgUtil::DelaunayTriangulator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(const osg::Vec3Array *, getInputPointArray); - I_Method0(osg::Vec3Array *, getInputPointArray); - I_Method1(void, setInputPointArray, IN, osg::Vec3Array *, points); - I_Method1(void, addInputConstraint, IN, osgUtil::DelaunayConstraint *, dc); - I_Method0(const osg::Vec3Array *, getOutputNormalArray); - I_Method0(osg::Vec3Array *, getOutputNormalArray); - I_Method1(void, setOutputNormalArray, IN, osg::Vec3Array *, normals); - I_Method0(bool, triangulate); - I_Method0(const osg::DrawElementsUInt *, getTriangles); - I_Method0(osg::DrawElementsUInt *, getTriangles); - I_Method1(void, removeInternalTriangles, IN, osgUtil::DelaunayConstraint *, constraint); - I_Property(osg::Vec3Array *, InputPointArray); - I_Property(osg::Vec3Array *, OutputNormalArray); - I_ReadOnlyProperty(osg::DrawElementsUInt *, Triangles); + I_Constructor0(____DelaunayTriangulator, + "", + ""); + I_ConstructorWithDefaults2(IN, osg::Vec3Array *, points, , IN, osg::Vec3Array *, normals, 0, + ____DelaunayTriangulator__osg_Vec3Array_P1__osg_Vec3Array_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::DelaunayTriangulator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DelaunayTriangulator__C5_DelaunayTriangulator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const osg::Vec3Array *, getInputPointArray, + __C5_osg_Vec3Array_P1__getInputPointArray, + "Get the const input point array. ", + ""); + I_Method0(osg::Vec3Array *, getInputPointArray, + __osg_Vec3Array_P1__getInputPointArray, + "Get the input point array. ", + ""); + I_Method1(void, setInputPointArray, IN, osg::Vec3Array *, points, + __void__setInputPointArray__osg_Vec3Array_P1, + "Set the input point array. ", + ""); + I_Method1(void, addInputConstraint, IN, osgUtil::DelaunayConstraint *, dc, + __void__addInputConstraint__DelaunayConstraint_P1, + "Add an input constraint loop. ", + "the edges of the loop will constrain the triangulation. if remove!=0, the internal triangles of the constraint will be removed; the user may the replace the constraint line with an equivalent geometry. GWM July 2005 "); + I_Method0(const osg::Vec3Array *, getOutputNormalArray, + __C5_osg_Vec3Array_P1__getOutputNormalArray, + "Get the const output normal array (optional). ", + ""); + I_Method0(osg::Vec3Array *, getOutputNormalArray, + __osg_Vec3Array_P1__getOutputNormalArray, + "Get the output normal array (optional). ", + ""); + I_Method1(void, setOutputNormalArray, IN, osg::Vec3Array *, normals, + __void__setOutputNormalArray__osg_Vec3Array_P1, + "Set the output normal array (optional). ", + ""); + I_Method0(bool, triangulate, + __bool__triangulate, + "Start triangulation. ", + ""); + I_Method0(const osg::DrawElementsUInt *, getTriangles, + __C5_osg_DrawElementsUInt_P1__getTriangles, + "Get the generated primitive (call triangulate() first). ", + ""); + I_Method0(osg::DrawElementsUInt *, getTriangles, + __osg_DrawElementsUInt_P1__getTriangles, + "Get the generated primitive (call triangulate() first). ", + ""); + I_Method1(void, removeInternalTriangles, IN, osgUtil::DelaunayConstraint *, constraint, + __void__removeInternalTriangles__DelaunayConstraint_P1, + "remove the triangles internal to the constraint loops. ", + "(Line strips cannot remove any internal triangles). "); + I_SimpleProperty(osg::Vec3Array *, InputPointArray, + __osg_Vec3Array_P1__getInputPointArray, + __void__setInputPointArray__osg_Vec3Array_P1); + I_SimpleProperty(osg::Vec3Array *, OutputNormalArray, + __osg_Vec3Array_P1__getOutputNormalArray, + __void__setOutputNormalArray__osg_Vec3Array_P1); + I_SimpleProperty(osg::DrawElementsUInt *, Triangles, + __osg_DrawElementsUInt_P1__getTriangles, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::DelaunayConstraint >) - I_Constructor0(); - I_Constructor1(IN, osgUtil::DelaunayConstraint *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osgUtil::DelaunayConstraint > &, rp); - I_Method0(osgUtil::DelaunayConstraint *, get); - I_Method0(bool, valid); - I_Method0(osgUtil::DelaunayConstraint *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::DelaunayConstraint > &, rp); - I_ReadOnlyProperty(osgUtil::DelaunayConstraint *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgUtil::DelaunayConstraint *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgUtil::DelaunayConstraint > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgUtil::DelaunayConstraint *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osgUtil::DelaunayConstraint *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::DelaunayConstraint > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgUtil::DelaunayConstraint *, , + __T_P1__get, + 0); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgUtil::DelaunayConstraint > >); diff --git a/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp b/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp index c031358e4..ac2461cdc 100644 --- a/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp +++ b/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp @@ -26,12 +26,31 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::DisplayRequirementsVisitor) I_BaseType(osg::NodeVisitor); - I_Constructor0(); - I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds); - I_Method0(const osg::DisplaySettings *, getDisplaySettings); - I_Method1(void, applyStateSet, IN, osg::StateSet &, stateset); - I_Method1(void, apply, IN, osg::Node &, node); - I_Method1(void, apply, IN, osg::Geode &, geode); - I_WriteOnlyProperty(osg::DisplaySettings *, DisplaySettings); + I_Constructor0(____DisplayRequirementsVisitor, + "Default to traversing all children, and requiresDoubleBuffer, requiresRGB and requiresDepthBuffer to true and with alpha and stencil off. ", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "Set the DisplaySettings. ", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "Get the DisplaySettings. ", + ""); + I_Method1(void, applyStateSet, IN, osg::StateSet &, stateset, + __void__applyStateSet__osg_StateSet_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + __void__apply__osg_Geode_R1, + "", + ""); + I_SimpleProperty(osg::DisplaySettings *, DisplaySettings, + 0, + __void__setDisplaySettings__osg_DisplaySettings_P1); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp b/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp index df010eb96..d4f8fba64 100644 --- a/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp +++ b/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp @@ -41,17 +41,51 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::GLObjectsVisitor) I_BaseType(osg::NodeVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::GLObjectsVisitor::Mode, mode, osgUtil::GLObjectsVisitor::COMPILE_DISPLAY_LISTS|osgUtil::GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES|osgUtil::GLObjectsVisitor::CHECK_BLACK_LISTED_MODES); - I_Method0(void, reset); - I_Method1(void, setMode, IN, osgUtil::GLObjectsVisitor::Mode, mode); - I_Method0(osgUtil::GLObjectsVisitor::Mode, getMode); - I_Method1(void, setState, IN, osg::State *, state); - I_Method0(osg::State *, getState); - I_Method1(void, apply, IN, osg::Node &, node); - I_Method1(void, apply, IN, osg::Geode &, node); - I_Method1(void, apply, IN, osg::Drawable &, drawable); - I_Method1(void, apply, IN, osg::StateSet &, stateset); - I_Property(osgUtil::GLObjectsVisitor::Mode, Mode); - I_Property(osg::State *, State); + I_ConstructorWithDefaults1(IN, osgUtil::GLObjectsVisitor::Mode, mode, osgUtil::GLObjectsVisitor::COMPILE_DISPLAY_LISTS|osgUtil::GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES|osgUtil::GLObjectsVisitor::CHECK_BLACK_LISTED_MODES, + ____GLObjectsVisitor__Mode, + "Construct a GLObjectsVisitor to traverse all children, operating on node according to specified mode, such as to compile or release display list/texture objects etc. ", + "Default mode is to compile GL objects."); + I_Method0(void, reset, + __void__reset, + "Method to call to reset visitor. ", + "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); + I_Method1(void, setMode, IN, osgUtil::GLObjectsVisitor::Mode, mode, + __void__setMode__Mode, + "Set the operational mode of what operations to do on the scene graph. ", + ""); + I_Method0(osgUtil::GLObjectsVisitor::Mode, getMode, + __Mode__getMode, + "Get the operational mode. ", + ""); + I_Method1(void, setState, IN, osg::State *, state, + __void__setState__osg_State_P1, + "Set the State to use during traversal. ", + ""); + I_Method0(osg::State *, getState, + __osg_State_P1__getState, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + __void__apply__osg_Node_R1, + "Simply traverse using standard NodeVisitor traverse method. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + __void__apply__osg_Geode_R1, + "For each Geode visited set the display list usage according to the _displayListMode. ", + ""); + I_Method1(void, apply, IN, osg::Drawable &, drawable, + __void__apply__osg_Drawable_R1, + "", + ""); + I_Method1(void, apply, IN, osg::StateSet &, stateset, + __void__apply__osg_StateSet_R1, + "", + ""); + I_SimpleProperty(osgUtil::GLObjectsVisitor::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(osg::State *, State, + __osg_State_P1__getState, + __void__setState__osg_State_P1); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp b/src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp index f03c5e221..5fdfa26f3 100644 --- a/src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp +++ b/src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp @@ -24,7 +24,13 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::HalfWayMapGenerator) I_BaseType(osgUtil::CubeMapGenerator); - I_ConstructorWithDefaults2(IN, const osg::Vec3 &, light_direction, , IN, int, texture_size, 64); - I_Constructor2(IN, const osgUtil::HalfWayMapGenerator &, copy, IN, const osg::CopyOp &, copyop); + I_ConstructorWithDefaults2(IN, const osg::Vec3 &, light_direction, , IN, int, texture_size, 64, + ____HalfWayMapGenerator__C5_osg_Vec3_R1__int, + "", + ""); + I_Constructor2(IN, const osgUtil::HalfWayMapGenerator &, copy, IN, const osg::CopyOp &, copyop, + ____HalfWayMapGenerator__C5_HalfWayMapGenerator_R1__C5_osg_CopyOp_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/HighlightMapGenerator.cpp b/src/osgWrappers/osgUtil/HighlightMapGenerator.cpp index 247e04a51..92099173b 100644 --- a/src/osgWrappers/osgUtil/HighlightMapGenerator.cpp +++ b/src/osgWrappers/osgUtil/HighlightMapGenerator.cpp @@ -25,7 +25,13 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::HighlightMapGenerator) I_BaseType(osgUtil::CubeMapGenerator); - I_ConstructorWithDefaults4(IN, const osg::Vec3 &, light_direction, , IN, const osg::Vec4 &, light_color, , IN, float, specular_exponent, , IN, int, texture_size, 64); - I_ConstructorWithDefaults2(IN, const osgUtil::HighlightMapGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + I_ConstructorWithDefaults4(IN, const osg::Vec3 &, light_direction, , IN, const osg::Vec4 &, light_color, , IN, float, specular_exponent, , IN, int, texture_size, 64, + ____HighlightMapGenerator__C5_osg_Vec3_R1__C5_osg_Vec4_R1__float__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::HighlightMapGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____HighlightMapGenerator__C5_HighlightMapGenerator_R1__C5_osg_CopyOp_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/IntersectVisitor.cpp b/src/osgWrappers/osgUtil/IntersectVisitor.cpp index 6a24307c4..8fffd3991 100644 --- a/src/osgWrappers/osgUtil/IntersectVisitor.cpp +++ b/src/osgWrappers/osgUtil/IntersectVisitor.cpp @@ -38,39 +38,123 @@ TYPE_NAME_ALIAS(std::vector< int >, osgUtil::Hit::VecIndexList); BEGIN_VALUE_REFLECTOR(osgUtil::Hit) - I_Constructor0(); - I_Constructor1(IN, const osgUtil::Hit &, hit); - I_Method0(const osg::Vec3 &, getLocalIntersectPoint); - I_Method0(const osg::Vec3 &, getLocalIntersectNormal); - I_Method0(const osg::Vec3, getWorldIntersectPoint); - I_Method0(const osg::Vec3, getWorldIntersectNormal); - I_Method0(float, getRatio); - I_Method0(const osg::LineSegment *, getOriginalLineSegment); - I_Method0(const osg::LineSegment *, getLocalLineSegment); - I_Method0(osg::NodePath &, getNodePath); - I_Method0(const osg::NodePath &, getNodePath); - I_Method0(osg::Geode *, getGeode); - I_Method0(const osg::Geode *, getGeode); - I_Method0(osg::Drawable *, getDrawable); - I_Method0(const osg::Drawable *, getDrawable); - I_Method0(const osg::RefMatrix *, getMatrix); - I_Method0(const osg::RefMatrix *, getInverseMatrix); - I_Method0(const osgUtil::Hit::VecIndexList &, getVecIndexList); - I_Method0(int, getPrimitiveIndex); - I_ReadOnlyProperty(osg::Drawable *, Drawable); - I_ReadOnlyProperty(osg::Geode *, Geode); - I_ReadOnlyProperty(const osg::RefMatrix *, InverseMatrix); - I_ReadOnlyProperty(const osg::Vec3 &, LocalIntersectNormal); - I_ReadOnlyProperty(const osg::Vec3 &, LocalIntersectPoint); - I_ReadOnlyProperty(const osg::LineSegment *, LocalLineSegment); - I_ReadOnlyProperty(const osg::RefMatrix *, Matrix); - I_ReadOnlyProperty(osg::NodePath &, NodePath); - I_ReadOnlyProperty(const osg::LineSegment *, OriginalLineSegment); - I_ReadOnlyProperty(int, PrimitiveIndex); - I_ReadOnlyProperty(float, Ratio); - I_ReadOnlyProperty(const osgUtil::Hit::VecIndexList &, VecIndexList); - I_ReadOnlyProperty(const osg::Vec3, WorldIntersectNormal); - I_ReadOnlyProperty(const osg::Vec3, WorldIntersectPoint); + I_Constructor0(____Hit, + "Describes a point in space produced by an intersection of a line with a scene. ", + "A Hit is always on a surface as rendered by the Open Scene Graph scene (usually a triangle or other primitive, but a special hit handler could return a different value perhaps: a sphere shape might return a Hit on the true sphere rather than the approximate tesselated sphere rendered."); + I_Constructor1(IN, const osgUtil::Hit &, hit, + ____Hit__C5_Hit_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getLocalIntersectPoint, + __C5_osg_Vec3_R1__getLocalIntersectPoint, + "", + ""); + I_Method0(const osg::Vec3 &, getLocalIntersectNormal, + __C5_osg_Vec3_R1__getLocalIntersectNormal, + "", + ""); + I_Method0(const osg::Vec3, getWorldIntersectPoint, + __C5_osg_Vec3__getWorldIntersectPoint, + "", + ""); + I_Method0(const osg::Vec3, getWorldIntersectNormal, + __C5_osg_Vec3__getWorldIntersectNormal, + "", + ""); + I_Method0(float, getRatio, + __float__getRatio, + "", + ""); + I_Method0(const osg::LineSegment *, getOriginalLineSegment, + __C5_osg_LineSegment_P1__getOriginalLineSegment, + "", + ""); + I_Method0(const osg::LineSegment *, getLocalLineSegment, + __C5_osg_LineSegment_P1__getLocalLineSegment, + "", + ""); + I_Method0(osg::NodePath &, getNodePath, + __osg_NodePath_R1__getNodePath, + "", + ""); + I_Method0(const osg::NodePath &, getNodePath, + __C5_osg_NodePath_R1__getNodePath, + "", + ""); + I_Method0(osg::Geode *, getGeode, + __osg_Geode_P1__getGeode, + "", + ""); + I_Method0(const osg::Geode *, getGeode, + __C5_osg_Geode_P1__getGeode, + "", + ""); + I_Method0(osg::Drawable *, getDrawable, + __osg_Drawable_P1__getDrawable, + "", + ""); + I_Method0(const osg::Drawable *, getDrawable, + __C5_osg_Drawable_P1__getDrawable, + "", + ""); + I_Method0(const osg::RefMatrix *, getMatrix, + __C5_osg_RefMatrix_P1__getMatrix, + "", + ""); + I_Method0(const osg::RefMatrix *, getInverseMatrix, + __C5_osg_RefMatrix_P1__getInverseMatrix, + "", + ""); + I_Method0(const osgUtil::Hit::VecIndexList &, getVecIndexList, + __C5_VecIndexList_R1__getVecIndexList, + "", + ""); + I_Method0(int, getPrimitiveIndex, + __int__getPrimitiveIndex, + "", + ""); + I_SimpleProperty(osg::Drawable *, Drawable, + __osg_Drawable_P1__getDrawable, + 0); + I_SimpleProperty(osg::Geode *, Geode, + __osg_Geode_P1__getGeode, + 0); + I_SimpleProperty(const osg::RefMatrix *, InverseMatrix, + __C5_osg_RefMatrix_P1__getInverseMatrix, + 0); + I_SimpleProperty(const osg::Vec3 &, LocalIntersectNormal, + __C5_osg_Vec3_R1__getLocalIntersectNormal, + 0); + I_SimpleProperty(const osg::Vec3 &, LocalIntersectPoint, + __C5_osg_Vec3_R1__getLocalIntersectPoint, + 0); + I_SimpleProperty(const osg::LineSegment *, LocalLineSegment, + __C5_osg_LineSegment_P1__getLocalLineSegment, + 0); + I_SimpleProperty(const osg::RefMatrix *, Matrix, + __C5_osg_RefMatrix_P1__getMatrix, + 0); + I_SimpleProperty(osg::NodePath &, NodePath, + __osg_NodePath_R1__getNodePath, + 0); + I_SimpleProperty(const osg::LineSegment *, OriginalLineSegment, + __C5_osg_LineSegment_P1__getOriginalLineSegment, + 0); + I_SimpleProperty(int, PrimitiveIndex, + __int__getPrimitiveIndex, + 0); + I_SimpleProperty(float, Ratio, + __float__getRatio, + 0); + I_SimpleProperty(const osgUtil::Hit::VecIndexList &, VecIndexList, + __C5_VecIndexList_R1__getVecIndexList, + 0); + I_SimpleProperty(const osg::Vec3, WorldIntersectNormal, + __C5_osg_Vec3__getWorldIntersectNormal, + 0); + I_SimpleProperty(const osg::Vec3, WorldIntersectPoint, + __C5_osg_Vec3__getWorldIntersectPoint, + 0); I_PublicMemberProperty(float, _ratio); I_PublicMemberProperty(osg::ref_ptr< osg::LineSegment >, _originalLineSegment); I_PublicMemberProperty(osg::ref_ptr< osg::LineSegment >, _localLineSegment); @@ -96,36 +180,110 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectVisitor) I_BaseType(osg::NodeVisitor); - I_Constructor0(); - I_Method0(void, reset); - I_Method1(void, addLineSegment, IN, osg::LineSegment *, seg); - I_Method1(osgUtil::IntersectVisitor::HitList &, getHitList, IN, const osg::LineSegment *, seg); - I_Method1(int, getNumHits, IN, const osg::LineSegment *, seg); - I_Method0(osgUtil::IntersectVisitor::LineSegmentHitListMap &, getSegHitList); - I_Method0(bool, hits); - I_Method1(void, setLODSelectionMode, IN, osgUtil::IntersectVisitor::LODSelectionMode, mode); - I_Method0(osgUtil::IntersectVisitor::LODSelectionMode, getLODSelectionMode); - I_Method1(void, setEyePoint, IN, const osg::Vec3 &, eye); - I_Method0(osg::Vec3, getEyePoint); - I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale); - I_Method1(void, apply, IN, osg::Node &, x); - I_Method1(void, apply, IN, osg::Geode &, node); - I_Method1(void, apply, IN, osg::Billboard &, node); - I_Method1(void, apply, IN, osg::Group &, node); - I_Method1(void, apply, IN, osg::Transform &, node); - I_Method1(void, apply, IN, osg::Switch &, node); - I_Method1(void, apply, IN, osg::LOD &, node); - I_ReadOnlyProperty(osg::Vec3, EyePoint); - I_Property(osgUtil::IntersectVisitor::LODSelectionMode, LODSelectionMode); - I_ReadOnlyProperty(osgUtil::IntersectVisitor::LineSegmentHitListMap &, SegHitList); + I_Constructor0(____IntersectVisitor, + "", + ""); + I_Method0(void, reset, + __void__reset, + "Method to call to reset visitor. ", + "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); + I_Method1(void, addLineSegment, IN, osg::LineSegment *, seg, + __void__addLineSegment__osg_LineSegment_P1, + "Add a line segment to use for intersection testing during scene traversal. ", + "Note, a maximum of 32 line segments can be added to a IntersectVistor, adding more than this will result in warning being emitted to the console and the excess segments being ignored. "); + I_Method1(osgUtil::IntersectVisitor::HitList &, getHitList, IN, const osg::LineSegment *, seg, + __HitList_R1__getHitList__C5_osg_LineSegment_P1, + "", + ""); + I_Method1(int, getNumHits, IN, const osg::LineSegment *, seg, + __int__getNumHits__C5_osg_LineSegment_P1, + "", + ""); + I_Method0(osgUtil::IntersectVisitor::LineSegmentHitListMap &, getSegHitList, + __LineSegmentHitListMap_R1__getSegHitList, + "", + ""); + I_Method0(bool, hits, + __bool__hits, + "", + ""); + I_Method1(void, setLODSelectionMode, IN, osgUtil::IntersectVisitor::LODSelectionMode, mode, + __void__setLODSelectionMode__LODSelectionMode, + "", + ""); + I_Method0(osgUtil::IntersectVisitor::LODSelectionMode, getLODSelectionMode, + __LODSelectionMode__getLODSelectionMode, + "", + ""); + I_Method1(void, setEyePoint, IN, const osg::Vec3 &, eye, + __void__setEyePoint__C5_osg_Vec3_R1, + "Set the eye point in local coordinates. ", + "This is a pseudo-EyePoint for billboarding and LOD purposes. It is copied from the Start point of the most-recently-added segment of the intersection ray set (IntersectState::_segList). "); + I_Method0(osg::Vec3, getEyePoint, + __osg_Vec3__getEyePoint, + "Get the eye point in local coordinates. ", + "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. "); + I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + __float__getDistanceToEyePoint__C5_osg_Vec3_R1__bool, + "Get the distance from a point to the eye point, distance value in local coordinate system. ", + "This is calculated using the pseudo-EyePoint (above) when doing LOD calculcations. "); + I_Method1(void, apply, IN, osg::Node &, x, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + __void__apply__osg_LOD_R1, + "", + ""); + I_SimpleProperty(osg::Vec3, EyePoint, + __osg_Vec3__getEyePoint, + __void__setEyePoint__C5_osg_Vec3_R1); + I_SimpleProperty(osgUtil::IntersectVisitor::LODSelectionMode, LODSelectionMode, + __LODSelectionMode__getLODSelectionMode, + __void__setLODSelectionMode__LODSelectionMode); + I_SimpleProperty(osgUtil::IntersectVisitor::LineSegmentHitListMap &, SegHitList, + __LineSegmentHitListMap_R1__getSegHitList, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::PickVisitor) I_BaseType(osgUtil::IntersectVisitor); - I_Constructor5(IN, const osg::Viewport *, viewport, IN, const osg::Matrixd &, proj, IN, const osg::Matrixd &, view, IN, float, mx, IN, float, my); - I_Method6(void, runNestedPickVisitor, IN, osg::Node &, node, IN, const osg::Viewport *, viewport, IN, const osg::Matrix &, proj, IN, const osg::Matrix &, view, IN, float, mx, IN, float, my); - I_Method1(void, apply, IN, osg::Projection &, projection); - I_Method1(void, apply, IN, osg::CameraNode &, camera); + I_Constructor5(IN, const osg::Viewport *, viewport, IN, const osg::Matrixd &, proj, IN, const osg::Matrixd &, view, IN, float, mx, IN, float, my, + ____PickVisitor__C5_osg_Viewport_P1__C5_osg_Matrixd_R1__C5_osg_Matrixd_R1__float__float, + "", + ""); + I_Method6(void, runNestedPickVisitor, IN, osg::Node &, node, IN, const osg::Viewport *, viewport, IN, const osg::Matrix &, proj, IN, const osg::Matrix &, view, IN, float, mx, IN, float, my, + __void__runNestedPickVisitor__osg_Node_R1__C5_osg_Viewport_P1__C5_osg_Matrix_R1__C5_osg_Matrix_R1__float__float, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, projection, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::CameraNode &, camera, + __void__apply__osg_CameraNode_R1, + "", + ""); END_REFLECTOR STD_MAP_REFLECTOR(std::map< const osg::LineSegment * COMMA osgUtil::IntersectVisitor::HitList >); diff --git a/src/osgWrappers/osgUtil/Optimizer.cpp b/src/osgWrappers/osgUtil/Optimizer.cpp index f974cd306..a6c18fc6f 100644 --- a/src/osgWrappers/osgUtil/Optimizer.cpp +++ b/src/osgWrappers/osgUtil/Optimizer.cpp @@ -40,11 +40,26 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::BaseOptimizerVisitor) I_BaseType(osg::NodeVisitor); - I_Constructor2(IN, osgUtil::Optimizer *, optimizer, IN, unsigned int, operation); - I_Method1(bool, isOperationPermissibleForObject, IN, const osg::StateSet *, object); - I_Method1(bool, isOperationPermissibleForObject, IN, const osg::StateAttribute *, object); - I_Method1(bool, isOperationPermissibleForObject, IN, const osg::Drawable *, object); - I_Method1(bool, isOperationPermissibleForObject, IN, const osg::Node *, object); + I_Constructor2(IN, osgUtil::Optimizer *, optimizer, IN, unsigned int, operation, + ____BaseOptimizerVisitor__Optimizer_P1__unsigned_int, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::StateSet *, object, + __bool__isOperationPermissibleForObject__C5_osg_StateSet_P1, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::StateAttribute *, object, + __bool__isOperationPermissibleForObject__C5_osg_StateAttribute_P1, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::Drawable *, object, + __bool__isOperationPermissibleForObject__C5_osg_Drawable_P1, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::Node *, object, + __bool__isOperationPermissibleForObject__C5_osg_Node_P1, + "", + ""); END_REFLECTOR BEGIN_ENUM_REFLECTOR(osgUtil::Optimizer::OptimizationOptions) @@ -68,58 +83,149 @@ BEGIN_ENUM_REFLECTOR(osgUtil::Optimizer::OptimizationOptions) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer) - I_Constructor0(); - I_Method0(void, reset); - I_Method1(void, optimize, IN, osg::Node *, node); - I_Method2(void, optimize, IN, osg::Node *, node, IN, unsigned int, options); - I_Method1(void, setIsOperationPermissibleForObjectCallback, IN, osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, callback); - I_Method0(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, getIsOperationPermissibleForObjectCallback); - I_Method0(const osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, getIsOperationPermissibleForObjectCallback); - I_Method2(void, setPermissibleOptimizationsForObject, IN, const osg::Object *, object, IN, unsigned int, options); - I_Method1(unsigned int, getPermissibleOptimizationsForObject, IN, const osg::Object *, object); - I_Method2(bool, isOperationPermissibleForObject, IN, const osg::StateSet *, object, IN, unsigned int, option); - I_Method2(bool, isOperationPermissibleForObject, IN, const osg::StateAttribute *, object, IN, unsigned int, option); - I_Method2(bool, isOperationPermissibleForObject, IN, const osg::Drawable *, object, IN, unsigned int, option); - I_Method2(bool, isOperationPermissibleForObject, IN, const osg::Node *, object, IN, unsigned int, option); - I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::StateSet *, stateset, IN, unsigned int, option); - I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option); - I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::Drawable *, drawable, IN, unsigned int, option); - I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::Node *, node, IN, unsigned int, option); - I_Property(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, IsOperationPermissibleForObjectCallback); - I_IndexedProperty1(unsigned int, PermissibleOptimizationsForObject, const osg::Object *, object); + I_Constructor0(____Optimizer, + "", + ""); + I_Method0(void, reset, + __void__reset, + "Reset internal data to initial state - the getPermissibleOptionsMap is cleared. ", + ""); + I_Method1(void, optimize, IN, osg::Node *, node, + __void__optimize__osg_Node_P1, + "Traverse the node and its subgraph with a series of optimization visitors, specified by the OptimizationOptions. ", + ""); + I_Method2(void, optimize, IN, osg::Node *, node, IN, unsigned int, options, + __void__optimize__osg_Node_P1__unsigned_int, + "Traverse the node and its subgraph with a series of optimization visitors, specified by the OptimizationOptions. ", + ""); + I_Method1(void, setIsOperationPermissibleForObjectCallback, IN, osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, callback, + __void__setIsOperationPermissibleForObjectCallback__IsOperationPermissibleForObjectCallback_P1, + "Set the callback for customizing what operations are permitted on objects in the scene graph. ", + ""); + I_Method0(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, getIsOperationPermissibleForObjectCallback, + __IsOperationPermissibleForObjectCallback_P1__getIsOperationPermissibleForObjectCallback, + "Get the callback for customizing what operations are permitted on objects in the scene graph. ", + ""); + I_Method0(const osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, getIsOperationPermissibleForObjectCallback, + __C5_IsOperationPermissibleForObjectCallback_P1__getIsOperationPermissibleForObjectCallback, + "Get the callback for customizing what operations are permitted on objects in the scene graph. ", + ""); + I_Method2(void, setPermissibleOptimizationsForObject, IN, const osg::Object *, object, IN, unsigned int, options, + __void__setPermissibleOptimizationsForObject__C5_osg_Object_P1__unsigned_int, + "", + ""); + I_Method1(unsigned int, getPermissibleOptimizationsForObject, IN, const osg::Object *, object, + __unsigned_int__getPermissibleOptimizationsForObject__C5_osg_Object_P1, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::StateSet *, object, IN, unsigned int, option, + __bool__isOperationPermissibleForObject__C5_osg_StateSet_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::StateAttribute *, object, IN, unsigned int, option, + __bool__isOperationPermissibleForObject__C5_osg_StateAttribute_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::Drawable *, object, IN, unsigned int, option, + __bool__isOperationPermissibleForObject__C5_osg_Drawable_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::Node *, object, IN, unsigned int, option, + __bool__isOperationPermissibleForObject__C5_osg_Node_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::StateSet *, stateset, IN, unsigned int, option, + __bool__isOperationPermissibleForObjectImplementation__C5_osg_StateSet_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option, + __bool__isOperationPermissibleForObjectImplementation__C5_osg_StateAttribute_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::Drawable *, drawable, IN, unsigned int, option, + __bool__isOperationPermissibleForObjectImplementation__C5_osg_Drawable_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::Node *, node, IN, unsigned int, option, + __bool__isOperationPermissibleForObjectImplementation__C5_osg_Node_P1__unsigned_int, + "", + ""); + I_SimpleProperty(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, IsOperationPermissibleForObjectCallback, + __IsOperationPermissibleForObjectCallback_P1__getIsOperationPermissibleForObjectCallback, + __void__setIsOperationPermissibleForObjectCallback__IsOperationPermissibleForObjectCallback_P1); + I_IndexedProperty(unsigned int, PermissibleOptimizationsForObject, + __unsigned_int__getPermissibleOptimizationsForObject__C5_osg_Object_P1, + __void__setPermissibleOptimizationsForObject__C5_osg_Object_P1__unsigned_int, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CheckGeometryVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method1(void, apply, IN, osg::Geode &, geode); - I_Method1(void, checkGeode, IN, osg::Geode &, geode); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____CheckGeometryVisitor__Optimizer_P1, + "default to traversing all children. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, checkGeode, IN, osg::Geode &, geode, + __void__checkGeode__osg_Geode_R1, + "", + ""); END_REFLECTOR TYPE_NAME_ALIAS(std::set< osg::Group * >, osgUtil::Optimizer::CombineLODsVisitor::GroupList); BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CombineLODsVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method1(void, apply, IN, osg::LOD &, lod); - I_Method0(void, combineLODs); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____CombineLODsVisitor__Optimizer_P1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, lod, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method0(void, combineLODs, + __void__combineLODs, + "", + ""); I_PublicMemberProperty(osgUtil::Optimizer::CombineLODsVisitor::GroupList, _groupList); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CombineStaticTransformsVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method1(void, apply, IN, osg::MatrixTransform &, transform); - I_Method1(bool, removeTransforms, IN, osg::Node *, nodeWeCannotRemove); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____CombineStaticTransformsVisitor__Optimizer_P1, + "", + ""); + I_Method1(void, apply, IN, osg::MatrixTransform &, transform, + __void__apply__osg_MatrixTransform_R1, + "", + ""); + I_Method1(bool, removeTransforms, IN, osg::Node *, nodeWeCannotRemove, + __bool__removeTransforms__osg_Node_P1, + "", + ""); END_REFLECTOR TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::CopySharedSubgraphsVisitor::SharedNodeList); BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CopySharedSubgraphsVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method1(void, apply, IN, osg::Node &, node); - I_Method0(void, copySharedNodes); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____CopySharedSubgraphsVisitor__Optimizer_P1, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + __void__apply__osg_Node_R1, + "", + ""); + I_Method0(void, copySharedNodes, + __void__copySharedNodes, + "", + ""); I_PublicMemberProperty(osgUtil::Optimizer::CopySharedSubgraphsVisitor::SharedNodeList, _sharedNodeList); END_REFLECTOR @@ -129,66 +235,175 @@ TYPE_NAME_ALIAS(std::map< osg::Billboard * COMMA osgUtil::Optimizer::FlattenBil BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::FlattenBillboardVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method0(void, reset); - I_Method1(void, apply, IN, osg::Billboard &, billboard); - I_Method0(void, process); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____FlattenBillboardVisitor__Optimizer_P1, + "", + ""); + I_Method0(void, reset, + __void__reset, + "Method to call to reset visitor. ", + "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); + I_Method1(void, apply, IN, osg::Billboard &, billboard, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method0(void, process, + __void__process, + "", + ""); I_PublicMemberProperty(osgUtil::Optimizer::FlattenBillboardVisitor::BillboardNodePathMap, _billboards); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::FlattenStaticTransformsVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method1(void, apply, IN, osg::Node &, geode); - I_Method1(void, apply, IN, osg::Geode &, geode); - I_Method1(void, apply, IN, osg::Billboard &, geode); - I_Method1(void, apply, IN, osg::ProxyNode &, node); - I_Method1(void, apply, IN, osg::Transform &, transform); - I_Method1(bool, removeTransforms, IN, osg::Node *, nodeWeCannotRemove); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____FlattenStaticTransformsVisitor__Optimizer_P1, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, geode, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, geode, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ProxyNode &, node, + __void__apply__osg_ProxyNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, transform, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(bool, removeTransforms, IN, osg::Node *, nodeWeCannotRemove, + __bool__removeTransforms__osg_Node_P1, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateSet *, stateset, IN, unsigned int, option); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Drawable *, drawable, IN, unsigned int, option); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Node *, node, IN, unsigned int, option); + I_Constructor0(____IsOperationPermissibleForObjectCallback, + "", + ""); + I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateSet *, stateset, IN, unsigned int, option, + __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateSet_P1__unsigned_int, + "", + ""); + I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option, + __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateAttribute_P1__unsigned_int, + "", + ""); + I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Drawable *, drawable, IN, unsigned int, option, + __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Drawable_P1__unsigned_int, + "", + ""); + I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Node *, node, IN, unsigned int, option, + __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Node_P1__unsigned_int, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::MergeGeodesVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method1(void, apply, IN, osg::Group &, group); - I_Method1(bool, mergeGeodes, IN, osg::Group &, group); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____MergeGeodesVisitor__Optimizer_P1, + "default to traversing all children. ", + ""); + I_Method1(void, apply, IN, osg::Group &, group, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(bool, mergeGeodes, IN, osg::Group &, group, + __bool__mergeGeodes__osg_Group_R1, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::MergeGeometryVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method1(void, setTargetMaximumNumberOfVertices, IN, unsigned int, num); - I_Method0(unsigned int, getTargetMaximumNumberOfVertices); - I_Method1(void, apply, IN, osg::Geode &, geode); - I_Method1(void, apply, IN, osg::Billboard &, x); - I_Method1(bool, mergeGeode, IN, osg::Geode &, geode); - I_StaticMethod1(bool, geometryContainsSharedArrays, IN, osg::Geometry &, geom); - I_StaticMethod2(bool, mergeGeometry, IN, osg::Geometry &, lhs, IN, osg::Geometry &, rhs); - I_StaticMethod2(bool, mergePrimitive, IN, osg::DrawArrays &, lhs, IN, osg::DrawArrays &, rhs); - I_StaticMethod2(bool, mergePrimitive, IN, osg::DrawArrayLengths &, lhs, IN, osg::DrawArrayLengths &, rhs); - I_StaticMethod2(bool, mergePrimitive, IN, osg::DrawElementsUByte &, lhs, IN, osg::DrawElementsUByte &, rhs); - I_StaticMethod2(bool, mergePrimitive, IN, osg::DrawElementsUShort &, lhs, IN, osg::DrawElementsUShort &, rhs); - I_StaticMethod2(bool, mergePrimitive, IN, osg::DrawElementsUInt &, lhs, IN, osg::DrawElementsUInt &, rhs); - I_Property(unsigned int, TargetMaximumNumberOfVertices); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____MergeGeometryVisitor__Optimizer_P1, + "default to traversing all children. ", + ""); + I_Method1(void, setTargetMaximumNumberOfVertices, IN, unsigned int, num, + __void__setTargetMaximumNumberOfVertices__unsigned_int, + "", + ""); + I_Method0(unsigned int, getTargetMaximumNumberOfVertices, + __unsigned_int__getTargetMaximumNumberOfVertices, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, x, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(bool, mergeGeode, IN, osg::Geode &, geode, + __bool__mergeGeode__osg_Geode_R1, + "", + ""); + I_StaticMethod1(bool, geometryContainsSharedArrays, IN, osg::Geometry &, geom, + __bool__geometryContainsSharedArrays__osg_Geometry_R1_S, + "", + ""); + I_StaticMethod2(bool, mergeGeometry, IN, osg::Geometry &, lhs, IN, osg::Geometry &, rhs, + __bool__mergeGeometry__osg_Geometry_R1__osg_Geometry_R1_S, + "", + ""); + I_StaticMethod2(bool, mergePrimitive, IN, osg::DrawArrays &, lhs, IN, osg::DrawArrays &, rhs, + __bool__mergePrimitive__osg_DrawArrays_R1__osg_DrawArrays_R1_S, + "", + ""); + I_StaticMethod2(bool, mergePrimitive, IN, osg::DrawArrayLengths &, lhs, IN, osg::DrawArrayLengths &, rhs, + __bool__mergePrimitive__osg_DrawArrayLengths_R1__osg_DrawArrayLengths_R1_S, + "", + ""); + I_StaticMethod2(bool, mergePrimitive, IN, osg::DrawElementsUByte &, lhs, IN, osg::DrawElementsUByte &, rhs, + __bool__mergePrimitive__osg_DrawElementsUByte_R1__osg_DrawElementsUByte_R1_S, + "", + ""); + I_StaticMethod2(bool, mergePrimitive, IN, osg::DrawElementsUShort &, lhs, IN, osg::DrawElementsUShort &, rhs, + __bool__mergePrimitive__osg_DrawElementsUShort_R1__osg_DrawElementsUShort_R1_S, + "", + ""); + I_StaticMethod2(bool, mergePrimitive, IN, osg::DrawElementsUInt &, lhs, IN, osg::DrawElementsUInt &, rhs, + __bool__mergePrimitive__osg_DrawElementsUInt_R1__osg_DrawElementsUInt_R1_S, + "", + ""); + I_SimpleProperty(unsigned int, TargetMaximumNumberOfVertices, + __unsigned_int__getTargetMaximumNumberOfVertices, + __void__setTargetMaximumNumberOfVertices__unsigned_int); END_REFLECTOR TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::RemoveEmptyNodesVisitor::NodeList); BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::RemoveEmptyNodesVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method1(void, apply, IN, osg::Geode &, geode); - I_Method1(void, apply, IN, osg::Group &, group); - I_Method0(void, removeEmptyNodes); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____RemoveEmptyNodesVisitor__Optimizer_P1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, group, + __void__apply__osg_Group_R1, + "", + ""); + I_Method0(void, removeEmptyNodes, + __void__removeEmptyNodes, + "", + ""); I_PublicMemberProperty(osgUtil::Optimizer::RemoveEmptyNodesVisitor::NodeList, _redundantNodeList); END_REFLECTOR @@ -196,9 +411,18 @@ TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::RemoveLoadedProxyNo BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::RemoveLoadedProxyNodesVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method1(void, apply, IN, osg::ProxyNode &, group); - I_Method0(void, removeRedundantNodes); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____RemoveLoadedProxyNodesVisitor__Optimizer_P1, + "", + ""); + I_Method1(void, apply, IN, osg::ProxyNode &, group, + __void__apply__osg_ProxyNode_R1, + "", + ""); + I_Method0(void, removeRedundantNodes, + __void__removeRedundantNodes, + "", + ""); I_PublicMemberProperty(osgUtil::Optimizer::RemoveLoadedProxyNodesVisitor::NodeList, _redundantNodeList); END_REFLECTOR @@ -206,10 +430,22 @@ TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::RemoveRedundantNode BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::RemoveRedundantNodesVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method1(void, apply, IN, osg::Group &, group); - I_Method1(void, apply, IN, osg::Transform &, transform); - I_Method0(void, removeRedundantNodes); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____RemoveRedundantNodesVisitor__Optimizer_P1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, group, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, transform, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method0(void, removeRedundantNodes, + __void__removeRedundantNodes, + "", + ""); I_PublicMemberProperty(osgUtil::Optimizer::RemoveRedundantNodesVisitor::NodeList, _redundantNodeList); END_REFLECTOR @@ -217,78 +453,216 @@ TYPE_NAME_ALIAS(std::set< osg::Group * >, osgUtil::Optimizer::SpatializeGroupsVi BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::SpatializeGroupsVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method1(void, apply, IN, osg::Group &, group); - I_MethodWithDefaults1(bool, divide, IN, unsigned int, maxNumTreesPerCell, 8); - I_Method2(bool, divide, IN, osg::Group *, group, IN, unsigned int, maxNumTreesPerCell); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____SpatializeGroupsVisitor__Optimizer_P1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, group, + __void__apply__osg_Group_R1, + "", + ""); + I_MethodWithDefaults1(bool, divide, IN, unsigned int, maxNumTreesPerCell, 8, + __bool__divide__unsigned_int, + "", + ""); + I_Method2(bool, divide, IN, osg::Group *, group, IN, unsigned int, maxNumTreesPerCell, + __bool__divide__osg_Group_P1__unsigned_int, + "", + ""); I_PublicMemberProperty(osgUtil::Optimizer::SpatializeGroupsVisitor::GroupsToDivideList, _groupsToDivideList); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::StateVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method0(void, reset); - I_Method1(void, apply, IN, osg::Node &, node); - I_Method1(void, apply, IN, osg::Geode &, geode); - I_Method0(void, optimize); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____StateVisitor__Optimizer_P1, + "default to traversing all children. ", + ""); + I_Method0(void, reset, + __void__reset, + "empty visitor, make it ready for next traversal. ", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method0(void, optimize, + __void__optimize, + "", + ""); END_REFLECTOR TYPE_NAME_ALIAS(std::set< osg::Group * >, osgUtil::Optimizer::TesselateVisitor::GroupList); BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::TesselateVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method1(void, apply, IN, osg::Geode &, geode); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____TesselateVisitor__Optimizer_P1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + __void__apply__osg_Geode_R1, + "", + ""); I_PublicMemberProperty(osgUtil::Optimizer::TesselateVisitor::GroupList, _groupList); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::TextureAtlasBuilder) - I_Constructor0(); - I_Method0(void, reset); - I_Method2(void, setMaximumAtlasSize, IN, unsigned int, width, IN, unsigned int, height); - I_Method0(unsigned int, getMaximumAtlasWidth); - I_Method0(unsigned int, getMaximumAtlasHeight); - I_Method1(void, setMargin, IN, unsigned int, margin); - I_Method0(unsigned int, getMargin); - I_Method1(void, addSource, IN, const osg::Image *, image); - I_Method1(void, addSource, IN, const osg::Texture2D *, texture); - I_Method0(unsigned int, getNumSources); - I_Method1(const osg::Image *, getSourceImage, IN, unsigned int, i); - I_Method1(const osg::Texture2D *, getSourceTexture, IN, unsigned int, i); - I_Method0(void, buildAtlas); - I_Method1(osg::Image *, getImageAtlas, IN, unsigned int, i); - I_Method1(osg::Texture2D *, getTextureAtlas, IN, unsigned int, i); - I_Method1(osg::Matrix, getTextureMatrix, IN, unsigned int, i); - I_Method1(osg::Image *, getImageAtlas, IN, const osg::Image *, image); - I_Method1(osg::Texture2D *, getTextureAtlas, IN, const osg::Image *, image); - I_Method1(osg::Matrix, getTextureMatrix, IN, const osg::Image *, image); - I_Method1(osg::Image *, getImageAtlas, IN, const osg::Texture2D *, textue); - I_Method1(osg::Texture2D *, getTextureAtlas, IN, const osg::Texture2D *, texture); - I_Method1(osg::Matrix, getTextureMatrix, IN, const osg::Texture2D *, texture); - I_Property(unsigned int, Margin); - I_ReadOnlyProperty(unsigned int, MaximumAtlasHeight); - I_ReadOnlyProperty(unsigned int, MaximumAtlasWidth); - I_ArrayProperty_Custom(const osg::Texture2D *, Source, Sources, unsigned int, void); + I_Constructor0(____TextureAtlasBuilder, + "", + ""); + I_Method0(void, reset, + __void__reset, + "", + ""); + I_Method2(void, setMaximumAtlasSize, IN, unsigned int, width, IN, unsigned int, height, + __void__setMaximumAtlasSize__unsigned_int__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumAtlasWidth, + __unsigned_int__getMaximumAtlasWidth, + "", + ""); + I_Method0(unsigned int, getMaximumAtlasHeight, + __unsigned_int__getMaximumAtlasHeight, + "", + ""); + I_Method1(void, setMargin, IN, unsigned int, margin, + __void__setMargin__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMargin, + __unsigned_int__getMargin, + "", + ""); + I_Method1(void, addSource, IN, const osg::Image *, image, + __void__addSource__C5_osg_Image_P1, + "", + ""); + I_Method1(void, addSource, IN, const osg::Texture2D *, texture, + __void__addSource__C5_osg_Texture2D_P1, + "", + ""); + I_Method0(unsigned int, getNumSources, + __unsigned_int__getNumSources, + "", + ""); + I_Method1(const osg::Image *, getSourceImage, IN, unsigned int, i, + __C5_osg_Image_P1__getSourceImage__unsigned_int, + "", + ""); + I_Method1(const osg::Texture2D *, getSourceTexture, IN, unsigned int, i, + __C5_osg_Texture2D_P1__getSourceTexture__unsigned_int, + "", + ""); + I_Method0(void, buildAtlas, + __void__buildAtlas, + "", + ""); + I_Method1(osg::Image *, getImageAtlas, IN, unsigned int, i, + __osg_Image_P1__getImageAtlas__unsigned_int, + "", + ""); + I_Method1(osg::Texture2D *, getTextureAtlas, IN, unsigned int, i, + __osg_Texture2D_P1__getTextureAtlas__unsigned_int, + "", + ""); + I_Method1(osg::Matrix, getTextureMatrix, IN, unsigned int, i, + __osg_Matrix__getTextureMatrix__unsigned_int, + "", + ""); + I_Method1(osg::Image *, getImageAtlas, IN, const osg::Image *, image, + __osg_Image_P1__getImageAtlas__C5_osg_Image_P1, + "", + ""); + I_Method1(osg::Texture2D *, getTextureAtlas, IN, const osg::Image *, image, + __osg_Texture2D_P1__getTextureAtlas__C5_osg_Image_P1, + "", + ""); + I_Method1(osg::Matrix, getTextureMatrix, IN, const osg::Image *, image, + __osg_Matrix__getTextureMatrix__C5_osg_Image_P1, + "", + ""); + I_Method1(osg::Image *, getImageAtlas, IN, const osg::Texture2D *, textue, + __osg_Image_P1__getImageAtlas__C5_osg_Texture2D_P1, + "", + ""); + I_Method1(osg::Texture2D *, getTextureAtlas, IN, const osg::Texture2D *, texture, + __osg_Texture2D_P1__getTextureAtlas__C5_osg_Texture2D_P1, + "", + ""); + I_Method1(osg::Matrix, getTextureMatrix, IN, const osg::Texture2D *, texture, + __osg_Matrix__getTextureMatrix__C5_osg_Texture2D_P1, + "", + ""); + I_SimpleProperty(unsigned int, Margin, + __unsigned_int__getMargin, + __void__setMargin__unsigned_int); + I_SimpleProperty(unsigned int, MaximumAtlasHeight, + __unsigned_int__getMaximumAtlasHeight, + 0); + I_SimpleProperty(unsigned int, MaximumAtlasWidth, + __unsigned_int__getMaximumAtlasWidth, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::TextureAtlasVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method0(osgUtil::Optimizer::TextureAtlasBuilder &, getTextureAtlasBuilder); - I_Method0(void, reset); - I_Method1(void, apply, IN, osg::Node &, node); - I_Method1(void, apply, IN, osg::Geode &, geode); - I_Method0(void, optimize); - I_ReadOnlyProperty(osgUtil::Optimizer::TextureAtlasBuilder &, TextureAtlasBuilder); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____TextureAtlasVisitor__Optimizer_P1, + "default to traversing all children. ", + ""); + I_Method0(osgUtil::Optimizer::TextureAtlasBuilder &, getTextureAtlasBuilder, + __TextureAtlasBuilder_R1__getTextureAtlasBuilder, + "", + ""); + I_Method0(void, reset, + __void__reset, + "empty visitor, make it ready for next traversal. ", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method0(void, optimize, + __void__optimize, + "", + ""); + I_SimpleProperty(osgUtil::Optimizer::TextureAtlasBuilder &, TextureAtlasBuilder, + __TextureAtlasBuilder_R1__getTextureAtlasBuilder, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::TextureVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults7(IN, bool, changeAutoUnRef, , IN, bool, valueAutoUnRef, , IN, bool, changeClientImageStorage, , IN, bool, valueClientImageStorage, , IN, bool, changeAnisotropy, , IN, float, valueAnisotropy, , IN, osgUtil::Optimizer *, optimizer, 0); - I_Method1(void, apply, IN, osg::Geode &, node); - I_Method1(void, apply, IN, osg::Node &, node); - I_Method1(void, apply, IN, osg::StateSet &, stateset); - I_Method1(void, apply, IN, osg::Texture &, texture); + I_ConstructorWithDefaults7(IN, bool, changeAutoUnRef, , IN, bool, valueAutoUnRef, , IN, bool, changeClientImageStorage, , IN, bool, valueClientImageStorage, , IN, bool, changeAnisotropy, , IN, float, valueAnisotropy, , IN, osgUtil::Optimizer *, optimizer, 0, + ____TextureVisitor__bool__bool__bool__bool__bool__float__Optimizer_P1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::StateSet &, stateset, + __void__apply__osg_StateSet_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Texture &, texture, + __void__apply__osg_Texture_R1, + "", + ""); I_PublicMemberProperty(bool, _changeAutoUnRef); I_PublicMemberProperty(bool, _valueAutoUnRef); I_PublicMemberProperty(bool, _changeClientImageStorage); diff --git a/src/osgWrappers/osgUtil/PositionalStateContainer.cpp b/src/osgWrappers/osgUtil/PositionalStateContainer.cpp index de255c281..377ee537b 100644 --- a/src/osgWrappers/osgUtil/PositionalStateContainer.cpp +++ b/src/osgWrappers/osgUtil/PositionalStateContainer.cpp @@ -34,29 +34,80 @@ TYPE_NAME_ALIAS(std::map< unsigned int COMMA osgUtil::PositionalStateContainer: BEGIN_OBJECT_REFLECTOR(osgUtil::PositionalStateContainer) I_BaseType(osg::Object); - I_Constructor0(); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(void, reset); - I_Method2(void, addPositionedAttribute, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr); - I_Method3(void, addPositionedTextureAttribute, IN, unsigned int, textureUnit, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr); - I_MethodWithDefaults3(void, draw, IN, osg::State &, state, , IN, osgUtil::RenderLeaf *&, previous, , IN, const osg::Matrix *, postMultMatrix, 0); + I_Constructor0(____PositionalStateContainer, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(void, reset, + __void__reset, + "", + ""); + I_Method2(void, addPositionedAttribute, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + __void__addPositionedAttribute__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, + "", + ""); + I_Method3(void, addPositionedTextureAttribute, IN, unsigned int, textureUnit, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + __void__addPositionedTextureAttribute__unsigned_int__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, + "", + ""); + I_MethodWithDefaults3(void, draw, IN, osg::State &, state, , IN, osgUtil::RenderLeaf *&, previous, , IN, const osg::Matrix *, postMultMatrix, 0, + __void__draw__osg_State_R1__RenderLeaf_P1R1__C5_osg_Matrix_P1, + "", + ""); I_PublicMemberProperty(osgUtil::PositionalStateContainer::AttrMatrixList, _attrList); I_PublicMemberProperty(osgUtil::PositionalStateContainer::TexUnitAttrMatrixListMap, _texAttrListMap); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::RefMatrix >) - I_Constructor0(); - I_Constructor1(IN, osg::RefMatrix *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osg::RefMatrix > &, rp); - I_Method0(osg::RefMatrix *, get); - I_Method0(bool, valid); - I_Method0(osg::RefMatrix *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osg::RefMatrix > &, rp); - I_ReadOnlyProperty(osg::RefMatrix *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::RefMatrix *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::RefMatrix > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::RefMatrix *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osg::RefMatrix *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::RefMatrix > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::RefMatrix *, , + __T_P1__get, + 0); END_REFLECTOR STD_MAP_REFLECTOR(std::map< unsigned int COMMA osgUtil::PositionalStateContainer::AttrMatrixList >); diff --git a/src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp b/src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp index 946a0e990..0d047f570 100644 --- a/src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp +++ b/src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp @@ -23,7 +23,13 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::ReflectionMapGenerator) I_BaseType(osgUtil::CubeMapGenerator); - I_ConstructorWithDefaults1(IN, int, texture_size, 64); - I_ConstructorWithDefaults2(IN, const osgUtil::ReflectionMapGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + I_ConstructorWithDefaults1(IN, int, texture_size, 64, + ____ReflectionMapGenerator__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::ReflectionMapGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ReflectionMapGenerator__C5_ReflectionMapGenerator_R1__C5_osg_CopyOp_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/RenderBin.cpp b/src/osgWrappers/osgUtil/RenderBin.cpp index 4ce63565c..3f3a0d652 100644 --- a/src/osgWrappers/osgUtil/RenderBin.cpp +++ b/src/osgWrappers/osgUtil/RenderBin.cpp @@ -29,7 +29,10 @@ #endif BEGIN_VALUE_REFLECTOR(osgUtil::RegisterRenderBinProxy) - I_Constructor2(IN, const std::string &, binName, IN, osgUtil::RenderBin *, proto); + I_Constructor2(IN, const std::string &, binName, IN, osgUtil::RenderBin *, proto, + ____RegisterRenderBinProxy__C5_std_string_R1__RenderBin_P1, + "", + ""); END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osgUtil::RenderLeaf * >, osgUtil::RenderBin::RenderLeafList); @@ -47,88 +50,286 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) I_BaseType(osg::Object); - I_Constructor0(); - I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode); - I_ConstructorWithDefaults2(IN, const osgUtil::RenderBin &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, libraryName); - I_Method0(const char *, className); - I_Method0(void, reset); - I_Method1(void, setStateSet, IN, osg::StateSet *, stateset); - I_Method0(osg::StateSet *, getStateSet); - I_Method0(const osg::StateSet *, getStateSet); - I_Method0(osgUtil::RenderBin *, getParent); - I_Method0(const osgUtil::RenderBin *, getParent); - I_Method0(osgUtil::RenderStage *, getStage); - I_Method0(const osgUtil::RenderStage *, getStage); - I_Method0(int, getBinNum); - I_Method0(osgUtil::RenderBin::StateGraphList &, getStateGraphList); - I_Method0(const osgUtil::RenderBin::StateGraphList &, getStateGraphList); - I_Method0(osgUtil::RenderBin::RenderBinList &, getRenderBinList); - I_Method0(const osgUtil::RenderBin::RenderBinList &, getRenderBinList); - I_Method0(osgUtil::RenderBin::RenderLeafList &, getRenderLeafList); - I_Method0(const osgUtil::RenderBin::RenderLeafList &, getRenderLeafList); - I_Method2(osgUtil::RenderBin *, find_or_insert, IN, int, binNum, IN, const std::string &, binName); - I_Method1(void, addStateGraph, IN, osgUtil::StateGraph *, rg); - I_Method0(void, sort); - I_Method0(void, sortImplementation); - I_Method1(void, setSortMode, IN, osgUtil::RenderBin::SortMode, mode); - I_Method0(osgUtil::RenderBin::SortMode, getSortMode); - I_Method0(void, sortByState); - I_Method0(void, sortByStateThenFrontToBack); - I_Method0(void, sortFrontToBack); - I_Method0(void, sortBackToFront); - I_Method1(void, setSortCallback, IN, osgUtil::RenderBin::SortCallback *, sortCallback); - I_Method0(osgUtil::RenderBin::SortCallback *, getSortCallback); - I_Method0(const osgUtil::RenderBin::SortCallback *, getSortCallback); - I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous); - I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous); - I_Method1(void, setDrawCallback, IN, osgUtil::RenderBin::DrawCallback *, drawCallback); - I_Method0(osgUtil::RenderBin::DrawCallback *, getDrawCallback); - I_Method0(const osgUtil::RenderBin::DrawCallback *, getDrawCallback); - I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats); - I_Method0(void, copyLeavesFromStateGraphListToRenderLeafList); - I_StaticMethod1(osgUtil::RenderBin *, createRenderBin, IN, const std::string &, binName); - I_StaticMethod1(osgUtil::RenderBin *, getRenderBinPrototype, IN, const std::string &, binName); - I_StaticMethod2(void, addRenderBinPrototype, IN, const std::string &, binName, IN, osgUtil::RenderBin *, proto); - I_StaticMethod1(void, removeRenderBinPrototype, IN, osgUtil::RenderBin *, proto); - I_StaticMethod1(void, setDefaultRenderBinSortMode, IN, osgUtil::RenderBin::SortMode, mode); - I_StaticMethod0(osgUtil::RenderBin::SortMode, getDefaultRenderBinSortMode); - I_ReadOnlyProperty(int, BinNum); - I_Property(osgUtil::RenderBin::DrawCallback *, DrawCallback); - I_ReadOnlyProperty(osgUtil::RenderBin *, Parent); - I_ReadOnlyProperty(osgUtil::RenderBin::RenderBinList &, RenderBinList); - I_ReadOnlyProperty(osgUtil::RenderBin::RenderLeafList &, RenderLeafList); - I_Property(osgUtil::RenderBin::SortCallback *, SortCallback); - I_Property(osgUtil::RenderBin::SortMode, SortMode); - I_ReadOnlyProperty(osgUtil::RenderStage *, Stage); - I_ReadOnlyProperty(osgUtil::RenderBin::StateGraphList &, StateGraphList); - I_Property(osg::StateSet *, StateSet); + I_Constructor0(____RenderBin, + "", + ""); + I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode, + ____RenderBin__SortMode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::RenderBin &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RenderBin__C5_RenderBin_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(void, reset, + __void__reset, + "", + ""); + I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, + __void__setStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getStateSet, + __osg_StateSet_P1__getStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getStateSet, + __C5_osg_StateSet_P1__getStateSet, + "", + ""); + I_Method0(osgUtil::RenderBin *, getParent, + __RenderBin_P1__getParent, + "", + ""); + I_Method0(const osgUtil::RenderBin *, getParent, + __C5_RenderBin_P1__getParent, + "", + ""); + I_Method0(osgUtil::RenderStage *, getStage, + __RenderStage_P1__getStage, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getStage, + __C5_RenderStage_P1__getStage, + "", + ""); + I_Method0(int, getBinNum, + __int__getBinNum, + "", + ""); + I_Method0(osgUtil::RenderBin::StateGraphList &, getStateGraphList, + __StateGraphList_R1__getStateGraphList, + "", + ""); + I_Method0(const osgUtil::RenderBin::StateGraphList &, getStateGraphList, + __C5_StateGraphList_R1__getStateGraphList, + "", + ""); + I_Method0(osgUtil::RenderBin::RenderBinList &, getRenderBinList, + __RenderBinList_R1__getRenderBinList, + "", + ""); + I_Method0(const osgUtil::RenderBin::RenderBinList &, getRenderBinList, + __C5_RenderBinList_R1__getRenderBinList, + "", + ""); + I_Method0(osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, + __RenderLeafList_R1__getRenderLeafList, + "", + ""); + I_Method0(const osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, + __C5_RenderLeafList_R1__getRenderLeafList, + "", + ""); + I_Method2(osgUtil::RenderBin *, find_or_insert, IN, int, binNum, IN, const std::string &, binName, + __RenderBin_P1__find_or_insert__int__C5_std_string_R1, + "", + ""); + I_Method1(void, addStateGraph, IN, osgUtil::StateGraph *, rg, + __void__addStateGraph__StateGraph_P1, + "", + ""); + I_Method0(void, sort, + __void__sort, + "", + ""); + I_Method0(void, sortImplementation, + __void__sortImplementation, + "", + ""); + I_Method1(void, setSortMode, IN, osgUtil::RenderBin::SortMode, mode, + __void__setSortMode__SortMode, + "", + ""); + I_Method0(osgUtil::RenderBin::SortMode, getSortMode, + __SortMode__getSortMode, + "", + ""); + I_Method0(void, sortByState, + __void__sortByState, + "", + ""); + I_Method0(void, sortByStateThenFrontToBack, + __void__sortByStateThenFrontToBack, + "", + ""); + I_Method0(void, sortFrontToBack, + __void__sortFrontToBack, + "", + ""); + I_Method0(void, sortBackToFront, + __void__sortBackToFront, + "", + ""); + I_Method1(void, setSortCallback, IN, osgUtil::RenderBin::SortCallback *, sortCallback, + __void__setSortCallback__SortCallback_P1, + "", + ""); + I_Method0(osgUtil::RenderBin::SortCallback *, getSortCallback, + __SortCallback_P1__getSortCallback, + "", + ""); + I_Method0(const osgUtil::RenderBin::SortCallback *, getSortCallback, + __C5_SortCallback_P1__getSortCallback, + "", + ""); + I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + __void__draw__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + __void__drawImplementation__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method1(void, setDrawCallback, IN, osgUtil::RenderBin::DrawCallback *, drawCallback, + __void__setDrawCallback__DrawCallback_P1, + "", + ""); + I_Method0(osgUtil::RenderBin::DrawCallback *, getDrawCallback, + __DrawCallback_P1__getDrawCallback, + "", + ""); + I_Method0(const osgUtil::RenderBin::DrawCallback *, getDrawCallback, + __C5_DrawCallback_P1__getDrawCallback, + "", + ""); + I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, + __bool__getStats__Statistics_R1, + "Extract stats for current draw list. ", + ""); + I_Method0(void, copyLeavesFromStateGraphListToRenderLeafList, + __void__copyLeavesFromStateGraphListToRenderLeafList, + "", + ""); + I_StaticMethod1(osgUtil::RenderBin *, createRenderBin, IN, const std::string &, binName, + __RenderBin_P1__createRenderBin__C5_std_string_R1_S, + "", + ""); + I_StaticMethod1(osgUtil::RenderBin *, getRenderBinPrototype, IN, const std::string &, binName, + __RenderBin_P1__getRenderBinPrototype__C5_std_string_R1_S, + "", + ""); + I_StaticMethod2(void, addRenderBinPrototype, IN, const std::string &, binName, IN, osgUtil::RenderBin *, proto, + __void__addRenderBinPrototype__C5_std_string_R1__RenderBin_P1_S, + "", + ""); + I_StaticMethod1(void, removeRenderBinPrototype, IN, osgUtil::RenderBin *, proto, + __void__removeRenderBinPrototype__RenderBin_P1_S, + "", + ""); + I_StaticMethod1(void, setDefaultRenderBinSortMode, IN, osgUtil::RenderBin::SortMode, mode, + __void__setDefaultRenderBinSortMode__SortMode_S, + "", + ""); + I_StaticMethod0(osgUtil::RenderBin::SortMode, getDefaultRenderBinSortMode, + __SortMode__getDefaultRenderBinSortMode_S, + "", + ""); + I_SimpleProperty(int, BinNum, + __int__getBinNum, + 0); + I_SimpleProperty(osgUtil::RenderBin::DrawCallback *, DrawCallback, + __DrawCallback_P1__getDrawCallback, + __void__setDrawCallback__DrawCallback_P1); + I_SimpleProperty(osgUtil::RenderBin *, Parent, + __RenderBin_P1__getParent, + 0); + I_SimpleProperty(osgUtil::RenderBin::RenderBinList &, RenderBinList, + __RenderBinList_R1__getRenderBinList, + 0); + I_SimpleProperty(osgUtil::RenderBin::RenderLeafList &, RenderLeafList, + __RenderLeafList_R1__getRenderLeafList, + 0); + I_SimpleProperty(osgUtil::RenderBin::SortCallback *, SortCallback, + __SortCallback_P1__getSortCallback, + __void__setSortCallback__SortCallback_P1); + I_SimpleProperty(osgUtil::RenderBin::SortMode, SortMode, + __SortMode__getSortMode, + __void__setSortMode__SortMode); + I_SimpleProperty(osgUtil::RenderStage *, Stage, + __RenderStage_P1__getStage, + 0); + I_SimpleProperty(osgUtil::RenderBin::StateGraphList &, StateGraphList, + __StateGraphList_R1__getStateGraphList, + 0); + I_SimpleProperty(osg::StateSet *, StateSet, + __osg_StateSet_P1__getStateSet, + __void__setStateSet__osg_StateSet_P1); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::DrawCallback) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method3(void, drawImplementation, IN, osgUtil::RenderBin *, bin, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous); + I_Constructor0(____DrawCallback, + "", + ""); + I_Method3(void, drawImplementation, IN, osgUtil::RenderBin *, bin, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + __void__drawImplementation__RenderBin_P1__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::SortCallback) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method1(void, sortImplementation, IN, osgUtil::RenderBin *, x); + I_Constructor0(____SortCallback, + "", + ""); + I_Method1(void, sortImplementation, IN, osgUtil::RenderBin *, x, + __void__sortImplementation__RenderBin_P1, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::RenderBin >) - I_Constructor0(); - I_Constructor1(IN, osgUtil::RenderBin *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osgUtil::RenderBin > &, rp); - I_Method0(osgUtil::RenderBin *, get); - I_Method0(bool, valid); - I_Method0(osgUtil::RenderBin *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::RenderBin > &, rp); - I_ReadOnlyProperty(osgUtil::RenderBin *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgUtil::RenderBin *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgUtil::RenderBin > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgUtil::RenderBin *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osgUtil::RenderBin *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::RenderBin > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgUtil::RenderBin *, , + __T_P1__get, + 0); END_REFLECTOR STD_MAP_REFLECTOR(std::map< int COMMA osg::ref_ptr< osgUtil::RenderBin > >); diff --git a/src/osgWrappers/osgUtil/RenderLeaf.cpp b/src/osgWrappers/osgUtil/RenderLeaf.cpp index d2a3a37f0..375fc4016 100644 --- a/src/osgWrappers/osgUtil/RenderLeaf.cpp +++ b/src/osgWrappers/osgUtil/RenderLeaf.cpp @@ -27,10 +27,22 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderLeaf) I_BaseType(osg::Referenced); - I_ConstructorWithDefaults4(IN, osg::Drawable *, drawable, , IN, osg::RefMatrix *, projection, , IN, osg::RefMatrix *, modelview, , IN, float, depth, 0.0f); - I_MethodWithDefaults4(void, set, IN, osg::Drawable *, drawable, , IN, osg::RefMatrix *, projection, , IN, osg::RefMatrix *, modelview, , IN, float, depth, 0.0f); - I_Method0(void, reset); - I_Method2(void, render, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *, previous); + I_ConstructorWithDefaults4(IN, osg::Drawable *, drawable, , IN, osg::RefMatrix *, projection, , IN, osg::RefMatrix *, modelview, , IN, float, depth, 0.0f, + ____RenderLeaf__osg_Drawable_P1__osg_RefMatrix_P1__osg_RefMatrix_P1__float, + "", + ""); + I_MethodWithDefaults4(void, set, IN, osg::Drawable *, drawable, , IN, osg::RefMatrix *, projection, , IN, osg::RefMatrix *, modelview, , IN, float, depth, 0.0f, + __void__set__osg_Drawable_P1__osg_RefMatrix_P1__osg_RefMatrix_P1__float, + "", + ""); + I_Method0(void, reset, + __void__reset, + "", + ""); + I_Method2(void, render, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *, previous, + __void__render__osg_RenderInfo_R1__RenderLeaf_P1, + "", + ""); I_PublicMemberProperty(osgUtil::StateGraph *, _parent); I_PublicMemberProperty(osg::Drawable *, _drawable); I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _projection); diff --git a/src/osgWrappers/osgUtil/RenderStage.cpp b/src/osgWrappers/osgUtil/RenderStage.cpp index 407321f3b..05a7cda25 100644 --- a/src/osgWrappers/osgUtil/RenderStage.cpp +++ b/src/osgWrappers/osgUtil/RenderStage.cpp @@ -39,92 +39,332 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderStage) I_BaseType(osgUtil::RenderBin); - I_Constructor0(); - I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode); - I_ConstructorWithDefaults2(IN, const osgUtil::RenderStage &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_Method0(osg::Object *, cloneType); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj); - I_Method0(const char *, className); - I_Method0(void, reset); - I_Method1(void, setDrawBuffer, IN, GLenum, buffer); - I_Method0(GLenum, getDrawBuffer); - I_Method1(void, setReadBuffer, IN, GLenum, buffer); - I_Method0(GLenum, getReadBuffer); - I_Method1(void, setViewport, IN, osg::Viewport *, viewport); - I_Method0(const osg::Viewport *, getViewport); - I_Method0(osg::Viewport *, getViewport); - I_Method1(void, setClearMask, IN, GLbitfield, mask); - I_Method0(GLbitfield, getClearMask); - I_Method1(void, setColorMask, IN, osg::ColorMask *, cm); - I_Method0(osg::ColorMask *, getColorMask); - I_Method0(const osg::ColorMask *, getColorMask); - I_Method1(void, setClearColor, IN, const osg::Vec4 &, color); - I_Method0(const osg::Vec4 &, getClearColor); - I_Method1(void, setClearAccum, IN, const osg::Vec4 &, color); - I_Method0(const osg::Vec4 &, getClearAccum); - I_Method1(void, setClearDepth, IN, double, depth); - I_Method0(double, getClearDepth); - I_Method1(void, setClearStencil, IN, int, stencil); - I_Method0(int, getClearStencil); - I_Method1(void, setCameraNode, IN, osg::CameraNode *, camera); - I_Method0(osg::CameraNode *, getCameraNode); - I_Method0(const osg::CameraNode *, getCameraNode); - I_Method1(void, setCameraRequiresSetUp, IN, bool, flag); - I_Method0(bool, getCameraRequiresSetUp); - I_Method1(void, runCameraSetUp, IN, osg::RenderInfo &, renderInfo); - I_MethodWithDefaults3(void, setTexture, IN, osg::Texture *, texture, , IN, unsigned int, level, 0, IN, unsigned int, face, 0); - I_Method0(osg::Texture *, getTexture); - I_Method1(void, setImage, IN, osg::Image *, image); - I_Method0(osg::Image *, getImage); - I_Method1(void, setImageReadPixelFormat, IN, GLenum, format); - I_Method0(GLenum, getImageReadPixelFormat); - I_Method1(void, setImageReadPixelDataType, IN, GLenum, type); - I_Method0(GLenum, getImageReadPixelDataType); - I_Method1(void, setFrameBufferObject, IN, osg::FrameBufferObject *, fbo); - I_Method0(osg::FrameBufferObject *, getFrameBufferObject); - I_Method0(const osg::FrameBufferObject *, getFrameBufferObject); - I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context); - I_Method0(osg::GraphicsContext *, getGraphicsContext); - I_Method0(const osg::GraphicsContext *, getGraphicsContext); - I_Method1(void, setInheritedPositionalStateContainerMatrix, IN, const osg::Matrix &, matrix); - I_Method0(const osg::Matrix &, getInheritedPositionalStateContainerMatrix); - I_Method1(void, setInheritedPositionalStateContainer, IN, osgUtil::PositionalStateContainer *, rsl); - I_Method0(osgUtil::PositionalStateContainer *, getInheritedPositionalStateContainer); - I_Method1(void, setPositionalStateContainer, IN, osgUtil::PositionalStateContainer *, rsl); - I_Method0(osgUtil::PositionalStateContainer *, getPositionalStateContainer); - I_Method2(void, addPositionedAttribute, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr); - I_Method3(void, addPositionedTextureAttribute, IN, unsigned int, textureUnit, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr); - I_Method1(void, copyTexture, IN, osg::RenderInfo &, renderInfo); - I_Method0(void, sort); - I_Method2(void, drawPreRenderStages, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous); - I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous); - I_Method3(void, drawInner, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, IN, bool &, doCopyTexture); - I_Method2(void, drawPostRenderStages, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous); - I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous); - I_Method1(void, addToDependencyList, IN, osgUtil::RenderStage *, rs); - I_MethodWithDefaults2(void, addPreRenderStage, IN, osgUtil::RenderStage *, rs, , IN, int, order, 0); - I_MethodWithDefaults2(void, addPostRenderStage, IN, osgUtil::RenderStage *, rs, , IN, int, order, 0); - I_Method1(bool, getStats, IN, osgUtil::Statistics &, stats); - I_Property(osg::CameraNode *, CameraNode); - I_Property(bool, CameraRequiresSetUp); - I_Property(const osg::Vec4 &, ClearAccum); - I_Property(const osg::Vec4 &, ClearColor); - I_Property(double, ClearDepth); - I_Property(GLbitfield, ClearMask); - I_Property(int, ClearStencil); - I_Property(osg::ColorMask *, ColorMask); - I_Property(GLenum, DrawBuffer); - I_Property(osg::FrameBufferObject *, FrameBufferObject); - I_Property(osg::GraphicsContext *, GraphicsContext); - I_Property(osg::Image *, Image); - I_Property(GLenum, ImageReadPixelDataType); - I_Property(GLenum, ImageReadPixelFormat); - I_Property(osgUtil::PositionalStateContainer *, InheritedPositionalStateContainer); - I_Property(const osg::Matrix &, InheritedPositionalStateContainerMatrix); - I_Property(osgUtil::PositionalStateContainer *, PositionalStateContainer); - I_Property(GLenum, ReadBuffer); - I_ReadOnlyProperty(osg::Texture *, Texture); - I_Property(osg::Viewport *, Viewport); + I_Constructor0(____RenderStage, + "", + ""); + I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode, + ____RenderStage__SortMode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::RenderStage &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RenderStage__C5_RenderStage_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(void, reset, + __void__reset, + "", + ""); + I_Method1(void, setDrawBuffer, IN, GLenum, buffer, + __void__setDrawBuffer__GLenum, + "Set the draw buffer used at the start of each frame draw. ", + ""); + I_Method0(GLenum, getDrawBuffer, + __GLenum__getDrawBuffer, + "Get the draw buffer used at the start of each frame draw. ", + ""); + I_Method1(void, setReadBuffer, IN, GLenum, buffer, + __void__setReadBuffer__GLenum, + "Set the read buffer for any required copy operations to use. ", + ""); + I_Method0(GLenum, getReadBuffer, + __GLenum__getReadBuffer, + "Get the read buffer for any required copy operations to use. ", + ""); + I_Method1(void, setViewport, IN, osg::Viewport *, viewport, + __void__setViewport__osg_Viewport_P1, + "Set the viewport. ", + ""); + I_Method0(const osg::Viewport *, getViewport, + __C5_osg_Viewport_P1__getViewport, + "Get the const viewport. ", + ""); + I_Method0(osg::Viewport *, getViewport, + __osg_Viewport_P1__getViewport, + "Get the viewport. ", + ""); + I_Method1(void, setClearMask, IN, GLbitfield, mask, + __void__setClearMask__GLbitfield, + "Set the clear mask used in glClear(. ", + ".). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT. "); + I_Method0(GLbitfield, getClearMask, + __GLbitfield__getClearMask, + "Get the clear mask. ", + ""); + I_Method1(void, setColorMask, IN, osg::ColorMask *, cm, + __void__setColorMask__osg_ColorMask_P1, + "", + ""); + I_Method0(osg::ColorMask *, getColorMask, + __osg_ColorMask_P1__getColorMask, + "", + ""); + I_Method0(const osg::ColorMask *, getColorMask, + __C5_osg_ColorMask_P1__getColorMask, + "", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + __void__setClearColor__C5_osg_Vec4_R1, + "Set the clear color used in glClearColor(. ", + ".). glClearColor is only called if mask & GL_COLOR_BUFFER_BIT is true "); + I_Method0(const osg::Vec4 &, getClearColor, + __C5_osg_Vec4_R1__getClearColor, + "Get the clear color. ", + ""); + I_Method1(void, setClearAccum, IN, const osg::Vec4 &, color, + __void__setClearAccum__C5_osg_Vec4_R1, + "Set the clear accum used in glClearAccum(. ", + ".). glClearAcumm is only called if mask & GL_ACCUM_BUFFER_BIT is true. "); + I_Method0(const osg::Vec4 &, getClearAccum, + __C5_osg_Vec4_R1__getClearAccum, + "Get the clear accum. ", + ""); + I_Method1(void, setClearDepth, IN, double, depth, + __void__setClearDepth__double, + "Set the clear depth used in glClearDepth(. ", + ".). Defaults to 1.0 glClearDepth is only called if mask & GL_DEPTH_BUFFER_BIT is true. "); + I_Method0(double, getClearDepth, + __double__getClearDepth, + "Get the clear depth. ", + ""); + I_Method1(void, setClearStencil, IN, int, stencil, + __void__setClearStencil__int, + "Set the clear stencil value used in glClearStencil(). ", + "Defaults to 0; glClearStencil is only called if mask & GL_STENCIL_BUFFER_BIT is true "); + I_Method0(int, getClearStencil, + __int__getClearStencil, + "Get the clear color. ", + ""); + I_Method1(void, setCameraNode, IN, osg::CameraNode *, camera, + __void__setCameraNode__osg_CameraNode_P1, + "", + ""); + I_Method0(osg::CameraNode *, getCameraNode, + __osg_CameraNode_P1__getCameraNode, + "", + ""); + I_Method0(const osg::CameraNode *, getCameraNode, + __C5_osg_CameraNode_P1__getCameraNode, + "", + ""); + I_Method1(void, setCameraRequiresSetUp, IN, bool, flag, + __void__setCameraRequiresSetUp__bool, + "", + ""); + I_Method0(bool, getCameraRequiresSetUp, + __bool__getCameraRequiresSetUp, + "", + ""); + I_Method1(void, runCameraSetUp, IN, osg::RenderInfo &, renderInfo, + __void__runCameraSetUp__osg_RenderInfo_R1, + "Attempt the set the RenderStage from the Camera settings. ", + ""); + I_MethodWithDefaults3(void, setTexture, IN, osg::Texture *, texture, , IN, unsigned int, level, 0, IN, unsigned int, face, 0, + __void__setTexture__osg_Texture_P1__unsigned_int__unsigned_int, + "", + ""); + I_Method0(osg::Texture *, getTexture, + __osg_Texture_P1__getTexture, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + __void__setImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getImage, + __osg_Image_P1__getImage, + "", + ""); + I_Method1(void, setImageReadPixelFormat, IN, GLenum, format, + __void__setImageReadPixelFormat__GLenum, + "", + ""); + I_Method0(GLenum, getImageReadPixelFormat, + __GLenum__getImageReadPixelFormat, + "", + ""); + I_Method1(void, setImageReadPixelDataType, IN, GLenum, type, + __void__setImageReadPixelDataType__GLenum, + "", + ""); + I_Method0(GLenum, getImageReadPixelDataType, + __GLenum__getImageReadPixelDataType, + "", + ""); + I_Method1(void, setFrameBufferObject, IN, osg::FrameBufferObject *, fbo, + __void__setFrameBufferObject__osg_FrameBufferObject_P1, + "", + ""); + I_Method0(osg::FrameBufferObject *, getFrameBufferObject, + __osg_FrameBufferObject_P1__getFrameBufferObject, + "", + ""); + I_Method0(const osg::FrameBufferObject *, getFrameBufferObject, + __C5_osg_FrameBufferObject_P1__getFrameBufferObject, + "", + ""); + I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + __void__setGraphicsContext__osg_GraphicsContext_P1, + "", + ""); + I_Method0(osg::GraphicsContext *, getGraphicsContext, + __osg_GraphicsContext_P1__getGraphicsContext, + "", + ""); + I_Method0(const osg::GraphicsContext *, getGraphicsContext, + __C5_osg_GraphicsContext_P1__getGraphicsContext, + "", + ""); + I_Method1(void, setInheritedPositionalStateContainerMatrix, IN, const osg::Matrix &, matrix, + __void__setInheritedPositionalStateContainerMatrix__C5_osg_Matrix_R1, + "", + ""); + I_Method0(const osg::Matrix &, getInheritedPositionalStateContainerMatrix, + __C5_osg_Matrix_R1__getInheritedPositionalStateContainerMatrix, + "", + ""); + I_Method1(void, setInheritedPositionalStateContainer, IN, osgUtil::PositionalStateContainer *, rsl, + __void__setInheritedPositionalStateContainer__PositionalStateContainer_P1, + "", + ""); + I_Method0(osgUtil::PositionalStateContainer *, getInheritedPositionalStateContainer, + __PositionalStateContainer_P1__getInheritedPositionalStateContainer, + "", + ""); + I_Method1(void, setPositionalStateContainer, IN, osgUtil::PositionalStateContainer *, rsl, + __void__setPositionalStateContainer__PositionalStateContainer_P1, + "", + ""); + I_Method0(osgUtil::PositionalStateContainer *, getPositionalStateContainer, + __PositionalStateContainer_P1__getPositionalStateContainer, + "", + ""); + I_Method2(void, addPositionedAttribute, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + __void__addPositionedAttribute__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, + "", + ""); + I_Method3(void, addPositionedTextureAttribute, IN, unsigned int, textureUnit, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + __void__addPositionedTextureAttribute__unsigned_int__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, + "", + ""); + I_Method1(void, copyTexture, IN, osg::RenderInfo &, renderInfo, + __void__copyTexture__osg_RenderInfo_R1, + "", + ""); + I_Method0(void, sort, + __void__sort, + "", + ""); + I_Method2(void, drawPreRenderStages, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + __void__drawPreRenderStages__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + __void__draw__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method3(void, drawInner, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, IN, bool &, doCopyTexture, + __void__drawInner__osg_RenderInfo_R1__RenderLeaf_P1R1__bool_R1, + "", + ""); + I_Method2(void, drawPostRenderStages, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + __void__drawPostRenderStages__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + __void__drawImplementation__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method1(void, addToDependencyList, IN, osgUtil::RenderStage *, rs, + __void__addToDependencyList__RenderStage_P1, + "", + ""); + I_MethodWithDefaults2(void, addPreRenderStage, IN, osgUtil::RenderStage *, rs, , IN, int, order, 0, + __void__addPreRenderStage__RenderStage_P1__int, + "", + ""); + I_MethodWithDefaults2(void, addPostRenderStage, IN, osgUtil::RenderStage *, rs, , IN, int, order, 0, + __void__addPostRenderStage__RenderStage_P1__int, + "", + ""); + I_Method1(bool, getStats, IN, osgUtil::Statistics &, stats, + __bool__getStats__Statistics_R1, + "Extract stats for current draw list. ", + ""); + I_SimpleProperty(osg::CameraNode *, CameraNode, + __osg_CameraNode_P1__getCameraNode, + __void__setCameraNode__osg_CameraNode_P1); + I_SimpleProperty(bool, CameraRequiresSetUp, + __bool__getCameraRequiresSetUp, + __void__setCameraRequiresSetUp__bool); + I_SimpleProperty(const osg::Vec4 &, ClearAccum, + __C5_osg_Vec4_R1__getClearAccum, + __void__setClearAccum__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec4 &, ClearColor, + __C5_osg_Vec4_R1__getClearColor, + __void__setClearColor__C5_osg_Vec4_R1); + I_SimpleProperty(double, ClearDepth, + __double__getClearDepth, + __void__setClearDepth__double); + I_SimpleProperty(GLbitfield, ClearMask, + __GLbitfield__getClearMask, + __void__setClearMask__GLbitfield); + I_SimpleProperty(int, ClearStencil, + __int__getClearStencil, + __void__setClearStencil__int); + I_SimpleProperty(osg::ColorMask *, ColorMask, + __osg_ColorMask_P1__getColorMask, + __void__setColorMask__osg_ColorMask_P1); + I_SimpleProperty(GLenum, DrawBuffer, + __GLenum__getDrawBuffer, + __void__setDrawBuffer__GLenum); + I_SimpleProperty(osg::FrameBufferObject *, FrameBufferObject, + __osg_FrameBufferObject_P1__getFrameBufferObject, + __void__setFrameBufferObject__osg_FrameBufferObject_P1); + I_SimpleProperty(osg::GraphicsContext *, GraphicsContext, + __osg_GraphicsContext_P1__getGraphicsContext, + __void__setGraphicsContext__osg_GraphicsContext_P1); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + __void__setImage__osg_Image_P1); + I_SimpleProperty(GLenum, ImageReadPixelDataType, + __GLenum__getImageReadPixelDataType, + __void__setImageReadPixelDataType__GLenum); + I_SimpleProperty(GLenum, ImageReadPixelFormat, + __GLenum__getImageReadPixelFormat, + __void__setImageReadPixelFormat__GLenum); + I_SimpleProperty(osgUtil::PositionalStateContainer *, InheritedPositionalStateContainer, + __PositionalStateContainer_P1__getInheritedPositionalStateContainer, + __void__setInheritedPositionalStateContainer__PositionalStateContainer_P1); + I_SimpleProperty(const osg::Matrix &, InheritedPositionalStateContainerMatrix, + __C5_osg_Matrix_R1__getInheritedPositionalStateContainerMatrix, + __void__setInheritedPositionalStateContainerMatrix__C5_osg_Matrix_R1); + I_SimpleProperty(osgUtil::PositionalStateContainer *, PositionalStateContainer, + __PositionalStateContainer_P1__getPositionalStateContainer, + __void__setPositionalStateContainer__PositionalStateContainer_P1); + I_SimpleProperty(GLenum, ReadBuffer, + __GLenum__getReadBuffer, + __void__setReadBuffer__GLenum); + I_SimpleProperty(osg::Texture *, Texture, + __osg_Texture_P1__getTexture, + 0); + I_SimpleProperty(osg::Viewport *, Viewport, + __osg_Viewport_P1__getViewport, + __void__setViewport__osg_Viewport_P1); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/SceneView.cpp b/src/osgWrappers/osgUtil/SceneView.cpp index 24b35bb92..f4c5d87a7 100644 --- a/src/osgWrappers/osgUtil/SceneView.cpp +++ b/src/osgWrappers/osgUtil/SceneView.cpp @@ -68,177 +68,649 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::SceneView) I_BaseType(osg::Referenced); I_BaseType(osg::CullSettings); - I_ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, NULL); - I_MethodWithDefaults1(void, setDefaults, IN, unsigned int, options, osgUtil::SceneView::STANDARD_SETTINGS); - I_Method1(void, setCamera, IN, osg::CameraNode *, camera); - I_Method0(osg::CameraNode *, getCamera); - I_Method0(const osg::CameraNode *, getCamera); - I_Method1(void, setSceneData, IN, osg::Node *, node); - I_MethodWithDefaults1(osg::Node *, getSceneData, IN, unsigned int, childNo, 0); - I_MethodWithDefaults1(const osg::Node *, getSceneData, IN, unsigned int, childNo, 0); - I_Method0(unsigned int, getNumSceneData); - I_Method1(void, setViewport, IN, osg::Viewport *, viewport); - I_Method4(void, setViewport, IN, int, x, IN, int, y, IN, int, width, IN, int, height); - I_Method0(osg::Viewport *, getViewport); - I_Method0(const osg::Viewport *, getViewport); - I_Method4(void, getViewport, IN, int &, x, IN, int &, y, IN, int &, width, IN, int &, height); - I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, vs); - I_Method0(const osg::DisplaySettings *, getDisplaySettings); - I_Method0(osg::DisplaySettings *, getDisplaySettings); - I_Method1(void, setClearColor, IN, const osg::Vec4 &, color); - I_Method0(const osg::Vec4 &, getClearColor); - I_Method1(void, setRedrawInterlacedStereoStencilMask, IN, bool, flag); - I_Method0(bool, getRedrawInterlacedStereoStencilMask); - I_Method1(void, setGlobalStateSet, IN, osg::StateSet *, state); - I_Method0(osg::StateSet *, getGlobalStateSet); - I_Method0(const osg::StateSet *, getGlobalStateSet); - I_Method1(void, setLocalStateSet, IN, osg::StateSet *, state); - I_Method0(osg::StateSet *, getLocalStateSet); - I_Method0(const osg::StateSet *, getLocalStateSet); - I_Method1(void, setActiveUniforms, IN, int, activeUniforms); - I_Method0(int, getActiveUniforms); - I_Method0(void, updateUniforms); - I_Method1(void, setLightingMode, IN, osgUtil::SceneView::LightingMode, mode); - I_Method0(osgUtil::SceneView::LightingMode, getLightingMode); - I_Method1(void, setLight, IN, osg::Light *, light); - I_Method0(osg::Light *, getLight); - I_Method0(const osg::Light *, getLight); - I_Method1(void, setState, IN, osg::State *, state); - I_Method0(osg::State *, getState); - I_Method0(const osg::State *, getState); - I_Method1(void, setView, IN, osg::View *, view); - I_Method0(osg::View *, getView); - I_Method0(const osg::View *, getView); - I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo); - I_Method0(osg::RenderInfo &, getRenderInfo); - I_Method0(const osg::RenderInfo &, getRenderInfo); - I_Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix); - I_Method1(void, setProjectionMatrix, IN, const osg::Matrixd &, matrix); - I_Method6(void, setProjectionMatrixAsOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); - I_Method4(void, setProjectionMatrixAsOrtho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top); - I_Method6(void, setProjectionMatrixAsFrustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); - I_Method4(void, setProjectionMatrixAsPerspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar); - I_Method0(osg::Matrixd &, getProjectionMatrix); - I_Method0(const osg::Matrixd &, getProjectionMatrix); - I_Method6(bool, getProjectionMatrixAsOrtho, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar); - I_Method6(bool, getProjectionMatrixAsFrustum, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar); - I_Method4(bool, getProjectionMatrixAsPerspective, IN, double &, fovy, IN, double &, aspectRatio, IN, double &, zNear, IN, double &, zFar); - I_Method1(void, setViewMatrix, IN, const osg::Matrixf &, matrix); - I_Method1(void, setViewMatrix, IN, const osg::Matrixd &, matrix); - I_Method3(void, setViewMatrixAsLookAt, IN, const osg::Vec3 &, eye, IN, const osg::Vec3 &, center, IN, const osg::Vec3 &, up); - I_Method0(osg::Matrixd &, getViewMatrix); - I_Method0(const osg::Matrixd &, getViewMatrix); - I_MethodWithDefaults4(void, getViewMatrixAsLookAt, IN, osg::Vec3 &, eye, , IN, osg::Vec3 &, center, , IN, osg::Vec3 &, up, , IN, float, lookDistance, 1.0f); - I_Method1(void, setInitVisitor, IN, osg::NodeVisitor *, av); - I_Method0(osg::NodeVisitor *, getInitVisitor); - I_Method0(const osg::NodeVisitor *, getInitVisitor); - I_Method1(void, setUpdateVisitor, IN, osg::NodeVisitor *, av); - I_Method0(osg::NodeVisitor *, getUpdateVisitor); - I_Method0(const osg::NodeVisitor *, getUpdateVisitor); - I_Method1(void, setCullVisitor, IN, osgUtil::CullVisitor *, cv); - I_Method0(osgUtil::CullVisitor *, getCullVisitor); - I_Method0(const osgUtil::CullVisitor *, getCullVisitor); - I_Method1(void, setCullVisitorLeft, IN, osgUtil::CullVisitor *, cv); - I_Method0(osgUtil::CullVisitor *, getCullVisitorLeft); - I_Method0(const osgUtil::CullVisitor *, getCullVisitorLeft); - I_Method1(void, setCullVisitorRight, IN, osgUtil::CullVisitor *, cv); - I_Method0(osgUtil::CullVisitor *, getCullVisitorRight); - I_Method0(const osgUtil::CullVisitor *, getCullVisitorRight); - I_Method1(void, setCollectOccludersVisitor, IN, osg::CollectOccludersVisitor *, cov); - I_Method0(osg::CollectOccludersVisitor *, getCollectOccludersVisitor); - I_Method0(const osg::CollectOccludersVisitor *, getCollectOccludersVisitor); - I_Method1(void, setStateGraph, IN, osgUtil::StateGraph *, rg); - I_Method0(osgUtil::StateGraph *, getStateGraph); - I_Method0(const osgUtil::StateGraph *, getStateGraph); - I_Method1(void, setStateGraphLeft, IN, osgUtil::StateGraph *, rg); - I_Method0(osgUtil::StateGraph *, getStateGraphLeft); - I_Method0(const osgUtil::StateGraph *, getStateGraphLeft); - I_Method1(void, setStateGraphRight, IN, osgUtil::StateGraph *, rg); - I_Method0(osgUtil::StateGraph *, getStateGraphRight); - I_Method0(const osgUtil::StateGraph *, getStateGraphRight); - I_Method1(void, setRenderStage, IN, osgUtil::RenderStage *, rs); - I_Method0(osgUtil::RenderStage *, getRenderStage); - I_Method0(const osgUtil::RenderStage *, getRenderStage); - I_Method1(void, setRenderStageLeft, IN, osgUtil::RenderStage *, rs); - I_Method0(osgUtil::RenderStage *, getRenderStageLeft); - I_Method0(const osgUtil::RenderStage *, getRenderStageLeft); - I_Method1(void, setRenderStageRight, IN, osgUtil::RenderStage *, rs); - I_Method0(osgUtil::RenderStage *, getRenderStageRight); - I_Method0(const osgUtil::RenderStage *, getRenderStageRight); - I_Method1(void, setDrawBufferValue, IN, GLenum, drawBufferValue); - I_Method0(GLenum, getDrawBufferValue); - I_MethodWithDefaults2(void, setFusionDistance, IN, osgUtil::SceneView::FusionDistanceMode, mode, , IN, float, value, 1.0f); - I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode); - I_Method0(float, getFusionDistanceValue); - I_Method1(void, setPrioritizeTextures, IN, bool, pt); - I_Method0(bool, getPrioritizeTextures); - I_Method1(void, setComputeStereoMatricesCallback, IN, osgUtil::SceneView::ComputeStereoMatricesCallback *, callback); - I_Method0(osgUtil::SceneView::ComputeStereoMatricesCallback *, getComputeStereoMatricesCallback); - I_Method0(const osgUtil::SceneView::ComputeStereoMatricesCallback *, getComputeStereoMatricesCallback); - I_Method2(bool, projectWindowIntoObject, IN, const osg::Vec3 &, window, IN, osg::Vec3 &, object); - I_Method4(bool, projectWindowXYIntoObject, IN, int, x, IN, int, y, IN, osg::Vec3 &, near_point, IN, osg::Vec3 &, far_point); - I_Method2(bool, projectObjectIntoWindow, IN, const osg::Vec3 &, object, IN, osg::Vec3 &, window); - I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs); - I_Method0(const osg::FrameStamp *, getFrameStamp); - I_Method1(osg::Matrixd, computeLeftEyeProjection, IN, const osg::Matrixd &, projection); - I_Method1(osg::Matrixd, computeLeftEyeView, IN, const osg::Matrixd &, view); - I_Method1(osg::Matrixd, computeRightEyeProjection, IN, const osg::Matrixd &, projection); - I_Method1(osg::Matrixd, computeRightEyeView, IN, const osg::Matrixd &, view); - I_Method1(osg::Matrixd, computeLeftEyeProjectionImplementation, IN, const osg::Matrixd &, projection); - I_Method1(osg::Matrixd, computeLeftEyeViewImplementation, IN, const osg::Matrixd &, view); - I_Method1(osg::Matrixd, computeRightEyeProjectionImplementation, IN, const osg::Matrixd &, projection); - I_Method1(osg::Matrixd, computeRightEyeViewImplementation, IN, const osg::Matrixd &, view); - I_Method0(void, init); - I_Method0(void, update); - I_Method0(void, cull); - I_Method0(void, draw); - I_Method0(void, releaseAllGLObjects); - I_Method0(void, flushAllDeletedGLObjects); - I_Method1(void, flushDeletedGLObjects, IN, double &, availableTime); - I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats); - I_Property(int, ActiveUniforms); - I_Property(osg::CameraNode *, Camera); - I_Property(const osg::Vec4 &, ClearColor); - I_Property(osg::CollectOccludersVisitor *, CollectOccludersVisitor); - I_Property(osgUtil::SceneView::ComputeStereoMatricesCallback *, ComputeStereoMatricesCallback); - I_Property(osgUtil::CullVisitor *, CullVisitor); - I_Property(osgUtil::CullVisitor *, CullVisitorLeft); - I_Property(osgUtil::CullVisitor *, CullVisitorRight); - I_WriteOnlyProperty(unsigned int, Defaults); - I_Property(osg::DisplaySettings *, DisplaySettings); - I_Property(GLenum, DrawBufferValue); - I_WriteOnlyProperty(osg::FrameStamp *, FrameStamp); - I_ReadOnlyProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode); - I_ReadOnlyProperty(float, FusionDistanceValue); - I_Property(osg::StateSet *, GlobalStateSet); - I_Property(osg::NodeVisitor *, InitVisitor); - I_Property(osg::Light *, Light); - I_Property(osgUtil::SceneView::LightingMode, LightingMode); - I_Property(osg::StateSet *, LocalStateSet); - I_Property(bool, PrioritizeTextures); - I_Property(const osg::Matrixd &, ProjectionMatrix); - I_Property(bool, RedrawInterlacedStereoStencilMask); - I_Property(osg::RenderInfo &, RenderInfo); - I_Property(osgUtil::RenderStage *, RenderStage); - I_Property(osgUtil::RenderStage *, RenderStageLeft); - I_Property(osgUtil::RenderStage *, RenderStageRight); - I_ArrayProperty_G(const osg::Node *, SceneData, SceneData, unsigned int, void); - I_Property(osg::State *, State); - I_Property(osgUtil::StateGraph *, StateGraph); - I_Property(osgUtil::StateGraph *, StateGraphLeft); - I_Property(osgUtil::StateGraph *, StateGraphRight); - I_Property(osg::NodeVisitor *, UpdateVisitor); - I_Property(osg::View *, View); - I_Property(const osg::Matrixd &, ViewMatrix); - I_Property(osg::Viewport *, Viewport); + I_ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, NULL, + ____SceneView__osg_DisplaySettings_P1, + "Construct a default scene view. ", + ""); + I_MethodWithDefaults1(void, setDefaults, IN, unsigned int, options, osgUtil::SceneView::STANDARD_SETTINGS, + __void__setDefaults__unsigned_int, + "Set scene view to use default global state, light, camera and render visitor. ", + ""); + I_Method1(void, setCamera, IN, osg::CameraNode *, camera, + __void__setCamera__osg_CameraNode_P1, + "Set the camera used to represent the camera view of this SceneView. ", + ""); + I_Method0(osg::CameraNode *, getCamera, + __osg_CameraNode_P1__getCamera, + "Get the camera used to represent the camera view of this SceneView. ", + ""); + I_Method0(const osg::CameraNode *, getCamera, + __C5_osg_CameraNode_P1__getCamera, + "Get the const camera used to represent the camera view of this SceneView. ", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + __void__setSceneData__osg_Node_P1, + "Set the data to view. ", + "The data will typically be an osg::Scene but can be any osg::Node type."); + I_MethodWithDefaults1(osg::Node *, getSceneData, IN, unsigned int, childNo, 0, + __osg_Node_P1__getSceneData__unsigned_int, + "Get the scene data to view. ", + "The data will typically be an osg::Scene but can be any osg::Node type."); + I_MethodWithDefaults1(const osg::Node *, getSceneData, IN, unsigned int, childNo, 0, + __C5_osg_Node_P1__getSceneData__unsigned_int, + "Get the const scene data which to view. ", + "The data will typically be an osg::Scene but can be any osg::Node type."); + I_Method0(unsigned int, getNumSceneData, + __unsigned_int__getNumSceneData, + "Get the number of scene data subgraphs added to the SceneView's camera. ", + ""); + I_Method1(void, setViewport, IN, osg::Viewport *, viewport, + __void__setViewport__osg_Viewport_P1, + "Set the viewport of the scene view to use specified osg::Viewport. ", + ""); + I_Method4(void, setViewport, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + __void__setViewport__int__int__int__int, + "Set the viewport of the scene view to specified dimensions. ", + ""); + I_Method0(osg::Viewport *, getViewport, + __osg_Viewport_P1__getViewport, + "Get the viewport. ", + ""); + I_Method0(const osg::Viewport *, getViewport, + __C5_osg_Viewport_P1__getViewport, + "Get the const viewport. ", + ""); + I_Method4(void, getViewport, IN, int &, x, IN, int &, y, IN, int &, width, IN, int &, height, + __void__getViewport__int_R1__int_R1__int_R1__int_R1, + "Get the viewport of the scene view. ", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, vs, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "Set the DisplaySettings. ", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "Get the const DisplaySettings. ", + ""); + I_Method0(osg::DisplaySettings *, getDisplaySettings, + __osg_DisplaySettings_P1__getDisplaySettings, + "Get the DisplaySettings. ", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + __void__setClearColor__C5_osg_Vec4_R1, + "Set the color used in glClearColor(). ", + "Defaults to an off blue color. "); + I_Method0(const osg::Vec4 &, getClearColor, + __C5_osg_Vec4_R1__getClearColor, + "Get the color used in glClearColor. ", + ""); + I_Method1(void, setRedrawInterlacedStereoStencilMask, IN, bool, flag, + __void__setRedrawInterlacedStereoStencilMask__bool, + "Manually set the redraw interlaced stereo stencil mask request flag to control whether to redraw the stencil buffer on the next frame. ", + ""); + I_Method0(bool, getRedrawInterlacedStereoStencilMask, + __bool__getRedrawInterlacedStereoStencilMask, + "Get the redraw interlaced stereo stencil mask request flag. ", + ""); + I_Method1(void, setGlobalStateSet, IN, osg::StateSet *, state, + __void__setGlobalStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getGlobalStateSet, + __osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getGlobalStateSet, + __C5_osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method1(void, setLocalStateSet, IN, osg::StateSet *, state, + __void__setLocalStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getLocalStateSet, + __osg_StateSet_P1__getLocalStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getLocalStateSet, + __C5_osg_StateSet_P1__getLocalStateSet, + "", + ""); + I_Method1(void, setActiveUniforms, IN, int, activeUniforms, + __void__setActiveUniforms__int, + "Set the uniforms that SceneView should set set up on each frame. ", + ""); + I_Method0(int, getActiveUniforms, + __int__getActiveUniforms, + "Get the uniforms that SceneView should set set up on each frame. ", + ""); + I_Method0(void, updateUniforms, + __void__updateUniforms, + "", + ""); + I_Method1(void, setLightingMode, IN, osgUtil::SceneView::LightingMode, mode, + __void__setLightingMode__LightingMode, + "", + ""); + I_Method0(osgUtil::SceneView::LightingMode, getLightingMode, + __LightingMode__getLightingMode, + "", + ""); + I_Method1(void, setLight, IN, osg::Light *, light, + __void__setLight__osg_Light_P1, + "", + ""); + I_Method0(osg::Light *, getLight, + __osg_Light_P1__getLight, + "", + ""); + I_Method0(const osg::Light *, getLight, + __C5_osg_Light_P1__getLight, + "", + ""); + I_Method1(void, setState, IN, osg::State *, state, + __void__setState__osg_State_P1, + "", + ""); + I_Method0(osg::State *, getState, + __osg_State_P1__getState, + "", + ""); + I_Method0(const osg::State *, getState, + __C5_osg_State_P1__getState, + "", + ""); + I_Method1(void, setView, IN, osg::View *, view, + __void__setView__osg_View_P1, + "", + ""); + I_Method0(osg::View *, getView, + __osg_View_P1__getView, + "", + ""); + I_Method0(const osg::View *, getView, + __C5_osg_View_P1__getView, + "", + ""); + I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo, + __void__setRenderInfo__osg_RenderInfo_R1, + "", + ""); + I_Method0(osg::RenderInfo &, getRenderInfo, + __osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Method0(const osg::RenderInfo &, getRenderInfo, + __C5_osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix, + __void__setProjectionMatrix__C5_osg_Matrixf_R1, + "Set the projection matrix. ", + "Can be thought of as setting the lens of a camera. "); + I_Method1(void, setProjectionMatrix, IN, const osg::Matrixd &, matrix, + __void__setProjectionMatrix__C5_osg_Matrixd_R1, + "Set the projection matrix. ", + "Can be thought of as setting the lens of a camera. "); + I_Method6(void, setProjectionMatrixAsOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __void__setProjectionMatrixAsOrtho__double__double__double__double__double__double, + "Set to an orthographic projection. ", + "See OpenGL glOrtho for documentation further details. "); + I_Method4(void, setProjectionMatrixAsOrtho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, + __void__setProjectionMatrixAsOrtho2D__double__double__double__double, + "Set to a 2D orthographic projection. ", + "See OpenGL glOrtho2D documentation for further details. "); + I_Method6(void, setProjectionMatrixAsFrustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __void__setProjectionMatrixAsFrustum__double__double__double__double__double__double, + "Set to a perspective projection. ", + "See OpenGL glFrustum documentation for further details. "); + I_Method4(void, setProjectionMatrixAsPerspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar, + __void__setProjectionMatrixAsPerspective__double__double__double__double, + "Create a symmetrical perspective projection, See OpenGL gluPerspective documentation for further details. ", + "Aspect ratio is defined as width/height. "); + I_Method0(osg::Matrixd &, getProjectionMatrix, + __osg_Matrixd_R1__getProjectionMatrix, + "Get the projection matrix. ", + ""); + I_Method0(const osg::Matrixd &, getProjectionMatrix, + __C5_osg_Matrixd_R1__getProjectionMatrix, + "Get the const projection matrix. ", + ""); + I_Method6(bool, getProjectionMatrixAsOrtho, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar, + __bool__getProjectionMatrixAsOrtho__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1, + "Get the orthographic settings of the orthographic projection matrix. ", + "Returns false if matrix is not an orthographic matrix, where parameter values are undefined. "); + I_Method6(bool, getProjectionMatrixAsFrustum, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar, + __bool__getProjectionMatrixAsFrustum__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1, + "Get the frustum setting of a perspective projection matrix. ", + "Returns false if matrix is not a perspective matrix, where parameter values are undefined. "); + I_Method4(bool, getProjectionMatrixAsPerspective, IN, double &, fovy, IN, double &, aspectRatio, IN, double &, zNear, IN, double &, zFar, + __bool__getProjectionMatrixAsPerspective__double_R1__double_R1__double_R1__double_R1, + "Get the frustum setting of a symmetric perspective projection matrix. ", + "Returns false if matrix is not a perspective matrix, where parameter values are undefined. Note, if matrix is not a symmetric perspective matrix then the shear will be lost. Asymmetric matrices occur when stereo, power walls, caves and reality center display are used. In these configurations one should use the 'getProjectionMatrixAsFrustum' method instead. "); + I_Method1(void, setViewMatrix, IN, const osg::Matrixf &, matrix, + __void__setViewMatrix__C5_osg_Matrixf_R1, + "Set the view matrix. ", + "Can be thought of as setting the position of the world relative to the camera in camera coordinates. "); + I_Method1(void, setViewMatrix, IN, const osg::Matrixd &, matrix, + __void__setViewMatrix__C5_osg_Matrixd_R1, + "Set the view matrix. ", + "Can be thought of as setting the position of the world relative to the camera in camera coordinates. "); + I_Method3(void, setViewMatrixAsLookAt, IN, const osg::Vec3 &, eye, IN, const osg::Vec3 &, center, IN, const osg::Vec3 &, up, + __void__setViewMatrixAsLookAt__C5_osg_Vec3_R1__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "Set to the position and orientation of view matrix, using the same convention as gluLookAt. ", + ""); + I_Method0(osg::Matrixd &, getViewMatrix, + __osg_Matrixd_R1__getViewMatrix, + "Get the view matrix. ", + ""); + I_Method0(const osg::Matrixd &, getViewMatrix, + __C5_osg_Matrixd_R1__getViewMatrix, + "Get the const view matrix. ", + ""); + I_MethodWithDefaults4(void, getViewMatrixAsLookAt, IN, osg::Vec3 &, eye, , IN, osg::Vec3 &, center, , IN, osg::Vec3 &, up, , IN, float, lookDistance, 1.0f, + __void__getViewMatrixAsLookAt__osg_Vec3_R1__osg_Vec3_R1__osg_Vec3_R1__float, + "Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. ", + ""); + I_Method1(void, setInitVisitor, IN, osg::NodeVisitor *, av, + __void__setInitVisitor__osg_NodeVisitor_P1, + "", + ""); + I_Method0(osg::NodeVisitor *, getInitVisitor, + __osg_NodeVisitor_P1__getInitVisitor, + "", + ""); + I_Method0(const osg::NodeVisitor *, getInitVisitor, + __C5_osg_NodeVisitor_P1__getInitVisitor, + "", + ""); + I_Method1(void, setUpdateVisitor, IN, osg::NodeVisitor *, av, + __void__setUpdateVisitor__osg_NodeVisitor_P1, + "", + ""); + I_Method0(osg::NodeVisitor *, getUpdateVisitor, + __osg_NodeVisitor_P1__getUpdateVisitor, + "", + ""); + I_Method0(const osg::NodeVisitor *, getUpdateVisitor, + __C5_osg_NodeVisitor_P1__getUpdateVisitor, + "", + ""); + I_Method1(void, setCullVisitor, IN, osgUtil::CullVisitor *, cv, + __void__setCullVisitor__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor *, getCullVisitor, + __osgUtil_CullVisitor_P1__getCullVisitor, + "", + ""); + I_Method0(const osgUtil::CullVisitor *, getCullVisitor, + __C5_osgUtil_CullVisitor_P1__getCullVisitor, + "", + ""); + I_Method1(void, setCullVisitorLeft, IN, osgUtil::CullVisitor *, cv, + __void__setCullVisitorLeft__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor *, getCullVisitorLeft, + __osgUtil_CullVisitor_P1__getCullVisitorLeft, + "", + ""); + I_Method0(const osgUtil::CullVisitor *, getCullVisitorLeft, + __C5_osgUtil_CullVisitor_P1__getCullVisitorLeft, + "", + ""); + I_Method1(void, setCullVisitorRight, IN, osgUtil::CullVisitor *, cv, + __void__setCullVisitorRight__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor *, getCullVisitorRight, + __osgUtil_CullVisitor_P1__getCullVisitorRight, + "", + ""); + I_Method0(const osgUtil::CullVisitor *, getCullVisitorRight, + __C5_osgUtil_CullVisitor_P1__getCullVisitorRight, + "", + ""); + I_Method1(void, setCollectOccludersVisitor, IN, osg::CollectOccludersVisitor *, cov, + __void__setCollectOccludersVisitor__osg_CollectOccludersVisitor_P1, + "", + ""); + I_Method0(osg::CollectOccludersVisitor *, getCollectOccludersVisitor, + __osg_CollectOccludersVisitor_P1__getCollectOccludersVisitor, + "", + ""); + I_Method0(const osg::CollectOccludersVisitor *, getCollectOccludersVisitor, + __C5_osg_CollectOccludersVisitor_P1__getCollectOccludersVisitor, + "", + ""); + I_Method1(void, setStateGraph, IN, osgUtil::StateGraph *, rg, + __void__setStateGraph__osgUtil_StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getStateGraph, + __osgUtil_StateGraph_P1__getStateGraph, + "", + ""); + I_Method0(const osgUtil::StateGraph *, getStateGraph, + __C5_osgUtil_StateGraph_P1__getStateGraph, + "", + ""); + I_Method1(void, setStateGraphLeft, IN, osgUtil::StateGraph *, rg, + __void__setStateGraphLeft__osgUtil_StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getStateGraphLeft, + __osgUtil_StateGraph_P1__getStateGraphLeft, + "", + ""); + I_Method0(const osgUtil::StateGraph *, getStateGraphLeft, + __C5_osgUtil_StateGraph_P1__getStateGraphLeft, + "", + ""); + I_Method1(void, setStateGraphRight, IN, osgUtil::StateGraph *, rg, + __void__setStateGraphRight__osgUtil_StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getStateGraphRight, + __osgUtil_StateGraph_P1__getStateGraphRight, + "", + ""); + I_Method0(const osgUtil::StateGraph *, getStateGraphRight, + __C5_osgUtil_StateGraph_P1__getStateGraphRight, + "", + ""); + I_Method1(void, setRenderStage, IN, osgUtil::RenderStage *, rs, + __void__setRenderStage__osgUtil_RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStage, + __osgUtil_RenderStage_P1__getRenderStage, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getRenderStage, + __C5_osgUtil_RenderStage_P1__getRenderStage, + "", + ""); + I_Method1(void, setRenderStageLeft, IN, osgUtil::RenderStage *, rs, + __void__setRenderStageLeft__osgUtil_RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStageLeft, + __osgUtil_RenderStage_P1__getRenderStageLeft, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getRenderStageLeft, + __C5_osgUtil_RenderStage_P1__getRenderStageLeft, + "", + ""); + I_Method1(void, setRenderStageRight, IN, osgUtil::RenderStage *, rs, + __void__setRenderStageRight__osgUtil_RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStageRight, + __osgUtil_RenderStage_P1__getRenderStageRight, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getRenderStageRight, + __C5_osgUtil_RenderStage_P1__getRenderStageRight, + "", + ""); + I_Method1(void, setDrawBufferValue, IN, GLenum, drawBufferValue, + __void__setDrawBufferValue__GLenum, + "Set the draw buffer value used at the start of each frame draw. ", + "Note, overridden in quad buffer stereo mode "); + I_Method0(GLenum, getDrawBufferValue, + __GLenum__getDrawBufferValue, + "Get the draw buffer value used at the start of each frame draw. ", + ""); + I_MethodWithDefaults2(void, setFusionDistance, IN, osgUtil::SceneView::FusionDistanceMode, mode, , IN, float, value, 1.0f, + __void__setFusionDistance__FusionDistanceMode__float, + "Set the FusionDistanceMode and Value. ", + "Note, is used only when working in stereo. "); + I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + __FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + ""); + I_Method0(float, getFusionDistanceValue, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Note, only used for USE_FUSION_DISTANCE_VALUE & PROPORTIONAL_TO_SCREEN_DISTANCE modes. "); + I_Method1(void, setPrioritizeTextures, IN, bool, pt, + __void__setPrioritizeTextures__bool, + "Set whether the draw method should call renderer->prioritizeTexture. ", + ""); + I_Method0(bool, getPrioritizeTextures, + __bool__getPrioritizeTextures, + "Get whether the draw method should call renderer->prioritizeTexture. ", + ""); + I_Method1(void, setComputeStereoMatricesCallback, IN, osgUtil::SceneView::ComputeStereoMatricesCallback *, callback, + __void__setComputeStereoMatricesCallback__ComputeStereoMatricesCallback_P1, + "", + ""); + I_Method0(osgUtil::SceneView::ComputeStereoMatricesCallback *, getComputeStereoMatricesCallback, + __ComputeStereoMatricesCallback_P1__getComputeStereoMatricesCallback, + "", + ""); + I_Method0(const osgUtil::SceneView::ComputeStereoMatricesCallback *, getComputeStereoMatricesCallback, + __C5_ComputeStereoMatricesCallback_P1__getComputeStereoMatricesCallback, + "", + ""); + I_Method2(bool, projectWindowIntoObject, IN, const osg::Vec3 &, window, IN, osg::Vec3 &, object, + __bool__projectWindowIntoObject__C5_osg_Vec3_R1__osg_Vec3_R1, + "Calculate, via glUnProject, the object coordinates of a window point. ", + "Note, current implementation requires that SceneView::draw() has been previously called for projectWindowIntoObject to produce valid values. Consistent with OpenGL windows coordinates are calculated relative to the bottom left of the window. Returns true on successful projection."); + I_Method4(bool, projectWindowXYIntoObject, IN, int, x, IN, int, y, IN, osg::Vec3 &, near_point, IN, osg::Vec3 &, far_point, + __bool__projectWindowXYIntoObject__int__int__osg_Vec3_R1__osg_Vec3_R1, + "Calculate, via glUnProject, the object coordinates of a window x,y when projected onto the near and far planes. ", + "Note, current implementation requires that SceneView::draw() has been previously called for projectWindowIntoObject to produce valid values. Consistent with OpenGL windows coordinates are calculated relative to the bottom left of the window. Returns true on successful projection."); + I_Method2(bool, projectObjectIntoWindow, IN, const osg::Vec3 &, object, IN, osg::Vec3 &, window, + __bool__projectObjectIntoWindow__C5_osg_Vec3_R1__osg_Vec3_R1, + "Calculate, via glProject, the object coordinates of a window. ", + "Note, current implementation requires that SceneView::draw() has been previously called for projectWindowIntoObject to produce valid values. Consistent with OpenGL windows coordinates are calculated relative to the bottom left of the window, whereas window API's normally have the top left as the origin, so you may need to pass in (mouseX,window_height-mouseY,...). Returns true on successful projection."); + I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs, + __void__setFrameStamp__osg_FrameStamp_P1, + "Set the frame stamp for the current frame. ", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + __C5_osg_FrameStamp_P1__getFrameStamp, + "Get the frame stamp for the current frame. ", + ""); + I_Method1(osg::Matrixd, computeLeftEyeProjection, IN, const osg::Matrixd &, projection, + __osg_Matrixd__computeLeftEyeProjection__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeLeftEyeView, IN, const osg::Matrixd &, view, + __osg_Matrixd__computeLeftEyeView__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeProjection, IN, const osg::Matrixd &, projection, + __osg_Matrixd__computeRightEyeProjection__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeView, IN, const osg::Matrixd &, view, + __osg_Matrixd__computeRightEyeView__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeLeftEyeProjectionImplementation, IN, const osg::Matrixd &, projection, + __osg_Matrixd__computeLeftEyeProjectionImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeLeftEyeViewImplementation, IN, const osg::Matrixd &, view, + __osg_Matrixd__computeLeftEyeViewImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeProjectionImplementation, IN, const osg::Matrixd &, projection, + __osg_Matrixd__computeRightEyeProjectionImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeViewImplementation, IN, const osg::Matrixd &, view, + __osg_Matrixd__computeRightEyeViewImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method0(void, init, + __void__init, + "Do init traversal of attached scene graph using Init NodeVisitor. ", + "The init traversal is called once for each SceneView, and should be used to compile display list, texture objects intialize data not otherwise intialized during scene graph loading. Note, is called automatically by update & cull if it hasn't already been called elsewhere. Also init() should only ever be called within a valid graphics context. "); + I_Method0(void, update, + __void__update, + "Do app traversal of attached scene graph using App NodeVisitor. ", + ""); + I_Method0(void, cull, + __void__cull, + "Do cull traversal of attached scene graph using Cull NodeVisitor. ", + ""); + I_Method0(void, draw, + __void__draw, + "Do draw traversal of draw bins generated by cull traversal. ", + ""); + I_Method0(void, releaseAllGLObjects, + __void__releaseAllGLObjects, + "Release all OpenGL objects from the scene graph, such as texture objects, display lists etc. ", + "These released scene graphs placed in the respective delete GLObjects cache, which then need to be deleted in OpenGL by SceneView::flushAllDeleteGLObjects(). "); + I_Method0(void, flushAllDeletedGLObjects, + __void__flushAllDeletedGLObjects, + "Flush all deleted OpenGL objects, such as texture objects, display lists etc. ", + ""); + I_Method1(void, flushDeletedGLObjects, IN, double &, availableTime, + __void__flushDeletedGLObjects__double_R1, + "Flush deleted OpenGL objects, such as texture objects, display lists etc within specified available time. ", + ""); + I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, + __bool__getStats__Statistics_R1, + "Extract stats for current draw list. ", + ""); + I_SimpleProperty(int, ActiveUniforms, + __int__getActiveUniforms, + __void__setActiveUniforms__int); + I_SimpleProperty(osg::CameraNode *, Camera, + __osg_CameraNode_P1__getCamera, + __void__setCamera__osg_CameraNode_P1); + I_SimpleProperty(const osg::Vec4 &, ClearColor, + __C5_osg_Vec4_R1__getClearColor, + __void__setClearColor__C5_osg_Vec4_R1); + I_SimpleProperty(osg::CollectOccludersVisitor *, CollectOccludersVisitor, + __osg_CollectOccludersVisitor_P1__getCollectOccludersVisitor, + __void__setCollectOccludersVisitor__osg_CollectOccludersVisitor_P1); + I_SimpleProperty(osgUtil::SceneView::ComputeStereoMatricesCallback *, ComputeStereoMatricesCallback, + __ComputeStereoMatricesCallback_P1__getComputeStereoMatricesCallback, + __void__setComputeStereoMatricesCallback__ComputeStereoMatricesCallback_P1); + I_SimpleProperty(osgUtil::CullVisitor *, CullVisitor, + __osgUtil_CullVisitor_P1__getCullVisitor, + __void__setCullVisitor__osgUtil_CullVisitor_P1); + I_SimpleProperty(osgUtil::CullVisitor *, CullVisitorLeft, + __osgUtil_CullVisitor_P1__getCullVisitorLeft, + __void__setCullVisitorLeft__osgUtil_CullVisitor_P1); + I_SimpleProperty(osgUtil::CullVisitor *, CullVisitorRight, + __osgUtil_CullVisitor_P1__getCullVisitorRight, + __void__setCullVisitorRight__osgUtil_CullVisitor_P1); + I_SimpleProperty(unsigned int, Defaults, + 0, + __void__setDefaults__unsigned_int); + I_SimpleProperty(osg::DisplaySettings *, DisplaySettings, + __osg_DisplaySettings_P1__getDisplaySettings, + __void__setDisplaySettings__osg_DisplaySettings_P1); + I_SimpleProperty(GLenum, DrawBufferValue, + __GLenum__getDrawBufferValue, + __void__setDrawBufferValue__GLenum); + I_SimpleProperty(osg::FrameStamp *, FrameStamp, + 0, + __void__setFrameStamp__osg_FrameStamp_P1); + I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode, + __FusionDistanceMode__getFusionDistanceMode, + 0); + I_SimpleProperty(float, FusionDistanceValue, + __float__getFusionDistanceValue, + 0); + I_SimpleProperty(osg::StateSet *, GlobalStateSet, + __osg_StateSet_P1__getGlobalStateSet, + __void__setGlobalStateSet__osg_StateSet_P1); + I_SimpleProperty(osg::NodeVisitor *, InitVisitor, + __osg_NodeVisitor_P1__getInitVisitor, + __void__setInitVisitor__osg_NodeVisitor_P1); + I_SimpleProperty(osg::Light *, Light, + __osg_Light_P1__getLight, + __void__setLight__osg_Light_P1); + I_SimpleProperty(osgUtil::SceneView::LightingMode, LightingMode, + __LightingMode__getLightingMode, + __void__setLightingMode__LightingMode); + I_SimpleProperty(osg::StateSet *, LocalStateSet, + __osg_StateSet_P1__getLocalStateSet, + __void__setLocalStateSet__osg_StateSet_P1); + I_SimpleProperty(bool, PrioritizeTextures, + __bool__getPrioritizeTextures, + __void__setPrioritizeTextures__bool); + I_SimpleProperty(const osg::Matrixd &, ProjectionMatrix, + __C5_osg_Matrixd_R1__getProjectionMatrix, + __void__setProjectionMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(bool, RedrawInterlacedStereoStencilMask, + __bool__getRedrawInterlacedStereoStencilMask, + __void__setRedrawInterlacedStereoStencilMask__bool); + I_SimpleProperty(osg::RenderInfo &, RenderInfo, + __osg_RenderInfo_R1__getRenderInfo, + __void__setRenderInfo__osg_RenderInfo_R1); + I_SimpleProperty(osgUtil::RenderStage *, RenderStage, + __osgUtil_RenderStage_P1__getRenderStage, + __void__setRenderStage__osgUtil_RenderStage_P1); + I_SimpleProperty(osgUtil::RenderStage *, RenderStageLeft, + __osgUtil_RenderStage_P1__getRenderStageLeft, + __void__setRenderStageLeft__osgUtil_RenderStage_P1); + I_SimpleProperty(osgUtil::RenderStage *, RenderStageRight, + __osgUtil_RenderStage_P1__getRenderStageRight, + __void__setRenderStageRight__osgUtil_RenderStage_P1); + I_ArrayProperty(const osg::Node *, SceneData, + __C5_osg_Node_P1__getSceneData__unsigned_int, + 0, + __unsigned_int__getNumSceneData, + 0, + 0, + 0); + I_SimpleProperty(osg::State *, State, + __osg_State_P1__getState, + __void__setState__osg_State_P1); + I_SimpleProperty(osgUtil::StateGraph *, StateGraph, + __osgUtil_StateGraph_P1__getStateGraph, + __void__setStateGraph__osgUtil_StateGraph_P1); + I_SimpleProperty(osgUtil::StateGraph *, StateGraphLeft, + __osgUtil_StateGraph_P1__getStateGraphLeft, + __void__setStateGraphLeft__osgUtil_StateGraph_P1); + I_SimpleProperty(osgUtil::StateGraph *, StateGraphRight, + __osgUtil_StateGraph_P1__getStateGraphRight, + __void__setStateGraphRight__osgUtil_StateGraph_P1); + I_SimpleProperty(osg::NodeVisitor *, UpdateVisitor, + __osg_NodeVisitor_P1__getUpdateVisitor, + __void__setUpdateVisitor__osg_NodeVisitor_P1); + I_SimpleProperty(osg::View *, View, + __osg_View_P1__getView, + __void__setView__osg_View_P1); + I_SimpleProperty(const osg::Matrixd &, ViewMatrix, + __C5_osg_Matrixd_R1__getViewMatrix, + __void__setViewMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osg::Viewport *, Viewport, + __osg_Viewport_P1__getViewport, + __void__setViewport__osg_Viewport_P1); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::SceneView::ComputeStereoMatricesCallback) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method1(osg::Matrixd, computeLeftEyeProjection, IN, const osg::Matrixd &, projection); - I_Method1(osg::Matrixd, computeLeftEyeView, IN, const osg::Matrixd &, view); - I_Method1(osg::Matrixd, computeRightEyeProjection, IN, const osg::Matrixd &, projection); - I_Method1(osg::Matrixd, computeRightEyeView, IN, const osg::Matrixd &, view); + I_Constructor0(____ComputeStereoMatricesCallback, + "", + ""); + I_Method1(osg::Matrixd, computeLeftEyeProjection, IN, const osg::Matrixd &, projection, + __osg_Matrixd__computeLeftEyeProjection__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeLeftEyeView, IN, const osg::Matrixd &, view, + __osg_Matrixd__computeLeftEyeView__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeProjection, IN, const osg::Matrixd &, projection, + __osg_Matrixd__computeRightEyeProjection__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeView, IN, const osg::Matrixd &, view, + __osg_Matrixd__computeRightEyeView__C5_osg_Matrixd_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/Simplifier.cpp b/src/osgWrappers/osgUtil/Simplifier.cpp index 13540ac13..88d784de8 100644 --- a/src/osgWrappers/osgUtil/Simplifier.cpp +++ b/src/osgWrappers/osgUtil/Simplifier.cpp @@ -26,36 +26,110 @@ TYPE_NAME_ALIAS(std::vector< unsigned int >, osgUtil::Simplifier::IndexList); BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier) I_BaseType(osg::NodeVisitor); - I_ConstructorWithDefaults3(IN, float, sampleRatio, 1.0f, IN, float, maximumError, FLT_MAX, IN, float, maximumLength, 0.0); - I_Method1(void, setSampleRatio, IN, float, sampleRatio); - I_Method0(float, getSampleRatio); - I_Method1(void, setMaximumError, IN, float, error); - I_Method0(float, getMaximumError); - I_Method1(void, setMaximumLength, IN, float, length); - I_Method0(float, getMaximumLength); - I_Method1(void, setDoTriStrip, IN, bool, on); - I_Method0(bool, getDoTriStrip); - I_Method1(void, setSmoothing, IN, bool, on); - I_Method0(bool, getSmoothing); - I_Method1(void, setContinueSimplificationCallback, IN, osgUtil::Simplifier::ContinueSimplificationCallback *, cb); - I_Method0(osgUtil::Simplifier::ContinueSimplificationCallback *, getContinueSimplificationCallback); - I_Method0(const osgUtil::Simplifier::ContinueSimplificationCallback *, getContinueSimplificationCallback); - I_Method3(bool, continueSimplification, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives); - I_Method3(bool, continueSimplificationImplementation, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives); - I_Method1(void, apply, IN, osg::Geode &, geode); - I_Method1(void, simplify, IN, osg::Geometry &, geometry); - I_Method2(void, simplify, IN, osg::Geometry &, geometry, IN, const osgUtil::Simplifier::IndexList &, protectedPoints); - I_Property(osgUtil::Simplifier::ContinueSimplificationCallback *, ContinueSimplificationCallback); - I_Property(bool, DoTriStrip); - I_Property(float, MaximumError); - I_Property(float, MaximumLength); - I_Property(float, SampleRatio); - I_Property(bool, Smoothing); + I_ConstructorWithDefaults3(IN, float, sampleRatio, 1.0f, IN, float, maximumError, FLT_MAX, IN, float, maximumLength, 0.0, + ____Simplifier__float__float__float, + "", + ""); + I_Method1(void, setSampleRatio, IN, float, sampleRatio, + __void__setSampleRatio__float, + "", + ""); + I_Method0(float, getSampleRatio, + __float__getSampleRatio, + "", + ""); + I_Method1(void, setMaximumError, IN, float, error, + __void__setMaximumError__float, + "Set the maximum point error that all point removals must be less than to permit removal of a point. ", + "Note, Only used when down sampling. i.e. sampleRatio < 1.0 "); + I_Method0(float, getMaximumError, + __float__getMaximumError, + "", + ""); + I_Method1(void, setMaximumLength, IN, float, length, + __void__setMaximumLength__float, + "Set the maximum length target that all edges must be shorted than. ", + "Note, Only used when up sampling i.e. sampleRatio > 1.0. "); + I_Method0(float, getMaximumLength, + __float__getMaximumLength, + "", + ""); + I_Method1(void, setDoTriStrip, IN, bool, on, + __void__setDoTriStrip__bool, + "", + ""); + I_Method0(bool, getDoTriStrip, + __bool__getDoTriStrip, + "", + ""); + I_Method1(void, setSmoothing, IN, bool, on, + __void__setSmoothing__bool, + "", + ""); + I_Method0(bool, getSmoothing, + __bool__getSmoothing, + "", + ""); + I_Method1(void, setContinueSimplificationCallback, IN, osgUtil::Simplifier::ContinueSimplificationCallback *, cb, + __void__setContinueSimplificationCallback__ContinueSimplificationCallback_P1, + "", + ""); + I_Method0(osgUtil::Simplifier::ContinueSimplificationCallback *, getContinueSimplificationCallback, + __ContinueSimplificationCallback_P1__getContinueSimplificationCallback, + "", + ""); + I_Method0(const osgUtil::Simplifier::ContinueSimplificationCallback *, getContinueSimplificationCallback, + __C5_ContinueSimplificationCallback_P1__getContinueSimplificationCallback, + "", + ""); + I_Method3(bool, continueSimplification, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, + __bool__continueSimplification__float__unsigned_int__unsigned_int, + "", + ""); + I_Method3(bool, continueSimplificationImplementation, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, + __bool__continueSimplificationImplementation__float__unsigned_int__unsigned_int, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, simplify, IN, osg::Geometry &, geometry, + __void__simplify__osg_Geometry_R1, + "simply the geometry. ", + ""); + I_Method2(void, simplify, IN, osg::Geometry &, geometry, IN, const osgUtil::Simplifier::IndexList &, protectedPoints, + __void__simplify__osg_Geometry_R1__C5_IndexList_R1, + "simply the geometry, whilst protecting key points from being modified. ", + ""); + I_SimpleProperty(osgUtil::Simplifier::ContinueSimplificationCallback *, ContinueSimplificationCallback, + __ContinueSimplificationCallback_P1__getContinueSimplificationCallback, + __void__setContinueSimplificationCallback__ContinueSimplificationCallback_P1); + I_SimpleProperty(bool, DoTriStrip, + __bool__getDoTriStrip, + __void__setDoTriStrip__bool); + I_SimpleProperty(float, MaximumError, + __float__getMaximumError, + __void__setMaximumError__float); + I_SimpleProperty(float, MaximumLength, + __float__getMaximumLength, + __void__setMaximumLength__float); + I_SimpleProperty(float, SampleRatio, + __float__getSampleRatio, + __void__setSampleRatio__float); + I_SimpleProperty(bool, Smoothing, + __bool__getSmoothing, + __void__setSmoothing__bool); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier::ContinueSimplificationCallback) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method4(bool, continueSimplification, IN, const osgUtil::Simplifier &, simplifier, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives); + I_Constructor0(____ContinueSimplificationCallback, + "", + ""); + I_Method4(bool, continueSimplification, IN, const osgUtil::Simplifier &, simplifier, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, + __bool__continueSimplification__C5_Simplifier_R1__float__unsigned_int__unsigned_int, + "return true if mesh should be continued to be simplified, return false to stop simplification. ", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/SmoothingVisitor.cpp b/src/osgWrappers/osgUtil/SmoothingVisitor.cpp index 1f66bdced..15f05641d 100644 --- a/src/osgWrappers/osgUtil/SmoothingVisitor.cpp +++ b/src/osgWrappers/osgUtil/SmoothingVisitor.cpp @@ -24,8 +24,16 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::SmoothingVisitor) I_BaseType(osg::NodeVisitor); - I_Constructor0(); - I_Method1(void, apply, IN, osg::Geode &, geode); - I_StaticMethod1(void, smooth, IN, osg::Geometry &, geoset); + I_Constructor0(____SmoothingVisitor, + "default to traversing all children. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + __void__apply__osg_Geode_R1, + "apply smoothing method to all geode geosets. ", + ""); + I_StaticMethod1(void, smooth, IN, osg::Geometry &, geoset, + __void__smooth__osg_Geometry_R1_S, + "smooth geoset by creating per vertex normals. ", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/StateGraph.cpp b/src/osgWrappers/osgUtil/StateGraph.cpp index 52a433286..cd0813c44 100644 --- a/src/osgWrappers/osgUtil/StateGraph.cpp +++ b/src/osgWrappers/osgUtil/StateGraph.cpp @@ -25,7 +25,9 @@ #endif BEGIN_VALUE_REFLECTOR(osgUtil::LeafDepthSortFunctor) - I_Constructor0(); + I_Constructor0(____LeafDepthSortFunctor, + "", + ""); END_REFLECTOR TYPE_NAME_ALIAS(std::map< const osg::StateSet * COMMA osg::ref_ptr< osgUtil::StateGraph > >, osgUtil::StateGraph::ChildList); @@ -34,27 +36,86 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::RenderLeaf > >, osgUtil::Sta BEGIN_OBJECT_REFLECTOR(osgUtil::StateGraph) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Constructor2(IN, osgUtil::StateGraph *, parent, IN, const osg::StateSet *, stateset); - I_Method0(osgUtil::StateGraph *, cloneType); - I_Method1(void, setUserData, IN, osg::Referenced *, obj); - I_Method0(osg::Referenced *, getUserData); - I_Method0(const osg::Referenced *, getUserData); - I_Method0(bool, empty); - I_Method0(bool, leaves_empty); - I_Method0(float, getAverageDistance); - I_Method0(float, getMinimumDistance); - I_Method0(void, sortFrontToBack); - I_Method0(void, reset); - I_Method0(void, clean); - I_Method0(void, prune); - I_Method1(osgUtil::StateGraph *, find_or_insert, IN, const osg::StateSet *, stateset); - I_Method1(void, addLeaf, IN, osgUtil::RenderLeaf *, leaf); - I_StaticMethod3(void, moveStateGraph, IN, osg::State &, state, IN, osgUtil::StateGraph *, sg_curr, IN, osgUtil::StateGraph *, sg_new); - I_StaticMethod2(void, moveToRootStateGraph, IN, osg::State &, state, IN, osgUtil::StateGraph *, sg_curr); - I_ReadOnlyProperty(float, AverageDistance); - I_ReadOnlyProperty(float, MinimumDistance); - I_Property(osg::Referenced *, UserData); + I_Constructor0(____StateGraph, + "", + ""); + I_Constructor2(IN, osgUtil::StateGraph *, parent, IN, const osg::StateSet *, stateset, + ____StateGraph__StateGraph_P1__C5_osg_StateSet_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, cloneType, + __StateGraph_P1__cloneType, + "", + ""); + I_Method1(void, setUserData, IN, osg::Referenced *, obj, + __void__setUserData__osg_Referenced_P1, + "", + ""); + I_Method0(osg::Referenced *, getUserData, + __osg_Referenced_P1__getUserData, + "", + ""); + I_Method0(const osg::Referenced *, getUserData, + __C5_osg_Referenced_P1__getUserData, + "", + ""); + I_Method0(bool, empty, + __bool__empty, + "return true if all of drawables, lights and children are empty. ", + ""); + I_Method0(bool, leaves_empty, + __bool__leaves_empty, + "", + ""); + I_Method0(float, getAverageDistance, + __float__getAverageDistance, + "", + ""); + I_Method0(float, getMinimumDistance, + __float__getMinimumDistance, + "", + ""); + I_Method0(void, sortFrontToBack, + __void__sortFrontToBack, + "", + ""); + I_Method0(void, reset, + __void__reset, + "Reset the internal contents of a StateGraph, including deleting all children. ", + ""); + I_Method0(void, clean, + __void__clean, + "Recursively clean the StateGraph of all its drawables, lights and depths. ", + "Leaves children intact, and ready to be populated again. "); + I_Method0(void, prune, + __void__prune, + "Recursively prune the StateGraph of empty children. ", + ""); + I_Method1(osgUtil::StateGraph *, find_or_insert, IN, const osg::StateSet *, stateset, + __StateGraph_P1__find_or_insert__C5_osg_StateSet_P1, + "", + ""); + I_Method1(void, addLeaf, IN, osgUtil::RenderLeaf *, leaf, + __void__addLeaf__RenderLeaf_P1, + "add a render leaf. ", + ""); + I_StaticMethod3(void, moveStateGraph, IN, osg::State &, state, IN, osgUtil::StateGraph *, sg_curr, IN, osgUtil::StateGraph *, sg_new, + __void__moveStateGraph__osg_State_R1__StateGraph_P1__StateGraph_P1_S, + "", + ""); + I_StaticMethod2(void, moveToRootStateGraph, IN, osg::State &, state, IN, osgUtil::StateGraph *, sg_curr, + __void__moveToRootStateGraph__osg_State_R1__StateGraph_P1_S, + "", + ""); + I_SimpleProperty(float, AverageDistance, + __float__getAverageDistance, + 0); + I_SimpleProperty(float, MinimumDistance, + __float__getMinimumDistance, + 0); + I_SimpleProperty(osg::Referenced *, UserData, + __osg_Referenced_P1__getUserData, + __void__setUserData__osg_Referenced_P1); I_PublicMemberProperty(osgUtil::StateGraph *, _parent); I_PublicMemberProperty(int, _depth); I_PublicMemberProperty(osgUtil::StateGraph::ChildList, _children); @@ -65,25 +126,69 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::StateGraph) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::RenderLeaf >) - I_Constructor0(); - I_Constructor1(IN, osgUtil::RenderLeaf *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osgUtil::RenderLeaf > &, rp); - I_Method0(osgUtil::RenderLeaf *, get); - I_Method0(bool, valid); - I_Method0(osgUtil::RenderLeaf *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::RenderLeaf > &, rp); - I_ReadOnlyProperty(osgUtil::RenderLeaf *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgUtil::RenderLeaf *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgUtil::RenderLeaf > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgUtil::RenderLeaf *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osgUtil::RenderLeaf *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::RenderLeaf > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgUtil::RenderLeaf *, , + __T_P1__get, + 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::StateGraph >) - I_Constructor0(); - I_Constructor1(IN, osgUtil::StateGraph *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osgUtil::StateGraph > &, rp); - I_Method0(osgUtil::StateGraph *, get); - I_Method0(bool, valid); - I_Method0(osgUtil::StateGraph *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::StateGraph > &, rp); - I_ReadOnlyProperty(osgUtil::StateGraph *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgUtil::StateGraph *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgUtil::StateGraph > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgUtil::StateGraph *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osgUtil::StateGraph *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::StateGraph > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgUtil::StateGraph *, , + __T_P1__get, + 0); END_REFLECTOR STD_MAP_REFLECTOR(std::map< const osg::StateSet * COMMA osg::ref_ptr< osgUtil::StateGraph > >); diff --git a/src/osgWrappers/osgUtil/Statistics.cpp b/src/osgWrappers/osgUtil/Statistics.cpp index dd38d5fe4..3ccfacf1b 100644 --- a/src/osgWrappers/osgUtil/Statistics.cpp +++ b/src/osgWrappers/osgUtil/Statistics.cpp @@ -49,40 +49,137 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Statistics) I_BaseType(osg::PrimitiveFunctor); - I_Constructor0(); - I_Method0(void, reset); - I_Method1(void, setType, IN, osgUtil::Statistics::StatsType, t); - I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, x); - I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, x); - I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, x); - I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, x, IN, GLsizei, count); - I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, x); - I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, x); - I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, x); - I_Method1(void, begin, IN, GLenum, mode); - I_Method0(void, vertex); - I_Method3(void, vertex, IN, float, x, IN, float, x, IN, float, x); - I_Method1(void, vertex, IN, const osg::Vec3 &, x); - I_Method1(void, vertex, IN, const osg::Vec2 &, x); - I_Method1(void, vertex, IN, const osg::Vec4 &, x); - I_Method2(void, vertex, IN, float, x, IN, float, x); - I_Method4(void, vertex, IN, float, x, IN, float, x, IN, float, x, IN, float, x); - I_Method0(void, end); - I_Method0(void, addDrawable); - I_Method0(void, addMatrix); - I_Method1(void, addLight, IN, int, np); - I_Method1(void, addImpostor, IN, int, np); - I_Method0(int, getBins); - I_Method1(void, setDepth, IN, int, d); - I_Method1(void, addBins, IN, int, np); - I_Method1(void, setBinNo, IN, int, n); - I_Method1(void, add, IN, const osgUtil::Statistics &, stats); - I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesBegin); - I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesEnd); - I_WriteOnlyProperty(int, BinNo); - I_ReadOnlyProperty(int, Bins); - I_WriteOnlyProperty(int, Depth); - I_WriteOnlyProperty(osgUtil::Statistics::StatsType, Type); + I_Constructor0(____Statistics, + "", + ""); + I_Method0(void, reset, + __void__reset, + "", + ""); + I_Method1(void, setType, IN, osgUtil::Statistics::StatsType, t, + __void__setType__StatsType, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, x, + __void__setVertexArray__unsigned_int__C5_osg_Vec3_P1, + "Sets the array of vertices used to describe the primitives. ", + "Somehow mimics the OpenGL glVertexPointer() function."); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, x, + __void__setVertexArray__unsigned_int__C5_osg_Vec2_P1, + "Sets the array of vertices used to describe the primitives. ", + "Somehow mimics the OpenGL glVertexPointer() function."); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, x, + __void__setVertexArray__unsigned_int__C5_osg_Vec4_P1, + "Sets the array of vertices used to describe the primitives. ", + "Somehow mimics the OpenGL glVertexPointer() function."); + I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, x, IN, GLsizei, count, + __void__drawArrays__GLenum__GLint__GLsizei, + "Mimics the OpenGL glDrawArrays() function. ", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, x, + __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, + "Mimics the OpenGL glDrawElements() function. ", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, x, + __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, + "Mimics the OpenGL glDrawElements() function. ", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, x, + __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, + "Mimics the OpenGL glDrawElements() function. ", + ""); + I_Method1(void, begin, IN, GLenum, mode, + __void__begin__GLenum, + "Mimics the OpenGL glBegin() function. ", + ""); + I_Method0(void, vertex, + __void__vertex, + "", + ""); + I_Method3(void, vertex, IN, float, x, IN, float, x, IN, float, x, + __void__vertex__float__float__float, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method1(void, vertex, IN, const osg::Vec3 &, x, + __void__vertex__C5_osg_Vec3_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method1(void, vertex, IN, const osg::Vec2 &, x, + __void__vertex__C5_osg_Vec2_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method1(void, vertex, IN, const osg::Vec4 &, x, + __void__vertex__C5_osg_Vec4_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method2(void, vertex, IN, float, x, IN, float, x, + __void__vertex__float__float, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method4(void, vertex, IN, float, x, IN, float, x, IN, float, x, IN, float, x, + __void__vertex__float__float__float__float, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method0(void, end, + __void__end, + "Mimics the OpenGL glEnd() function. ", + ""); + I_Method0(void, addDrawable, + __void__addDrawable, + "", + ""); + I_Method0(void, addMatrix, + __void__addMatrix, + "", + ""); + I_Method1(void, addLight, IN, int, np, + __void__addLight__int, + "", + ""); + I_Method1(void, addImpostor, IN, int, np, + __void__addImpostor__int, + "", + ""); + I_Method0(int, getBins, + __int__getBins, + "", + ""); + I_Method1(void, setDepth, IN, int, d, + __void__setDepth__int, + "", + ""); + I_Method1(void, addBins, IN, int, np, + __void__addBins__int, + "", + ""); + I_Method1(void, setBinNo, IN, int, n, + __void__setBinNo__int, + "", + ""); + I_Method1(void, add, IN, const osgUtil::Statistics &, stats, + __void__add__C5_Statistics_R1, + "", + ""); + I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesBegin, + __PrimitiveCountMap_iterator__GetPrimitivesBegin, + "", + ""); + I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesEnd, + __PrimitiveCountMap_iterator__GetPrimitivesEnd, + "", + ""); + I_SimpleProperty(int, BinNo, + 0, + __void__setBinNo__int); + I_SimpleProperty(int, Bins, + __int__getBins, + 0); + I_SimpleProperty(int, Depth, + 0, + __void__setDepth__int); + I_SimpleProperty(osgUtil::Statistics::StatsType, Type, + 0, + __void__setType__StatsType); I_PublicMemberProperty(int, numDrawables); I_PublicMemberProperty(int, nummat); I_PublicMemberProperty(int, nbins); @@ -104,17 +201,49 @@ TYPE_NAME_ALIAS(std::set< osg::StateSet * >, osgUtil::StatsVisitor::StateSetSet) BEGIN_OBJECT_REFLECTOR(osgUtil::StatsVisitor) I_BaseType(osg::NodeVisitor); - I_Constructor0(); - I_Method0(void, reset); - I_Method1(void, apply, IN, osg::Node &, node); - I_Method1(void, apply, IN, osg::Group &, node); - I_Method1(void, apply, IN, osg::Transform &, node); - I_Method1(void, apply, IN, osg::LOD &, node); - I_Method1(void, apply, IN, osg::Switch &, node); - I_Method1(void, apply, IN, osg::Geode &, node); - I_Method1(void, apply, IN, osg::Drawable &, drawable); - I_Method0(void, totalUpStats); - I_Method1(void, print, IN, std::ostream &, out); + I_Constructor0(____StatsVisitor, + "", + ""); + I_Method0(void, reset, + __void__reset, + "Method to call to reset visitor. ", + "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); + I_Method1(void, apply, IN, osg::Node &, node, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Drawable &, drawable, + __void__apply__osg_Drawable_R1, + "", + ""); + I_Method0(void, totalUpStats, + __void__totalUpStats, + "", + ""); + I_Method1(void, print, IN, std::ostream &, out, + __void__print__std_ostream_R1, + "", + ""); I_PublicMemberProperty(unsigned int, _numInstancedGroup); I_PublicMemberProperty(unsigned int, _numInstancedSwitch); I_PublicMemberProperty(unsigned int, _numInstancedLOD); diff --git a/src/osgWrappers/osgUtil/TangentSpaceGenerator.cpp b/src/osgWrappers/osgUtil/TangentSpaceGenerator.cpp index 817a033cd..318001800 100644 --- a/src/osgWrappers/osgUtil/TangentSpaceGenerator.cpp +++ b/src/osgWrappers/osgUtil/TangentSpaceGenerator.cpp @@ -25,22 +25,68 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::TangentSpaceGenerator) I_BaseType(osg::Referenced); - I_Constructor0(); - I_ConstructorWithDefaults2(IN, const osgUtil::TangentSpaceGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); - I_MethodWithDefaults2(void, generate, IN, osg::Geometry *, geo, , IN, int, normal_map_tex_unit, 0); - I_Method0(osg::Vec4Array *, getTangentArray); - I_Method0(const osg::Vec4Array *, getTangentArray); - I_Method1(void, setTangentArray, IN, osg::Vec4Array *, array); - I_Method0(osg::Vec4Array *, getNormalArray); - I_Method0(const osg::Vec4Array *, getNormalArray); - I_Method1(void, setNormalArray, IN, osg::Vec4Array *, array); - I_Method0(osg::Vec4Array *, getBinormalArray); - I_Method0(const osg::Vec4Array *, getBinormalArray); - I_Method1(void, setBinormalArray, IN, osg::Vec4Array *, array); - I_Method0(osg::IndexArray *, getIndices); - I_Property(osg::Vec4Array *, BinormalArray); - I_ReadOnlyProperty(osg::IndexArray *, Indices); - I_Property(osg::Vec4Array *, NormalArray); - I_Property(osg::Vec4Array *, TangentArray); + I_Constructor0(____TangentSpaceGenerator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::TangentSpaceGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TangentSpaceGenerator__C5_TangentSpaceGenerator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_MethodWithDefaults2(void, generate, IN, osg::Geometry *, geo, , IN, int, normal_map_tex_unit, 0, + __void__generate__osg_Geometry_P1__int, + "", + ""); + I_Method0(osg::Vec4Array *, getTangentArray, + __osg_Vec4Array_P1__getTangentArray, + "", + ""); + I_Method0(const osg::Vec4Array *, getTangentArray, + __C5_osg_Vec4Array_P1__getTangentArray, + "", + ""); + I_Method1(void, setTangentArray, IN, osg::Vec4Array *, array, + __void__setTangentArray__osg_Vec4Array_P1, + "", + ""); + I_Method0(osg::Vec4Array *, getNormalArray, + __osg_Vec4Array_P1__getNormalArray, + "", + ""); + I_Method0(const osg::Vec4Array *, getNormalArray, + __C5_osg_Vec4Array_P1__getNormalArray, + "", + ""); + I_Method1(void, setNormalArray, IN, osg::Vec4Array *, array, + __void__setNormalArray__osg_Vec4Array_P1, + "", + ""); + I_Method0(osg::Vec4Array *, getBinormalArray, + __osg_Vec4Array_P1__getBinormalArray, + "", + ""); + I_Method0(const osg::Vec4Array *, getBinormalArray, + __C5_osg_Vec4Array_P1__getBinormalArray, + "", + ""); + I_Method1(void, setBinormalArray, IN, osg::Vec4Array *, array, + __void__setBinormalArray__osg_Vec4Array_P1, + "", + ""); + I_Method0(osg::IndexArray *, getIndices, + __osg_IndexArray_P1__getIndices, + "", + ""); + I_SimpleProperty(osg::Vec4Array *, BinormalArray, + __osg_Vec4Array_P1__getBinormalArray, + __void__setBinormalArray__osg_Vec4Array_P1); + I_SimpleProperty(osg::IndexArray *, Indices, + __osg_IndexArray_P1__getIndices, + 0); + I_SimpleProperty(osg::Vec4Array *, NormalArray, + __osg_Vec4Array_P1__getNormalArray, + __void__setNormalArray__osg_Vec4Array_P1); + I_SimpleProperty(osg::Vec4Array *, TangentArray, + __osg_Vec4Array_P1__getTangentArray, + __void__setTangentArray__osg_Vec4Array_P1); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/Tesselator.cpp b/src/osgWrappers/osgUtil/Tesselator.cpp index 7213bb1f3..ce7d159ba 100644 --- a/src/osgWrappers/osgUtil/Tesselator.cpp +++ b/src/osgWrappers/osgUtil/Tesselator.cpp @@ -42,49 +42,136 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Tesselator) I_BaseType(osg::Referenced); - I_Constructor0(); - I_Method1(void, setBoundaryOnly, IN, const bool, tt); - I_Method0(const bool, getBoundaryOnly); - I_Method1(void, setWindingType, IN, const osgUtil::Tesselator::WindingType, wt); - I_Method0(const osgUtil::Tesselator::WindingType, getWindingType); - I_Method1(void, setTesselationType, IN, const osgUtil::Tesselator::TesselationType, tt); - I_Method0(const osgUtil::Tesselator::TesselationType, getTesselationType); - I_Method1(void, retesselatePolygons, IN, osg::Geometry &, cxgeom); - I_Method1(void, setTesselationNormal, IN, const osg::Vec3, norm); - I_Method0(osg::Geometry::PrimitiveSetList, getContours); - I_Method0(void, beginTesselation); - I_Method0(void, beginContour); - I_Method1(void, addVertex, IN, osg::Vec3 *, vertex); - I_Method0(void, endContour); - I_Method0(void, endTesselation); - I_Method0(osgUtil::Tesselator::PrimList &, getPrimList); - I_Method0(void, reset); - I_Property(const bool, BoundaryOnly); - I_ReadOnlyProperty(osg::Geometry::PrimitiveSetList, Contours); - I_ReadOnlyProperty(osgUtil::Tesselator::PrimList &, PrimList); - I_WriteOnlyProperty(const osg::Vec3, TesselationNormal); - I_Property(const osgUtil::Tesselator::TesselationType, TesselationType); - I_Property(const osgUtil::Tesselator::WindingType, WindingType); + I_Constructor0(____Tesselator, + "", + ""); + I_Method1(void, setBoundaryOnly, IN, const bool, tt, + __void__setBoundaryOnly__C5_bool, + "Set and get tesselation request boundary only on/off. ", + ""); + I_Method0(const bool, getBoundaryOnly, + __C5_bool__getBoundaryOnly, + "", + ""); + I_Method1(void, setWindingType, IN, const osgUtil::Tesselator::WindingType, wt, + __void__setWindingType__C5_WindingType, + "Set and get tesselation windong rule. ", + ""); + I_Method0(const osgUtil::Tesselator::WindingType, getWindingType, + __C5_WindingType__getWindingType, + "", + ""); + I_Method1(void, setTesselationType, IN, const osgUtil::Tesselator::TesselationType, tt, + __void__setTesselationType__C5_TesselationType, + "Set and get tesselation type. ", + ""); + I_Method0(const osgUtil::Tesselator::TesselationType, getTesselationType, + __C5_TesselationType__getTesselationType, + "", + ""); + I_Method1(void, retesselatePolygons, IN, osg::Geometry &, cxgeom, + __void__retesselatePolygons__osg_Geometry_R1, + "Change the contours lists of the geometry into tesselated primitives (the list of primitives in the original geometry is stored in the tesselator for possible re-use. ", + "The name remains retesselatePolygons although it now handles trifans, strips, quads etc. as well as Polygons so as to not break old codes relying on this function name. "); + I_Method1(void, setTesselationNormal, IN, const osg::Vec3, norm, + __void__setTesselationNormal__C5_osg_Vec3, + "Define the normal to the tesselated polygon - this provides a hint how to tesselate the contours; see gluTessNormal in red book or man pages. ", + "GWM July 2005. Can improve teselation \"For example, if you know that all polygons lie in the x-y plane, call gluTessNormal(tess, 0.0, 0.0, 1.0) before rendering any polygons.\""); + I_Method0(osg::Geometry::PrimitiveSetList, getContours, + __osg_Geometry_PrimitiveSetList__getContours, + "", + ""); + I_Method0(void, beginTesselation, + __void__beginTesselation, + "", + ""); + I_Method0(void, beginContour, + __void__beginContour, + "", + ""); + I_Method1(void, addVertex, IN, osg::Vec3 *, vertex, + __void__addVertex__osg_Vec3_P1, + "", + ""); + I_Method0(void, endContour, + __void__endContour, + "", + ""); + I_Method0(void, endTesselation, + __void__endTesselation, + "", + ""); + I_Method0(osgUtil::Tesselator::PrimList &, getPrimList, + __PrimList_R1__getPrimList, + "", + ""); + I_Method0(void, reset, + __void__reset, + "", + ""); + I_SimpleProperty(const bool, BoundaryOnly, + __C5_bool__getBoundaryOnly, + __void__setBoundaryOnly__C5_bool); + I_SimpleProperty(osg::Geometry::PrimitiveSetList, Contours, + __osg_Geometry_PrimitiveSetList__getContours, + 0); + I_SimpleProperty(osgUtil::Tesselator::PrimList &, PrimList, + __PrimList_R1__getPrimList, + 0); + I_SimpleProperty(const osg::Vec3, TesselationNormal, + 0, + __void__setTesselationNormal__C5_osg_Vec3); + I_SimpleProperty(const osgUtil::Tesselator::TesselationType, TesselationType, + __C5_TesselationType__getTesselationType, + __void__setTesselationType__C5_TesselationType); + I_SimpleProperty(const osgUtil::Tesselator::WindingType, WindingType, + __C5_WindingType__getWindingType, + __void__setWindingType__C5_WindingType); END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osg::Vec3 * >, osgUtil::Tesselator::Prim::VecList); BEGIN_OBJECT_REFLECTOR(osgUtil::Tesselator::Prim) I_BaseType(osg::Referenced); - I_Constructor1(IN, GLenum, mode); + I_Constructor1(IN, GLenum, mode, + ____Prim__GLenum, + "", + ""); I_PublicMemberProperty(GLenum, _mode); I_PublicMemberProperty(osgUtil::Tesselator::Prim::VecList, _vertices); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::Tesselator::Prim >) - I_Constructor0(); - I_Constructor1(IN, osgUtil::Tesselator::Prim *, ptr); - I_Constructor1(IN, const osg::ref_ptr< osgUtil::Tesselator::Prim > &, rp); - I_Method0(osgUtil::Tesselator::Prim *, get); - I_Method0(bool, valid); - I_Method0(osgUtil::Tesselator::Prim *, release); - I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::Tesselator::Prim > &, rp); - I_ReadOnlyProperty(osgUtil::Tesselator::Prim *, ); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgUtil::Tesselator::Prim *, ptr, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgUtil::Tesselator::Prim > &, rp, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgUtil::Tesselator::Prim *, get, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + __bool__valid, + "", + ""); + I_Method0(osgUtil::Tesselator::Prim *, release, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::Tesselator::Prim > &, rp, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgUtil::Tesselator::Prim *, , + __T_P1__get, + 0); END_REFLECTOR STD_VECTOR_REFLECTOR(std::vector< osg::Vec3 * >); diff --git a/src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp b/src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp index b793de3ab..a814a8432 100644 --- a/src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp +++ b/src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp @@ -25,8 +25,14 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::TransformAttributeFunctor) I_BaseType(osg::Drawable::AttributeFunctor); - I_Constructor1(IN, const osg::Matrix &, m); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, type, IN, unsigned int, count, IN, osg::Vec3 *, begin); + I_Constructor1(IN, const osg::Matrix &, m, + ____TransformAttributeFunctor__C5_osg_Matrix_R1, + "Construct a functor to transform a drawable's vertex and normal attributes by specified matrix. ", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, type, IN, unsigned int, count, IN, osg::Vec3 *, begin, + __void__apply__osg_Drawable_AttributeType__unsigned_int__osg_Vec3_P1, + "Do the work of transforming vertex and normal attributes. ", + ""); I_PublicMemberProperty(osg::Matrix, _m); I_PublicMemberProperty(osg::Matrix, _im); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/TransformCallback.cpp b/src/osgWrappers/osgUtil/TransformCallback.cpp index 6d8e3161e..3e9c3fc39 100644 --- a/src/osgWrappers/osgUtil/TransformCallback.cpp +++ b/src/osgWrappers/osgUtil/TransformCallback.cpp @@ -25,8 +25,16 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::TransformCallback) I_BaseType(osg::NodeCallback); - I_Constructor3(IN, const osg::Vec3 &, pivot, IN, const osg::Vec3 &, axis, IN, float, angularVelocity); - I_Method1(void, setPause, IN, bool, pause); - I_WriteOnlyProperty(bool, Pause); + I_Constructor3(IN, const osg::Vec3 &, pivot, IN, const osg::Vec3 &, axis, IN, float, angularVelocity, + ____TransformCallback__C5_osg_Vec3_R1__C5_osg_Vec3_R1__float, + "", + ""); + I_Method1(void, setPause, IN, bool, pause, + __void__setPause__bool, + "", + ""); + I_SimpleProperty(bool, Pause, + 0, + __void__setPause__bool); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/TriStripVisitor.cpp b/src/osgWrappers/osgUtil/TriStripVisitor.cpp index f2486049f..ccec8bddd 100644 --- a/src/osgWrappers/osgUtil/TriStripVisitor.cpp +++ b/src/osgWrappers/osgUtil/TriStripVisitor.cpp @@ -25,20 +25,62 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::TriStripVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); - I_Method1(void, stripify, IN, osg::Geometry &, drawable); - I_Method0(void, stripify); - I_Method1(void, apply, IN, osg::Geode &, geode); - I_Method1(void, setCacheSize, IN, unsigned int, size); - I_Method0(unsigned int, getCacheSize); - I_Method0(const unsigned int, getCacheSize); - I_Method1(void, setMinStripSize, IN, unsigned int, size); - I_Method0(unsigned int, getMinStripSize); - I_Method0(const unsigned int, getMinStripSize); - I_Method1(void, setGenerateFourPointPrimitivesQuads, IN, bool, flag); - I_Method0(bool, getGenerateFourPointPrimitivesQuads); - I_Property(unsigned int, CacheSize); - I_Property(bool, GenerateFourPointPrimitivesQuads); - I_Property(unsigned int, MinStripSize); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + ____TriStripVisitor__Optimizer_P1, + "default to traversing all children. ", + ""); + I_Method1(void, stripify, IN, osg::Geometry &, drawable, + __void__stripify__osg_Geometry_R1, + "Convert mesh primitives in Geometry into Tri Strips. ", + "Converts all primitive types except points and lines, linestrips which it leaves unchanged."); + I_Method0(void, stripify, + __void__stripify, + "Stripify (make into strips of tria or quads) the accumulated list of Geometry drawables. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + __void__apply__osg_Geode_R1, + "Accumulate the Geometry drawables to make into strips. ", + ""); + I_Method1(void, setCacheSize, IN, unsigned int, size, + __void__setCacheSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getCacheSize, + __unsigned_int__getCacheSize, + "", + ""); + I_Method0(const unsigned int, getCacheSize, + __C5_unsigned_int__getCacheSize, + "", + ""); + I_Method1(void, setMinStripSize, IN, unsigned int, size, + __void__setMinStripSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMinStripSize, + __unsigned_int__getMinStripSize, + "", + ""); + I_Method0(const unsigned int, getMinStripSize, + __C5_unsigned_int__getMinStripSize, + "", + ""); + I_Method1(void, setGenerateFourPointPrimitivesQuads, IN, bool, flag, + __void__setGenerateFourPointPrimitivesQuads__bool, + "", + ""); + I_Method0(bool, getGenerateFourPointPrimitivesQuads, + __bool__getGenerateFourPointPrimitivesQuads, + "", + ""); + I_SimpleProperty(unsigned int, CacheSize, + __unsigned_int__getCacheSize, + __void__setCacheSize__unsigned_int); + I_SimpleProperty(bool, GenerateFourPointPrimitivesQuads, + __bool__getGenerateFourPointPrimitivesQuads, + __void__setGenerateFourPointPrimitivesQuads__bool); + I_SimpleProperty(unsigned int, MinStripSize, + __unsigned_int__getMinStripSize, + __void__setMinStripSize__unsigned_int); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/UpdateVisitor.cpp b/src/osgWrappers/osgUtil/UpdateVisitor.cpp index 7c0e1a329..fca502652 100644 --- a/src/osgWrappers/osgUtil/UpdateVisitor.cpp +++ b/src/osgWrappers/osgUtil/UpdateVisitor.cpp @@ -32,17 +32,52 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::UpdateVisitor) I_BaseType(osg::NodeVisitor); - I_Constructor0(); - I_Method0(void, reset); - I_Method1(void, apply, IN, osg::Node &, node); - I_Method1(void, apply, IN, osg::Geode &, node); - I_Method1(void, apply, IN, osg::Billboard &, node); - I_Method1(void, apply, IN, osg::LightSource &, node); - I_Method1(void, apply, IN, osg::Group &, node); - I_Method1(void, apply, IN, osg::Transform &, node); - I_Method1(void, apply, IN, osg::Projection &, node); - I_Method1(void, apply, IN, osg::Switch &, node); - I_Method1(void, apply, IN, osg::LOD &, node); - I_Method1(void, apply, IN, osg::OccluderNode &, node); + I_Constructor0(____UpdateVisitor, + "", + ""); + I_Method0(void, reset, + __void__reset, + "Method to call to reset visitor. ", + "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); + I_Method1(void, apply, IN, osg::Node &, node, + __void__apply__osg_Node_R1, + "During traversal each type of node calls its callbacks and its children traversed. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LightSource &, node, + __void__apply__osg_LightSource_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, node, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::OccluderNode &, node, + __void__apply__osg_OccluderNode_R1, + "", + ""); END_REFLECTOR